/* ============================================================
   华韵香氛 · 中式香氛 toB 独立站
   设计基调：宣纸米白 / 墨色 / 朱砂 / 淡金，细线分割，留白为主
   ============================================================ */

:root {
  /* 品牌色：藏青靛蓝 #121D51 */
  --brand: #121d51;
  --brand-600: #1e2d6b;
  --brand-800: #0b1338;
  --brand-50: #e7e9f3;

  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --paper-3: #dcdad0;
  --ink: #14183a;
  --ink-2: #4a4e6b;
  --ink-3: #85889d;
  --gold: #b3925a;
  --gold-soft: #c9ad7d;
  --line: #d7d5cb;
  --line-soft: #e5e3da;

  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  /* 极淡的宣纸纹理 */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(179, 146, 90, .07), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(18, 29, 81, .05), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--brand); color: var(--paper); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- 印章 Logo ---------------- */
.seal {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background:
    radial-gradient(circle at 32% 26%, #28367a 0%, var(--brand) 46%, var(--brand-800) 100%);
  box-shadow: 0 4px 13px rgba(18, 29, 81, .35), inset 0 1px 3px rgba(255, 255, 255, .32);
  color: var(--paper);
}
.seal-inner {
  font-size: 16px; letter-spacing: 1px; line-height: 1.05; font-weight: 700;
  writing-mode: horizontal-tb; transform: translateY(1px);
}

/* ---------------- 页头 ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(245, 244, 239, .82);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s;
}
.site-header.is-scrolled {
  background: rgba(245, 244, 239, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(18, 29, 81, .07);
}
.header-inner {
  max-width: 1440px; margin-inline: auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; letter-spacing: 4px; font-weight: 700; }
.brand-text small { font-family: var(--sans); font-size: 9.5px; letter-spacing: 2.4px; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a {
  position: relative; font-size: 15px; color: var(--ink-2);
  padding: 6px 0; letter-spacing: 1.5px; transition: color .25s;
}
.nav > a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--brand);
  transform: translateX(-50%); transition: width .3s var(--ease);
}
.nav > a:hover { color: var(--brand); }
.nav > a:hover::after { width: 100%; }
.nav-cta {
  padding: 9px 22px !important; border: 1px solid var(--brand);
  color: var(--brand) !important; letter-spacing: 2px;
  transition: background .3s, color .3s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--brand); color: var(--paper) !important; }

/* 语言切换 */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 40px;
  font-size: 13px; font-family: var(--sans); letter-spacing: .5px; color: var(--ink-2);
  transition: border-color .25s, color .25s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 9px); min-width: 160px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 14px 38px rgba(18, 29, 81, .15);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .25s var(--ease);
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.lang-menu li {
  font-family: var(--sans); font-size: 13.5px; padding: 9px 13px;
  border-radius: 3px; cursor: pointer; color: var(--ink-2);
}
.lang-menu li:hover { background: var(--paper); }
.lang-menu li[aria-selected="true"] { color: var(--brand); font-weight: 600; }
.lang-menu li[aria-selected="true"]::after { content: " ✓"; }

.burger { display: none; width: 34px; height: 34px; padding: 7px; }
.burger span {
  display: block; height: 1.5px; background: var(--ink); margin: 5px 0;
  transition: transform .3s var(--ease), opacity .3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: min(100dvh, 880px);
  display: flex; align-items: center;
  padding: clamp(120px, 13vh, 168px) var(--pad) clamp(56px, 8vh, 96px);
  background: var(--brand);
  color: var(--paper);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      var(--brand) 0%,
      rgba(18, 29, 81, .96) 30%,
      rgba(18, 29, 81, .72) 50%,
      rgba(18, 29, 81, .30) 70%,
      rgba(18, 29, 81, .08) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin-inline: auto; }
.hero-inner > * { max-width: 610px; }

.eyebrow {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 4.5px;
  color: var(--gold-soft); margin-bottom: 26px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 46px; height: 1px; background: var(--gold-soft); }

.hero h1 {
  font-size: clamp(38px, 4.6vw, 66px); line-height: 1.26;
  letter-spacing: 5px; font-weight: 700; margin-bottom: 26px;
  color: var(--paper);
}
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .lede {
  font-size: clamp(15px, 1.1vw, 16.5px); color: #c3c8de;
  max-width: 31em; margin-bottom: 40px; line-height: 2.05;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px; font-size: 15px; letter-spacing: 2.5px;
  border: 1px solid var(--gold); border-radius: 2px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
}
.btn-primary { background: var(--gold); color: #14183a; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18, 29, 81, .35); }
.btn-ghost { color: var(--paper); border-color: rgba(245, 244, 239, .42); }
.btn-ghost:hover { background: var(--paper); color: var(--brand); border-color: var(--paper); transform: translateY(-2px); }
.btn-block { width: 100%; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  column-gap: clamp(26px, 3.6vw, 58px); row-gap: 16px;
  margin-top: 56px; padding-top: 24px; max-width: 620px;
  border-top: 1px solid rgba(245, 244, 239, .16);
}
.hero-stats > div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-family: var(--sans); font-size: 11.5px; letter-spacing: 1.2px; color: #9fa5c2; white-space: nowrap; }
.hero-stats dd { font-size: 23px; color: var(--paper); line-height: 1.5; white-space: nowrap; }

.hero-vert {
  position: absolute; right: clamp(18px, 3vw, 44px); top: 20%; z-index: 1;
  writing-mode: vertical-rl; font-size: clamp(40px, 5.4vw, 74px);
  color: rgba(245, 244, 239, .13); letter-spacing: 14px; user-select: none;
}

/* ---------------- 通用 section ---------------- */
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.sec-head { max-width: 700px; margin: 0 auto clamp(44px, 5vw, 70px); text-align: center; }
.kicker {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 5px;
  color: var(--brand); text-transform: uppercase; margin-bottom: 16px;
}
.kicker::after {
  content: ""; display: block; width: 1px; height: 26px; margin: 14px auto 0;
  background: linear-gradient(var(--gold), transparent);
}
.sec-head h2 {
  font-size: clamp(24px, 3vw, 38px); letter-spacing: 3px; line-height: 1.5; font-weight: 700;
}
.sec-head .sub { margin-top: 16px; color: var(--ink-2); font-size: 15px; letter-spacing: .5px; }

/* ---------------- 品牌底蕴 ---------------- */
.heritage { background: var(--paper-2); }
.heritage-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.heritage-text p { color: var(--ink-2); font-size: 15.5px; text-align: justify; margin-bottom: 18px; }
.heritage-text blockquote {
  margin: 30px 0; padding: 8px 0 8px 22px;
  border-left: 2px solid var(--brand);
  font-size: 18px; letter-spacing: 2px; color: var(--ink);
}
.value-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.value-list li {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 3px; padding: 16px 12px; text-align: center;
  transition: border-color .3s, transform .3s var(--ease);
}
.value-list li:hover { border-color: var(--gold); transform: translateY(-3px); }
.value-list b { display: block; font-size: 14.5px; letter-spacing: 2px; color: var(--brand); margin-bottom: 4px; }
.value-list span { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); letter-spacing: .4px; }

.heritage-media { position: relative; }
.heritage-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: 22px 22px 0 -1px var(--paper-3), 0 22px 50px rgba(18, 29, 81, .18);
}
.heritage-media figcaption {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 3px;
  color: var(--ink-3); text-align: right; margin-top: 14px;
}

/* ---------------- 产品 ---------------- */
.prod-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 38px);
}
.prod-card {
  background: #fdfcf8; border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.prod-card:hover {
  transform: translateY(-6px); border-color: var(--line);
  box-shadow: 0 24px 52px rgba(18, 29, 81, .15);
}
.prod-media { overflow: hidden; aspect-ratio: 16 / 11; background: var(--paper-2); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.045); }
.prod-body { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; flex: 1; }
.prod-body .no {
  font-family: var(--sans); font-size: 11px; letter-spacing: 3.5px;
  color: var(--gold); margin-bottom: 10px;
}
.prod-body h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: 2px; margin-bottom: 12px; }
.prod-body > p { font-size: 14.5px; color: var(--ink-2); flex: 1; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .8px;
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 30px;
  color: var(--ink-3); background: var(--paper);
}

/* ---------------- OEM ---------------- */
.oem { background: var(--brand-800); color: var(--paper); }
.oem .sec-head h2 { color: var(--paper); }
.oem .kicker { color: var(--gold); }
.oem .sec-head .sub { color: #b9bcd2; }
.oem .kicker::after { background: linear-gradient(var(--gold), transparent); }

.line-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #232a52; border: 1px solid #232a52; }
.line-card {
  background: #111a44; padding: clamp(26px, 3vw, 40px) clamp(20px, 2.2vw, 28px);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.line-card:hover { background: #1a2450; transform: translateY(-4px); }
.line-no { font-family: var(--sans); font-size: 11px; letter-spacing: 3.5px; color: var(--gold); margin-bottom: 18px; }
.line-card h3 { font-size: 18px; letter-spacing: 1.6px; margin-bottom: 12px; line-height: 1.6; }
.line-card p { font-size: 13.5px; color: #a8adc6; line-height: 1.85; }

.assure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin-top: clamp(40px, 5vw, 64px); border-block: 1px solid #232a52;
}
.assure li {
  position: relative; padding: 20px clamp(18px, 3vw, 46px);
  font-size: 14px; letter-spacing: 3px; color: #d3d6e4;
}
.assure li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: var(--gold); opacity: .55;
}
.assure-note { text-align: center; margin-top: 26px; font-size: 14px; color: #a8adc6; letter-spacing: 1px; }
.assure-note b { color: var(--gold); font-weight: 400; }

/* ---------------- 流程 ---------------- */
.flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; counter-reset: step; position: relative;
}
.flow::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 30px;
  height: 1px; background: var(--line);
}
.flow li { position: relative; text-align: center; padding: 0 clamp(6px, 1vw, 14px); }
.flow .idx {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px;
  border: 1px solid var(--brand); border-radius: 50%; background: var(--paper);
  color: var(--brand); font-size: 18px; position: relative; z-index: 1;
  transition: background .35s var(--ease), color .35s, transform .35s var(--ease);
}
.flow li:hover .idx { background: var(--brand); color: var(--paper); transform: translateY(-3px); }
.flow h3 { font-size: 16.5px; letter-spacing: 2px; margin-bottom: 8px; }
.flow p { font-size: 13px; color: var(--ink-3); line-height: 1.8; }

/* ---------------- 询盘 ---------------- */
.inquiry { background: var(--paper-2); }
.inq-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(34px, 5vw, 80px); align-items: start;
}
.inq-info h2 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: 2.5px; line-height: 1.55; margin-bottom: 16px; }
.inq-info .sub { color: var(--ink-2); font-size: 15px; margin-bottom: 34px; }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.c-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--brand); color: var(--brand);
  display: grid; place-items: center; font-size: 14px; font-family: var(--sans);
}
.contact-list b {
  display: block; font-family: var(--sans); font-size: 11px;
  letter-spacing: 2px; color: var(--ink-3); font-weight: 500; margin-bottom: 2px;
}
.contact-list a, .contact-list span > span { font-size: 15px; color: var(--ink); transition: color .25s; }
.contact-list a:hover { color: var(--brand); }

.inq-form {
  background: #fdfcf8; border: 1px solid var(--line-soft);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 20px 50px rgba(18, 29, 81, .09);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--sans); font-size: 12px;
  letter-spacing: 1.2px; color: var(--ink-2); margin-bottom: 7px;
}
.field label i { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--serif); font-size: 14.5px;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 29, 81, .12);
}
.field input.is-error, .field textarea.is-error { border-color: #8f3b34; background: #f7f1ef; }
.form-note { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 14px; line-height: 1.7; }
.form-msg { display: none; margin-top: 14px; padding: 12px 16px; font-size: 13.5px; border-radius: 2px; letter-spacing: .3px; }
.form-msg.is-ok { display: block; background: #eaeef0; color: #2f4a5c; border: 1px solid #cfd8d4; }
.form-msg.is-err { display: block; background: #f4eeee; color: var(--brand); border: 1px solid #ddd0cb; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0a1130; color: #9ca1b8; padding: 60px 0 26px; font-size: 13px; }
.foot-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 34px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid #1f2650;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand strong { display: block; color: var(--paper); font-size: 15px; letter-spacing: 1.6px; font-weight: 600; }
.foot-brand small { font-family: var(--sans); font-size: 9.5px; letter-spacing: 1.8px; color: #767c98; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 13.5px; }
.foot-nav a { transition: color .25s; }
.foot-nav a:hover { color: var(--gold); }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; font-family: var(--sans); font-size: 11.5px;
  letter-spacing: 1px; color: #767c98;
}
.foot-slogan { letter-spacing: 3px; color: var(--gold); opacity: .8; }

/* ---------------- 入场动画 ---------------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .nav > a { font-size: 14px; letter-spacing: 1px; }
  .line-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(5, 1fr); }
  .hero-media { inset: 0 0 0 46%; }
  .hero-inner > * { max-width: 540px; }
}

@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: 112px; padding-bottom: 58px; }
  .hero-media { inset: 0; }
  .hero-media img { object-position: 62% 34%; }
  .hero-media::after {
    background: linear-gradient(180deg,
      rgba(18, 29, 81, .97) 0%,
      rgba(18, 29, 81, .92) 40%,
      rgba(18, 29, 81, .74) 70%,
      rgba(18, 29, 81, .88) 100%);
  }
  .hero-vert { display: none; }
  .hero-inner > * { max-width: 100%; }
  .hero-stats { margin-top: 40px; }

  .heritage-grid, .inq-grid { grid-template-columns: 1fr; }
  .heritage-media { order: -1; max-width: 460px; }
  .heritage-media img { aspect-ratio: 4 / 3; box-shadow: 14px 14px 0 -1px var(--paper-3); }
  .prod-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .flow::before { display: none; }

  /* 移动端导航抽屉 */
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 6px; padding: 92px 28px 40px; background: #fdfcf8;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(18, 29, 81, .14);
    transform: translateX(103%); transition: transform .38s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav > a {
    width: 100%; padding: 14px 0 !important; font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-cta { margin-top: 14px; text-align: center; border-bottom: none !important; }
  .lang { margin-top: 18px; }
  .lang-menu { right: auto; left: 0; }
}

@media (max-width: 560px) {
  .hero h1 { letter-spacing: 2px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: repeat(2, auto); column-gap: 30px; row-gap: 12px; }
  .hero-stats dd { font-size: 20px; }
  .value-list { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .flow { grid-template-columns: 1fr; }
  .assure li { padding: 14px 18px; font-size: 13px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .brand-text small { display: none; }
}
