/* ============================================================
   开心读研网 官网 · 公共设计系统(子页共用)
   品牌基因: 青绿 #3d8b8b / 琥珀 #e8a54b / 奶油纸底 #fbf7f0 / 衬线标题
   ============================================================ */

/* 子集化字体(仅含全站实际用字,新增文案的生僻字会回退系统字体;
   重新生成: pyftsubset docs/introduction/fonts/*.woff2 --text-file=<全站字符集> --flavor=woff2) */
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/noto-sans-sc-sub.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/noto-serif-sc-sub.woff2') format('woff2');
}

:root {
  --teal: #3d8b8b;
  --teal-light: #5ba3a3;
  --teal-dark: #2a6b6b;
  --teal-deep: #1e4a4a;
  --amber: #e8a54b;
  --amber-light: #f5c77d;
  --amber-dark: #c78a2f;
  --cream: #fbf7f0;
  --cream-dark: #f0e8d9;
  --paper-line: #e3d9c6;
  --text: #2c3e3e;
  --text-light: #5a6b6b;
  --text-muted: #8a9a9a;
  --white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(45, 80, 80, 0.08);
  --shadow-medium: 0 10px 44px rgba(45, 80, 80, 0.13);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --w: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber-light); color: var(--teal-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 0.02em; color: var(--teal-dark); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; scroll-margin-top: 90px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* 纸纹颗粒 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 装饰:有机形 + 点阵 */
.blob { position: absolute; border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%; filter: blur(1px); z-index: 0; pointer-events: none; }
.dots {
  position: absolute; width: 150px; height: 110px; z-index: 1; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(var(--teal-light) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
}

/* 小节标 */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.85rem; letter-spacing: 0.35em; color: var(--amber-dark); font-weight: 600;
  margin-bottom: 14px; text-transform: uppercase;
}
.kicker::before { content: ""; width: 34px; height: 1.5px; background: var(--amber); }

h2.sec { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.3; margin-bottom: 10px; }
.sec-sub { color: var(--text-light); font-size: clamp(0.98rem, 1.4vw, 1.08rem); max-width: 640px; }

/* ============ 导航 ============ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--paper-line);
}
.nav { max-width: var(--w); margin: 0 auto; padding: 0 28px; height: 72px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  box-shadow: 0 4px 12px rgba(42, 107, 107, 0.3);
}
.brand-mark svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; color: var(--teal-dark); line-height: 1.1; letter-spacing: 0.06em; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 2px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.95rem; color: var(--text-light); position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--amber); transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.on { color: var(--teal-dark); }
.nav-links a:hover::after, .nav-links a.on::after { width: 100%; }
.nav-cta {
  font-size: 0.92rem; font-weight: 600; color: var(--teal-deep) !important; padding: 9px 22px !important;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  border-radius: 99px; box-shadow: 0 4px 14px rgba(199, 138, 47, 0.28); transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(199, 138, 47, 0.36); }
.burger { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--teal-dark); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ============ 按钮 ============ */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; border-radius: 14px; padding: 14px 30px; transition: transform 0.22s, box-shadow 0.22s, background 0.22s; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform 0.22s; }
.btn:hover svg { transform: translateX(4px); }
.btn-teal { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; box-shadow: 0 8px 22px rgba(42, 107, 107, 0.32); }
.btn-teal:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(42, 107, 107, 0.4); }
.btn-amber { background: var(--white); color: var(--amber-dark); border: 1.5px solid var(--amber); box-shadow: 0 4px 14px rgba(199, 138, 47, 0.14); }
.btn-amber:hover { transform: translateY(-3px); background: rgba(245, 199, 125, 0.12); }

/* ============ 子页首屏 ============ */
.page-hero { padding: 76px 0 60px; overflow: hidden; }
.page-hero .blob-a { top: -160px; right: -140px; width: 320px; height: 320px; background: rgba(91, 163, 163, 0.11); }
.page-hero .blob-b { bottom: -200px; left: -150px; width: 380px; height: 380px; background: rgba(232, 165, 75, 0.12); }
.page-hero .dots-a { top: 60px; right: 8%; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.25; max-width: 800px; }
.page-hero h1 .accent { position: relative; color: var(--teal); }
.page-hero h1 .accent::after {
  content: ""; position: absolute; left: 2%; bottom: 8%; width: 96%; height: 0.32em;
  background: linear-gradient(90deg, var(--amber-light), rgba(245, 199, 125, 0.25));
  z-index: -1; border-radius: 3px;
}
.page-hero .lead { margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--text-light); max-width: 640px; }
.page-hero .ctas { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ 信任条(深青断层) ============ */
.trust { margin: 40px 0 0; background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 100%); padding: 66px 0 60px; overflow: hidden; }
.trust .blob-t { top: -120px; right: -100px; width: 380px; height: 380px; background: rgba(232, 165, 75, 0.12); }
.trust .kicker { color: var(--amber-light); }
.trust .kicker::before { background: var(--amber-light); }
.trust h2 { color: var(--cream); }
.trust-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tru { padding: 24px 22px; border-radius: 16px; background: rgba(251, 247, 240, 0.07); border: 1px solid rgba(251, 247, 240, 0.14); transition: background 0.25s; }
.tru:hover { background: rgba(251, 247, 240, 0.12); }
.tru svg { width: 26px; height: 26px; stroke: var(--amber-light); fill: none; stroke-width: 1.9; margin-bottom: 12px; }
.tru h3 { color: var(--cream); font-size: 1.05rem; margin-bottom: 6px; }
.tru p { color: rgba(251, 247, 240, 0.72); font-size: 0.86rem; line-height: 1.6; }

/* ============ 联系 CTA ============ */
.contact { padding: 84px 0 90px; }
.contact .blob-c { bottom: -160px; right: -120px; width: 420px; height: 420px; background: rgba(91, 163, 163, 0.12); }
.contact-card {
  background: var(--white); border-radius: 26px; box-shadow: var(--shadow-medium);
  border: 1px solid rgba(227, 217, 198, 0.6); overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr;
}
.contact-main { padding: 52px 54px; position: relative; }
.contact-main::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--amber), var(--teal)); }
.contact-main h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.contact-main > p { color: var(--text-light); margin-bottom: 34px; max-width: 460px; }
.contact-rows { display: grid; gap: 20px; }
.crow { display: flex; align-items: center; gap: 16px; }
.crow .ci { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(61, 139, 139, 0.1); }
.crow .ci svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 2; }
.crow small { display: block; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.08em; }
.crow .val { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--teal-dark); line-height: 1.3; }
.crow .val a:hover { color: var(--teal); }
.contact-side {
  background: linear-gradient(160deg, rgba(61, 139, 139, 0.07), rgba(232, 165, 75, 0.09));
  display: grid; place-items: center; padding: 40px 30px; border-left: 1px dashed var(--paper-line);
}
.qr-box { text-align: center; }
.qr-box img { width: 172px; height: 172px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-soft); border: 6px solid #fff; margin: 0 auto; }
.qr-box p { margin-top: 14px; font-size: 0.9rem; color: var(--text-light); letter-spacing: 0.1em; }

/* ============ 页脚 ============ */
footer { border-top: 1px solid var(--paper-line); background: var(--cream-dark); padding: 40px 0 30px; }
.foot { max-width: var(--w); margin: 0 auto; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.foot-brand .brand-mark svg { width: 19px; height: 19px; }
.foot-brand b { font-family: var(--serif); color: var(--teal-dark); font-size: 1.05rem; }
.foot-links { display: flex; gap: 22px; font-size: 0.88rem; color: var(--text-light); }
.foot-links a:hover { color: var(--teal-dark); }
.foot-meta { width: 100%; text-align: center; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid rgba(227, 217, 198, 0.8); padding-top: 18px; line-height: 2; }
.foot-meta a:hover { color: var(--teal-dark); }

/* ============ 三卡横排(学生体验等) ============ */
.stu-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stu-card {
  background: var(--white); border-radius: 18px; padding: 28px 26px; text-align: left;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(227, 217, 198, 0.6);
  transition: transform 0.25s, box-shadow 0.25s;
}
.stu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.stu-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(61, 139, 139, 0.1); margin-bottom: 14px; }
.stu-icon svg { width: 23px; height: 23px; stroke: var(--teal); fill: none; stroke-width: 1.9; }
.stu-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.stu-card p { font-size: 0.9rem; color: var(--text-light); }

/* ============ 流程步骤 ============ */
.steps { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 26px; border-top: 2px dashed rgba(61, 139, 139, 0.28); }
.step .sn {
  position: absolute; top: -19px; left: 0; font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  background: var(--amber); color: var(--teal-deep); width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(199, 138, 47, 0.3);
}
.step h3 { font-size: 1.12rem; margin-bottom: 4px; }
.step p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }

/* ============ 入场动效(无 JS 时全部直接可见) ============ */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 响应式(公共) ============ */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .stu-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--paper-line);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 340px; box-shadow: var(--shadow-medium); }
  .nav-links a { padding: 15px 28px; width: 100%; border-top: 1px solid rgba(227, 217, 198, 0.5); }
  .nav-links a::after { display: none; }
  .nav-cta { border-radius: 0; margin: 0; text-align: center; justify-content: center; display: flex; }
  .burger { display: block; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-side { border-left: none; border-top: 1px dashed var(--paper-line); }
  .contact-main { padding: 40px 30px; }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .stu-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 42px; }
}
