/* ====== RVSOFT 手机版样式 ======
   独立于桌面版，App 风格设计 */

/* ====== 1. Design Tokens ====== */
:root {
  --m-primary: #1a56db;
  --m-primary-dark: #1e40af;
  --m-primary-light: #3b82f6;
  --m-accent: #0ea5e9;
  --m-bg: #f5f6fa;
  --m-bg-alt: #eef0f4;
  --m-card-bg: #fff;
  --m-text: #1a1a2e;
  --m-text-secondary: #6b7280;
  --m-text-muted: #9ca3af;
  --m-border: #e5e7eb;
  --m-border-light: #f0f0f3;
  --m-radius: 12px;
  --m-radius-sm: 8px;
  --m-radius-lg: 20px;
  --m-radius-xl: 24px;
  --m-shadow: 0 1px 3px rgba(0,0,0,0.04);
  --m-shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --m-shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --m-gradient-1: linear-gradient(135deg, #1e40af, #1a56db, #0ea5e9);
  --m-gradient-2: linear-gradient(135deg, #1a2332, #243447, #2d4a6b);
  --m-font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --m-topbar-h: 52px;
  --m-tabbar-h: 56px;
  --m-safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  --m-bg: #0f172a;
  --m-bg-alt: #1a2436;
  --m-card-bg: #1e293b;
  --m-text: #e2e8f0;
  --m-text-secondary: #94a3b8;
  --m-text-muted: #64748b;
  --m-border: #334155;
  --m-border-light: #1e293b;
  --m-shadow: 0 1px 3px rgba(0,0,0,0.2);
  --m-shadow-card: 0 2px 12px rgba(0,0,0,0.25);
  --m-shadow-lg: 0 8px 24px rgba(0,0,0,0.35);
}

/* ====== 2. Reset & Base ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--m-font);
  background: var(--m-bg);
  color: var(--m-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  padding-top: var(--m-topbar-h);
  padding-bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom));
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-touch-callout: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--m-font);
  border: none;
  background: none;
  cursor: pointer;
}

/* ====== 3. TopBar ====== */
.m-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--m-topbar-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--m-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .m-topbar {
  background: rgba(15,23,42,0.92);
  border-bottom-color: var(--m-border);
}

.m-topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--m-text);
}

.m-topbar-logo img {
  height: 30px;
  max-width: 140px;
  object-fit: contain;
}

.m-topbar-logo i {
  color: var(--m-primary-light);
  font-size: 1.3rem;
}

.m-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--m-text-secondary);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.m-topbar-btn:active {
  background: var(--m-bg-alt);
  transform: scale(0.92);
}

/* ====== 4. Bottom TabBar ====== */
.m-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--m-tabbar-h) + var(--m-safe-bottom));
  padding-bottom: var(--m-safe-bottom);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--m-border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .m-tabbar {
  background: rgba(15,23,42,0.92);
  border-top-color: var(--m-border);
}

.m-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 8px;
  min-width: 48px;
  min-height: 44px;
  color: var(--m-text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.m-tabbar-item i {
  font-size: 1.35rem;
  transition: transform 0.2s;
}

.m-tabbar-item.active {
  color: var(--m-primary);
}

.m-tabbar-item.active i {
  transform: scale(1.1);
}

.m-tabbar-item:active {
  opacity: 0.7;
}

/* Tab 激活指示器小圆点 */
.m-tabbar-item.active::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--m-primary);
}

/* ====== 5. "更多" Action Sheet ====== */
.m-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0);
  visibility: hidden;
  transition: all 0.3s;
}

.m-sheet-overlay.show {
  background: rgba(0,0,0,0.45);
  visibility: visible;
}

.m-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  background: var(--m-card-bg);
  border-radius: var(--m-radius-xl) var(--m-radius-xl) 0 0;
  padding: 8px 0 calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 16px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
}

.m-sheet.show {
  transform: translateY(0);
}

.m-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--m-border);
  border-radius: 2px;
  margin: 0 auto 12px;
}

.m-sheet-title {
  text-align: center;
  font-size: 0.82rem;
  color: var(--m-text-muted);
  margin-bottom: 8px;
}

.m-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--m-text);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.m-sheet-item:active {
  background: var(--m-bg-alt);
}

.m-sheet-item i {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
  color: var(--m-primary);
}

.m-sheet-item .m-sheet-arrow {
  margin-left: auto;
  color: var(--m-text-muted);
  font-size: 0.75rem;
}

.m-sheet-divider {
  height: 1px;
  background: var(--m-border-light);
  margin: 6px 24px;
}

/* ====== 6. Hero Banner ====== */
.m-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.m-hero .swiper-slide {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.m-hero .swiper-slide .m-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.15) 60%, rgba(15,23,42,0.05) 100%);
}

.m-hero .m-hero-content {
  position: relative;
  z-index: 2;
  padding: 20px 16px;
  width: 100%;
}

.m-hero .m-hero-badge {
  display: inline-block;
  background: rgba(14,165,233,0.18);
  color: var(--m-accent);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.m-hero .m-hero-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-hero .m-hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-hero .m-hero-btn {
  display: inline-block;
  background: var(--m-gradient-1);
  color: #fff;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(26,86,219,0.35);
}

.m-hero .swiper-pagination {
  bottom: 8px;
}

.m-hero .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
}

.m-hero .swiper-pagination-bullet-active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* ====== 7. 金刚区 Quick Entry ====== */
.m-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--m-card-bg);
  margin: -16px 16px 0;
  border-radius: var(--m-radius-lg);
  position: relative;
  z-index: 5;
  box-shadow: var(--m-shadow-card);
}

.m-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--m-radius);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.m-quick-item:active {
  background: var(--m-bg-alt);
}

.m-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.m-quick-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--m-text-secondary);
}

/* ====== 8. Section Headers ====== */
.m-section {
  padding: 24px 16px;
}

.m-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.m-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--m-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--m-gradient-1);
  border-radius: 2px;
}

.m-section-more {
  font-size: 0.8rem;
  color: var(--m-text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ====== 9. Cards ====== */
/* 通用卡片 */
.m-card {
  background: var(--m-card-bg);
  border-radius: var(--m-radius-lg);
  overflow: hidden;
  box-shadow: var(--m-shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.m-card:active {
  transform: scale(0.98);
}

/* 图文竖卡（新闻列表 / 分区列表） */
.m-article-card {
  background: var(--m-card-bg);
  border-radius: var(--m-radius-lg);
  overflow: hidden;
  box-shadow: var(--m-shadow-card);
  margin-bottom: 12px;
  transition: transform 0.2s;
}

.m-article-card:active {
  transform: scale(0.98);
}

.m-article-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--m-bg-alt);
}

.m-article-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--m-bg-alt), var(--m-bg));
}

.m-article-img.placeholder i {
  font-size: 2.5rem;
  opacity: 0.3;
  color: var(--m-text-muted);
}

.m-article-body {
  padding: 14px;
}

.m-article-body .m-article-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--m-text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-article-body .m-article-summary {
  font-size: 0.8rem;
  color: var(--m-text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.m-article-body .m-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--m-text-muted);
}

.m-article-body .m-article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 产品双列卡片 */
.m-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.m-product-card {
  background: var(--m-card-bg);
  border-radius: var(--m-radius-lg);
  overflow: hidden;
  box-shadow: var(--m-shadow-card);
  transition: transform 0.2s;
}

.m-product-card:active {
  transform: scale(0.97);
}

.m-product-card .m-product-img {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--m-bg-alt);
}

.m-product-card .m-product-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--m-bg-alt), var(--m-bg));
}

.m-product-card .m-product-img.placeholder i {
  font-size: 2rem;
  opacity: 0.3;
  color: var(--m-text-muted);
}

.m-product-card .m-product-body {
  padding: 10px 12px 12px;
}

.m-product-card .m-product-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--m-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.m-product-card .m-product-summary {
  font-size: 0.72rem;
  color: var(--m-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.m-product-card .m-product-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: #e53e3e;
}

.m-product-card .m-product-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(14,165,233,0.08);
  color: var(--m-accent);
}

/* ====== 10. 统计区 ====== */
.m-stats {
  background: var(--m-gradient-2);
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.m-stat-item {
  text-align: center;
  padding: 12px 8px;
}

.m-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: #fff;
}

.m-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

.m-stat-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.m-stat-bar-fill {
  height: 100%;
  background: var(--m-gradient-1);
  border-radius: 2px;
  width: 0;
  transition: width 1.8s ease-out;
}

/* ====== 11. 合作伙伴 ====== */
.m-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.m-partner-item {
  background: var(--m-card-bg);
  border-radius: var(--m-radius);
  padding: 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--m-shadow);
  min-height: 60px;
}

.m-partner-item img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

/* ====== 12. 公司介绍区 ====== */
.m-intro {
  padding: 20px 16px;
  text-align: center;
}

.m-intro h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--m-text);
  margin-bottom: 8px;
}

.m-intro p {
  font-size: 0.85rem;
  color: var(--m-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.m-btn-primary {
  display: inline-block;
  background: var(--m-gradient-1);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(26,86,219,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.m-btn-primary:active {
  transform: scale(0.96);
}

.m-btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  font-size: 0.95rem;
}

/* ====== 13. 分类 horizontal tabs ====== */
.m-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-cat-tabs::-webkit-scrollbar {
  display: none;
}

.m-cat-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--m-text-secondary);
  background: var(--m-card-bg);
  border: 1px solid var(--m-border-light);
  white-space: nowrap;
  transition: all 0.2s;
}

.m-cat-tab.active {
  background: var(--m-primary);
  border-color: var(--m-primary);
  color: #fff;
}

.m-cat-tab:active {
  transform: scale(0.95);
}

/* ====== 14. 面包屑 ====== */
.m-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px 4px;
  font-size: 0.8rem;
  color: var(--m-text-muted);
  flex-wrap: wrap;
}

.m-breadcrumb a {
  color: var(--m-text-muted);
}

.m-breadcrumb .sep {
  margin: 0 4px;
}

.m-breadcrumb .active {
  color: var(--m-text);
}

/* ====== 15. 详情页 ====== */
.m-detail {
  padding: 0 16px 24px;
}

.m-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--m-text);
  margin-bottom: 10px;
}

.m-detail-subtitle {
  font-size: 0.95rem;
  color: var(--m-text-secondary);
  margin-bottom: 12px;
}

.m-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--m-border-light);
}

.m-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--m-text-muted);
  background: var(--m-bg-alt);
  padding: 4px 10px;
  border-radius: 50px;
}

.m-detail-cover {
  width: 100%;
  border-radius: var(--m-radius);
  max-height: 260px;
  object-fit: cover;
  margin-bottom: 16px;
}

/* 正文 */
.m-article-content {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--m-text);
  word-break: break-word;
}

.m-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--m-radius);
  margin: 16px 0;
}

.m-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.8rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.m-article-content td, .m-article-content th {
  border: 1px solid var(--m-border);
  padding: 8px 10px;
}

.m-article-content th {
  background: var(--m-bg-alt);
  font-weight: 600;
}

.m-article-content p {
  margin-bottom: 12px;
}

.m-article-content h1 { font-size: 1.3rem; margin: 24px 0 12px; font-weight: 800; }
.m-article-content h2 { font-size: 1.15rem; margin: 20px 0 10px; font-weight: 700; }
.m-article-content h3 { font-size: 1.05rem; margin: 18px 0 10px; font-weight: 700; }
.m-article-content h4 { font-size: 0.95rem; margin: 16px 0 8px; font-weight: 600; }

.m-article-content ul, .m-article-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.m-article-content li {
  margin-bottom: 4px;
}

.m-article-content blockquote {
  border-left: 3px solid var(--m-primary);
  padding: 10px 16px;
  margin: 14px 0;
  background: var(--m-bg-alt);
  border-radius: 0 var(--m-radius-sm) var(--m-radius-sm) 0;
  color: var(--m-text-secondary);
  font-size: 0.9rem;
}

.m-article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--m-radius-sm);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 14px 0;
}

.m-article-content code {
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.85em;
  background: var(--m-bg-alt);
  padding: 2px 5px;
  border-radius: 4px;
}

.m-article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.m-article-content a {
  color: var(--m-primary);
  text-decoration: underline;
}

.m-article-content hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--m-border);
}

.m-article-content iframe {
  max-width: 100%;
  border-radius: var(--m-radius);
  margin: 14px 0;
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}

.m-article-content video, .m-article-content audio {
  max-width: 100%;
  border-radius: var(--m-radius);
  margin: 12px 0;
}

.m-article-content .bilibili-embed {
  margin: 14px 0;
  border-radius: var(--m-radius);
  overflow: hidden;
}

/* Pagination */
.m-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px;
}

.m-pagination a, .m-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--m-card-bg);
  color: var(--m-text-secondary);
  box-shadow: var(--m-shadow);
}

.m-pagination a.active, .m-pagination span.active {
  background: var(--m-primary);
  color: #fff;
}

.m-pagination a:active {
  background: var(--m-bg-alt);
}

/* ====== 16. 分享按钮 ====== */
.m-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--m-border-light);
  margin-top: 16px;
}

.m-share-label {
  font-size: 0.8rem;
  color: var(--m-text-muted);
  margin-right: 4px;
}

.m-share-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.m-share-btn.wechat { background: #07c160; }
.m-share-btn.weibo { background: #e6162d; }
.m-share-btn.copy { background: #6c757d; }

.m-share-btn:active {
  opacity: 0.85;
}

/* ====== 17. 上一篇/下一篇 ====== */
.m-prev-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--m-border-light);
  margin-top: 12px;
}

.m-prev-next a, .m-prev-next span {
  display: block;
  padding: 10px 14px;
  border-radius: var(--m-radius-sm);
  font-size: 0.82rem;
  background: var(--m-card-bg);
  color: var(--m-text-secondary);
  box-shadow: var(--m-shadow);
}

.m-prev-next a:active {
  background: var(--m-bg-alt);
}

/* ====== 18. 推荐列表 ====== */
.m-recommend {
  padding: 0 16px 24px;
}

.m-recommend-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-recommend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-recommend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--m-card-bg);
  border-radius: var(--m-radius-sm);
  box-shadow: var(--m-shadow);
}

.m-recommend-item .m-recommend-text {
  flex: 1;
  min-width: 0;
}

.m-recommend-item .m-recommend-text .title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--m-text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.m-recommend-item .m-recommend-text .meta {
  font-size: 0.7rem;
  color: var(--m-text-muted);
}

.m-recommend-item .m-recommend-icon {
  font-size: 1.2rem;
  color: var(--m-primary);
  flex-shrink: 0;
}

/* ====== 19. 附件下载 ====== */
.m-attachments {
  margin-top: 16px;
  padding: 16px;
  background: var(--m-bg-alt);
  border-radius: var(--m-radius);
}

.m-attachments-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-attachment-btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--m-gradient-1);
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 6px 6px 0;
}

.m-attachment-btn:active {
  opacity: 0.85;
}

/* ====== 20. 产品详情特征列表 ====== */
.m-feature-list {
  margin: 16px 0;
}

.m-feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--m-border-light);
}

.m-feature-item:last-child {
  border-bottom: none;
}

.m-feature-item i {
  font-size: 1.15rem;
  color: var(--m-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.m-feature-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--m-text);
}

.m-feature-item small {
  font-size: 0.75rem;
  color: var(--m-text-muted);
}

/* ====== 21. 视频卡片网格 ====== */
.m-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.m-video-card {
  background: var(--m-card-bg);
  border-radius: var(--m-radius-lg);
  overflow: hidden;
  box-shadow: var(--m-shadow-card);
}

.m-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--m-gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-video-thumb .m-play-icon {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}

.m-video-card:active .m-play-icon {
  transform: scale(1.2);
}

.m-video-body {
  padding: 8px 10px 10px;
}

.m-video-body .m-video-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--m-text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.m-video-body .m-video-meta {
  font-size: 0.68rem;
  color: var(--m-text-muted);
}

/* ====== 22. 搜索页 ====== */
.m-search-form {
  padding: 12px 16px;
}

.m-search-input-wrap {
  display: flex;
  background: var(--m-card-bg);
  border-radius: 50px;
  box-shadow: var(--m-shadow-card);
  overflow: hidden;
  border: 1.5px solid var(--m-border-light);
}

.m-search-input-wrap:focus-within {
  border-color: var(--m-primary);
}

.m-search-input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--m-text);
  outline: none;
  font-family: var(--m-font);
}

.m-search-input::placeholder {
  color: var(--m-text-muted);
}

.m-search-btn {
  padding: 12px 20px;
  background: var(--m-gradient-1);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.m-search-result {
  padding: 0 16px 24px;
}

.m-search-keyword {
  font-size: 0.82rem;
  color: var(--m-text-muted);
  padding: 4px 16px 12px;
}

.m-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--m-text-muted);
}

.m-empty i {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.m-empty p {
  font-size: 0.9rem;
}

/* ====== 23. 单页（关于我们等）===== */
.m-page {
  padding: 0 16px 24px;
}

.m-page-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--m-primary);
  margin-bottom: 4px;
}

.m-page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 16px;
}

/* 关于我们侧边栏→顶部分类 */
.m-page-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-page-tabs::-webkit-scrollbar {
  display: none;
}

.m-page-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--m-text-secondary);
  background: var(--m-card-bg);
  white-space: nowrap;
  box-shadow: var(--m-shadow);
  border: 1px solid var(--m-border-light);
  transition: all 0.2s;
}

.m-page-tab.active {
  background: var(--m-primary);
  border-color: var(--m-primary);
  color: #fff;
}

.m-page-tab:active {
  transform: scale(0.95);
}

/* ====== 24. 错误页面 ====== */
.m-error {
  text-align: center;
  padding: 60px 24px;
}

.m-error-code {
  font-size: 5rem;
  font-weight: 900;
  background: var(--m-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.m-error-text {
  font-size: 1rem;
  color: var(--m-text-secondary);
  margin: 16px 0 24px;
}

.m-error-btn {
  display: inline-block;
  padding: 12px 36px;
  background: var(--m-gradient-1);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(26,86,219,0.3);
}

/* ====== 25. 页脚 ====== */
.m-footer {
  background: var(--m-gradient-2);
  color: rgba(255,255,255,0.45);
  padding: 24px 16px 16px;
  font-size: 0.8rem;
  text-align: center;
}

.m-footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.m-footer-brand i {
  color: var(--m-primary-light);
}

.m-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 4px;
  margin: 16px 0;
  text-align: left;
}

.m-footer-links a {
  color: rgba(255,255,255,0.38);
  font-size: 0.74rem;
  padding: 4px 0;
}

.m-footer-links a:active {
  color: var(--m-primary-light);
}

.m-footer-qr {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
}

.m-footer-qr-item {
  text-align: center;
}

.m-footer-qr-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}

.m-footer-qr-item span {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
}

.m-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
  margin-top: 16px;
  line-height: 1.8;
  font-size: 0.72rem;
}

.m-footer-bottom a {
  color: rgba(255,255,255,0.38);
}

/* ====== 26. 微信分享弹窗 ====== */
.m-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.25s;
}

.m-wechat-modal.show {
  visibility: visible;
  opacity: 1;
}

.m-wechat-dialog {
  background: var(--m-card-bg);
  border-radius: var(--m-radius-xl);
  padding: 24px;
  text-align: center;
  width: 280px;
}

.m-wechat-dialog h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 16px;
}

.m-wechat-dialog .qr-wrap {
  display: inline-block;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 12px;
}

.m-wechat-dialog .qr-wrap canvas, .m-wechat-dialog .qr-wrap img {
  display: block;
}

.m-wechat-dialog .tip {
  font-size: 0.75rem;
  color: var(--m-text-muted);
  margin-bottom: 16px;
}

.m-wechat-dialog .m-btn-close {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 50px;
  background: var(--m-bg-alt);
  color: var(--m-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ====== 27. 触摸优化 & 工具类 ====== */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--m-text-muted); }
.d-none { display: none; }

/* Safe area padding utility */
.pb-safe {
  padding-bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 16px);
}
