/* =========================================================
   site.css — 全站全局样式（导航 / 页脚 / 落地页 / 通用）
   中国风暖色主题，与工具页 style.css 共用同一套色板
   ========================================================= */

:root {
  --paper: #f4e9d0;
  --paper-2: #fbf4e3;
  --ink: #2c241c;
  --ink-soft: #6b5d4e;
  --zhu: #9e2b25;     /* 朱红 */
  --zhe: #b5632a;     /* 赭石 */
  --gold: #bd9a4e;    /* 描金 */
  --dai: #3e5a52;     /* 黛青 */
  --border: #e2d4bc;
  --shadow: 0 6px 24px rgba(90, 60, 20, 0.10);
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "KaiTi", "STKaiti", serif;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(189, 154, 78, 0.10), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(158, 43, 37, 0.06), transparent 45%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* 极淡祥云背景纹理（全局，轻量） */
.bg-clouds {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120' viewBox='0 0 200 120'%3E%3Cg fill='none' stroke='%23bd9a4e' stroke-opacity='0.12' stroke-width='1.4'%3E%3Cpath d='M30 70c0-8 7-14 15-14s14 5 15 12c6-3 12 1 12 7s-7 11-14 11H44c-8 0-14-5-14-12z'/%3E%3Cpath d='M140 40c0-6 5-11 12-11s11 4 12 9c5-2 10 1 10 6s-6 9-12 9h-22c-7 0-12-4-12-10z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 200px;
}

main, .site-main { position: relative; z-index: 1; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 227, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .nav {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .seal {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--zhu), #7d201c);
  color: #f7e9c9; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; box-shadow: 0 2px 8px rgba(125, 32, 28, 0.35);
  font-family: "KaiTi", "STKaiti", serif;
}
.brand .brand-name { font-size: 18px; letter-spacing: 1px; color: var(--ink); }
.brand .brand-name small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 400; letter-spacing: 2px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(189, 154, 78, 0.16); color: var(--zhu); }
.nav-links a.active { color: var(--zhu); font-weight: 700; background: rgba(158, 43, 37, 0.08); }
.nav-cta {
  margin-left: 6px; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--zhu), #7d201c); color: #f7e9c9 !important;
  font-weight: 700; font-size: 14px; box-shadow: 0 3px 10px rgba(125, 32, 28, 0.30);
}
.nav-cta:hover { filter: brightness(1.06); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: 8px; width: 40px; height: 38px; cursor: pointer; color: var(--ink); font-size: 18px; }

/* ============ 落地页 Hero ============ */
.hero-section {
  text-align: center; padding: 70px 20px 46px; position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--gold);
  border-radius: 999px; color: var(--zhe); font-size: 13px; letter-spacing: 2px;
  background: rgba(189, 154, 78, 0.10); margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(30px, 5vw, 50px); margin: 0 0 12px; color: var(--ink);
  font-family: "KaiTi", "STKaiti", serif; letter-spacing: 2px; font-weight: 800;
}
.hero-title .accent { color: var(--zhu); }
.hero-sub {
  max-width: 640px; margin: 0 auto 26px; color: var(--ink-soft); font-size: 16.5px;
}
.hero-quote {
  max-width: 560px; margin: 0 auto 30px; padding: 16px 22px;
  border-left: 3px solid var(--gold); background: rgba(255,255,255,0.5);
  border-radius: 0 10px 10px 0; color: var(--ink-soft); font-style: italic; font-size: 15px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 30px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--zhu), #7d201c); color: #f7e9c9;
  font-size: 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(125, 32, 28, 0.32);
  transition: transform .15s, filter .15s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.6); border: 1px solid var(--border); color: var(--ink);
  font-size: 16px; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--gold); }

/* ============ 核心理念 ============ */
.section { padding: 44px 0; position: relative; z-index: 1; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; color: var(--ink);
  font-family: "KaiTi", "STKaiti", serif; letter-spacing: 1px;
}
.section-head .line { width: 64px; height: 3px; background: linear-gradient(90deg, var(--zhu), var(--gold)); margin: 10px auto 0; border-radius: 2px; }
.section-head p { color: var(--ink-soft); margin: 10px 0 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  background: rgba(255,255,255,0.62); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow); text-align: center;
}
.pillar .p-ico {
  width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--dai), #2c423c); color: #eaf3ef;
  display: flex; align-items: center; justify-content: center;
}
.pillar h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ============ 模块网格 ============ */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card {
  position: relative; background: rgba(255,255,255,0.66); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(90,60,20,0.16); border-color: var(--gold); }
.module-card .m-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.module-card .m-glyph {
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--zhe), #8f4a1f); color: #fbeedd;
  display: flex; align-items: center; justify-content: center;
  font-family: "KaiTi", "STKaiti", serif; font-size: 24px; font-weight: 800;
}
.module-card.live .m-glyph { background: linear-gradient(135deg, var(--zhu), #7d201c); }
.module-card .m-name { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.module-card .m-tag { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 0; }
.module-card .m-desc { font-size: 14px; color: var(--ink-soft); margin: 10px 0 14px; min-height: 60px; }
.module-card .m-foot { display: flex; align-items: center; justify-content: space-between; }
.badge {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .5px;
}
.badge.live { background: rgba(62, 90, 82, 0.14); color: var(--dai); }
.badge.soon { background: rgba(189, 154, 78, 0.16); color: var(--zhe); }
.module-card .m-go { font-size: 14px; color: var(--zhu); font-weight: 700; }
.module-card.live .m-go::after { content: " →"; }
.module-card.soon .m-go { color: var(--ink-soft); cursor: default; }

/* ============ 页脚 ============ */
.site-footer {
  position: relative; z-index: 1; margin-top: 40px;
  background: rgba(44, 36, 28, 0.94); color: #e8dcc4; padding: 36px 20px 28px;
}
.site-footer .f-inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer .f-brand .seal {
  width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--zhu), #7d201c);
  color: #f7e9c9; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
  font-family: "KaiTi","STKaiti",serif;
}
.site-footer .f-brand b { font-size: 17px; letter-spacing: 1px; }
.site-footer .f-disc { font-size: 13px; color: #c9b896; line-height: 1.9; max-width: 760px; }
.site-footer .f-bottom {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(232,220,196,0.16);
  font-size: 12.5px; color: #b09a78; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ============ 占位页（即将上线） ============ */
.workspace-hero { text-align: center; padding: 56px 20px 20px; position: relative; z-index: 1; }
.workspace-hero .w-glyph {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 18px;
  background: linear-gradient(135deg, var(--zhe), #8f4a1f); color: #fbeedd;
  display: flex; align-items: center; justify-content: center;
  font-family: "KaiTi","STKaiti",serif; font-size: 40px; font-weight: 800;
  box-shadow: var(--shadow);
}
.workspace-hero h1 { font-size: 30px; margin: 0 0 8px; font-family: "KaiTi","STKaiti",serif; letter-spacing: 1px; }
.workspace-hero .w-tag { color: var(--zhe); font-size: 15px; margin: 0 0 6px; }
.workspace-hero p { color: var(--ink-soft); max-width: 600px; margin: 0 auto; }

.coming-soon {
  max-width: 560px; margin: 30px auto 10px; background: rgba(255,255,255,0.7);
  border: 1px dashed var(--gold); border-radius: var(--radius); padding: 28px 24px; text-align: center;
  box-shadow: var(--shadow);
}
.coming-soon .cs-badge {
  display: inline-block; padding: 5px 16px; border-radius: 999px;
  background: rgba(189,154,78,0.16); color: var(--zhe); font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.coming-soon h3 { margin: 0 0 8px; color: var(--ink); font-size: 19px; }
.coming-soon p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }
.coming-soon .cs-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ 命理小课堂 ============ */
.klass-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.klass {
  background: rgba(255,255,255,0.62); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s;
}
.klass:hover { transform: translateY(-3px); border-color: var(--gold); }
.klass .k-glyph {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--dai), #2c423c); color: #eaf3ef;
  display: flex; align-items: center; justify-content: center;
  font-family: "KaiTi","STKaiti",serif; font-size: 22px; font-weight: 800;
}
.klass h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--ink); }
.klass p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ============ 常见问题 ============ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: rgba(255,255,255,0.62); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow);
}
.faq-item h3 { margin: 0 0 6px; font-size: 16px; color: var(--zhu); }
.faq-item p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.masters-grid { grid-template-columns: repeat(4, 1fr); }

/* ============ 命理哲学栏目（philosophy.html） ============ */
.phil-hero { text-align: center; padding: 62px 20px 30px; position: relative; z-index: 1; }
.phil-hero .hero-title { margin-bottom: 16px; }
.phil-hero .hero-quote { margin-top: 26px; }

.phil-intro { max-width: 760px; margin: 0 auto 8px; text-align: center; color: var(--ink-soft); font-size: 15.5px; }

.figure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.figure-card {
  background: rgba(255,255,255,0.66); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px; box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.figure-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(90,60,20,0.16); }
.fig-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.fig-glyph {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--zhe), #8f4a1f); color: #fbeedd;
  display: flex; align-items: center; justify-content: center;
  font-family: "KaiTi","STKaiti",serif; font-size: 26px; font-weight: 800;
}
.fig-meta { min-width: 0; }
.fig-meta h3 { margin: 0; font-size: 18px; color: var(--ink); font-family: "KaiTi","STKaiti",serif; letter-spacing: .5px; }
.fig-era {
  font-size: 12px; color: var(--ink-soft); background: rgba(189,154,78,0.16);
  padding: 2px 9px; border-radius: 999px; margin-left: 7px; vertical-align: middle; font-family: -apple-system, "PingFang SC", sans-serif;
}
.fig-tags { margin-top: 5px; display: flex; gap: 6px; flex-wrap: wrap; }
.fig-tag { font-size: 12px; color: var(--dai); background: rgba(62,90,82,0.12); padding: 2px 10px; border-radius: 999px; }
.fig-story { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.85; }
.fig-quote {
  margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--gold);
  background: rgba(189,154,78,0.08); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--ink); font-size: 14.5px; line-height: 1.75;
}
.fig-quote cite { display: block; margin-top: 5px; font-size: 12.5px; font-style: normal; color: var(--ink-soft); }
.fig-thought { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.8; }
.fig-thought b { color: var(--zhu); }

/* 思想脉络时间轴 */
.phil-timeline {
  max-width: 820px; margin: 0 auto; padding-left: 26px; border-left: 2px solid var(--border);
  display: grid; gap: 22px;
}
.tl-node { position: relative; }
.tl-node::before {
  content: ""; position: absolute; left: -33px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--zhu), #7d201c); box-shadow: 0 0 0 4px rgba(158,43,37,0.12);
}
.tl-node .tl-era { font-size: 13px; color: var(--zhe); font-weight: 700; letter-spacing: 1px; }
.tl-node h3 { margin: 2px 0 5px; font-size: 17px; color: var(--ink); font-family: "KaiTi","STKaiti",serif; }
.tl-node p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }

/* 哲学小结 */
.phil-reflect {
  max-width: 820px; margin: 0 auto; background: rgba(255,255,255,0.7);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 30px;
  box-shadow: var(--shadow);
}
.phil-reflect h2 { margin: 0 0 14px; font-size: 24px; color: var(--ink); font-family: "KaiTi","STKaiti",serif; letter-spacing: 1px; }
.phil-reflect p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.95; }
.phil-reflect .phil-note {
  font-size: 13px; color: var(--ink-soft); background: rgba(189,154,78,0.10);
  border-radius: 8px; padding: 12px 14px; margin: 0; line-height: 1.8;
}

/* 落地页命理哲学栏目入口 banner */
.phil-banner {
  max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
}
.phil-banner-text { flex: 1; min-width: 0; }
.phil-banner-text h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); font-family: "KaiTi","STKaiti",serif; }
.phil-banner-text p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }
.phil-banner .btn-primary { flex: none; }

/* 名人命盘栏目 */
.mr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mr-card {
  background: rgba(255,255,255,0.72); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.mr-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(90,60,20,0.16); }
.mr-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mr-glyph {
  width: 50px; height: 50px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: "KaiTi","STKaiti",serif; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, var(--zhu), #a8322a);
  box-shadow: 0 4px 12px rgba(158,43,37,0.28);
}
.mr-head .mr-meta { min-width: 0; }
.mr-head h3 { margin: 0 0 5px; font-size: 19px; color: var(--ink); font-family: "KaiTi","STKaiti",serif; }
.mr-era { font-size: 12.5px; color: var(--ink-soft); margin-left: 8px; font-family: system-ui, sans-serif; }
.mr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mr-tag { font-size: 12px; padding: 2px 9px; border-radius: 20px; background: rgba(189,154,78,0.14); color: #8a6a2f; border: 1px solid rgba(189,154,78,0.3); }
.mr-plate {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: rgba(189,154,78,0.08); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 10px; margin-bottom: 14px;
}
.mr-pillar { text-align: center; }
.mr-gz { display: block; font-family: "KaiTi","STKaiti",serif; font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.15; letter-spacing: 1px; }
.mr-pillar.mr-day .mr-gz { color: var(--zhu); }
.mr-pos { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; }
.mr-info { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 12px; }
.mr-info b { color: var(--ink); font-weight: 600; }
.mr-reading { font-size: 14.5px; color: var(--ink-soft); line-height: 1.95; margin: 0 0 12px; }
.mr-reading b { color: var(--zhu); }
.mr-source {
  font-size: 12.5px; color: var(--ink-soft); background: rgba(189,154,78,0.10);
  border-radius: 8px; padding: 9px 12px; line-height: 1.7; margin-top: auto;
}
.mr-source b { color: #8a6a2f; }
/* 可靠性声明 banner */
.mr-banner {
  max-width: 880px; margin: 0 auto 26px; background: rgba(255,255,255,0.72);
  border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
}
.mr-banner h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); font-family: "KaiTi","STKaiti",serif; }
.mr-banner p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.85; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .masters-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .masters-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .klass-grid { grid-template-columns: repeat(2, 1fr); }
  .figure-grid { grid-template-columns: 1fr; }
  .mr-grid { grid-template-columns: 1fr; }
  .phil-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; background: rgba(251,244,227,0.98); border-bottom: 1px solid var(--border);
    padding: 10px 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .module-grid { grid-template-columns: 1fr; }
  .klass-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 48px 16px 30px; }
}
