/* ==========================================================================
   云岭红 YUNLING · 云南滇红 三语产品页
   style.css — 全站样式（手写，无框架、无构建）
   目录：01 变量 / 02 基础与 RTL / 03 布局 / 04 导航 / 05 首屏
        06 章节 / 07 产地 / 08 三款茶 / 09 冲泡 / 10 品质 / 11 批发
        12 页脚 / 13 动效 / 14 响应式
   ========================================================================== */

/* ---------- 01 变量 ---------- */
:root {
  --cream: #f8f3e9;
  --cream-2: #f1e8d9;
  --card: #fffdf8;
  --ink: #241c16;
  --ink-2: #4e4238;
  --ink-3: #8b7b69;
  --red: #8c3a2c;
  --red-2: #a95241;
  --gold: #be9140;
  --leaf: #3f5a45;
  --line: rgba(36, 28, 22, 0.14);
  --line-2: rgba(36, 28, 22, 0.07);

  --serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --ar-serif: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", "Tahoma", serif;
  --ar-sans: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", "Tahoma", sans-serif;

  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 阿拉伯语：换字体、加大行高 */
html[lang="ar"] {
  --serif: var(--ar-serif);
  --sans: var(--ar-sans);
}

html[lang="ar"] body {
  line-height: 1.95;
}

/* 关键：阿语绝不能有字间距，否则连写会被拉开、看起来像断字 */
html[lang="ar"] * {
  letter-spacing: 0 !important;
}

/* ---------- 02 基础与 RTL ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 460px at 88% -8%, rgba(140, 58, 44, 0.08), transparent 62%),
    radial-gradient(760px 420px at 0% 6%, rgba(63, 90, 69, 0.06), transparent 60%);
  background-attachment: fixed;
}

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

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

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(140, 58, 44, 0.16);
}

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

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transition: top 0.2s;
}

.skip:focus {
  top: 14px;
}

/* ---------- 03 布局 ---------- */
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(54px, 7.5vw, 96px) 0;
}

.section--tint {
  background: linear-gradient(180deg, rgba(241, 232, 217, 0.55), rgba(241, 232, 217, 0.2));
  border-block: 1px solid var(--line-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow {
  text-transform: none;
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 3.6vw, 42px);
}

.sec-head p {
  max-width: 54ch;
  margin-top: 10px;
  color: var(--ink-2);
  font-weight: 300;
  font-size: 14.5px;
}

.sec-head__aside {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-align: end;
}

/* ---------- 04 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(248, 243, 233, 0.85);
  backdrop-filter: blur(12px) saturate(1.08);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.is-stuck {
  background: rgba(248, 243, 233, 0.96);
  border-bottom-color: var(--line-2);
  box-shadow: 0 10px 30px -26px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
}

.brand__zh {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand__en {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--ink-3);
  text-transform: uppercase;
}

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

.nav__links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--ink);
  background: rgba(36, 28, 22, 0.05);
}

.langs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
}

.langs a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-3);
  transition: 0.2s;
  white-space: nowrap;
}

.langs a:hover {
  color: var(--ink);
}

.langs a.is-active {
  background: var(--ink);
  color: #fff;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  position: relative;
}

.burger span {
  position: absolute;
  inset-inline-start: 12px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.3s;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }

.burger.is-open span:nth-child(1) { top: 22px; rotate: 45deg; }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; rotate: -45deg; }

/* ---------- 05 首屏 ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 76px));
  padding-bottom: clamp(40px, 6vw, 76px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 20px;
}

html[lang="ar"] .hero__sub {
  font-family: var(--sans);
  letter-spacing: 0;
}

.hero__lead {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.4vw, 16.5px);
  font-weight: 300;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-3);
}

.hero__facts b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  transition: 0.25s;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 32px -20px rgba(140, 58, 44, 0.8);
}

.btn--primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink-2);
  background: rgba(255, 253, 248, 0.5);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* 首屏插画 */
.hero__art {
  position: relative;
  padding: 10px;
}

.hero__art svg {
  width: 100%;
  height: auto;
}

.hero__badge {
  position: absolute;
  inset-inline-end: 0;
  bottom: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ---------- 06 产地 ---------- */
.origin {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.origin__text p {
  color: var(--ink-2);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.95;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.stat {
  padding: 16px 14px;
  border-inline-start: 2px solid var(--gold);
  background: rgba(255, 253, 248, 0.55);
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.stat span {
  font-size: 11.5px;
  color: var(--ink-3);
}

/* 工艺步骤 */
.craft {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-2);
}

.craft__step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}

.craft__step b {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--red);
  padding-top: 3px;
}

.craft__step h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.craft__step p {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-3);
}

/* ---------- 07 三款茶 ---------- */
.teas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tea {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  transition: 0.3s;
}

.tea:hover {
  transform: translateY(-3px);
  border-color: rgba(140, 58, 44, 0.35);
  box-shadow: 0 24px 48px -34px rgba(60, 35, 25, 0.6);
}

.tea__band {
  position: relative;
  height: 132px;
  background: linear-gradient(150deg, var(--c1), var(--c2) 62%, var(--c3));
  overflow: hidden;
}

.tea__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.6px, transparent 0.7px);
  background-size: 9px 9px;
  opacity: 0.5;
}

.tea__leaf {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  opacity: 0.9;
}

.tea__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
}

.tea__k {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tea h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.tea__en {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.tea p {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
}

.tea__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--ink-3);
}

/* ---------- 08 冲泡 ---------- */
.brew {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.brew__step {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.6);
}

.brew__n {
  font-family: var(--serif);
  font-size: 32px;
  color: rgba(140, 58, 44, 0.28);
  line-height: 1;
  margin-bottom: 12px;
}

.brew__step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.brew__step p {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
}

.tip {
  margin-top: 20px;
  padding: 18px 20px;
  border-inline-start: 2px solid var(--gold);
  background: rgba(255, 253, 248, 0.5);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink-2);
}

/* ---------- 09 品质 ---------- */
.quality {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.q {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.55);
}

.q__dot {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  position: relative;
}

.q__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
}

.q h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.q p {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1.8;
}

/* ---------- 10 批发 ---------- */
.wholesale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.spec-table {
  border-top: 1px solid var(--line-2);
}

.spec-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}

.spec-row dt {
  color: var(--ink-3);
  font-size: 12px;
}

.spec-row dd {
  color: var(--ink);
  font-weight: 500;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.flow span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-2);
  background: rgba(255, 253, 248, 0.6);
}

.note {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-3);
}

/* ---------- 11 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 32px;
  background: linear-gradient(180deg, transparent, rgba(241, 232, 217, 0.6));
}

.foot__grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.foot__brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.foot p {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 300;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.foot__links {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-2);
}

.foot__links a:hover {
  color: var(--red);
}

/* ---------- 12 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---------- 13 响应式 ---------- */
@media (max-width: 980px) {
  .hero__grid,
  .origin,
  .wholesale {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .teas,
  .brew {
    grid-template-columns: 1fr;
  }

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

  .nav__links {
    position: fixed;
    inset: calc(var(--nav-h) + 8px) 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(248, 243, 233, 0.98);
    box-shadow: 0 24px 60px -40px rgba(30, 22, 16, 0.6);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 12px 14px;
  }

  .burger {
    display: block;
  }

  .langs {
    margin-inline-start: auto;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

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

  .spec-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

  .brand__en {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  html {
    scroll-behavior: auto;
  }

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