/* 守正心学世界 · 站点样式 */
:root {
  --paper: #f7f3e9;
  --paper-deep: #efe7d6;
  --paper-card: #fbf8f1;
  --ink: #2b2823;
  --ink-soft: #6b6457;
  --ink-faint: #9a917f;
  --seal: #9e2f25;
  --seal-dark: #82261e;
  --gold: #a7874a;
  --line: rgba(43, 40, 35, .13);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --shadow: 0 16px 45px rgba(60, 46, 24, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(167, 135, 74, .055) 0, transparent 28%),
    radial-gradient(circle at 88% 62%, rgba(158, 47, 37, .035) 0, transparent 26%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }

/* 顶栏 */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 243, 233, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(60, 46, 24, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--seal); color: #fff;
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  letter-spacing: 1px; line-height: 1.05; text-align: center;
  border-radius: 3px; writing-mode: vertical-rl;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.16);
}
.brand-seal.small { width: 36px; height: 36px; font-size: 13px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; }
.brand-text small { font-size: 9px; letter-spacing: 2.2px; color: var(--ink-faint); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a { font-size: 14px; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color .25s; }
.site-nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--seal); transition: right .3s ease;
}
.site-nav > a:hover { color: var(--seal); }
.site-nav > a:hover::after { right: 0; }
.site-nav .nav-cta {
  padding: 8px 18px; border: 1px solid var(--seal); color: var(--seal);
  border-radius: 2px; transition: background .25s, color .25s;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--seal); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* 首页 */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 130px 0 100px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; border: 1px solid rgba(167, 135, 74, .18);
  border-radius: 50%; right: -170px; top: 8%;
}
.hero::after {
  width: 320px; height: 320px; border: 1px solid rgba(158, 47, 37, .12);
  border-radius: 50%; right: 10px; top: 22%;
}
.hero-watermark {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: clamp(320px, 42vw, 620px);
  color: rgba(158, 47, 37, .035); line-height: .8; user-select: none; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow { color: var(--seal); font-size: 13px; letter-spacing: 4px; margin: 0 0 26px; }
.hero-title {
  font-family: var(--serif); font-weight: 600; margin: 0;
  font-size: clamp(52px, 8.5vw, 108px); line-height: 1.18; letter-spacing: 8px;
}
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--seal); font-size: .72em; letter-spacing: 12px; margin-top: 6px; }
.hero-rule { display: flex; align-items: center; gap: 14px; margin: 34px 0 26px; max-width: 460px; }
.hero-rule i { height: 1px; background: var(--line); flex: 1; }
.hero-rule b { color: var(--gold); font-size: 10px; font-weight: 400; }
.hero-lead { font-family: var(--serif); font-size: clamp(16px, 1.7vw, 20px); color: var(--ink-soft); line-height: 2.1; margin: 0 0 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 30px; font-size: 14px; letter-spacing: 2px;
  border-radius: 2px; transition: .3s;
}
.btn-primary { background: var(--seal); color: #fff; border: 1px solid var(--seal); }
.btn-primary:hover { background: var(--seal-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(158,47,37,.2); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 4px; color: var(--ink-faint); z-index: 2;
}
.scroll-hint i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--ink-faint), transparent); }

/* 通用区块 */
.section { padding: 108px 0; position: relative; }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head-left { text-align: left; }
.sec-index { font-size: 12px; color: var(--seal); letter-spacing: 4px; }
.sec-head h2, .contact-copy h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: 5px; margin: 14px 0 8px; line-height: 1.4;
}
.sec-sub { font-size: 10px; letter-spacing: 4px; color: var(--ink-faint); margin: 0; }
.section-intro { max-width: 720px; margin: -18px auto 48px; text-align: center; color: var(--ink-soft); }
.footnote { font-size: 12px; color: var(--ink-faint); text-align: center; margin: 34px 0 0; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--seal); font-size: 14px; border-bottom: 1px solid rgba(158,47,37,.35); padding-bottom: 3px; }
.text-link:hover { border-color: var(--seal); }
.text-link span { transition: transform .25s; }
.text-link:hover span { transform: translateX(4px); }

/* 关于 */
.section-about { background: var(--paper-card); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.about-copy p { color: var(--ink-soft); margin: 0 0 18px; }
.about-copy .lead-p { font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.9; margin-bottom: 22px; }
.about-copy .text-link { margin-top: 10px; }
.about-cards { display: flex; flex-direction: column; gap: 14px; }
.pillar {
  display: flex; gap: 22px; align-items: flex-start; padding: 24px 28px;
  background: var(--paper); border: 1px solid var(--line); border-left: 2px solid var(--gold);
  transition: transform .3s, box-shadow .3s;
}
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.pillar-num { font-family: var(--serif); font-size: 28px; color: var(--seal); opacity: .55; line-height: 1; }
.pillar h3 { font-family: var(--serif); font-size: 17px; letter-spacing: 2px; margin: 0 0 6px; }
.pillar p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.75; }

/* 心学要义 */
.essence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.essence-card {
  background: var(--paper-card); border: 1px solid var(--line); padding: 34px 36px 30px;
  position: relative; overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s;
}
.essence-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--seal); transition: width .4s;
}
.essence-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(167,135,74,.35); }
.essence-card:hover::before { width: 100%; }
.essence-top { display: flex; justify-content: space-between; align-items: center; }
.essence-no { font-family: var(--serif); font-size: 22px; color: var(--gold); }
.essence-tag { font-size: 11px; color: var(--ink-faint); letter-spacing: 2px; border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px; }
.essence-card h3 { font-family: var(--serif); font-size: 26px; letter-spacing: 3px; margin: 16px 0 16px; }
.essence-card h3 small { font-size: 11px; color: var(--ink-faint); letter-spacing: 0; font-weight: 400; margin-left: 8px; }
.essence-card blockquote {
  margin: 0 0 16px; padding: 14px 18px; background: rgba(167,135,74,.07);
  font-family: var(--serif); font-size: 16px; line-height: 1.9; color: var(--seal-dark);
  border-left: 2px solid rgba(158,47,37,.4);
}
.essence-card > p:not(.source) { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.essence-card .source { font-size: 11px; color: var(--ink-faint); margin: 0; border-top: 1px dashed var(--line); padding-top: 12px; }

/* 经典选读 */
.section-classics { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.classic-box { background: var(--paper-card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.classic-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.classic-tab {
  flex: 1; min-width: 160px; padding: 20px 12px; background: none; border: 0;
  border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px;
  letter-spacing: 2px; color: var(--ink-soft); white-space: nowrap; transition: .25s;
}
.classic-tab:hover { color: var(--seal); background: rgba(158,47,37,.025); }
.classic-tab.active { color: var(--seal); border-bottom-color: var(--seal); font-weight: 600; }
.classic-panel { padding: 46px clamp(24px, 6vw, 76px) 52px; animation: fadeIn .4s ease; }
.classic-panel[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.classic-panel .orig {
  font-family: var(--serif); font-size: clamp(21px, 2.8vw, 30px); line-height: 1.8;
  color: var(--ink); margin: 0 0 22px; letter-spacing: 2px;
}
.classic-meta { font-size: 12px; color: var(--ink-faint); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.classic-meta span { color: var(--seal); margin-right: 8px; letter-spacing: 2px; }
.classic-body { display: grid; grid-template-columns: 90px 1fr; column-gap: 24px; row-gap: 2px; padding-top: 24px; }
.classic-body h4 { font-family: var(--serif); font-size: 14px; color: var(--seal); letter-spacing: 2px; margin: 0; padding-top: 4px; }
.classic-body p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }

/* 修学脉络 */
.timeline { position: relative; max-width: 840px; margin: 0 auto; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 128px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 46px; position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--serif); font-size: 17px; color: var(--seal); text-align: right; padding-top: 2px; letter-spacing: 1px; }
.tl-content { position: relative; padding-left: 28px; }
.tl-content::before {
  content: ""; position: absolute; left: -5px; top: 11px; width: 11px; height: 11px;
  background: var(--paper); border: 2px solid var(--seal); border-radius: 50%;
}
.tl-content h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 2px; margin: 0 0 6px; }
.tl-content p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* 活动 */
.section-activities { background: var(--paper-card); border-top: 1px solid var(--line); }
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.act-card {
  background: var(--paper); border: 1px solid var(--line); padding: 38px 30px 30px;
  position: relative; transition: transform .3s, box-shadow .3s;
}
.act-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.act-mark {
  display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--seal);
  color: var(--seal); font-family: var(--serif); font-size: 24px; margin-bottom: 22px; border-radius: 50%;
}
.act-card h3 { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; margin: 0 0 10px; }
.act-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 24px; min-height: 72px; }
.act-status { font-size: 11px; letter-spacing: 2px; color: var(--gold); border-top: 1px solid var(--line); padding-top: 14px; display: block; }

/* 联系 */
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.contact-copy > p { color: var(--ink-soft); margin: 0 0 26px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-row { display: flex; border-bottom: 1px solid var(--line); padding: 14px 0; }
.ct-label { width: 72px; color: var(--seal); font-family: var(--serif); letter-spacing: 2px; }
.ct-value { color: var(--ink); font-size: 14px; }
.ct-value.placeholder { color: var(--ink-faint); font-style: italic; }
.contact-aside { display: flex; justify-content: center; }
.quote-frame {
  position: relative; width: 100%; max-width: 380px; padding: 56px 44px 44px;
  background: var(--paper-card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.quote-frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(167,135,74,.25); pointer-events: none; }
.quote-mark { position: absolute; top: 10px; left: 26px; font-family: var(--serif); font-size: 56px; color: rgba(158,47,37,.2); }
.quote-frame p { font-family: var(--serif); font-size: 24px; letter-spacing: 4px; line-height: 1.8; margin: 0 0 18px; color: var(--ink); }
.quote-src { font-size: 12px; color: var(--ink-faint); }

/* 页脚 */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: var(--serif); color: #fff; font-size: 17px; letter-spacing: 2px; }
.footer-brand p { margin: 2px 0 0; font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.45); }
.footer-meta { text-align: right; font-size: 12px; line-height: 1.9; }
.footer-meta p { margin: 0; }

/* 回到顶部 */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper-card); color: var(--seal); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
  box-shadow: var(--shadow); font-size: 18px;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--seal); color: #fff; }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero-eyebrow.reveal { transition-delay: .05s; }
.hero-title.reveal { transition-delay: .15s; }
.hero-rule.reveal { transition-delay: .25s; }
.hero-lead.reveal { transition-delay: .35s; }
.hero-actions.reveal { transition-delay: .45s; }

/* 响应式 */
@media (max-width: 980px) {
  .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .essence-grid, .act-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 104px; }
  .tl-item { grid-template-columns: 88px 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 1140px); }
  .header-inner { height: 68px; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px; box-shadow: 0 12px 24px rgba(60,46,24,.08);
    max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s, opacity .25s, padding .3s;
  }
  .site-nav.open { max-height: 480px; opacity: 1; }
  .site-nav > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; border: 1px solid var(--seal); }
  .hero { min-height: 88vh; padding: 110px 0 90px; }
  .hero-title { letter-spacing: 4px; }
  .hero-title span:last-child { letter-spacing: 6px; }
  .hero-watermark { right: -14%; font-size: 68vw; }
  .section { padding: 76px 0; }
  .sec-head { margin-bottom: 38px; }
  .essence-grid, .act-grid { grid-template-columns: 1fr; }
  .classic-body { grid-template-columns: 1fr; row-gap: 4px; }
  .classic-body h4 { margin-top: 8px; }
  .classic-panel { padding: 30px 22px 36px; }
  .timeline::before { left: 74px; }
  .tl-item { grid-template-columns: 60px 1fr; gap: 30px; }
  .tl-year { font-size: 13px; }
  .footer-meta { text-align: left; }
  .quote-frame { padding: 48px 30px 36px; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: 16px; }
  .hero-title { font-size: 44px; }
  .pillar { padding: 20px; gap: 14px; }
  .essence-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
