/* =========================================================
   杏意堂 · 合作老师系统 —— 外宣网站样式
   风格：杏林 · 青绿（清新 / 健康 / 专业）
   ========================================================= */

:root {
  /* 配色 */
  --apricot:      #3E7C6B;   /* 主色 · 松绿 */
  --apricot-dark: #2F6154;   /* 主色 · 深（hover） */
  --apricot-soft: #A9C6BB;   /* 浅青绿 */
  --apricot-pale: #E4EEE9;   /* 极浅青绿 */
  --accent-gold:  #E9B44C;   /* 点缀 · 杏黄 */
  --cream:        #FAF6F0;   /* 米白底 */
  --paper:        #FFFFFF;   /* 卡片白 */
  --ink:          #23302B;   /* 墨青文字 */
  --ink-soft:     #55665F;   /* 次级文字 */
  --ink-faint:    #8A9A92;   /* 弱化文字 */
  --line:         #E3EDE8;   /* 分隔线 */

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans:  "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;

  /* 圆角 / 阴影 */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(46, 38, 32, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 让锚点滚动时不被吸顶导航遮挡 */
section[id], main[id] { scroll-margin-top: 88px; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- 通用文字 ---------- */
.eyebrow {
  font-family: var(--sans);
  letter-spacing: 0.2em;
  color: var(--apricot);
  font-size: 1.25rem;
  font-weight: 700;
}

.section-eyebrow {
  font-family: var(--serif);
  letter-spacing: 0.06em;
  color: var(--apricot-dark);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
}
.section-title::before,
.section-title::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: -0.15em;
}
.section-title::before {
  background-image: url("../assets/deco-cloud.svg");
  margin-right: 12px;
}
.section-title::after {
  background-image: url("../assets/deco-bamboo.svg");
  margin-left: 12px;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  text-align: center;
}

.section-tint {
  position: relative;
  background-color: var(--apricot-pale);
}
.section-tint::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 36px;
  width: 54px;
  height: 54px;
  background: url("../assets/deco-seal.svg") center / contain no-repeat;
  opacity: 0.32;
  pointer-events: none;
}
@media (max-width: 640px) {
  .section-tint::before { display: none; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--apricot);
  color: #fff;
}
.btn-primary:hover { background: var(--apricot-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--apricot); color: var(--apricot); transform: translateY(-2px); }
.btn-lg { padding: 14px 34px; font-size: 1.05rem; }
.btn-small { padding: 9px 22px; font-size: 0.92rem; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(46, 38, 32, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--apricot);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.35rem;
  border-radius: 12px;
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.brand-text {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.nav-links a:not(.btn):hover { color: var(--apricot); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 120px;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5.3vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 20px 0 24px;
  letter-spacing: 0.02em;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-gold);
}
.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 0 auto 40px;
  max-width: 640px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 首屏背景印章装饰 */
.hero-seal {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 340px; height: 340px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--apricot-soft);
  opacity: 0.2;
  border: 1px solid var(--apricot-soft);
  border-radius: 50%;
  user-select: none;
}

/* 山水装饰分隔带 */
.mountain-divider { line-height: 0; }
.mountain-divider img {
  width: 100%;
  height: 110px;
  display: block;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(62, 124, 107, 0.10), transparent 60%),
    radial-gradient(40% 40% at 85% 20%, rgba(62, 124, 107, 0.08), transparent 60%);
  pointer-events: none;
}

/* ---------- 信任背书 ---------- */
.trustbar {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 0;
}
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.trust-item strong span { color: var(--accent-gold); }
.trust-item > span { color: var(--apricot-soft); font-size: 0.92rem; }

/* ---------- 品牌故事 ---------- */
.about-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}
.about-text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.05rem; }
.about-text p:first-of-type { font-family: var(--serif); color: var(--ink); font-size: 1.12rem; }
.about-quote {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--apricot);
  text-align: left;
}
.about-quote p {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "SimKai", serif;
  font-size: 1.75rem;
  line-height: 1.6;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.about-quote cite {
  font-style: normal;
  color: var(--apricot);
  font-size: 0.95rem;
  display: block;
  text-align: right;
}

/* ---------- 卡片 ---------- */
.cards-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); }
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--apricot-pale);
  color: var(--apricot);
  border-radius: 14px;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- 流程 ---------- */
.process { margin-top: 64px; }
.process-title {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 40px;
  scroll-margin-top: 96px;
}
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-steps li {
  position: relative;
  padding: 0 20px;
}
.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  right: -12px;
  width: 24px;
  height: 1px;
  background: var(--apricot-soft);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--apricot);
  color: var(--apricot);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--cream);
  position: relative;
  z-index: 2;
}
.process-steps h4 { font-family: var(--serif); font-size: 1.08rem; margin-bottom: 6px; }
.process-steps p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- 合作意向 ---------- */
.cooperate-head {
  max-width: 640px;
  margin: 0 auto 52px;
}
.cooperate-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 760px;
  margin: 0 auto;
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.qr-frame img {
  width: 240px; height: 240px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.qr-placeholder {
  width: 240px; height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px dashed var(--apricot-soft);
  border-radius: var(--radius-sm);
  color: var(--ink-faint);
  background: var(--cream);
}
.qr-placeholder svg { width: 56px; height: 56px; color: var(--apricot-soft); }
.qr-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-top: 18px;
}
.qr-caption {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 54px 0 34px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.05rem; }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 10px; }
.footer-contact { display: flex; gap: 28px; color: var(--apricot-soft); font-size: 0.94rem; }
.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
}
.footer-icp {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin-top: 4px;
  text-decoration: none;
}
.footer-icp:hover { color: var(--apricot-soft); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .process-steps li:not(:last-child)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .cooperate-qr-grid { gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 90px 0 84px; }
  .hero-seal { width: 220px; height: 220px; font-size: 5rem; }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 20px 0 26px;
    gap: 20px;
    transform: translateY(calc(-100% - 76px));
    transition: transform .28s ease;
    box-shadow: 0 20px 30px -20px rgba(46,38,32,.3);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; }

  .trustbar-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cooperate-qr-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { flex-direction: column; gap: 8px; }
}
