/* ============================================================
   整形美容 · 全局设计系统
   色彩、排版、组件样式
   ============================================================ */

:root {
  /* --- 品牌色 --- */
  --rose:          #be6b57;
  --rose-deep:     #9f503d;
  --sage:          #315c53;

  /* --- 文字色 --- */
  --ink:           #1f1a17;
  --muted:         #6c625a;

  /* --- 背景色 --- */
  --bg:            #f7f1ea;
  --paper:         rgba(255, 252, 248, 0.82);
  --bg-dark:       #231d1b;
  --bg-warm:       #fffaf5;
  --bg-warmer:     #fff8f1;
  --bg-rose-light: #f3ece5;

  /* --- 暗色背景上的文字层次 --- */
  --cream-light:   #f8efe4;
  --cream-mid:     #d9cfc5;
  --cream-dark:    #ece1d6;
  --gold:          #f3d9b6;

  /* --- 圆角规范（三档）--- */
  --radius-sm:     1.5rem;
  --radius-md:     1.75rem;
  --radius-lg:     2rem;

  /* --- 阴影 --- */
  --shadow:        0 4px 10px rgba(31, 26, 23, 0.06), 0 18px 48px rgba(31, 26, 23, 0.09);
  --shadow-hover:  0 6px 14px rgba(31, 26, 23, 0.09), 0 24px 56px rgba(31, 26, 23, 0.15);
}

/* ============================================================
   基础重置
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(255, 246, 235, 0.9), transparent),
    radial-gradient(circle at top right, rgba(190, 107, 87, 0.12), transparent 24rem),
    radial-gradient(circle at bottom left, rgba(49, 92, 83, 0.08), transparent 22rem),
    linear-gradient(180deg, #fbf7f1 0%, #f7f1ea 48%, #f9f4ee 100%);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

/* ============================================================
   字体
   ============================================================ */
.display-font {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
               "Source Han Serif SC", "Songti SC", serif;
}

/* ============================================================
   渐变文字（Hero 关键词专用）
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--rose) 0%, var(--sage) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   全站外壳
   ============================================================ */
.site-shell {
  position: relative;
  min-height: 100vh;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.20), transparent 68%);
}

/* ============================================================
   顶部公告栏
   ============================================================ */
.announcement {
  background: rgba(49, 92, 83, 0.92);
  color: var(--bg);
  font-size: 0.8rem;
}

.announcement-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--gold);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ============================================================
   玻璃面板（Header）
   ============================================================ */
.glass-panel {
  background: var(--paper);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
}

/* ============================================================
   Header / 导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(31, 26, 23, 0.07);
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 30% 30%, #f9e7d5, transparent 35%),
    linear-gradient(135deg, var(--rose) 0%, #d69065 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 250, 245, 0.7);
}

.nav-link {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active { color: var(--ink); }

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.9rem;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--sage));
  border-radius: 9999px;
}

.mobile-panel { display: none; }
.mobile-panel.is-open { display: block; }

@media (max-width: 767px) {
  .nav-link.is-active::after { display: none; }
}

/* ============================================================
   Hero 装饰球
   ============================================================ */
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(49, 92, 83, 0.15);
  border-radius: 9999px;
}

/* ============================================================
   Eyebrow 标签
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(49, 92, 83, 0.15);
  background: rgba(255, 250, 245, 0.82);
  color: var(--sage);
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--rose), var(--sage));
  flex-shrink: 0;
}

/* ============================================================
   按钮
   ============================================================ */
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 9999px;
  padding: 1.05rem 1.5rem;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: #fff7f2;
  box-shadow: 0 12px 28px rgba(159, 80, 61, 0.22);
  border: none;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(159, 80, 61, 0.30);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(159, 80, 61, 0.20);
}

.secondary-button {
  background: rgba(255, 250, 245, 0.8);
  border: 1px solid rgba(31, 26, 23, 0.1);
  color: var(--ink);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(31, 26, 23, 0.15);
}

/* ============================================================
   文字辅助类
   ============================================================ */
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.section-kicker {
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.muted-copy { color: var(--muted); }

/* ============================================================
   卡片
   ============================================================ */
.panel-card {
  background: rgba(255, 250, 245, 0.76);
  border: 1px solid rgba(31, 26, 23, 0.08);
  box-shadow: 0 2px 6px rgba(31, 26, 23, 0.04), 0 8px 24px rgba(31, 26, 23, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.panel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.floating-stat {
  background: rgba(255, 250, 245, 0.88);
  border: 1px solid rgba(31, 26, 23, 0.08);
  box-shadow: 0 12px 32px rgba(31, 26, 23, 0.06);
}

/* ============================================================
   图标芯片
   ============================================================ */
.icon-chip {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(190, 107, 87, 0.14), rgba(49, 92, 83, 0.14));
  color: var(--rose-deep);
  font-weight: 600;
}

/* ============================================================
   边框辅助
   ============================================================ */
.soft-border { border: 1px solid rgba(31, 26, 23, 0.08); }

/* ============================================================
   Pill 标签
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 250, 245, 0.72);
  border: 1px solid rgba(31, 26, 23, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ============================================================
   页面 Hero 区域
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -5rem -4rem;
  width: 14rem;
  height: 14rem;
  border-radius: 9999px;
  background: rgba(49, 92, 83, 0.07);
  pointer-events: none;
}

/* ============================================================
   微信联系组件
   ============================================================ */
.wechat-contact {
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: var(--cream-light);
  overflow: hidden;
}

.wechat-qr-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.wechat-qr-image {
  width: 10rem;
  height: 10rem;
  border-radius: 1rem;
  background: var(--bg-warm);
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.wechat-qr-placeholder {
  width: 10rem;
  height: 10rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-mid);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.6;
}

.wechat-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.wechat-step-num {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  background: rgba(243, 217, 182, 0.15);
  border: 1px solid rgba(243, 217, 182, 0.25);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ============================================================
   比较表格
   ============================================================ */
.comparison-table {
  border-collapse: collapse;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  padding: 1rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   文章内容
   ============================================================ */
.article-body {
  color: var(--muted);
}

.article-body h2 {
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-body p {
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* ============================================================
   即将推出标签
   ============================================================ */
.tag-coming-soon {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.28rem 0.65rem;
  background: rgba(49, 92, 83, 0.08);
  border: 1px solid rgba(49, 92, 83, 0.15);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============================================================
   Footer
   ============================================================ */
.footer-note { color: rgba(247, 241, 234, 0.68); }

.site-footer {
  background: var(--bg-dark);
  color: var(--cream-light);
}
