:root {
  --primary: #e53935;
  --primary-dark: #c62828;
  --accent: #ff9800;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1f2329;
  --sub: #6b7280;
  --line: #e7e9ee;
  --green: #2e7d32;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 15px;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 导航 */
.nav {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; box-shadow: var(--shadow);
}
.nav .wrap { display: flex; align-items: center; height: 62px; gap: 16px; white-space: nowrap; }
.nav .brand { font-size: 19px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav .brand .logo { width: 30px; height: 30px; background: #fff; color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.nav .links { display: flex; gap: 2px; margin-left: 2px; }
.nav .links a { padding: 6px 11px; border-radius: 20px; font-size: 14px; opacity: .92; flex-shrink: 0; }
.nav .links a:hover, .nav .links a.active { background: rgba(255,255,255,.18); opacity: 1; }
.nav .spacer { flex: 1; }
.nav .user { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-shrink: 0; }
.nav .user-link { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255,.16); }
.nav .user-link:hover { background: rgba(255,255,255,.28); }
.nav .user .ico { width: 16px; height: 16px; }
.nav .user img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.nav .btn { background: #fff; color: var(--primary); padding: 6px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; flex-shrink: 0; }

/* SVG 线性图标 */
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.m-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--m-color, currentColor); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 英雄区 */
.hero {
  background: linear-gradient(135deg, #c62828 0%, #e53935 55%, #ff7043 100%);
  color: #fff; border-radius: 18px; padding: 44px 40px; margin: 24px 0; position: relative; overflow: hidden;
}
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.hero p { margin-top: 10px; opacity: .95; font-size: 15px; max-width: 560px; }
.hero .tags { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .tag { background: rgba(255,255,255,.2); padding: 5px 14px; border-radius: 20px; font-size: 13px; }

/* 区块 */
.section { margin: 26px 0; }
.section-title { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title::before { content: ""; width: 5px; height: 20px; background: var(--primary); border-radius: 3px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 模块入口卡片 */
.module { position: relative; display: flex; flex-direction: column; padding: 22px 22px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.module::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--m-color, var(--primary)); }
.module:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.m-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--m-bg, #fdeaea); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.module h3 { font-size: 17px; margin-bottom: 6px; }
.module p { color: var(--sub); font-size: 13px; flex: 1; }
.m-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.m-state { font-size: 12px; color: var(--m-color, var(--primary)); font-weight: 600; }
.m-arrow { font-size: 16px; color: var(--m-color, var(--primary)); font-weight: 700; transition: transform .2s; }
.module:hover .m-arrow { transform: translateX(4px); }

/* 各模块主题色 */
.m-news { --m-color: #7b1fa2; --m-bg: #f3ecfb; }
.m-exams { --m-color: #e53935; --m-bg: #fdeaea; }
.m-print { --m-color: #00695c; --m-bg: #e0f2f1; }
.m-schools { --m-color: #1565c0; --m-bg: #e8f1fb; }
.m-policy { --m-color: #2e7d32; --m-bg: #e7f4e8; }
.m-admission { --m-color: #ef6c00; --m-bg: #fff3e0; }

/* 考试卡片 */
.exam-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.exam-card .num { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.exam-card .info { flex: 1; }
.exam-card .info h3 { font-size: 17px; }
.exam-card .info .meta { color: var(--sub); font-size: 13px; margin-top: 2px; }
.exam-card .badge { background: #fdeaea; color: var(--primary); padding: 2px 10px; border-radius: 20px; font-size: 12px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--sub); font-weight: 600; font-size: 13px; }
.dl-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--primary); color: #fff; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.dl-btn.ghost { background: #eef2f7; color: var(--ink); }
.dl-btn:hover { background: var(--primary-dark); }

/* 登录 / 注册页 */
.login-box { max-width: 400px; margin: 40px auto; text-align: center; }
.form { text-align: left; }
.form label { display: block; font-size: 13px; color: var(--sub); margin: 14px 0 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--ink); background: #fff; font-family: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(229,57,53,.1); }
.form textarea { resize: vertical; line-height: 1.7; }
.error { background: #fdeaea; color: #c62828; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 14px; }

/* 中考新闻 */
.news-item { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.news-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.news-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-cat { background: #e8f1fb; color: #1565c0; font-size: 11.5px; padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.news-pin { background: #fdeaea; color: #c62828; font-size: 11.5px; padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.news-date { margin-left: auto; font-size: 12px; color: var(--sub); }
.news-title { font-size: 16px; margin-top: 8px; }
.news-summary { font-size: 13.5px; color: var(--sub); margin-top: 6px; }
.news-source { font-size: 12px; color: var(--sub); margin-top: 6px; }
.news-content { margin-top: 16px; font-size: 15px; color: #333; line-height: 1.9; white-space: pre-line; }

/* 后台导航 */
.admin-nav { display: flex; gap: 10px; margin: -4px 0 18px; flex-wrap: wrap; }
.admin-nav a { padding: 7px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.admin-nav a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-nav a:hover { border-color: var(--primary); color: var(--primary); }
.admin-nav a.on:hover { color: #fff; }

/* 统计小徽章 */
.stat-chip { background: #f0f2f5; color: #555; font-size: 12px; padding: 4px 12px; border-radius: 16px; font-weight: 600; }

/* 打印下单 */
.opt-group { margin-bottom: 14px; }
.opt-label { font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.opt-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-btns label { display: flex; align-items: center; gap: 5px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; }
.opt-btns label:has(input:checked) { border-color: var(--primary); background: #fdeaea; color: var(--primary); font-weight: 600; }
.price-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--sub); }
.price-line b { color: var(--ink); }
.price-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 15px; font-weight: 600; }
.price-total b { font-size: 22px; }
.ptype { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.ptype-question { background: #e8f1fb; color: #1565c0; }
.ptype-answer { background: #e7f4e8; color: #2e7d32; }
.ptype-combined { background: #fff3e0; color: #ef6c00; }
.sel-all input { vertical-align: middle; }
.status { font-size: 12px; padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.status-待处理 { background: #fff8e1; color: #b8860b; }
.status-处理中 { background: #e8f1fb; color: #1565c0; }
.status-已发货 { background: #e7f4e8; color: #2e7d32; }
.status-已完成 { background: #eceff1; color: #546e7a; }
.status-已取消 { background: #fdeaea; color: #c62828; }
.cart-btn { background: #fff8e1; border: 1px solid #f0d060; border-radius: 8px; padding: 5px 10px; font-size: 14px; cursor: pointer; transition: background .15s; }
.cart-btn:hover { background: #fdeaea; border-color: var(--primary); }
.cart-btn.batch-btn { font-size: 13px; padding: 4px 12px; border-radius: 16px; font-weight: 600; }
.cart-remove { background: none; border: none; color: #bbb; font-size: 16px; cursor: pointer; }
.cart-remove:hover { color: var(--primary); }

/* 空状态 */
.empty { text-align: center; padding: 50px 20px; color: var(--sub); }
.empty .big { font-size: 48px; margin-bottom: 12px; }

/* 提示条 */
.note { background: #fff8e6; border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; font-size: 13.5px; color: #6b5a00; margin: 14px 0; }
.tip { background: #e8f1fb; border-left: 4px solid #1565c0; padding: 12px 16px; border-radius: 8px; font-size: 13.5px; color: #3a5670; margin: 14px 0; }

.footer { text-align: center; color: var(--sub); font-size: 12px; padding: 30px 0; margin-top: 20px; }

.btn { display: inline-block; background: var(--primary); color: #fff; padding: 9px 22px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; }
.btn:hover { background: var(--primary-dark); }
.btn.outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }

/* 名校介绍 */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; color: var(--sub); }
.stat .v { font-size: 24px; font-weight: 800; color: var(--primary); margin-top: 4px; }
.stat .v small { font-size: 12px; color: var(--sub); font-weight: 400; }

/* 排名条形图 */
.rank-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.rankno { width: 26px; height: 26px; border-radius: 50%; background: #eef2f7; color: var(--sub); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rankno.top { background: linear-gradient(135deg, #f6b93b, #e53935); color: #fff; }
.rname { width: 92px; font-size: 13px; font-weight: 600; flex-shrink: 0; text-align: right; }
.rbar { flex: 1; height: 16px; background: #f0f2f5; border-radius: 8px; overflow: hidden; }
.rbar-fill { height: 100%; border-radius: 8px; transition: width .3s; }
.rscore { width: 34px; text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rtier { width: 56px; text-align: center; font-size: 11px; padding: 1px 0; border-radius: 10px; flex-shrink: 0; }

/* 层级徽章配色 */
.tier-四大 { background: #fdeaea; color: #c62828; }
.tier-八大 { background: #e8f1fb; color: #1565c0; }
.tier-十大 { background: #e7f4e8; color: #2e7d32; }
.tier-区属重点 { background: #f3ecfb; color: #6a1b9a; }

/* 学校卡片 */
.school-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.school-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sc-logo { width: 52px; height: 52px; border-radius: 12px; color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: 1px; box-shadow: inset 0 -2px 6px rgba(0,0,0,.15); }
.sc-title { flex: 1; }
.sc-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.sc-meta { font-size: 12px; color: var(--sub); margin-top: 2px; }
.sc-scores { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fafbfc; border-radius: 10px; margin-bottom: 10px; }
.sc-score { display: flex; flex-direction: column; }
.sc-score .lbl { font-size: 11px; color: var(--sub); }
.sc-score .val { font-size: 18px; font-weight: 800; color: var(--primary); }
.sc-tier { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.sc-intro { font-size: 13px; color: #444; line-height: 1.6; flex: 1; }
.sc-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tag { background: #eef2f7; color: #555; font-size: 11px; padding: 2px 9px; border-radius: 12px; }

/* 录取情况：统计卡小注 */
.stat .n { font-size: 12px; color: var(--sub); margin-top: 6px; }

/* 录取情况：分数段条形图 */
.band-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f2f3f6; }
.band-row:last-child { border-bottom: none; }
.band-grade { width: 40px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.band-range { width: 104px; font-size: 13px; font-weight: 600; flex-shrink: 0; text-align: right; }
.band-bar { flex: 1; height: 18px; background: #f0f2f5; border-radius: 9px; overflow: hidden; }
.band-fill { height: 100%; border-radius: 9px; transition: width .4s; }
.band-count { width: 64px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.band-pos { width: 220px; font-size: 12px; color: var(--sub); flex-shrink: 0; }

/* 分数段等级配色 */
.g-Ap { background: #fdeaea; color: #c62828; }
.g-A { background: #fdeaea; color: #e53935; }
.g-Bp { background: #fff3e0; color: #ef6c00; }
.g-B { background: #fff8e1; color: #b8860b; }
.g-Cp { background: #eceff1; color: #546e7a; }
.g-C { background: #f0f2f5; color: #90a4ae; }

/* 录取批次流程 */
.batch-flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.batch-step { flex: 1; min-width: 150px; background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.batch-no { width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.batch-name { font-size: 14px; font-weight: 700; }
.batch-note { font-size: 11.5px; color: var(--sub); margin-top: 4px; line-height: 1.5; }
.batch-arrow { align-self: center; color: var(--accent); font-size: 20px; font-weight: 800; flex-shrink: 0; }

/* 户籍差异 */
.acd-summary { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.acd-list { padding-left: 20px; color: #444; font-size: 14px; }
.acd-list li { margin: 6px 0; }

/* 名额分配计划分区标题 */
.q-district { font-size: 14px; font-weight: 700; margin: 16px 0 4px; padding: 6px 12px; background: #f6f7f9; border-left: 4px solid var(--primary); border-radius: 4px; }

@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav .links { display: none; }
  .hero h1 { font-size: 24px; }
  .rname { width: 64px; }
  .band-pos { display: none; }
  .band-range { width: 82px; }
  .batch-arrow { display: none; }
}
