/* =========================================================
   AI Awing · 校园学习部风格（黑板 × 手账 × 粉笔）
   ========================================================= */
:root {
  --paper: #f8f4ea;        /* 纸张底色 */
  --paper-soft: #fdfaf2;   /* 浅卡纸 */
  --ink: #3b3326;          /* 主文字 */
  --green: #35543f;        /* 墨绿（主色） */
  --green-deep: #2a4433;
  --chalk: #f9f2dd;        /* 粉笔字色 */
  --pink: #e0879a;
  --pink-soft: #fdeef0;
  --cream: #fff3d6;
  --yellow: #f4d06a;
  --border: #e5dcc6;
  --dim: #8a7c62;
  --shadow: rgba(53, 84, 63, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { vertical-align: middle; }
::selection { background: #f9d9df; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 标题字体 */
.font-title, .section-head h2, .hero h1, .board .chalk-title,
.roadmap-card h3, .note-card h3, .book-card h3, .course-card h3,
.cta-board h2, .footer h4, .step h3, .handbook h3 {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif;
  font-weight: 400;
}

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fffdf6;
  border-bottom: 3px dashed var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green); color: var(--chalk);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.brand-mark svg { display: block; }
.brand-name { font-weight: 900; font-size: 20px; color: var(--green); letter-spacing: .5px; }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 700; color: #6d604c; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px;
  border-radius: 2px; background: var(--pink); transition: width .2s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-family: inherit; font-weight: 900;
  border-radius: 12px; padding: 10px 22px; font-size: 15px;
  transition: transform .16s, box-shadow .16s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff8e8; box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.btn-primary:hover { box-shadow: 0 7px 14px var(--shadow); }
.btn-cream { background: var(--cream); color: #7a5b16; box-shadow: 0 3px 0 rgba(122,91,22,.18); }
.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: 14px; }

/* ===== Hero ===== */
.hero { padding: 66px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(244, 208, 106, .28), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -90px; bottom: -90px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(242, 163, 176, .20), transparent 65%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink-soft); border: 2px dashed #efb6c0; color: #c2526a;
  font-size: 13.5px; font-weight: 700; padding: 5px 15px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.3; margin: 20px 0 16px; color: var(--green-deep); }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero-sub { font-size: 16.5px; color: #7b6f5a; max-width: 540px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 搜索条 */
.hero-search {
  display: flex; align-items: center;
  background: #fff; border: 2.5px solid var(--green); border-radius: 16px;
  overflow: hidden; max-width: 480px; margin-top: 22px;
  box-shadow: 0 8px 0 rgba(53, 84, 63, .10);
  transition: box-shadow .2s;
}
.hero-search:focus-within { box-shadow: 0 8px 0 rgba(53, 84, 63, .16), 0 0 0 4px rgba(242, 163, 176, .35); }
.hero-search svg { margin-left: 16px; color: var(--dim); flex: none; }
.hero-search input {
  flex: 1; border: none; outline: none; padding: 13px 14px; font-size: 15px;
  font-family: inherit; background: transparent; color: var(--ink); min-width: 0;
}
.hero-search input::placeholder { color: #b9ab8e; }
.hero-search button {
  background: var(--green); color: #fff6df; border: none; cursor: pointer;
  padding: 0 24px; height: 46px; font-family: inherit; font-weight: 700; font-size: 15px;
}

/* ===== Hero 统计 ===== */
.hero-stats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div {
  background: var(--paper-soft); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px 18px;
  display: flex; align-items: baseline; gap: 6px;
  box-shadow: 0 3px 0 rgba(0,0,0,.04);
}
.hero-stats strong { font-size: 24px; font-weight: 900; color: var(--green); }
.hero-stats span { font-size: 12.5px; color: var(--dim); }

/* 黑板 */
.board {
  background: var(--green); border-radius: 6px 6px 24px 24px;
  padding: 30px 30px 26px; color: var(--chalk);
  box-shadow: inset 0 0 0 10px #58745f, inset 0 0 0 12px #6c8a70, 0 18px 34px rgba(44, 66, 50, .35);
  position: relative;
  font-family: 'Ma Shan Zheng', 'Noto Sans SC', cursive;
}
.board::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px;
  background: linear-gradient(#caa86b, #b8935a); border-radius: 0 0 10px 10px;
}
.board .chalk-title { font-size: 27px; text-align: center; margin-bottom: 18px; letter-spacing: 2px; }
.board .chalk-list { list-style: none; font-size: 18px; line-height: 2.1; color: #eee6c9; }
.board .chalk-list li::before { content: "✦ "; color: var(--yellow); }
.board .chalk-tip { text-align: center; margin-top: 16px; font-size: 16px; color: #f4c7cd; }
.board .board-doodle { position: absolute; right: 16px; top: 50px; font-size: 24px; opacity: .85; transform: rotate(10deg); pointer-events: none; }

/* ===== Section 通用 ===== */
.section { padding: 66px 0 78px; position: relative; }
.section-alt { background: #fdfaf2; }
.section-alt2 { background: #fffdf6; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 4px;
  color: #c2526a; margin-bottom: 8px;
}
.section-tag::before { content: "✎ "; letter-spacing: 0; }
.section-head { margin-bottom: 46px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 32px; color: var(--green-deep); margin-bottom: 12px; }
.section-head p { color: var(--dim); font-size: 15.5px; }

/* ===== 三步学习法（便签） ===== */
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.step {
  position: relative; text-align: center;
}
.step-card {
  position: relative; background: #fffdf7; border-radius: 6px; border: 1px solid var(--border);
  box-shadow: 0 4px 0 rgba(0,0,0,.05); padding: 30px 22px 24px;
  background-image: linear-gradient(transparent 95%, rgba(53,84,63,.06) 95%);
  background-size: 100% 26px;
}
.step-card::before {
  content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 104px; height: 27px; background: linear-gradient(rgba(255,220,140,.95), rgba(245,205,120,.9));
  border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.step-num {
  width: 46px; height: 46px; margin: 6px auto 14px; border-radius: 50%;
  background: var(--green); color: var(--chalk); font-weight: 900; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.2);
  font-family: 'ZCOOL KuaiLe', sans-serif;
}
.step-card h3 { font-size: 21px; color: var(--green-deep); margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: #94866e; line-height: 1.9; }
.step-arrow {
  align-self: center; font-size: 30px; color: #caa86b; font-weight: 900;
  text-align: center; user-select: none;
}

/* ===== 学习路线（课程表卡） ===== */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.roadmap-card {
  background: #fffdf6; border-radius: 14px; border: 2px solid var(--border);
  padding: 24px 22px; position: relative;
  box-shadow: 0 6px 0 rgba(0,0,0,.045);
  transition: transform .18s;
}
.roadmap-card:hover { transform: translateY(-4px); }
.roadmap-card::after {
  content: ""; position: absolute; right: 0; top: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 22px 22px 0; border-color: transparent var(--green) transparent transparent;
  border-radius: 0 0 0 8px; opacity: .15;
}
.roadmap-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.roadmap-phase {
  background: var(--green); color: var(--chalk); font-size: 12.5px; font-weight: 900;
  letter-spacing: 2px; padding: 5px 14px; border-radius: 999px;
}
.roadmap-time { font-size: 12.5px; color: var(--dim); background: var(--cream); border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.roadmap-card h3 { font-size: 21px; color: var(--green-deep); margin-bottom: 12px; }
.roadmap-card ul { list-style: none; margin-bottom: 16px; }
.roadmap-card ul li {
  font-size: 14px; color: #6d604c; padding: 5px 0 5px 24px; position: relative; line-height: 1.7;
}
.roadmap-card ul li::before {
  content: "☐"; position: absolute; left: 2px; color: var(--pink); font-size: 15px;
}
.roadmap-card ul li strong { color: var(--green-deep); }
.roadmap-out {
  font-size: 13px; color: #7a5b16; background: linear-gradient(transparent 60%, rgba(244, 208, 106, .55) 60%);
  padding: 2px 0; line-height: 1.9;
}

/* 专题学习路径入口（学习路线板块下方） */
.roadmap-extra { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.roadmap-feature {
  display: block; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #35543f 0%, #2a4433 100%);
  border-radius: 16px; padding: 30px 34px; text-decoration: none;
  box-shadow: 0 8px 0 rgba(42, 68, 51, .18);
  transition: transform .18s, box-shadow .18s;
}
.roadmap-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(42, 68, 51, .28); }
.roadmap-feature::after {
  content: "✎"; position: absolute; right: 28px; bottom: 10px;
  font-size: 84px; color: rgba(255, 248, 232, .08); line-height: 1;
}
.roadmap-feature-tag {
  display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: 2px;
  color: #2a4433; background: var(--chalk); border-radius: 999px;
  padding: 4px 14px; margin-bottom: 14px;
}
.roadmap-feature h3 {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif; font-weight: 400;
  font-size: 25px; color: #fff8e8; margin-bottom: 10px;
}
.roadmap-feature p {
  font-size: 14.5px; color: #cfe0d4; line-height: 1.85; max-width: 780px; margin-bottom: 18px;
}
.roadmap-feature-cta {
  display: inline-block; font-size: 14px; font-weight: 900; color: var(--chalk);
  background: rgba(255, 248, 232, .14); border: 1.5px solid rgba(255, 248, 232, .35);
  border-radius: 999px; padding: 9px 22px; transition: background .15s;
}
.roadmap-feature:hover .roadmap-feature-cta { background: rgba(255, 248, 232, .26); }
/* 第二张卡用暖粉区分 */
.roadmap-feature-2 { background: linear-gradient(135deg, #b3485f 0%, #8f3648 100%); box-shadow: 0 8px 0 rgba(143, 54, 72, .18); }
.roadmap-feature-2:hover { box-shadow: 0 12px 22px rgba(143, 54, 72, .28); }
.roadmap-feature-2 p { color: #f4d5dc; }
.roadmap-feature .roadmap-feature-tag { background: var(--chalk); }

@media (max-width: 900px) {
  .roadmap-extra { grid-template-columns: 1fr; }
}

/* ===== 知识体系（便签卡片） ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
.card {
  position: relative; background: #fffdf7; border-radius: 6px; padding: 26px 20px 20px;
  border: 1px solid var(--border); box-shadow: 0 4px 0 rgba(0,0,0,.05);
  transition: transform .18s, box-shadow .18s; display: block;
}
.card::before {
  content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-1.5deg);
  width: 96px; height: 26px;
  background: linear-gradient(rgba(255,220,140,.95), rgba(245,205,120,.92));
  border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 10px 20px rgba(0,0,0,.09); }
.card-ico { font-size: 34px; line-height: 1; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 8px; }
.card-head h3 { font-size: 19px; color: var(--green-deep); }
.card-count {
  font-size: 12px; color: #c2526a; background: var(--pink-soft); border-radius: 999px;
  padding: 2px 10px; font-weight: 700; flex: none;
}
.card p { font-size: 13.5px; color: #94866e; line-height: 1.8; }
.card-count-all { text-align: center; margin-top: 42px; }
.card-count-all a {
  display: inline-block; background: var(--cream); color: #7a5b16; font-weight: 900;
  border: 2px dashed #dcc27a; border-radius: 999px; padding: 11px 30px; font-size: 15px;
  transition: .18s;
}
.card-count-all a:hover { background: #ffe9b0; transform: translateY(-2px); }

/* ===== 精选手册（课本封面） ===== */
.handbooks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.book-card {
  display: flex; gap: 22px; align-items: stretch;
  background: #fffdf6; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.07);
  border: 1px solid var(--border); transition: transform .18s;
}
.book-card:hover { transform: translateY(-4px); }
.book-cover {
  width: 118px; flex: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--chalk);
  font-size: 34px; position: relative;
}
.book-cover.green { background: linear-gradient(160deg, #47735a, #2c4c39); }
.book-cover.blue { background: linear-gradient(160deg, #5b6fa8, #39497e); }
.book-cover::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: rgba(0,0,0,.16);
}
.book-cover span { font-size: 13px; letter-spacing: 3px; font-weight: 700; }
.book-body { padding: 22px 24px; display: flex; flex-direction: column; }
.book-body h3 { font-size: 21px; color: var(--green-deep); margin-bottom: 8px; }
.book-desc { font-size: 14px; color: #7b6f5a; line-height: 1.9; }
.book-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; }
.kb-tag {
  font-size: 12px; background: var(--pink-soft); color: #c2526a;
  border-radius: 999px; padding: 3px 12px; font-weight: 700;
}
.book-cta { margin-left: auto; color: var(--green); font-weight: 900; font-size: 14.5px; }

/* ===== 推荐课程（名师课堂） ===== */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card {
  display: flex; gap: 16px; align-items: center;
  background: #fffdf6; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 4px 0 rgba(0,0,0,.04);
  transition: transform .16s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.course-avatar {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: var(--green); color: var(--chalk); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.2);
}
.course-card[data-c="吴"] .course-avatar { background: #d96a4e; }
.course-card[data-c="李"] .course-avatar { background: #8a5fa8; }
.course-card[data-c="3"] .course-avatar { background: #3e8fa3; }
.course-card[data-c="沐"] .course-avatar { background: #4d9c74; }
.course-card[data-c="姜"] .course-avatar { background: #c98a2d; }
.course-body h3 { font-size: 17.5px; color: var(--green-deep); margin-bottom: 3px; }
.course-body p { font-size: 13px; color: #94866e; line-height: 1.6; }
.course-meta { font-size: 12px; color: #c2526a; font-weight: 700; display: inline-block; margin-top: 4px; }

/* ===== CTA（黑板横幅） ===== */
.cta-board {
  margin: 0 auto 80px; max-width: 1100px; position: relative; overflow: hidden;
  background: var(--green); border-radius: 10px 10px 26px 26px; color: var(--chalk);
  padding: 46px 40px 40px; text-align: center;
  box-shadow: inset 0 0 0 9px #58745f, inset 0 0 0 11px #6c8a70, 0 20px 40px rgba(44,66,50,.28);
  font-family: 'Ma Shan Zheng', 'Noto Sans SC', cursive;
}
.cta-board::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px;
  background: linear-gradient(#caa86b, #b8935a);
}
.cta-board h2 { font-size: 32px; margin-bottom: 10px; letter-spacing: 1px; }
.cta-board p { font-size: 17px; color: #e7dfc4; margin-bottom: 24px; }
.cta-board .btn { font-family: 'Noto Sans SC', sans-serif; }
.cta-board .btn-cream { font-size: 17px; padding: 13px 34px; }
.cta-note { display: block; margin-top: 18px; font-size: 15px; color: #f4c7cd; }

/* ===== 页脚 ===== */
.footer {
  background: #efe8d4; border-top: 3px dashed #d9cdb0;
  padding-top: 46px; margin-top: 10px;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px;
}
.footer-brand { max-width: 330px; }
.footer-brand .brand-name { font-size: 19px; color: var(--green); font-weight: 900; }
.footer-brand p { font-size: 13.5px; color: #8a7c62; margin-top: 10px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 15px; margin-bottom: 6px; color: var(--green-deep); }
.footer-col a { font-size: 13.5px; color: #7b6f5a; transition: color .15s; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid #d9cdb0; padding: 18px 0 22px; font-size: 13px; color: #8a7c62;
}
.footer-bottom a { color: var(--green); }

/* ===== 移动端菜单 ===== */
.nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; }
.nav-toggle {
  display: none; border: none; background: transparent; cursor: pointer; padding: 6px;
}

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .handbooks { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; flex-direction: column; gap: 5px; }
  .nav-toggle span { width: 22px; height: 3px; background: var(--green); border-radius: 2px; transition: .2s; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; gap: 4px;
    padding: 8px 0 14px; border-top: 2px dashed var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .steps { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .courses { grid-template-columns: 1fr; }
  .handbooks { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 52px; }
  .board { margin-top: 6px; }
  .footer-cols { gap: 30px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
}
