/* naritawholesale.com — B2B 询盘批发站
   视觉规范：narita worldwide 品牌体系
   主色 藏青蓝 #1E3A6E · 辅色 嫩芽绿 #7CB342 · 底色 米白 #F7F5F0 · 点缀 金铜 #C9A961 */

:root {
  /* ===== 品牌核心色 ===== */
  --brand-navy: #1E3A6E;
  --brand-navy-deep: #13264A;
  --brand-navy-soft: #2C5089;
  --brand-green: #7CB342;
  --brand-green-deep: #5A8F24;
  --brand-green-soft: #EDF4E3;
  --brand-gold: #C9A961;
  --brand-cream: #F7F5F0;
  --brand-cream-deep: #EAE5DA;

  /* ===== 语义映射 ===== */
  --color-primary: var(--brand-navy);
  --color-primary-dark: var(--brand-navy-deep);
  --color-primary-light: var(--brand-navy-soft);
  --color-accent: var(--brand-green);
  --color-accent-dark: var(--brand-green-deep);
  --color-text: #1C2432;
  --color-text-muted: #5A6472;
  --color-bg: #ffffff;
  --color-bg-soft: var(--brand-cream);
  --color-border: #E4E2DB;
  --color-success: var(--brand-green-deep);
  --color-whatsapp: #25d366;
  --shadow-sm: 0 1px 3px rgba(19, 38, 74, 0.06);
  --shadow-md: 0 6px 22px rgba(19, 38, 74, 0.10);
  --radius: 6px;
  --max-width: 1180px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; /* v47：中段补 Roboto/Helvetica/Arial/Noto Sans——西里尔字形优先由这些标准字体渲染；原栈在西里尔上会 fallback 到中文子字族（PingFang/雅黑的西里尔为宽字距设计，俄语全页字母间距被拉大） */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--brand-green-deep); text-decoration: underline; }

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

/* ============= 顶部导航 ============= */
.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(19, 38, 74, 0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 品牌标志：官方 logo 位图（assets/images/brand/narita-lockup.png）
   字标本体写的是 narita worldwide（集团母品牌），站点名 naritawholesale 见 <title> 与页脚 */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--brand-navy);
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  /* v47：导航项禁止中途断行（俄语「О компании」等双词项在字体回退变宽时会折成两行） */
  white-space: nowrap;
}

.nav a:hover {
  color: var(--brand-navy);
  text-decoration: none;
}

.cta-button {
  background: var(--brand-navy);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  /* v47：同 .btn，导航 CTA 不断行（俄语「Запросить цену」曾被折成两行） */
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--brand-green-deep);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--brand-navy);
}

/* ============= Hero（品牌深藏青主视觉） ============= */
.hero {
  background: linear-gradient(135deg, #13264A 0%, #1E3A6E 52%, #24427C 100%);
  padding: 84px 24px 76px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 179, 66, 0.16) 0%, rgba(124, 179, 66, 0) 68%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(124, 179, 66, 0.16);
  color: #A8D672;
  border: 1px solid rgba(124, 179, 66, 0.4);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 28px;
}

/* 深色主视觉上的按钮反色处理 */
.hero .btn-primary {
  background: #ffffff;
  color: var(--brand-navy);
}
.hero .btn-primary:hover {
  background: var(--brand-green);
  color: #ffffff;
}
.hero .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hero .btn-outline:hover {
  background: #ffffff;
  color: var(--brand-navy);
  border-color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item {
  text-align: left;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 6px;
}

.hero-image {
  background: var(--brand-navy-deep);
  border-radius: 14px;
  aspect-ratio: 3/2;   /* 与 hero-field.jpg 输出比例一致，避免浏览器二次裁切 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  border: 4px solid rgba(255, 255, 255, 0.08);
}

/* ============= 通用区块 ============= */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  color: var(--brand-green-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  color: var(--brand-navy);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* v41：B2B 定位句整句单行（默认 640px 会折成两行，且把强调段从中间劈开）
   放宽到接近容器上限（1180 - 48 = 1132），俄/西/越译文比英文长约 30%，也要放得下
   仅这一个段落加 .subtitle-wide，不影响其他 640px 的副标题 */
.section-subtitle.subtitle-wide {
  max-width: 1120px;
}

/* v40：B2B 定位强调 —— 「不做零售 / 不做 DTC」用品牌绿加粗 + 浅绿标记底
   注意：必须单独放一个 <span>，i18n 按文本节点精确匹配词典（混在长句里会漏翻） */
.section-subtitle .subtitle-accent {
  color: var(--brand-green-deep);
  font-weight: 600;
  padding: 0 2px;
  white-space: nowrap; /* v41：绿字段落永不从中间断开 */
  background: linear-gradient(transparent 64%, rgba(124, 179, 66, 0.28) 64%);
}

.bg-soft { background: var(--color-bg-soft); }

/* ============= 网格卡片 ============= */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-green);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-green-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.card-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 卡片配图（about 页三大试验区） */
.card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin-bottom: 18px;
}

/* ============= 产品卡片 ============= */
.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d8d5cc;
}

.product-image {
  aspect-ratio: 4/3;
  flex-shrink: 0;
  background: linear-gradient(135deg, #F3F0E9 0%, #E5E1D6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

/* 无图占位（图片加载失败时显示品种名） */
.product-image.no-img::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--color-text-muted);
  background: linear-gradient(135deg, #F3F0E9 0%, #E5E1D6 100%);
}

a.product-title { display: block; text-decoration: none; }
a.product-title:hover { text-decoration: none; color: var(--brand-green-deep); }

/* 折扣标签 —— 对齐品牌「PREMIUM QUALITY」绿色胶囊 */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-green-deep);
  color: #ffffff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.product-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.product-spec {
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.product-spec span {
  color: var(--color-text-muted);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  /* v47：按钮文字不中途断行（俄语按钮词多，字距异常时会折行） */
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-navy);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-green-deep);
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--brand-navy);
  border: 1.5px solid var(--brand-navy);
}
.btn-outline:hover {
  background: var(--brand-navy);
  color: white;
  text-decoration: none;
}

.btn-block { display: flex; width: 100%; }

/* ============= 产品详情页 ============= */
.product-hero {
  padding: 50px 24px;
  background: var(--color-bg-soft);
}

.product-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.product-gallery {
  background: var(--color-bg);
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.product-info-tag {
  display: inline-block;
  background: var(--brand-navy);
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.product-info h1 {
  font-size: 32px;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.product-info-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 15px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.spec-table tr {
  border-bottom: 1px solid var(--color-border);
}

.spec-table td {
  padding: 12px 0;
}

.spec-table td:first-child {
  color: var(--color-text-muted);
  width: 40%;
}

.spec-table td:last-child {
  font-weight: 600;
  color: var(--color-text);
}

.price-tag {
  background: var(--brand-green-soft);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 4px solid var(--brand-green);
}

.price-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.price-note {
  font-size: 16px;
  color: var(--brand-navy);
  font-weight: 600;
}

/* ============= 表单 ============= */
.form-section {
  background: var(--brand-cream);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-row label .required {
  color: #c0392b;
}

/* 单行勾选项（如「希望通过 WhatsApp 联系我」）：复选框要小、文字不换行 */
.form-row.flag-ico {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: -2px;
  margin-right: 4px;
  box-shadow: inset 0 0 0 1px rgba(12, 31, 121, 0.12);
}

.checkbox-row {
  margin-bottom: 14px;
}

.form-row.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.form-row.checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  flex: none;
  margin: 0;
  padding: 0;
  accent-color: var(--brand-navy);
  cursor: pointer;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 15px;
  background: white;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.08);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: var(--brand-green-soft);
  color: var(--brand-green-deep);
  border: 1px solid var(--brand-green);
  display: block;
}

.form-message.error {
  background: #ffebee;
  color: #c0392b;
  border: 1px solid #e57373;
  display: block;
}

/* ============= 过滤器 ============= */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-pill {
  padding: 8px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.filter-pill.active {
  background: var(--brand-navy);
  color: white;
  border-color: var(--brand-navy);
}

/* v40：品种区（品类 pills）↔ 特性区（6 维度下拉）分隔带
   两侧细线 + 居中标签，明确「上面选品种、下面筛特性」两层结构 */
.filter-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--brand-green-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filter-divider::before,
.filter-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
}
/* v42：分隔带改绿，两侧细线由外侧向标签渐深，收口更自然 */
.filter-divider::before {
  background: linear-gradient(to right, rgba(124, 179, 66, 0.12), var(--brand-green));
}
.filter-divider::after {
  background: linear-gradient(to left, rgba(124, 179, 66, 0.12), var(--brand-green));
}
.filter-divider span { white-space: nowrap; }

/* ============= 5 维度下拉筛选（2026-09-12 v32）============= */
.filter-panel {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 30;
}
.dropdown {
  position: relative;
}
.dropdown-trigger {
  padding: 7px 12px 7px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 22px;
  background: white;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: inherit;
}
.dropdown-trigger:hover { border-color: var(--brand-navy); }
.dropdown-trigger[aria-expanded="true"] {
  border-color: var(--brand-navy);
  box-shadow: 0 2px 14px rgba(30, 58, 110, 0.15);
}
.dropdown-trigger-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--brand-green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  margin-left: 2px;
}
.dropdown-trigger[aria-expanded="true"] .dropdown-trigger-count {
  background: var(--brand-navy);
}
.dropdown-trigger-arrow {
  font-size: 10px;
  opacity: 0.55;
  margin-left: 1px;
  transition: transform 0.2s;
}
.dropdown-trigger[aria-expanded="true"] .dropdown-trigger-arrow { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  max-height: 340px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 40;
  -webkit-overflow-scrolling: touch;
}
.dropdown-panel[hidden] { display: none; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.12s;
  user-select: none;
}
.dropdown-item:hover:not(.disabled) { background: var(--color-bg-soft, #F7F5F0); }
.dropdown-item.disabled { opacity: 0.35; cursor: not-allowed; }
.dropdown-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--brand-navy);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.dropdown-item.active { background: rgba(124, 179, 66, 0.10); }
.dropdown-item.active .dropdown-item-label { color: var(--brand-navy); font-weight: 500; }
.dropdown-item-label { flex: 1; }
.dropdown-item-count {
  font-size: 11.5px;
  color: var(--color-text-muted);
  background: var(--color-bg-soft, #F7F5F0);
  padding: 2px 8px;
  border-radius: 9px;
  flex-shrink: 0;
}

/* 已选条 */
.selected-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--color-bg-soft, #F7F5F0);
  border-radius: 12px;
}
.selected-strip[hidden] { display: none; }
.selected-strip-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 12px;
  background: white;
  border: 1px solid var(--brand-navy);
  color: var(--brand-navy);
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 500;
}
.selected-pill-x {
  background: none;
  border: none;
  color: var(--brand-navy);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin-left: 2px;
  opacity: 0.6;
}
.selected-pill-x:hover { opacity: 1; }
.selected-clear-all {
  margin-left: auto;
  background: none;
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  font-family: inherit;
}
.selected-clear-all:hover { color: var(--brand-navy); border-color: var(--brand-navy); }

/* ============= 性状 / 类型快捷筛选 ============= */
.trait-bar {
  display: flex;
  gap: 8px;
  margin: -16px 0 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.trait-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 4px 0 8px;
}

.trait-chip {
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg-soft, #F7F5F0);
  cursor: pointer;
  font-size: 12.5px;
  color: var(--color-text-muted);
  transition: all 0.15s;
}

.trait-chip.is-type {
  border-style: dashed;
}

.trait-chip:hover {
  border-color: var(--brand-green);
  color: var(--brand-green-deep, #4A7A1C);
}

.trait-chip.active {
  background: var(--brand-green);
  color: white;
  border-color: var(--brand-green);
}

/* 产品卡片 / 详情页的性状小标签 */
.product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.product-tag {
  font-size: 11.5px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--brand-green-soft, #EDF4E3);
  color: var(--brand-green-deep, #4A7A1C);
  border: 1px solid rgba(124, 179, 66, 0.35);
  white-space: nowrap;
}

/* ============= 关于我们 ============= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 30px;
  color: var(--brand-navy);
  margin-bottom: 18px;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 16px;
}

.about-image {
  /* v43：主图换成 16:9 横构图的种苗图，方框会切掉两侧种苗 → 放宽到 3:2
     （只裁 8%，显示 536x357，与左侧文字列等高） */
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-soft) 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============= 信任徽章 ============= */
.trust-bar {
  padding: 30px 24px;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.3px;
}

.trust-item strong {
  color: var(--brand-navy);
  font-size: 15px;
}

/* ============= 品质保障条（品牌认证语言） ============= */
.quality-bar {
  padding: 32px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.quality-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.quality-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quality-item svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.quality-item .q-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.quality-item .q-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand-navy);
}

.quality-item .q-zh {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* 多语言适配：封条双语标签的语言显隐
   - lang(zh): 显示 .q-zh 中文（双语设计），隐藏 .q-en（walker 替换后是中文避免重复）
   - lang(en): 显示 .q-en 英文（保留原设计），隐藏 .q-zh（不显示中文）
   - 其他 4 语: 显示 .q-en（walker 替换为对应语言），隐藏 .q-zh（中文） */
:lang(zh) .quality-item .q-en { display: none; }
:lang(en) .quality-item .q-zh,
:lang(ru) .quality-item .q-zh,
:lang(es) .quality-item .q-zh,
:lang(vi) .quality-item .q-zh { display: none; }

/* ============= 认证标识卡（Verified Quality Seal） ============= */
.seal-block {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--brand-cream);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.seal-block .seal-text strong {
  display: block;
  color: var(--brand-navy);
  font-size: 16px;
  margin-bottom: 6px;
}

.seal-block .seal-text p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* 官方认证徽章位图（方案B：紧凑 120px）
   源图 256x225，120px 显示在 2x 屏下刚好无损；
   想调小/调大只改这一个宽度值即可（同步改 HTML 上的 width/height 属性） */
.seal-block .seal-badge {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .seal-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .seal-block .seal-badge {
    width: 96px;
  }
}

/* ============= 底部 ============= */
.footer {
  background: var(--brand-navy-deep);
  color: rgba(255, 255, 255, 0.68);
  padding: 54px 24px 20px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer a:hover {
  color: var(--brand-green);
}

/* 页脚「全部品种」：视觉上区分于品类链接，读作行动入口 */
.footer a.footer-all {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand-green);
  font-weight: 500;
}

.footer a.footer-all:hover {
  color: #ffffff;
}

/* 页脚标志反白 */
.footer .logo-img {
  height: 42px;
}
.footer p { color: rgba(255, 255, 255, 0.68); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ============= WhatsApp 浮动按钮 ============= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  text-decoration: none;
  color: white;
}

/* ============= 响应式 ============= */
@media (max-width: 900px) {
  .hero-inner,
  .product-hero-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 50px 24px;
  }

  .section-title {
    font-size: 26px;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav ul.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .quality-inner {
    gap: 28px;
  }

  .quality-inner .quality-item {
    width: calc(50% - 14px);
  }
}

@media (max-width: 600px) {
  .logo-img {
    height: 32px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .quality-inner .quality-item {
    width: 100%;
  }
}

/* ============= 数据驱动组件（目录搜索 / 图库 / 面包屑） ============= */

/* 首页 Hero 主图 */
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 目录页工具栏 */
.catalog-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.catalog-search {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  font-size: 15px;
  font-family: var(--font-base);
  background: white;
}

.catalog-search:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.08);
}

.catalog-count {
  font-size: 14px;
  color: var(--color-text-muted);
}

.catalog-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}

/* 产品详情页面包屑 */
.breadcrumb {
  background: var(--brand-cream);
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  color: var(--color-text-muted);
}

.breadcrumb-inner a { color: var(--color-text-muted); }
.breadcrumb-inner a:hover { color: var(--brand-navy); }
.breadcrumb-inner .current { color: var(--color-text); font-weight: 600; }
.breadcrumb-inner span { margin: 0 8px; }

/* 产品图库 */
.product-gallery {
  flex-direction: column;
  gap: 14px;
  aspect-ratio: auto;
  background: transparent;
  border: none;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1/1;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gallery-thumb {
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
  height: 100%;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--brand-green);
}

.gallery-empty {
  aspect-ratio: 1/1;
  background: var(--brand-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--color-text-muted);
}

.gallery-empty span { font-size: 40px; }
.gallery-empty .hint { font-size: 13px; max-width: 260px; }

/* 详情页折扣标签 */
.product-info-badge {
  display: inline-block;
  background: var(--brand-green-deep);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-left: 8px;
  margin-bottom: 14px;
}

/* ============= 多语言切换器 ============= */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 22px;
  padding-left: 18px;
  border-left: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* 国旗图标版（2026-09-14 v44）：内联 SVG 国旗，不依赖 emoji 字体 */
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 23px;
  padding: 0;
  line-height: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.55;
  filter: saturate(0.7);
  transition: all 0.2s;
}

.lang-switch a svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-switch a:hover {
  opacity: 1;
  filter: none;
  border-color: var(--brand-navy);
  transform: translateY(-1px);
}

.lang-switch a.active {
  opacity: 1;
  filter: none;
  border-color: var(--brand-green-deep);
  box-shadow: 0 0 0 2px rgba(124, 179, 66, 0.35);
}

@media (max-width: 900px) {
  .lang-switch {
    gap: 5px;
    margin-left: 12px;
    padding-left: 12px;
  }

  .lang-switch a {
    width: 29px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .lang-switch {
    position: absolute;
    top: 12px;
    right: 56px;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    background: var(--color-bg);
    border-radius: 999px;
    padding: 3px;
  }

  /* v45：加到 6 面国旗后，浮层胶囊（right:56px）向左伸得太长会压住 logo。
     360px 屏实算：6×23 + 5×3 + 6 = 159px → 胶囊左沿 x=145，logo 右沿 x=130，留 15px */
  .lang-switch a {
    width: 23px;
    height: 15px;
  }
}

/* v45：≤380px（超窄安卓机）再收一档，避免国旗胶囊压到 logo */
@media (max-width: 380px) {
  .lang-switch {
    gap: 2px;
    padding: 2px;
  }

  .lang-switch a {
    width: 19px;
    height: 13px;
  }
}

/* ============= 移动端修复（2026-09-12） ============= */
@media (max-width: 600px) {
  /* 【Bug修复】grid-2 手机上塌成单列 —— 原媒体查询只收了 grid-3/grid-4，
     contact 表单区、FAQ、产品详情卡片区在手机上一直挤成两列 */
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* contact 页主区 inline gap:60px 在手机上收窄（inline 样式需 !important 覆盖） */
  .section-inner .grid-2[style*="gap: 60px"] {
    gap: 28px !important;
  }

  /* Hero：收敛高度与字号，首屏少滑一点 */
  .hero {
    padding: 46px 18px 42px;
  }

  .hero h1 {
    font-size: 27px;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .hero-tag {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  /* hero 内两枚按钮拉通等宽，不再挤成一行两个半截 */
  .hero-inner > div > div[style*="display:flex"] {
    flex-direction: column;
    gap: 10px;
  }

  .hero-inner > div > div[style*="display:flex"] .btn {
    text-align: center;
  }

  /* 统计条：数字缩小、间距收紧 */
  .hero-stats {
    gap: 12px;
    padding-top: 20px;
    margin-top: 24px;
  }

  .stat-num {
    font-size: 22px;
  }

  /* 信任条：居中换行，不再左右拉扯 */
  .trust-inner {
    justify-content: center;
    gap: 10px 18px;
  }

  .trust-item {
    font-size: 12px;
  }

  /* 区块间距与标题收敛 */
  .section {
    padding: 38px 18px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  /* 面包屑紧凑 */
  .breadcrumb-inner {
    padding: 10px 18px;
    font-size: 13px;
  }

  /* WhatsApp 浮球缩小、贴角，减少内容遮挡 */
  .whatsapp-float {
    bottom: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  /* 详情页四件套等描述字号收敛 */
  .card-title {
    font-size: 15px;
  }

  .card-text {
    font-size: 14px;
  }

  /* ===== 5 维度下拉筛选：移动端适配（v32） ===== */
  .filter-panel {
    gap: 8px;
    margin: 0 0 20px;
  }
  .filter-divider {
    max-width: none;
    margin-bottom: 14px;
    gap: 12px;
  }
  .dropdown {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 9px 12px 9px 14px;
    font-size: 12.5px;
  }
  .dropdown-panel {
    left: -16px;
    right: -16px;
    min-width: 0;
    max-height: 60vh;
    padding: 8px 0;
    border-radius: 14px;
  }
  .dropdown-item {
    padding: 11px 16px;
    font-size: 14px;
  }
  .selected-strip {
    padding: 10px 12px;
  }
  .selected-pill {
    font-size: 11.5px;
    padding: 3px 8px 3px 10px;
  }
  .selected-clear-all {
    font-size: 11.5px;
    padding: 4px 10px;
    margin-left: 4px;
  }
}
