/* ============================================================
   MOSINTER GROUP - 产品详情页样式
   高端化妆品原料网站风格：极简、轻卡片、高级留白、实验室科技感
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --green-dark: #1a5c3a;
  --green-main: #2d6a4f;
  --green-mid: #3d8b5e;
  --green-light: #52a875;
  --green-accent: #1c7a58;
  --green-bg: #f7faf8;
  --green-bg2: #f0f7f4;
  --green-highlight: rgba(28, 122, 88, 0.06);
  --text-primary: #1a2e1a;
  --text-secondary: #44525c;
  --text-muted: #7a8b96;
  --border-light: rgba(16, 88, 63, 0.06);
  --white: #ffffff;
  --highlight: #e8734a;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  
  /* Card & Shadow */
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-radius: 24px;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   HERO 区域
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #f5fbf7 0%, #e8f4ee 40%, #d4ece0 100%);
  padding: 40px 0 0;
  overflow: hidden;
  min-height: 280px;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.hero-left {
  flex: 1;
  padding-bottom: 40px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-preferred {
  background: var(--green-main);
  color: var(--white);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.hero-inci {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-features {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.feature-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: rgba(45, 106, 79, 0.12);
  border-radius: 50%;
  padding: 6px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.hero-right {
  flex: 0 0 420px;
  display: flex;
  align-items: flex-end;
}

.hero-product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   主内容区
   ============================================================ */
.main-content {
  padding: 40px 0 60px;
  background: #f7faf8;
}

.main-content .container {
  max-width: 100%;
}

.main-inner {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 24px;
  align-items: start;
}

/* ============================================================
   左侧边栏 - 轻量化设计
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 18px 14px;
}

.sidebar-section:hover {
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  background: transparent;
}

.menu-item:hover {
  background: rgba(28, 122, 88, 0.04);
  transform: translateX(4px);
}

.menu-item.active {
  background: rgba(28, 122, 88, 0.08);
  color: var(--green-accent);
  border-left-color: var(--green-accent);
  font-weight: 600;
}

.menu-item.active a {
  color: var(--green-accent);
}

.menu-icon {
  font-size: 12px;
  color: var(--green-mid);
  flex-shrink: 0;
  opacity: 0.7;
}

.menu-item.active .menu-icon {
  opacity: 1;
}

.menu-item a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}

.menu-item:hover a {
  color: var(--green-accent);
}

/* 帮助卡片 */
.sidebar-help {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 18px 16px;
}

.help-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.help-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.help-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  font-size: 14px;
  color: var(--green-main);
}

.contact-main {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-main);
}

.contact-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   内容区 - 主体卡片
   ============================================================ */
.content-area {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ============================================================
   Tab 导航 - Apple 风格胶囊
   ============================================================ */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  background: #f8faf9;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 68px;
  z-index: 100;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 9px 20px;
  font-size: 16px;
  font-family: var(--font-main);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 88, 63, 0.1);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  font-weight: 500;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(16, 88, 63, 0.2);
  color: var(--green-main);
}

.tab-btn.active {
  background: var(--green-main);
  color: #fff;
  border-color: var(--green-main);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

/* ============================================================
   Tab 内容区
   ============================================================ */
.tab-content {
  display: block !important;
  padding: 32px 28px;
  border-bottom: 1px solid var(--border-light);
}

.tab-content:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* 产品概述 */
.overview-layout {
  display: flex;
  gap: 28px;
}

.overview-main {
  flex: 1;
}

.overview-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 24px;
}

/* 表格样式 - 轻量化 */
.params-table,
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border-radius: 12px;
  overflow: hidden;
}

.params-table th,
.specs-table th {
  background: rgba(28, 122, 88, 0.06);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.params-table td,
.specs-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 14px;
}

.params-table tbody tr:last-child td,
.specs-table tbody tr:last-child td {
  border-bottom: none;
}

.params-table tbody tr:hover td,
.specs-table tbody tr:hover td {
  background: rgba(28, 122, 88, 0.03);
}

.highlight-text {
  color: var(--highlight);
  font-weight: 500;
}

.overview-side {
  flex: 0 0 200px;
}

.overview-product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--green-bg);
}

/* 技术指标布局 */
.specs-layout {
  display: flex;
  gap: 28px;
}

.specs-main {
  flex: 1;
}

.specs-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(28, 122, 88, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--green-main);
}

.specs-side {
  flex: 0 0 280px;
}

/* 产品优势卡片 - 轻量化 */
.advantages-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(244, 250, 247, 0.95)
  );
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
}

.advantages-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.advantage-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.adv-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adv-icon-green  { background: rgba(45, 106, 79, 0.12); }
.adv-icon-blue   { background: rgba(59, 130, 246, 0.12); }
.adv-icon-teal   { background: rgba(20, 184, 166, 0.12); }
.adv-icon-orange { background: rgba(234, 88, 12, 0.12); }
.adv-icon-green2 { background: rgba(22, 163, 74, 0.12); }

.adv-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.adv-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.adv-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 应用指南 */
.usage-recommend {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(28, 122, 88, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--green-main);
}

.usage-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.usage-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.usage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 106, 79, 0.15);
  background: var(--white);
}

.usage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(28, 122, 88, 0.15);
}

.usage-card-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 12px;
  background: rgba(45, 106, 79, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.usage-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.usage-card-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* 推荐配方 */
.formula-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.formula-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.formula-carousel {
  display: flex;
  gap: 16px;
  overflow: hidden;
  flex: 1;
}

.formula-card {
  flex: 0 0 calc(25% - 12px);
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.formula-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.formula-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--green-bg);
}

.formula-card-body {
  padding: 14px;
}

.formula-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.formula-card-dosage,
.formula-card-effect {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: var(--green-main);
  border-color: var(--green-main);
  color: #fff;
  transform: scale(1.05);
}

.formula-more-wrap {
  text-align: center;
  margin-top: 24px;
}

/* 包装与存储 */
.storage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.storage-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(244, 250, 247, 0.95)
  );
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.storage-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.storage-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 10px;
  padding: 8px;
  flex-shrink: 0;
}

.storage-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.storage-value {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 文件下载 */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.file-item:hover {
  background: rgba(28, 122, 88, 0.04);
  transform: translateX(4px);
}

.file-icon {
  font-size: 22px;
  color: var(--green-main);
}

.file-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   FAQ 手风琴
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(28, 122, 88, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(28, 122, 88, 0.03);
}

.faq-question h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--green-main);
  font-size: 18px;
}

.faq-item.active .faq-icon {
  background: var(--green-main);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   相关产品
   ============================================================ */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-product-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(28, 122, 88, 0.15);
}

.related-product-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--green-bg);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.related-product-info {
  text-align: center;
}

.related-product-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.related-product-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.related-product-link {
  font-size: 12px;
  color: var(--green-main);
  font-weight: 500;
}

.related-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.related-product-inci {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   右侧边栏
   ============================================================ */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 18px 16px;
  transition: all 0.3s ease;
}

.right-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.right-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* 包装存储小卡片 */
.storage-item-sm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.storage-item-sm:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.storage-icon-sm {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: rgba(45, 106, 79, 0.08);
  border-radius: 8px;
  padding: 5px;
  flex-shrink: 0;
}

.storage-value-sm {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 相关产品 */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
}

.related-item:hover {
  background: rgba(28, 122, 88, 0.05);
  transform: translateX(4px);
}

.related-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--green-bg2);
  flex-shrink: 0;
}

.related-name {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
}

/* ============================================================
   底部支持栏
   ============================================================ */
.support-bar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  margin-top: 48px;
}

.support-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.support-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 12px;
  padding: 10px;
  flex-shrink: 0;
}

.support-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.support-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   按钮样式
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-family: var(--font-main);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-weight: 500;
}

.btn-primary {
  background: var(--green-main);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--green-main);
  border: 1.5px solid var(--green-main);
}

.btn-outline:hover {
  background: rgba(45, 106, 79, 0.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}

.btn-outline-dark:hover {
  border-color: var(--green-main);
  color: var(--green-main);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ============================================================
   响应式设计
   ============================================================ */

/* 平板端 */
@media (max-width: 1100px) {
  .main-inner {
    grid-template-columns: 180px 1fr;
  }
  
  .right-sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
  }
  
  .usage-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 移动端 */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
  }
  
  .hero-right {
    flex: none;
    width: 100%;
  }
  
  .main-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* 左侧栏横向滑动 */
  .sidebar-section {
    overflow-x: auto;
  }
  
  .sidebar-menu {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }
  
  .menu-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Tab 横向滚动胶囊 */
  .tab-nav {
    gap: 8px;
    padding: 12px 16px;
  }
  
  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .tab-content {
    padding: 24px 20px;
  }
  
  /* 内容布局 */
  .overview-layout,
  .specs-layout {
    flex-direction: column;
  }
  
  .overview-side,
  .specs-side {
    flex: none;
    width: 100%;
  }
  
  /* 表格横向滚动 */
  .params-table,
  .specs-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .params-table th,
  .params-table td,
  .specs-table th,
  .specs-table td {
    white-space: nowrap;
    min-width: 120px;
  }
  
  /* 应用卡片 */
  .usage-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .usage-card {
    padding: 18px 12px;
  }
  
  .usage-card-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  
  /* 包装存储网格 */
  .storage-grid {
    grid-template-columns: 1fr;
  }
  
  /* 右侧栏 */
  .right-sidebar {
    grid-template-columns: 1fr;
  }
  
  /* 底部支持 */
  .support-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* 公式卡片 */
  .formula-card {
    flex: 0 0 calc(50% - 8px);
  }
  
  /* 移动端 container 贴边 */
  .main-content .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* FAQ 响应式 */
  .faq-question {
    padding: 16px 18px;
  }
  
  .faq-question h3 {
    font-size: 14px;
  }
  
  .faq-answer-inner {
    padding: 0 18px 16px;
    font-size: 13px;
  }
  
  /* 相关产品响应式 */
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* 小型移动端 */
@media (max-width: 480px) {
  .main-content {
    padding: 24px 0 40px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .overview-text {
    font-size: 14px;
    line-height: 1.8;
  }
  
  .params-table th,
  .params-table td,
  .specs-table th,
  .specs-table td {
    padding: 12px 14px;
    font-size: 12px;
  }
  
  .usage-cards {
    grid-template-columns: 1fr;
  }
  
  .support-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .support-item {
    justify-content: flex-start;
  }
  
  .formula-card {
    flex: 0 0 calc(100% - 8px);
  }
  
  /* 小屏幕 FAQ */
  .faq-list {
    gap: 10px;
  }
  
  .faq-question h3 {
    font-size: 13px;
  }
  
  .faq-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
  
  /* 小屏幕相关产品 */
  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .related-product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 16px;
  }

  .related-product-img {
    margin: 0;
    flex-shrink: 0;
  }

  .related-product-info {
    text-align: left;
  }
}

/* ============================================================
   高级感增强：装饰性光斑
   ============================================================ */
.main-content::before {
  content: '';
  position: fixed;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(45, 106, 79, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.main-content::after {
  content: '';
  position: fixed;
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(82, 168, 117, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.main-inner {
  position: relative;
  z-index: 1;
}

/* ============================================================
   移动端布局修正补丁
   目的：防止网格子项、表格、轮播和长文本在窄屏产生横向溢出。
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.main-inner,
.content-area,
.sidebar,
.right-sidebar,
.tab-content,
.formula-carousel-wrap,
.formula-carousel {
  min-width: 0;
}

.params-table,
.specs-table {
  max-width: 100%;
}

.formula-carousel-wrap {
  overflow: hidden;
}

.formula-carousel {
  min-width: 0;
}

.formula-card {
  min-width: 0;
}

@media (max-width: 768px) {
  .main-content .container {
    width: 100%;
    max-width: 100%;
  }

  .main-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .content-area {
    width: 100%;
    border-radius: 16px;
  }

  .sidebar,
  .right-sidebar {
    width: 100%;
  }

  .sidebar-section,
  .sidebar-help,
  .right-card {
    border-radius: 16px;
  }

  .sidebar-section {
    padding: 14px 12px;
  }

  .sidebar-menu {
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none;
  }

  .menu-item:hover,
  .file-item:hover,
  .related-item:hover {
    transform: none;
  }

  .tab-nav {
    top: 0;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .tab-content {
    padding: 22px 16px;
  }

  .section-title {
    margin-bottom: 18px;
  }

  .params-table,
  .specs-table {
    width: 100%;
    overflow-x: auto;
  }

  .params-table th,
  .params-table td,
  .specs-table th,
  .specs-table td {
    padding: 12px 14px;
    line-height: 1.55;
  }

  .usage-cards,
  .storage-grid,
  .related-products-grid,
  .support-inner {
    width: 100%;
  }

  .formula-carousel-wrap {
    gap: 8px;
  }

  .formula-carousel {
    gap: 12px;
    flex: 1 1 auto;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
    flex: 0 0 32px;
  }

  .formula-card-img {
    height: 128px;
  }

  .file-item,
  .storage-item,
  .support-item {
    align-items: flex-start;
  }

  .file-name,
  .storage-value,
  .storage-value-sm,
  .related-name,
  .adv-desc,
  .contact-main {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .main-content .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tab-nav {
    padding: 10px 12px;
  }

  .tab-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .tab-content {
    padding: 20px 14px;
  }

  .formula-carousel-wrap {
    gap: 6px;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .formula-card-img {
    height: 118px;
  }

  .support-item {
    justify-content: flex-start;
    text-align: left;
  }
}

/* ============================================================
   二次移动端修正：应用卡片横向布局 + 配方产品滑动体验
   ============================================================ */
@media (max-width: 768px) {
  .usage-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 12px;
    margin: 0 -2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .usage-cards::-webkit-scrollbar {
    display: none;
  }

  .usage-card {
    flex: 0 0 156px;
    min-width: 156px;
    scroll-snap-align: start;
  }

  .formula-carousel-wrap {
    overflow: hidden;
    touch-action: pan-y;
  }

  .formula-carousel {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }

  .formula-carousel.is-dragging {
    cursor: grabbing;
    transition: none !important;
  }

  .formula-carousel.is-dragging .formula-card,
  .formula-carousel.is-dragging img {
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .usage-card {
    flex-basis: 142px;
    min-width: 142px;
  }
}
