/* ── 心香堂官网 · 宣纸金/东方极简 ─────────────── */
:root {
  --paper: #f7f4ee;      /* 宣纸白 */
  --ink: #2b2722;        /* 墨 */
  --ink-soft: #6b6257;   /* 淡墨 */
  --gold: #b8965a;       /* 宣纸金 */
  --cinnabar: #b8362e;   /* 朱砂，全站只用一处 */
  --serif: "Songti SC", "STSong", "Noto Serif SC", "宋体", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

h1, h2, h3, h4, .nav-seal, .hero-vertical, .section-mark, .footer-brand {
  font-family: var(--serif);
  font-weight: 600;
}

/* ── 图片通用 ── */
.hero-img img, .product-img img, .study-banner-img img, .article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 顶栏 ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw;
  background: rgba(247,244,238,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184,150,90,.25);
}
.nav-logo { text-decoration: none; }
.nav-seal {
  display: inline-block;
  color: var(--paper); background: var(--cinnabar);
  font-size: 15px; letter-spacing: .2em;
  padding: 4px 10px 4px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.nav-links a {
  color: var(--ink); text-decoration: none;
  font-size: 15px; margin-left: 2.4em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: stretch;
}
.hero-img { position: absolute; inset: 0; overflow: hidden; }
.hero-img img { object-position: center 78%; }
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(247,244,238,.96) 0%, rgba(247,244,238,.82) 36%, rgba(247,244,238,.12) 70%);
}
.hero-text {
  position: relative; z-index: 1;
  align-self: center;
  padding: 0 8vw;
  display: flex; align-items: center; gap: 3vw;
}
.hero-vertical {
  writing-mode: vertical-rl;
  font-size: 20px; letter-spacing: .5em;
  color: var(--gold);
  border-right: 1px solid var(--gold);
  padding-right: 14px;
  height: 9em;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: .12em;
  line-height: 1.3;
}
.hero-sub {
  margin-top: 1.2em;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: .08em;
}

/* ── 通用 section ── */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 6vw 0;
}
.section-mark {
  color: var(--gold);
  font-size: 14px; letter-spacing: .4em;
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: .15em;
  margin-bottom: 48px;
}

/* ── 品牌故事 ── */
.story-body { max-width: 620px; }
.story-body p { margin-bottom: 2em; color: #3d372f; }
.story-body p:last-child {
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
  padding-left: 1.2em;
}

/* ── 产品线 ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.product-img { aspect-ratio: 3 / 4; margin-bottom: 22px; overflow: hidden; }
.product-img img { transition: transform .6s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-card h3 { font-size: 21px; letter-spacing: .2em; margin-bottom: 10px; }
.product-card p { color: var(--ink-soft); font-size: 15px; min-height: 4.5em; }

.cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  font-size: 14px; letter-spacing: .15em;
  font-family: var(--sans);
  color: var(--ink); background: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all .25s;
}
.cta:hover { background: var(--gold); color: var(--paper); }
.cta-primary { background: var(--gold); color: var(--paper); padding: 12px 40px; }
.cta-primary:hover { background: var(--ink); border-color: var(--ink); }

/* ── 香学 ── */
.study-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(184,150,90,.4);
  text-decoration: none; color: var(--ink);
  transition: border-color .25s;
}
.study-banner:hover { border-color: var(--gold); }
.study-banner-text { padding: 44px; }
.study-banner-text h3 { font-size: 24px; letter-spacing: .25em; margin-bottom: 14px; }
.study-banner-text p { color: var(--ink-soft); font-size: 15px; }
.study-go {
  display: inline-block; margin-top: 20px;
  color: var(--gold); font-size: 14px; letter-spacing: .1em;
}
.study-banner-img { min-height: 240px; overflow: hidden; }

.study-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.article-card { text-decoration: none; color: var(--ink); }
.article-img { aspect-ratio: 4 / 3; margin-bottom: 10px; overflow: hidden; }
.article-card p { font-size: 15px; letter-spacing: .06em; }
.article-card:hover p { color: var(--gold); }

/* ── 批发合作 ── */
.wholesale-lead { max-width: 620px; color: #3d372f; margin-bottom: 48px; }
.wholesale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.wholesale-item h4 {
  font-size: 17px; letter-spacing: .3em;
  color: var(--gold);
  margin-bottom: 12px;
}
.wholesale-item p { font-size: 15px; color: var(--ink-soft); }
.todo-note { font-size: 12px; color: #b0a898; }

/* ── 渠道矩阵 ── */
.channel-row {
  display: flex; flex-wrap: wrap; gap: 18px;
}
.channel {
  font-family: var(--sans);
  font-size: 15px; letter-spacing: .1em;
  color: var(--ink); background: none;
  border: 1px solid rgba(43,39,34,.25);
  padding: 14px 26px;
  cursor: pointer; text-decoration: none;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  transition: all .25s;
}
.channel span { font-size: 12px; color: var(--ink-soft); }
.channel:hover { border-color: var(--gold); color: var(--gold); }

/* ── 页脚 ── */
.footer {
  margin-top: 140px;
  padding: 56px 6vw;
  border-top: 1px solid rgba(184,150,90,.3);
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px; line-height: 2.2;
}
.footer-brand { font-size: 18px; letter-spacing: .4em; color: var(--ink); margin-bottom: 8px; }
.footer a { color: var(--ink-soft); }

/* ── 二维码弹层 ── */
.qr-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(43,39,34,.55);
  display: flex; align-items: center; justify-content: center;
}
.qr-modal[hidden] { display: none; }
.qr-box {
  background: var(--paper);
  padding: 36px;
  text-align: center;
  width: min(320px, 84vw);
}
.qr-img { width: 200px; height: 200px; margin: 0 auto 18px; display: block; }
#qr-caption { font-size: 15px; letter-spacing: .1em; margin-bottom: 18px; }
.qr-close {
  font-family: var(--sans);
  background: none; border: 1px solid rgba(43,39,34,.3);
  padding: 8px 28px; font-size: 13px; letter-spacing: .2em;
  cursor: pointer;
}
.qr-close:hover { border-color: var(--gold); color: var(--gold); }

/* ── 移动端 ── */
@media (max-width: 768px) {
  .nav { padding: 12px 4vw; }
  .nav-seal { font-size: 13px; letter-spacing: .1em; padding: 3px 8px; }
  .nav-links { white-space: nowrap; }
  .nav-links a { margin-left: .9em; font-size: 12px; letter-spacing: 0; }
  .hero { min-height: 80vh; }
  .hero-text { padding: 0 7vw; }
  .hero-vertical { display: none; }
  .section { padding-top: 88px; }
  .product-grid, .study-articles, .wholesale-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-card p { min-height: 0; }
  .study-banner { grid-template-columns: 1fr; }
  .study-banner-text { padding: 28px; }
}
