:root {
  --green-dark: #1a5c3a;
  --green-main: #2d6a4f;
  --green-mid: #3d8b5e;
  --green-light: #52a875;
  --green-bg: #f0f7f4;
  --green-bg2: #e8f4ee;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e0e0e0;
  --border-light: #eeeeee;
  --white: #ffffff;
  --highlight: #e8734a;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}
.hero .breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.hero .breadcrumb a:hover {
  color: var(--green-main);
}
.hero .breadcrumb .current {
  color: var(--green-main);
  font-weight: 600;
}
.hero .breadcrumb .sep {
  color: #ccc;
}

/* ===== Hero 区域（基础结构样式，背景图样式由 product-banner.css 控制）===== */
.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);
}

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

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

.btn-primary:hover {
  background: var(--green-dark);
}

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

.btn-outline:hover {
  background: var(--green-bg);
}

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

.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;
}

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

/* ===== container 宽度覆盖：让 main-inner 更贴近屏幕两侧 ===== */
/*
 * 说明：全站 .container 通常设有 max-width 和左右 padding，
 * 此处针对 .main-inner 所在的 .container 进行覆盖，
 * 将左右内边距缩小，使内容区域更贴近屏幕边缘。
 * 如需调整贴近程度，修改 --main-container-padding 的值即可。
 */
:root {
  --main-container-padding: 16px; /* 原全站 container 通常为 20px~40px，此处缩小使内容更贴边 */
}

.main-content .container {
  padding-left: var(--main-container-padding);
  padding-right: var(--main-container-padding);
  max-width: 100%;
}

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

/* ===== 左侧边栏 ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-section {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

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

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:hover {
  background: var(--green-bg);
}

.menu-item.active {
  background: var(--green-bg2);
}

.menu-item.active a {
  color: var(--green-main);
  font-weight: 600;
}

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

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

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

/* 帮助卡片 */
.sidebar-help {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

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

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-icon {
  font-size: 14px;
  margin-top: 2px;
}

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

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

/* ===== 内容区 ===== */
.content-area {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Tab 导航 */
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  padding: 0 20px;
  position: sticky;
  top: 68px; /* header height */
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tab-btn {
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--green-main);
}

.tab-btn.active {
  color: var(--green-main);
  font-weight: 600;
  border-bottom-color: var(--green-main);
}

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

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

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

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

.overview-main {
  flex: 1;
}

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

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.params-table th {
  background: var(--green-bg);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
}

.params-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.params-table tr:hover td {
  background: #fafafa;
}

.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: 8px;
  background: var(--green-bg);
}

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

.specs-main {
  flex: 1;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.specs-table th {
  background: var(--green-bg);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

.specs-table td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.specs-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.specs-table tbody tr:hover td {
  background: var(--green-bg);
}

.specs-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

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

/* 产品优势卡片（specs tab 内） */
.advantages-card {
  background: var(--green-bg);
  border-radius: 8px;
  padding: 16px;
}

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

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

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

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

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

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

.adv-name {
  font-size: 13px;
  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: 20px;
  padding: 12px 16px;
  background: var(--green-bg);
  border-radius: 6px;
  border-left: 3px solid var(--green-main);
}

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

.usage-card {
  background: var(--green-bg);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.usage-card:hover {
  box-shadow: 0 4px 12px rgba(45,106,79,0.15);
}

.usage-card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 10px;
  background: rgba(45,106,79,0.1);
  border-radius: 50%;
  padding: 10px;
}

.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: 16px;
}

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

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

.formula-card {
  flex: 0 0 calc(25% - 12px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.formula-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

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

.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: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.2s;
}

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

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

/* 包装与存储（tab内） */
.storage-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.storage-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--green-bg);
  border-radius: 8px;
}

.storage-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: rgba(45,106,79,0.1);
  border-radius: 50%;
  padding: 6px;
  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: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.2s;
}

.file-item:hover {
  background: var(--green-bg);
}

.file-icon {
  font-size: 20px;
}

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

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

.right-card {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.right-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

/* 右侧包装存储（小版） */
.storage-item-sm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

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

.storage-icon-sm {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: rgba(45,106,79,0.1);
  border-radius: 50%;
  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: 10px;
  margin-bottom: 4px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.related-item:hover {
  background: var(--green-bg);
}

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

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

/* ===== 底部支持栏 ===== */
.support-bar {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}

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

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

.support-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--green-bg2);
  border-radius: 50%;
  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);
}

/* ===== 响应式 ===== */
@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;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
  }
  .hero-right {
    flex: none;
    width: 100%;
  }
  .main-inner {
    grid-template-columns: 1fr;
  }
  .right-sidebar {
    grid-template-columns: 1fr;
  }
  .usage-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-layout,
  .specs-layout {
    flex-direction: column;
  }

  /* 移动端 container 贴边 */
  .main-content .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
