/* ============================================================
   吃茶官网 · 基础样式（首页与入驻页共用）
   组织：字体 → 变量 → 重置 → 按钮 → 导航 → 首屏骨架 →
        下滑提示 → 动画 → 滚动显现 → 装裱相框 → 手机界面示意 →
        下划线入口 → 页脚 → 响应式 → 动效降级
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: 'CrimsonPro';
  src: url('../assets/fonts/CrimsonPro-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'CrimsonPro';
  src: url('../assets/fonts/CrimsonPro-Bold.ttf') format('truetype');
  font-weight: 700;
}

/* ---------- 设计变量 ---------- */
:root {
  --bg: #faf9f5;          /* 宣纸 */
  --bg2: #f4f2ea;         /* 深一度宣纸 */
  --ink: #22201b;         /* 正文墨色 */
  --deep: #1a2e24;        /* 墨绿幕 */
  --deep2: #16241c;       /* 页脚墨绿 */
  --deep-ink: #e9e5da;    /* 深幕文字 */
  --deep-muted: #93a395;  /* 深幕次级 */
  --muted: #75705f;       /* 次级文字 */
  --faint: #a29c8b;       /* 弱注释 */
  --rule: #e3dfd2;        /* 分隔线 */
  --accent: #3e7c5b;      /* 茶绿 */
  --accent-d: #356b4f;    /* 茶绿深 */
  --accent2: #b5853e;     /* 琥珀金 */
  --serif: 'CrimsonPro', 'Songti SC', 'STSong', 'Noto Serif SC', serif;
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 重置与基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; }
ul { list-style: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 64px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; font-size: 13.5px; letter-spacing: 0.08em; padding: 9px 22px; border-radius: 999px; transition: all .24s var(--ease); cursor: pointer; }
.btn-solid { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-solid:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn-ghost { border: 1px solid rgba(34,32,27,0.34); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid rgba(233,229,218,0.16);
  transition: background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo { display: flex; align-items: baseline; gap: 12px; color: var(--deep-ink); transition: color .45s; }
.logo b { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: 0.18em; }
.logo span { font-size: 10.5px; letter-spacing: 0.42em; opacity: 0.66; font-weight: 600; }

.nav-links { display: flex; gap: 34px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.nav-links a { font-size: 14.5px; letter-spacing: 0.3em; color: var(--ink); position: relative; padding: 2px 0; }
.nav-links a i { font-style: normal; font-family: var(--serif); font-weight: 700; margin-right: 5px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: var(--accent2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; gap: 12px; align-items: center; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }

.nav.is-scrolled {
  background: rgba(250,249,245,0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 30px -18px rgba(26,46,36,0.25);
}
.nav.is-scrolled .logo { color: var(--ink); }
.nav.is-scrolled .nav-links,
.nav.is-scrolled .nav-cta { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 首屏骨架（尺寸与内容布局由各页样式定义） ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); }
.hero-media { position: absolute; inset: -6%; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; }

/* ---------- 下滑提示 ---------- */
.scroll-hint {
  position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  font-size: 11px; letter-spacing: 0.34em; color: rgba(233,229,218,0.66); white-space: nowrap;
}
.scroll-hint .line {
  width: 1px; height: 42px; margin-top: 12px;
  background: linear-gradient(180deg, rgba(233,229,218,0), rgba(233,229,218,0.7));
  transform-origin: top; animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scaleY(0.22); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.22); opacity: 0.35; }
}

/* ---------- 通用入场动画 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 滚动显现 ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- 装裱相框 ---------- */
.frame {
  background: rgba(253,252,248,0.9);
  border: 1px solid var(--rule);
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 6px;
  box-shadow: 0 30px 70px -26px rgba(26,46,36,0.28);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.frame:hover { transform: translateY(-5px); box-shadow: 0 40px 88px -26px rgba(26,46,36,0.36); }
.frame-cap { margin-top: 16px; text-align: center; font-size: 11.5px; letter-spacing: 0.18em; color: var(--faint); }

/* ---------- 手机界面示意（两页共用件，按吃茶 App 真实界面还原） ---------- */
/* App 真实视觉：主色 #007AFF · 卡片白底圆角 10 · 文字 #000/#666/#999 · 分割线 #EEEEEE */
.phone {
  width: 272px; aspect-ratio: 9 / 19; background: #26241f;
  border-radius: 44px; padding: 10px; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.screen {
  position: relative; height: 100%; background: #fff; border-radius: 35px; overflow: hidden; display: flex; flex-direction: column;
  /* App 界面图标（SVG 蒙版，颜色由 background 决定） */
  --ic-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  --ic-scan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h5v2H5.5v3.5h-2V3zm11 0h5v5.5h-2V5h-3V3zM3.5 15.5h2V19H9v2H3.5v-5.5zM18 15.5h2V21h-5.5v-2h3.5v-3.5zM7 11h10v2H7v-2z'/%3E%3C/svg%3E");
  --ic-sms: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 14H5.17L4 17.17V4h16v12z'/%3E%3C/svg%3E");
  --ic-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5.69 7 10.19V18h3v-5h4v5h3v-7.81l-5-4.5M12 3 2 10h3v10h6v-6h2v6h6V10h3L12 3z'/%3E%3C/svg%3E");
  --ic-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5v14H5V5h14m0-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-2 12H7v-2h10v2zm0-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
  --ic-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3V3zm2 2v4h4V5H5zm8-2h8v8h-8V3zm2 2v4h4V5h-4zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm8-2h8v8h-8v-8zm2 2v4h4v-4h-4z'/%3E%3C/svg%3E");
  --ic-me: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6a2 2 0 1 1-2 2 2 2 0 0 1 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12a4 4 0 1 0 4 4 4 4 0 0 0-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  --ic-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12a11.82 11.82 0 0 0 22 0c-1.73-4.39-6-7.5-11-7.5zM12 17a5 5 0 1 1 5-5 5 5 0 0 1-5 5zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E");
  --ic-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3a4.5 4.5 0 0 0-3.42 1.56L12 5.81l-1.08-1.25A4.5 4.5 0 0 0 7.5 3 4.5 4.5 0 0 0 3 7.5c0 3.4 3.06 6.17 7.77 10.44L12 19.8l1.23-1.11C18.14 14.14 21 11.12 21 7.5A4.5 4.5 0 0 0 16.5 3zm-3.65 14.83-.85.77-.85-.77C7.03 14.42 4 11.73 4 7.5A3.5 3.5 0 0 1 7.5 4a3.53 3.53 0 0 1 2.85 1.4l1.65 1.92 1.65-1.92A3.53 3.53 0 0 1 16.5 4 3.5 3.5 0 0 1 20 7.5c0 4.23-3.03 6.92-7.15 10.33z'/%3E%3C/svg%3E");
  --ic-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 14H5.17L4 17.17V4h16v12z'/%3E%3C/svg%3E");
  --ic-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 2.5-2.5 2.5 2.5 0 0 1-2.5 2.5z'/%3E%3C/svg%3E");
  --ic-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.05 3.55 7.5 12l8.55 8.45 1.4-1.4L10.3 12l7.15-7.05z'/%3E%3C/svg%3E");
  --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 78px; height: 22px; background: #26241f; border-radius: 999px; z-index: 5; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 5px; font-size: 10px; font-weight: 600; color: #333; flex: none; }
.sb-r { display: flex; gap: 3px; align-items: center; }
.sb-r i { width: 3px; height: 3px; border-radius: 50%; background: #b7b2a6; display: block; }
.sb-r i:last-child { width: 14px; height: 7px; border-radius: 2px; }

/* App 顶部分类 Tab（Material 3 默认样式：选中蓝字 + 2px 圆角下划线） */
.mtabs { display: flex; align-items: stretch; flex: none; padding: 0 6px; }
.mtabs span { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; height: 30px; font-size: 10.5px; color: #666; }
.mtabs .on { color: #007AFF; font-weight: 600; }
.mtabs .on::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 2px; border-radius: 2px 2px 0 0; background: #007AFF; }
.mtabs.ink { padding: 0 10px; background: #fff; border-bottom: 1px solid #EEEEEE; }
.mtabs.ink .on { color: #000; }

.bar { display: block; height: 7px; border-radius: 4px; background: #E8E8E8; }
.bar.w90 { width: 90%; } .bar.w75 { width: 75%; } .bar.w60 { width: 60%; }
.bar.w50 { width: 50%; } .bar.w40 { width: 40%; }

.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #8fa3b5, #5d7488); flex: none; }
.avatar.gold { background: linear-gradient(135deg, #c79a4b, #8a6a3a); }
.img { background-size: cover; background-position: center; border-radius: 10px; }

/* App 标签：茶品特征（琥珀）/ 认证（茶绿）/ VIP（企业金） */
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { display: inline-block; font-size: 8px; line-height: 1.7; padding: 0 6px; border-radius: 4px; background: rgba(239,167,25,0.12); color: #EFA719; }
.chip.v { background: rgba(143,188,90,0.1); color: #8FBC5A; }
.chip.gold { background: rgba(255,204,0,0.15); color: #FFCC00; font-weight: 600; }

/* 企业徽章「企」与主体核验标识（信息流/企业主页共用） */
.ebadge { font-style: normal; width: 11px; height: 14px; border-radius: 2px; background: #007AFF; color: #fff; font-size: 7.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.vbadge { font-style: normal; height: 14px; padding: 0 4px; border-radius: 3px; background: rgba(187,222,251,0.45); color: #007AFF; font-size: 7px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; flex: none; white-space: nowrap; }
.vbadge::before { content: ""; width: 7px; height: 7px; flex: none; background: #007AFF; -webkit-mask: var(--ic-check) center/contain no-repeat; mask: var(--ic-check) center/contain no-repeat; }

/* 企业主页示意：封面 → 白色头部 → 信息行 → tab → 商品网格 */
/* 封面为 SliverAppBar 背景（160.h），左上返回键，头部白卡不与封面重叠 */
.cp-cover { height: 110px; border-radius: 0; flex: none; position: relative; }
.cp-back { position: absolute; top: 10px; left: 11px; width: 13px; height: 13px; background: #000; -webkit-mask: var(--ic-back) center/contain no-repeat; mask: var(--ic-back) center/contain no-repeat; }
.cp-body { flex: 1; overflow: hidden; background: #fff; padding: 9px 12px 0; display: flex; flex-direction: column; }
.cp-head { display: flex; align-items: center; gap: 8px; }
.cp-logo { width: 38px; height: 38px; border-radius: 50%; flex: none; background-color: #D9D9D9; }
.cp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cp-nm { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #000; min-width: 0; white-space: nowrap; }
.cp-loc { display: flex; align-items: center; gap: 2px; font-size: 8px; color: #999; }
.cp-loc::before { content: ""; width: 8px; height: 8px; flex: none; background: #999; -webkit-mask: var(--ic-pin) center/contain no-repeat; mask: var(--ic-pin) center/contain no-repeat; }
.cp-btn { flex: none; font-size: 9px; font-weight: 500; color: #fff; background: #007AFF; border-radius: 999px; padding: 4px 12px; }
.cp-intro { margin-top: 8px; font-size: 9px; line-height: 1.6; color: #666; white-space: nowrap; overflow: hidden; }
.cp-intro b { font-weight: 400; color: #000; }
.cp-intro em { font-style: normal; color: #007AFF; margin-left: 4px; }
.cp-tags { display: flex; gap: 6px; margin-top: 7px; }
.cp-tags span { font-size: 8px; line-height: 1.9; padding: 0 6px; border-radius: 4px; background: rgba(187,222,251,0.5); color: #007AFF; }
.cp-stats { display: flex; padding: 10px 0 9px; }
.cp-stats > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cp-stats b { font-size: 11px; font-weight: 500; color: #000; line-height: 1.2; }
.cp-stats span { font-size: 8.5px; color: #666; }
.cp-ir { display: flex; align-items: center; gap: 5px; padding: 8px 0; border-top: 1px solid #EEEEEE; font-size: 9px; }
.cp-ir span { color: #666; flex: none; }
.cp-ir em { font-style: normal; color: #000; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-ir .cp-n { color: #666; flex: none; font-style: normal; }
.cp-ir::after { content: "›"; color: #999; font-size: 11px; flex: none; margin-left: 2px; }
.cp-goods { flex: none; background: #FAFAFA; padding: 9px 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.good { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.good .img { width: 100%; height: 88px; border-radius: 8px; }
.good span { font-size: 9px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 下划线文字入口（配色由各页样式定义） ---------- */
.clink { position: relative; font-size: 15px; letter-spacing: 0.12em; padding: 4px 2px 9px; cursor: pointer; background: none; border: none; font-family: var(--sans); }
.clink::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; }
.clink::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.clink:hover::after { transform: scaleX(1); }
.clink small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }

/* ---------- 页脚 ---------- */
.footer { background: var(--deep2); color: var(--deep-ink); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 76px 64px 54px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.f-logo { display: flex; align-items: baseline; gap: 12px; }
.f-logo b { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 0.18em; }
.f-logo span { font-size: 10px; letter-spacing: 0.42em; color: var(--deep-muted); font-weight: 600; }
.f-brand p { margin-top: 18px; font-size: 13.5px; line-height: 2; color: var(--deep-muted); max-width: 24em; }
.f-col h5 { font-size: 12px; letter-spacing: 0.3em; color: var(--deep-muted); font-weight: 600; margin-bottom: 18px; }
.f-col a { display: block; font-size: 14px; color: #cfd6cc; padding: 5px 0; transition: color .24s; }
.f-col a:hover { color: #fff; }
.f-col a.cur { color: #fff; }
.f-bottom {
  max-width: 1200px; margin: 0 auto; padding: 22px 64px 30px;
  border-top: 1px solid rgba(233,229,218,0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.06em; color: var(--deep-muted);
}

/* ---------- 响应式（共用部分） ---------- */
@media (max-width: 900px) {
  .wrap, .nav-inner { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn { padding: 8px 16px; font-size: 12.5px; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 56px 24px 40px; gap: 36px; }
  .f-brand { grid-column: 1 / -1; }
  .f-bottom { padding: 20px 24px 26px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .nav-links, .nav-cta { opacity: 1; pointer-events: auto; transform: none; }
}
