/* ============================================================
   农家小院大茶山 · 设计系统基底
   东方轻奢 / 自然秘境 / 极简禅意
   ============================================================ */

:root {
  /* 色彩 */
  --paper: #f9f8f6;
  /* 宣纸白 · 主背景 */
  --paper-warm: #fdfcfb;
  /* 暖白 · 次背景 */
  --ink: #1a3c34;
  /* 墨绿 · 主品牌色 */
  --ink-deep: #122b25;
  /* 深墨 · 页脚/遮罩 */
  --gold: #c8a97e;
  /* 茶汤金褐 · 点缀 */
  --gold-deep: #b08d5f;
  /* 深金 · 交互态 */
  --text: #2c2c2c;
  /* 深炭灰 · 正文 */
  --text-sub: #7a7a7a;
  /* 浅灰 · 辅助说明 */
  --line: #e5e1da;
  /* 极浅分隔线 */
  --danger: #a85b52;
  /* 朱砂 · 危险操作 */

  /* 字体 */
  --font-serif:
    "Noto Serif SC", "Songti SC", "STSong", "STZhongsong", "SimSun", serif;
  --font-sans:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", sans-serif;

  /* 间距与节奏 */
  --container: 1280px;
  --section-gap: clamp(90px, 12vw, 160px);
  --ease-zen: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(200, 169, 126, 0.28);
  color: var(--ink-deep);
}

/* 细滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: #cfc9bf;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---------- 布局 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.section {
  padding: var(--section-gap) 0;
}

/* ---------- 通用标题排版 ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.eyebrow.is-center {
  justify-content: center;
}

.eyebrow.is-center::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.section-desc {
  margin-top: 20px;
  color: var(--text-sub);
  font-size: 15px;
  
}

/* ---------- 按钮 ---------- */
.btn-zen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 44px;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: all 0.5s var(--ease-zen);
  position: relative;
  overflow: hidden;
}

.btn-zen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-zen);
  z-index: 0;
}

.btn-zen:hover::before {
  transform: scaleX(1);
}

.btn-zen span,
.btn-zen i {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.btn-zen:hover {
  color: var(--paper);
}

.btn-zen.is-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-zen.is-solid::before {
  background: var(--gold-deep);
}

.btn-zen.is-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-zen.is-gold::before {
  background: var(--gold);
}

.btn-zen.is-gold:hover {
  color: var(--ink-deep);
}

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1s var(--ease-zen),
    transform 1s var(--ease-zen);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(20px, 4vw, 40px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(26, 60, 52, 0.28);
  background: rgba(253, 252, 251, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.45s var(--ease-zen);
}

.back-to-top svg {
  width: 14px;
  height: 14px;
}

.back-to-top em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  transform: scale(0.9);
}

.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- 空状态 ---------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(70px, 10vw, 130px) 20px;
  color: var(--text-sub);
}

.empty-state .zh {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin-bottom: 12px;
}

.empty-state .en {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

/* ---------- 产品卡片（跨页复用） ---------- */
.tea-card {
  position: relative;
  cursor: pointer;
  background: transparent;
}

.tea-card .card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #edeae4;
}

.tea-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-zen);
}

.tea-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 43, 37, 0.46) 0%,
    rgba(18, 43, 37, 0) 46%
  );
  opacity: 0;
  transition: opacity 0.8s var(--ease-zen);
}

.tea-card .card-cta {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  color: #f5f1e8;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.7s var(--ease-zen);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tea-card .card-cta::before,
.tea-card .card-cta::after {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(245, 245, 245, 0.7);
}

.tea-card:hover .card-media img {
  transform: scale(1.07);
}

.tea-card:hover .card-media::after {
  opacity: 1;
}

.tea-card:hover .card-cta {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tea-card .card-body {
  padding: 22px 4px 30px;
  position: relative;
}

.tea-card .card-body::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-zen);
}

.tea-card:hover .card-body::after {
  transform: scaleX(1);
}

.tea-card .card-cat {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.tea-card .card-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tea-card .card-tag {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tea-card .card-foot {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tea-card .card-price {
  font-family: var(--font-serif);
  color: var(--gold-deep);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.tea-card .card-price i {
  font-style: normal;
  font-size: 13px;
  margin-right: 2px;
}

.tea-card .card-spec {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
}

/* 卡片进入动画 */
.tea-card.card-enter {
  animation: cardIn 0.9s var(--ease-zen) both;
  animation-delay: var(--d, 0s);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .btn-zen {
    padding: 14px 32px;
    letter-spacing: 0.24em;
  }

  .tea-card .card-name {
    font-size: 17px;
  }
}
