/* ===================================================================
   审小匠教育版 · 官网主题样式
   学术红（红头文件）+ 审计蓝（专业可信）+ 纸张米白 学院风
   无构建依赖，纯 CSS。UTF-8。
   =================================================================== */

:root {
  /* 品牌色 */
  --edu-red: #A41E22;       /* 学术红 / 红头文件 */
  --edu-red-deep: #7A1518;
  --edu-blue: #1E3A8A;      /* 审计蓝 */
  --edu-blue-light: #3B5BBF;
  --edu-gold: #B8893B;      /* 学院金点缀 */

  /* 中性 */
  --paper: #FAF7F2;         /* 纸张米白 */
  --paper-card: #FFFFFF;
  --ink: #1A1614;           /* 墨色正文 */
  --ink-soft: #4A4540;
  --ink-muted: #857E76;
  --line: #E7E0D6;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(26, 22, 20, 0.06);
  --shadow: 0 12px 36px rgba(26, 22, 20, 0.10);
  --shadow-red: 0 14px 38px rgba(164, 30, 34, 0.18);
  --maxw: 1180px;

  --serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.serif { font-family: var(--serif); }

/* 段落标题 */
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--edu-red);
  background: rgba(164, 30, 34, 0.08);
  border: 1px solid rgba(164, 30, 34, 0.18);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 760px;
  margin-top: 14px;
}
.section { padding: 86px 0; }
.section.alt { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 66px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--edu-red), var(--edu-red-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; box-shadow: var(--shadow-red);
}
.logo-name { font-size: 19px; color: var(--ink); }
.logo-name small { display:block; font-size: 11px; font-weight: 600; color: var(--ink-muted); letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--edu-red); }
.nav-cta {
  background: linear-gradient(135deg, var(--edu-red), var(--edu-red-deep));
  color: #fff !important; padding: 9px 18px; border-radius: 10px;
  font-weight: 600; box-shadow: var(--shadow-red);
}
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(30, 58, 138, 0.10), transparent 60%),
    radial-gradient(760px 420px at 6% 8%, rgba(164, 30, 34, 0.10), transparent 60%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.18; font-weight: 900; color: var(--ink);
}
.hero h1 .hl { color: var(--edu-red); }
.hero h1 .hl-blue { color: var(--edu-blue); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin-top: 22px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 16px;
  cursor: pointer; border: none; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--edu-red), var(--edu-red-deep)); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--edu-blue); border: 1.5px solid var(--edu-blue); }
.btn-ghost:hover { background: var(--edu-blue); color: #fff; }
.hero-trust { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--ink-muted); font-size: 14px; }
.hero-trust b { color: var(--edu-blue); font-size: 22px; font-family: var(--serif); display: block; }

/* 红头文件视觉卡（Hero 右侧） */
.redhead {
  background: var(--paper-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 0; overflow: hidden; transform: rotate(-1.2deg);
}
.redhead-top {
  background: linear-gradient(135deg, var(--edu-red), var(--edu-red-deep));
  color: #fff; padding: 22px 26px; text-align: center;
}
.redhead-top .org { font-family: var(--serif); font-size: 22px; font-weight: 900; letter-spacing: 2px; }
.redhead-top .doc-no { font-size: 13px; opacity: .9; margin-top: 6px; }
.redhead-body { padding: 24px 26px 28px; }
.redhead-body h4 { font-family: var(--serif); font-size: 17px; color: var(--ink); text-align: center; margin-bottom: 14px; line-height: 1.5; }
.redhead-quote {
  background: #F6F1EA; border-left: 3px solid var(--edu-red);
  padding: 12px 16px; border-radius: 8px; font-size: 14px; color: var(--ink-soft);
}
.redhead-seal {
  margin-top: 16px; text-align: right; color: var(--edu-red);
  font-family: var(--serif); font-size: 13px;
}

/* ---------- 痛点 ---------- */
.pain-banner {
  background: linear-gradient(135deg, var(--edu-blue), #16275f);
  color: #fff; border-radius: var(--radius-lg); padding: 30px 34px;
  text-align: center; margin-bottom: 40px; box-shadow: var(--shadow);
}
.pain-banner b { color: #FFD9A0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-ico { font-size: 30px; margin-bottom: 14px; }
.pain-card h3 { font-size: 19px; color: var(--edu-red); margin-bottom: 10px; font-weight: 800; }
.pain-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 解决方案 ---------- */
.solve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solve-card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
}
.solve-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--edu-red), var(--edu-gold)); border-radius: var(--radius) var(--radius) 0 0;
}
.solve-num { font-family: var(--serif); font-size: 40px; font-weight: 900; color: rgba(164,30,34,.16); }
.solve-card h3 { font-size: 20px; margin: 6px 0 12px; color: var(--ink); }
.solve-card p { color: var(--ink-soft); font-size: 15px; }
.solve-tag { display:inline-block; margin-top:14px; font-size:13px; font-weight:700; color: var(--edu-blue); background: rgba(30,58,138,.08); padding: 5px 12px; border-radius: 999px; }

/* ---------- 政策卡片 ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.policy-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.policy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-red); }
.policy-head {
  background: linear-gradient(135deg, var(--edu-red), var(--edu-red-deep));
  color: #fff; padding: 18px 24px;
}
.policy-head .org { font-family: var(--serif); font-weight: 800; font-size: 16px; }
.policy-head .meta { font-size: 12.5px; opacity: .92; margin-top: 4px; }
.policy-body { padding: 22px 24px 26px; }
.policy-body h4 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 12px; }
.policy-quote {
  background: #F6F1EA; border-left: 3px solid var(--edu-red); border-radius: 8px;
  padding: 12px 15px; font-size: 14px; color: var(--ink-soft); margin-bottom: 14px;
}
.policy-read { font-size: 14px; color: var(--edu-blue); }
.policy-read b { color: var(--edu-blue); }
.policy-link { display:inline-block; margin-top: 12px; font-size: 13px; color: var(--ink-muted); }
.policy-link:hover { color: var(--edu-red); }

/* ---------- 课程 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.unit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.unit .u-no { font-family: var(--serif); font-weight: 900; color: var(--edu-red); font-size: 15px; }
.unit h4 { font-size: 16px; margin: 8px 0 8px; color: var(--ink); }
.unit p { font-size: 13.5px; color: var(--ink-muted); }
.course-meta { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.course-meta .m { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 24px; text-align:center; box-shadow: var(--shadow-sm); }
.course-meta .m b { display:block; font-family: var(--serif); font-size: 26px; color: var(--edu-blue); }
.course-meta .m span { font-size: 13px; color: var(--ink-muted); }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 24px; box-shadow: var(--shadow-sm); display:flex; flex-direction:column;
}
.price-card.featured { border: 2px solid var(--edu-red); box-shadow: var(--shadow-red); position: relative; }
.price-card.featured::after {
  content: "院系首选"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--edu-red); color:#fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 19px; color: var(--ink); }
.price-amt { font-family: var(--serif); font-size: 32px; font-weight: 900; color: var(--edu-red); margin: 12px 0 4px; }
.price-amt small { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.price-for { font-size: 13px; color: var(--ink-muted); margin-bottom: 16px; }
.price-card ul { list-style: none; margin: 8px 0 22px; flex: 1; }
.price-card li { font-size: 14px; color: var(--ink-soft); padding: 7px 0 7px 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--edu-blue); font-weight: 800; }
.price-card .btn { width: 100%; justify-content: center; }

/* ---------- 产教融合 ---------- */
.pe-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pe-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.pe-card .pe-ico { font-size: 26px; margin-bottom: 12px; }
.pe-card h4 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.pe-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- CTA / 表单 ---------- */
.cta {
  background:
    radial-gradient(700px 360px at 85% 10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, var(--edu-red), var(--edu-red-deep));
  color: #fff; border-radius: var(--radius-lg); padding: 52px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.cta h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.cta p { margin-top: 14px; opacity: .92; font-size: 16px; }
.cta-form { background: #fff; border-radius: var(--radius); padding: 26px; color: var(--ink); }
.cta-form .row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 12px 0 5px; display:block; }
.cta-form input, .cta-form select, .cta-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: var(--sans); background: var(--paper); color: var(--ink);
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus { outline: 2px solid rgba(164,30,34,.3); border-color: var(--edu-red); }
.cta-form .btn { width: 100%; justify-content: center; margin-top: 18px; }
.form-msg { font-size: 14px; margin-top: 12px; text-align: center; min-height: 20px; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: var(--edu-red); }

/* ---------- 页脚 ---------- */
.footer { background: #1A1614; color: #C9C2B8; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; font-size: 14px; color: #A39C92; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .brand { font-family: var(--serif); font-size: 20px; color: #fff; font-weight: 800; }
.footer-bottom { border-top: 1px solid #2E2A26; margin-top: 36px; padding-top: 22px; font-size: 13px; color: #857E76; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-disclaimer { font-size: 12px; color: #6B655D; margin-top: 14px; line-height: 1.6; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .cta { grid-template-columns: 1fr; }
  .grid-3, .solve, .pe-grid { grid-template-columns: 1fr; }
  .policy-grid, .price-grid, .course-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 14px;
  }
  .redhead { transform: none; margin-top: 20px; }
  .cta-form .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .policy-grid, .price-grid, .course-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
