/* ===========================================================
   南京旺客贸易有限公司 · 官网样式
   风格：简约 · 克制 · 高级感（深林绿 + 岩灰 + 米白，铜砂点缀）
   设计基准：4px 间距标度 / 行高 1.75 / 正文对比度达 WCAG AA
   零依赖：无外部字体、无 CDN、无构建步骤
   =========================================================== */

:root {
  /* 主色：深林绿（品牌） */
  --forest: #123028;
  --forest-2: #1b4436;
  --forest-3: #2f6b56;
  --forest-tint: rgba(18, 48, 40, 0.06);

  /* 中性：岩灰 → 米白 */
  --ink: #14201b;
  --ink-2: #47534c;
  --ink-3: #6d776f;
  --stone: #7d847c;
  --line: #e7e3db;
  --line-2: #d8d3c8;
  --sand: #f4f1ea;
  --paper: #fcfbf8;
  --white: #ffffff;

  /* 点缀：铜砂（低饱和，克制使用） */
  --clay: #a06a3d;
  --clay-2: #8a5730;

  --max: 1180px;
  --pad: 28px;
  --radius: 14px;
  --radius-l: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;

  --shadow-s: 0 1px 2px rgba(18, 48, 40, 0.05);
  --shadow-m: 0 10px 34px rgba(18, 48, 40, 0.07);
  --shadow-l: 0 24px 64px rgba(18, 48, 40, 0.11);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(18, 48, 40, 0.9); color: #fff; }

:focus-visible {
  outline: 2px solid var(--forest-3);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: 0.015em; }
h2 { font-size: clamp(25px, 3vw, 38px); }
h3 { font-size: clamp(18px, 1.5vw, 21px); }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 820px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(18, 48, 40, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.brand .logo {
  height: 40px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.brand .txt { display: flex; flex-direction: column; line-height: 1.15; }

.brand .mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--forest-2), var(--forest));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand .cn { font-size: 17px; letter-spacing: 0.08em; }

.brand .en {
  display: block;
  font-family: var(--serif);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--stone);
  text-transform: uppercase;
  line-height: 1.5;
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-links a {
  position: relative;
  padding: 10px 15px;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a:hover { color: var(--forest-2); background: var(--forest-tint); }

.nav-links a.active { color: var(--forest); font-weight: 600; }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 1px;
  height: 1.5px;
  background: var(--clay);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 14px;
  padding: 10px 22px !important;
  background: var(--forest) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease) !important;
}

.nav-cta:hover { background: var(--forest-2) !important; transform: translateY(-1px); box-shadow: var(--shadow-m); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 3px auto;
  border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); transform: translateY(-2px); box-shadow: var(--shadow-m); }

.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }

.btn .arrow { transition: transform 0.28s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 通用区块 ---------- */
.section { padding: 104px 0; }
.section-sand { background: var(--sand); }
.section-forest { background: var(--forest); color: rgba(255, 255, 255, 0.82); }
.section-forest h2, .section-forest h3 { color: #fff; }

.eyebrow {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 16px;
  display: block;
}

.section-forest .eyebrow { color: #cfa87e; }

.lede { font-size: 17px; color: var(--ink-3); max-width: 60ch; }
.section-forest .lede { color: rgba(255, 255, 255, 0.66); }

.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.5;
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 32, 26, 0.94) 0%, rgba(12, 32, 26, 0.78) 42%, rgba(12, 32, 26, 0.34) 100%),
    linear-gradient(to top, rgba(12, 32, 26, 0.6), transparent 45%);
}

.hero .wrap { position: relative; z-index: 2; padding-top: 104px; padding-bottom: 96px; }
.hero .eyebrow { color: #cfa87e; }

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
  max-width: 16ch;
  position: relative;
  padding-left: 22px;
}

.hero h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 2px;
  background: var(--clay);
}

.hero .lede { color: rgba(255, 255, 255, 0.78); font-size: 17.5px; max-width: 50ch; margin-bottom: 40px; padding-left: 22px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-left: 22px; }

.hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 76px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-meta .item .num {
  display: block;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-meta .item .num small { font-size: 14px; font-weight: 400; margin-left: 2px; }
.hero-meta .item .lbl { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.08em; }

/* ---------- 页面头（内页） ---------- */
.page-hero {
  background: var(--forest);
  color: #fff;
  padding: 92px 0 76px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 107, 86, 0.55), transparent 68%);
}

.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lede { color: rgba(255, 255, 255, 0.72); margin: 0; }
.page-hero .wrap { position: relative; z-index: 2; }

.crumb { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; letter-spacing: 0.04em; }
.crumb a:hover { color: #fff; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--sand);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--forest-2);
}

.card .ico svg { width: 22px; height: 22px; }

/* ---------- 产品卡 ---------- */
.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-2); }

.product .thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, #efece5, #ded9cd);
  position: relative;
  overflow: hidden;
}

.product .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product:hover .thumb img { transform: scale(1.04); }

.product .thumb .tag {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(252, 251, 248, 0.94);
  color: var(--forest);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
}

.product .body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.product .body h3 { margin-bottom: 8px; }
.product .body p { font-size: 14.5px; color: var(--ink-3); flex: 1; }

.product .spec { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.product .spec span {
  font-size: 12px;
  color: var(--forest-2);
  background: var(--sand);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- 列表 / 时间轴 ---------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }

.timeline li { position: relative; padding: 0 0 38px 32px; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--forest-3);
}

.timeline .yr { font-family: var(--serif); font-size: 13px; letter-spacing: 0.14em; color: var(--clay); display: block; margin-bottom: 4px; }
.timeline h4 { margin: 0 0 6px; font-size: 17px; }
.timeline p { margin: 0; font-size: 14.5px; color: var(--ink-3); }

/* ---------- 图片 + 文案 双栏 ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split.rev .split-media { order: 2; }

.split-media {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-m);
}

.split-media img { width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat-row .num { font-size: 30px; font-weight: 600; color: var(--forest); line-height: 1.2; }
.stat-row .num small { font-size: 14px; font-weight: 400; }
.stat-row .lbl { font-size: 13px; color: var(--stone); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: var(--sand);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.2s var(--ease); }
tbody tr:hover { background: #faf8f4; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--clay); margin-left: 3px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea { resize: vertical; min-height: 132px; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-3);
  box-shadow: 0 0 0 3px rgba(44, 107, 86, 0.12);
}

.form-note { font-size: 13px; color: var(--stone); }
.form-status { font-size: 14px; padding: 13px 16px; border-radius: 11px; display: none; }
.form-status.ok { display: block; background: #e8f2ed; color: #1b4436; border: 1px solid #cfe3d9; }
.form-status.err { display: block; background: #fbeae4; color: #8a5730; border: 1px solid #f0d3c7; }

/* ---------- 联系信息 ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }

.info-list .k { flex: 0 0 92px; font-size: 14px; color: var(--stone); }
.info-list .v { color: var(--ink); font-weight: 500; }
.info-list .v a:hover { color: var(--forest-2); }
.info-list .v .sub { display: block; font-weight: 400; font-size: 13.5px; color: var(--stone); margin-top: 3px; }

/* ---------- CTA 条 ---------- */
.cta {
  background: var(--forest);
  border-radius: var(--radius-l);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 107, 86, 0.6), transparent 68%);
}

.cta h2 { color: #fff; margin: 0 0 10px; }
.cta p { color: rgba(255, 255, 255, 0.7); margin: 0; }
.cta > * { position: relative; z-index: 2; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0e2620;
  color: rgba(255, 255, 255, 0.58);
  padding: 76px 0 30px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer h4 {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand .mark { background: rgba(255, 255, 255, 0.12); }
.site-footer .brand .logo { height: 52px; }
.site-footer .brand .en { color: rgba(255, 255, 255, 0.42); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.footer-bottom .beian a { color: inherit; }
.footer-bottom .beian a:hover { color: #fff; }

/* ---------- 滚动入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card::before { transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 80px 0; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; }
  .nav { height: 68px; }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 18px;
    display: none;
    box-shadow: var(--shadow-m);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-radius: 0; }
  .nav-links a.active::after { left: 4px; right: auto; width: 22px; bottom: 8px; }
  .nav-cta { margin: 10px 0 0; text-align: center; justify-content: center; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 72px; padding-bottom: 64px; }
  .hero h1, .hero .lede, .hero-actions { padding-left: 16px; }
  .hero h1::before { left: 0; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 48px; }
  .hero-meta .item .num { font-size: 25px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
  .cta { padding: 40px 26px; border-radius: var(--radius); }
  .footer-top { grid-template-columns: 1fr; }
  .info-list .k { flex-basis: 78px; }
}

@media print {
  .site-header, .site-footer, .cta { display: none; }
}

/* ===========================================================
   产品装备目录：分类筛选条 + 搜索框
   =========================================================== */
.catalog-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.fbtn {
  border: 1px solid var(--line-2); background: var(--white); color: var(--ink-2);
  font-size: 13.5px; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  transition: all 0.25s var(--ease); font-family: var(--sans); line-height: 1.6;
}
.fbtn:hover { border-color: var(--forest-3); color: var(--forest); }
.fbtn.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.catalog-search { margin-left: auto; }
.catalog-search input {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px;
  font-size: 14px; width: 250px; background: var(--white); color: var(--ink);
  outline: none; font-family: var(--sans); transition: border-color 0.25s;
}
.catalog-search input:focus { border-color: var(--forest-3); }
.catalog-count { font-size: 13px; color: var(--ink-3); margin: 0 0 22px; }
.catalog-empty { text-align: center; color: var(--ink-3); padding: 60px 0; font-size: 15px; display: none; }
@media (max-width: 720px) {
  .catalog-search { margin-left: 0; width: 100%; }
  .catalog-search input { width: 100%; }
}
