/* ============================================================
   ROLLGREAT · 地标养生
   设计语言：纸上桂香 — 温暖编辑感 / 传统本草 / 朱砂点睛
   字体：思源宋体(展示) × 思源黑体(正文) · 墨色暖棕 · 羊皮纸底
   ============================================================ */

:root {
  /* 色彩 primitives */
  --paper: #f6efe2;          /* 羊皮纸底 */
  --paper-deep: #ede2cb;     /* 更深一层 */
  --paper-mid: #e8dcc2;
  --ink: #2a1f16;            /* 暖墨色 */
  --ink-soft: #57483a;       /* 次级文本 */
  --ink-muted: #8d7c67;      /* 弱化文本 */
  --cinnabar: #a63c28;       /* 朱砂 · 印章点睛色 */
  --cinnabar-deep: #7e2d1d;
  --cinnamon: #b06a2f;       /* 肉桂琥珀 */
  --cinnamon-soft: #c98f5a;
  --gold: #c9a35c;           /* 鎏金 */
  --jade: #5c7350;           /* 罗汉果青竹色 */
  --line: rgba(42, 31, 22, 0.16);       /* 标准分隔 */
  --line-soft: rgba(42, 31, 22, 0.09);  /* 柔和分隔 */
  --line-em: rgba(42, 31, 22, 0.32);    /* 强调分隔 */

  /* 字体 */
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;

  /* 间距基准 8px */
  --sp-1: 8px;  --sp-2: 16px;  --sp-3: 24px;  --sp-4: 40px;  --sp-5: 64px;  --sp-6: 96px;  --sp-7: 140px;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(42,31,22,.06);
  --shadow-2: 0 10px 30px -12px rgba(42,31,22,.18);
  --ease: cubic-bezier(.22,.8,.28,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸张噪点纹理 —— 营造纸墨质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.11 0 0 0 0 0.07 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--cinnabar); color: var(--paper); }

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

a { color: inherit; text-decoration: none; }

/* ============ 通用 ============ */

.eyebrow {
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cinnabar);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.section-head { margin-bottom: var(--sp-5); }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
}

.section-note {
  margin-top: var(--sp-2);
  color: var(--ink-soft);
  max-width: 46em;
  font-size: 15px;
}

/* ============ 导航 ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(246, 239, 226, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

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

.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  border-radius: 6px 6px 14px 6px;
  box-shadow: var(--shadow-2);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  letter-spacing: .04em;
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--ink-muted);
}

.nav-links { display: flex; gap: var(--sp-3); }

.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--cinnabar);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 14px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all .3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 7vw, 110px) 80px;
  overflow: hidden;
}

/* 巨型「桂」字水印 */
.hero-char {
  position: absolute;
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(380px, 56vw, 820px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(42, 31, 22, 0.07);
  user-select: none;
  pointer-events: none;
}

/* 暖色光晕 */
.hero-glow {
  position: absolute;
  width: 62vw; height: 62vw;
  left: -14vw; top: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(201, 159, 92, 0.20), rgba(176, 106, 47, 0.06) 55%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero-kicker {
  font-size: 13px;
  letter-spacing: .32em;
  color: var(--cinnabar);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 9vw, 108px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .02em;
}
.hero-title .serif-accent { color: var(--cinnamon); }

.hero-sub {
  margin-top: var(--sp-3);
  max-width: 32em;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-soft);
  font-weight: 300;
}

.hero-actions {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.btn {
  display: inline-block;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--cinnabar);
  color: var(--paper);
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { background: var(--cinnabar-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-em); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(42,31,22,.04); }

.hero-metrics {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.metric { display: flex; flex-direction: column; }
.metric strong {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  color: var(--ink);
}
.metric span { font-size: 13px; color: var(--ink-muted); letter-spacing: .06em; }

/* ============ 入场动画（交错显现） ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.d1.is-in { transition-delay: .08s; }
.reveal.d2.is-in { transition-delay: .16s; }
.reveal.d3.is-in { transition-delay: .24s; }
.reveal.d4.is-in { transition-delay: .32s; }

/* ============ 溯源 ============ */

.origin { padding: var(--sp-7) clamp(20px, 7vw, 110px); }

.origin-journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  counter-reset: step;
}

.journey-item {
  position: relative;
  padding: var(--sp-3);
  border-top: 1px solid var(--line);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.journey-item:hover { border-color: var(--cinnabar); background: rgba(255,255,255,.35); }

.journey-no {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--cinnabar);
  font-weight: 600;
}
.journey-item h3 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  margin: var(--sp-2) 0 10px;
}
.journey-item p { font-size: 14px; color: var(--ink-soft); }

/* ============ 产品 ============ */

.products { padding: var(--sp-7) clamp(20px, 7vw, 110px); background: var(--paper-deep); }

.product-list { display: flex; flex-direction: column; gap: var(--sp-6); }

.product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

/* 交错排版：偶数个产品视觉在右 */
.product--flip { grid-template-columns: 1fr 1.05fr; }
.product--flip .product-visual { order: 2; }
.product--flip .product-body { order: 1; }

.product-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: #fff;
}

.product-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity .4s var(--ease);
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,.85);
  border-top: 1px solid var(--line-soft);
}
.thumb {
  width: 46px; height: 46px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 12px;
  font-family: var(--font-display);
  transition: all .25s var(--ease);
}
.thumb:hover { border-color: var(--cinnamon-soft); }
.thumb.is-active { border-color: var(--cinnabar); color: var(--cinnabar); font-weight: 700; }

/* 待替换占位框：被删掉的问题图位置 */
.thumb--placeholder {
  border-style: dashed;
  border-color: var(--line-em);
  color: var(--ink-muted);
  background: repeating-linear-gradient(45deg, rgba(42,31,22,.03), rgba(42,31,22,.03) 6px, rgba(255,255,255,.4) 6px, rgba(255,255,255,.4) 12px);
  cursor: default;
}
.thumb--placeholder:hover { border-color: var(--line-em); }
.thumb--placeholder::after {
  content: "待替换";
  display: block;
  font-size: 10px;
  letter-spacing: .05em;
  line-height: 1;
  margin-top: 2px;
}

.product-body { max-width: 520px; }

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-2); }

.tag {
  font-size: 12px;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-em);
  color: var(--ink-soft);
  background: rgba(255,255,255,.4);
}
.tag-seal {
  border-color: transparent;
  background: var(--cinnabar);
  color: var(--paper);
  font-weight: 600;
}

.product h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

.product-brand {
  margin-top: var(--sp-1);
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--ink-soft);
}
.product-spec { color: var(--ink-muted); }

.product-desc { margin-top: var(--sp-2); font-size: 15px; color: var(--ink-soft); }

.product-points { list-style: none; margin-top: var(--sp-2); }
.product-points li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line-soft);
}
.product-points li::before {
  content: "";
  position: absolute;
  left: 6px; top: 17px;
  width: 8px; height: 8px;
  background: var(--cinnamon);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ============ 信任背书 ============ */

.trust { padding: var(--sp-7) clamp(20px, 7vw, 110px); }
.trust-inner { max-width: 1200px; margin: 0 auto; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-3);
}

.trust-card {
  padding: var(--sp-4) var(--sp-3);
  background: rgba(255,255,255,.45);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: all .35s var(--ease);
}
.trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-em);
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow-2);
}

.trust-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--sp-2);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--paper);
  background: var(--cinnabar);
  border-radius: 10px 10px 18px 10px;
}

.trust-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.trust-card p { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }

/* ============ 识图模态（灯箱） ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 12, 0.78);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  width: 100%;
  max-width: 1000px;
  transform: translateY(12px) scale(.98);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox-panel { transform: translateY(0) scale(1); }

.lightbox-figure {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.55);
  background: var(--paper);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: var(--sp-2);
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(246, 239, 226, .75);
  font-family: var(--font-display);
}

.lightbox-close,
.lightbox-nav {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(246,239,226,.25);
  background: rgba(246,239,226,.08);
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.lightbox-close { position: absolute; top: -4px; right: -4px; width: 42px; height: 42px; font-size: 22px; }
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--cinnabar); border-color: var(--cinnabar); }

.lightbox-nav:disabled { opacity: .35; cursor: default; }
.lightbox-nav:disabled:hover { background: rgba(246,239,226,.08); border-color: rgba(246,239,226,.25); }

@media (max-width: 640px) {
  .lightbox-panel { gap: 4px; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 20px; }
}

/* ============ 页脚 ============ */

.footer {
  padding: var(--sp-6) clamp(20px, 7vw, 110px) var(--sp-4);
  border-top: 1px solid var(--line-soft);
  text-align: center;
  color: var(--ink-muted);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-2);
}
.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 18px; }
.footer-brand .brand-text { font-size: 17px; }
.footer-note { font-size: 14px; color: var(--ink-soft); }
.footer-copy { margin-top: var(--sp-3); font-size: 12.5px; letter-spacing: .1em; }

/* ============ 响应式 ============ */

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero { padding-top: 140px; }
  .hero-char { opacity: .5; right: -10vw; }
  .product, .product--flip { grid-template-columns: 1fr; }
  .product--flip .product-visual { order: 1; }
  .product--flip .product-body { order: 2; }
  .product-visual { max-width: 520px; }
  .origin, .products, .trust { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
}

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