/* =========================================================
   XX茶厂 · 站点样式
   零依赖：系统字体 + CSS 渐变 + 内联 SVG
   占位内容统一用 <span class="ph"> 标记，换成真实文字即可
   ========================================================= */

:root {
  --ink: #16241f;
  --green: #2f4f43;
  --green-deep: #1e352c;
  --clay: #a8612e;
  --clay-soft: #c99264;
  --paper: #f8f5ee;
  --paper-2: #efe9db;
  --muted: #5b6b62;
  --line: rgba(22, 36, 31, 0.13);
  --shadow: 0 18px 40px -28px rgba(22, 36, 31, 0.55);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --wrap: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

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

img,
svg {
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* 占位符：换成真实文字后可以删掉这个 span */
.ph {
  color: var(--clay);
  border-bottom: 1px dotted rgba(168, 97, 46, 0.32);
}

/* ===================== 页头 ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* 实底：滚动时下方内容不会透上来，也避免毛玻璃在部分渲染器上出糊斑 */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1.6;
}

.nav {
  display: flex;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14.5px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--green-deep);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--paper-2);
}

.nav a[aria-current="page"] {
  background: var(--green);
  color: var(--paper);
}

/* ===================== 按钮 ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(47, 79, 67, 0.35);
  color: var(--green-deep);
}

.btn-ghost:hover {
  background: rgba(47, 79, 67, 0.07);
}

/* ===================== 首屏 ===================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #eef1e8 0%, #f8f5ee 64%);
}

.hero-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 52% at 50% 10%, rgba(255, 255, 255, 0.96), transparent 70%),
    radial-gradient(42% 42% at 84% 32%, rgba(200, 213, 198, 0.55), transparent 72%),
    radial-gradient(36% 40% at 12% 40%, rgba(214, 221, 206, 0.6), transparent 72%);
}

.hero-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
  min-height: 260px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 72px;
  padding-bottom: 130px;
  text-align: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--clay);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.2;
  letter-spacing: 0.07em;
}

.lede {
  text-wrap: balance;
  margin: 26px auto 0;
  max-width: 32em;
  color: #3d4e46;
  font-size: clamp(15px, 1.6vw, 17.5px);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== 内页页头 ===================== */

.page-head {
  padding: clamp(46px, 7vw, 84px) 0 clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f1f3ea, #f8f5ee);
}

.page-head h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: 0.07em;
}

.page-head p {
  text-wrap: balance;
  margin-top: 16px;
  max-width: 40em;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
}

/* ===================== 区块 ===================== */

.section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section--paper {
  background: var(--paper-2);
}

.section--ink {
  background: var(--green-deep);
  color: var(--paper);
}

/* 页尾 CTA：上下留白收紧，避免卡片浮在空白里 */
.section--tight {
  padding: clamp(20px, 2.6vw, 34px) 0 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(25px, 3.6vw, 36px);
  letter-spacing: 0.05em;
}

.section-head p {
  text-wrap: pretty;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.85;
}

.section--ink .section-head p {
  color: rgba(248, 245, 238, 0.66);
}

/* ===================== 茶品卡片 ===================== */

.tea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.tea-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.6vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tea-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 79, 67, 0.1), transparent 68%);
  pointer-events: none;
}

.tea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -30px rgba(22, 36, 31, 0.6);
}

.rank {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--clay);
}

.tea-card h3 {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: 0.1em;
}

.tea-card .desc {
  margin-top: 14px;
  color: #40514a;
  font-size: 15.5px;
}

.tea-card .spec {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.8;
}

.spec dt {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.spec dd {
  margin: 0;
}

/* ===================== 卖点 ===================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 56px);
}

.feature {
  padding-top: 22px;
  border-top: 2px solid var(--clay-soft);
}

.feature h3 {
  font-size: 19px;
  letter-spacing: 0.07em;
}

.feature p {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ===================== 引言 ===================== */

.quote {
  text-wrap: balance;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  max-width: 30em;
  font-size: clamp(17px, 2.7vw, 26px);
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.quote footer {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(248, 245, 238, 0.72);
}

/* ===================== 产品详情 ===================== */

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(38px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.product:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.product h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: 0.1em;
}

.product .sub {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--clay);
}

.product .body {
  text-wrap: pretty;
  margin-top: 20px;
  color: #3f514a;
  font-size: 16px;
}

.product .body p + p {
  margin-top: 14px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.panel h3 {
  font-size: 16px;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.ticks {
  list-style: none;
  display: grid;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.75;
}

.ticks li {
  position: relative;
  padding-left: 22px;
  color: #3f514a;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay-soft);
}

/* ===================== 工艺步骤 ===================== */

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
  list-style: none;
}

.flow li {
  position: relative;
  padding-top: 36px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.flow li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--clay-soft);
  line-height: 1.2;
}

.flow strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.section--ink .flow strong {
  color: var(--paper);
}

.section--ink .flow li {
  color: rgba(248, 245, 238, 0.62);
}

.section--ink .flow li::before {
  color: rgba(201, 146, 100, 0.85);
}

/* ===================== 联系方式 ===================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.contact-card .label {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.contact-card .value {
  margin-top: 12px;
  font-size: clamp(19px, 2.5vw, 24px);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.contact-card .note {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ===================== 行动条 ===================== */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: clamp(28px, 5vw, 52px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.cta-band h2 {
  font-size: clamp(21px, 2.8vw, 28px);
  letter-spacing: 0.06em;
}

.cta-band p {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

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

.site-footer {
  margin-top: clamp(40px, 7vw, 80px);
  background: var(--green-deep);
  color: rgba(248, 245, 238, 0.76);
  padding: clamp(44px, 6vw, 72px) 0 34px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(248, 245, 238, 0.14);
}

.site-footer h4 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(248, 245, 238, 0.58);
}

/* ===================== 滚动出现 ===================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 900px) {
  .tea-grid,
  .feature-grid,
  .contact-grid,
  .product {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-inner {
    padding-top: 56px;
    padding-bottom: 110px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.82;
  }

  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .nav {
    flex-shrink: 0;
    gap: 0;
    font-size: 13px;
  }

  /* 不允许换行，否则中文会被挤成竖排 */
  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 9px;
    white-space: nowrap;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
    border-radius: 9px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .hero {
    min-height: 0;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
