/* =========================================================
   中国瑜伽网 · 康养联盟平台  —  共享样式
   设计语言：宣纸米白 / 苔玉绿 / 赭金  ·  传统身心灵康养美学
   ========================================================= */

:root {
  /* 主色 */
  --paper:      #f6f1e6;   /* 宣纸米白 */
  --paper-2:    #efe7d6;   /* 浅米 */
  --paper-3:    #e7ddc7;   /* 深米卡片 */
  --ink:        #2b2b24;   /* 墨色 */
  --ink-soft:   #5c594e;   /* 次级文字 */
  --jade:       #3a6b5c;   /* 苔玉绿 */
  --jade-deep:  #2c5246;   /* 深玉 */
  --jade-light: #5f8d7c;
  --gold:       #bd9a52;   /* 赭金 */
  --gold-soft:  #d8c089;   /* 浅金 */
  --clay:       #a8584a;   /* 陶红点缀 */
  --line:       rgba(43,43,36,0.14);
  --line-soft:  rgba(43,43,36,0.08);
  --shadow:     0 18px 48px -24px rgba(43,43,36,0.45);
  --shadow-sm:  0 8px 24px -16px rgba(43,43,36,0.40);
  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1180px;
  --serif:      "Noto Serif SC","Songti SC","STSong","SimSun",serif;
  --sans:       "Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% -10%, rgba(58,107,92,0.10), transparent 38%),
    radial-gradient(circle at 92% 4%, rgba(189,154,82,0.12), transparent 36%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--jade-deep); text-decoration: none; }
a:hover { color: var(--clay); }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.35; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.4vw, 46px); letter-spacing: .02em; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }
.serif { font-family: var(--serif); }

/* ---------- 布局容器 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,230,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--jade-light), var(--jade-deep));
  display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.1; }
.brand .name small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; color: var(--gold); font-weight: 600; }

.nav-links { display: flex; gap: 0; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links a {
  display: block; padding: 8px 10px; border-radius: 999px;
  font-size: 14px; color: var(--ink); font-weight: 500;
  white-space: nowrap; line-height: 1.4;
}
.nav-links a:hover { background: rgba(58,107,92,0.10); color: var(--jade-deep); }
.nav-links a.active { color: var(--jade-deep); background: rgba(58,107,92,0.14); }

.nav-cta { margin-left: 6px; }
.nav-cta a { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 40px; font-size: 20px; color: var(--ink); cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .25s; font-family: var(--sans);
}
.btn-primary { background: var(--jade-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--jade); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a9852f; color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--jade-deep); color: var(--jade-deep); background: transparent; }
.btn-outline:hover { background: var(--jade-deep); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  background:
    linear-gradient(180deg, rgba(246,241,230,0.2), rgba(246,241,230,0.9)),
    linear-gradient(135deg, #335f51, #2c5246 55%, #244038);
  color: #f3eee2;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40 Q20 20 40 40 T80 40' stroke='%23ffffff' stroke-opacity='0.05' fill='none' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fbf7ec; }
.hero .lead { color: #e6ddca; font-size: 18px; max-width: 36em; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.hero .badge {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 15px; border-radius: 999px; font-size: 13px; color: #f1ead9;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 山水 SVG 卡 */
.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow);
}
.hero-card svg { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- 区块标题 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-soft); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: .28s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(58,107,92,0.12); color: var(--jade-deep); margin-bottom: 16px; font-size: 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 0; }

/* 书/商品卡 */
.product {
  background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .28s; display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product .cover {
  aspect-ratio: 3/4; display: grid; place-items: center; position: relative;
  font-family: var(--serif); color: #fbf7ec; text-align: center; padding: 18px;
}
.product .cover .tag {
  position: absolute; top: 12px; left: 12px; background: rgba(43,43,36,0.55);
  color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: .05em;
}
.product .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product .body h3 { font-size: 17px; margin-bottom: 4px; }
.product .author { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.product .price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.product .price b { color: var(--clay); font-family: var(--serif); font-size: 19px; }
.product .price span { font-size: 12px; color: var(--ink-soft); }

/* 课程卡 */
.course {
  background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .28s;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course .thumb {
  aspect-ratio: 16/9; background: linear-gradient(135deg,#3a6b5c,#2c5246);
  display: grid; place-items: center; color: #fbf7ec; position: relative;
}
.course .thumb .play {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4); display: grid; place-items: center; font-size: 22px;
}
.course .body { padding: 18px; }
.course .body h3 { font-size: 18px; margin-bottom: 6px; }
.course .meta { font-size: 13px; color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 标签/分栏 ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.pill {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-2); font-size: 14px; cursor: pointer; color: var(--ink); transition: .2s;
}
.pill:hover, .pill.active { background: var(--jade-deep); color: #fff; border-color: var(--jade-deep); }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; }
.step .num {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--jade-deep); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }

/* ---------- 引用/缘起 ---------- */
.quote {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.7;
  color: var(--jade-deep); text-align: center; max-width: 20em; margin: 0 auto;
}
.quote .mark { color: var(--gold); font-size: 1.4em; }

/* ---------- 统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { font-family: var(--serif); font-size: clamp(30px,4vw,46px); color: var(--jade-deep); display: block; }
.stat span { font-size: 14px; color: var(--ink-soft); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 26px 0; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); }
.tl-item .year { font-family: var(--serif); color: var(--clay); font-weight: 600; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.table th { background: var(--jade-deep); color: #fff; font-family: var(--serif); font-weight: 500; }
.table tr:last-child td { border-bottom: none; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--jade); }
.field textarea { resize: vertical; min-height: 110px; }
.note { font-size: 13px; color: var(--ink-soft); }

/* ---------- 提示框 / 合规 ---------- */
.callout {
  background: rgba(189,154,82,0.12); border: 1px solid var(--gold-soft);
  border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 20px; margin: 18px 0;
}
.callout.warn { background: rgba(168,88,74,0.10); border-color: rgba(168,88,74,0.4); border-left-color: var(--clay); }
.callout h4 { margin: 0 0 6px; font-size: 16px; }
.callout p { margin: 0; font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, #2c5246, #244038); color: #e8e0cf;
  padding: 56px 0 28px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fbf7ec; font-size: 16px; margin-bottom: 16px; }
.footer-grid a { color: #d6cdb8; display: block; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: 14px; color: #cdc4ad; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; text-align: center; font-size: 13px; color: #b6ad95; }

/* ---------- 板块横幅 ---------- */
.banner {
  position: relative; padding: 110px 0 70px; color: #fbf7ec; overflow: hidden;
  background: linear-gradient(135deg, #335f51, #244038);
}
.banner::after { content:""; position:absolute; inset:0; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30 Q15 15 30 30 T60 30' stroke='%23ffffff' stroke-opacity='0.05' fill='none'/%3E%3C/svg%3E"); }
.banner .wrap { position: relative; z-index: 1; }
.banner h1 { color: #fbf7ec; }
.banner p { color: #e3dac6; max-width: 40em; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.crumb a { color: var(--jade-deep); }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1140px) {
  /* 导航项较多，提前收进汉堡菜单，避免文字被挤成竖排 */
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; font-size: 15px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
