/* ===================== 设计令牌 ===================== */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --surface-3: #e9eaee;
  --line: rgba(17, 18, 20, 0.08);
  --line-strong: rgba(17, 18, 20, 0.14);
  --ink: #16181d;
  --ink-2: #5b616e;
  --ink-3: #868c99;
  --ink-4: #aeb3bd;
  --brand: #5e6ad2;
  --brand-600: #4f59c4;
  --brand-500: #7170ff;
  --brand-soft: #eef0fe;
  --brand-soft-2: #dfe3fc;
  --success: #12a150;
  --success-soft: #e7f6ee;
  --warn: #b45309;
  --danger: #d92d20;
  --danger-soft: #fdeceb;
  --grad-brand: linear-gradient(135deg, #5e6ad2 0%, #7c6cf0 55%, #9290ff 100%);
  --grad-ink: linear-gradient(160deg, #191b21 0%, #23262f 58%, #2d313c 100%);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16,18,26,.04), 0 4px 14px rgba(16,18,26,.05);
  --sh-2: 0 4px 10px rgba(16,18,26,.06), 0 16px 40px rgba(16,18,26,.08);
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter',
    'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); font-size: 13px; }
.text-empty { color: var(--ink-4); }

/* ===================== 顶栏 ===================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; letter-spacing: -.3px; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.study-select { display: flex; align-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--ink-3); }
.study-select select {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); padding: 6px 8px; font-size: 13px; cursor: pointer;
}

/* ===================== 主体 ===================== */
.app-main { padding-top: 18px; padding-bottom: 40px; min-height: 60vh; }
.loading { text-align: center; color: var(--ink-3); padding: 80px 0; }

/* ===================== 卡片 ===================== */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--sh-1);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.section-label { font-size: 12px; color: var(--ink-3); }
.card-more { font-size: 13px; color: var(--brand); font-weight: 500; cursor: pointer; }
.tag {
  display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 500; background: var(--brand-soft); color: var(--brand);
}
.tag-gray { background: var(--surface-2); color: var(--ink-2); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ===================== Hero ===================== */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--grad-ink); padding: 40px 32px; box-shadow: var(--sh-2); margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 30px; margin: 0 0 6px; font-weight: 600; letter-spacing: .5px; }
.hero p { color: rgba(255,255,255,.62); margin: 0; font-size: 14px; letter-spacing: 2px; }
.hero-search { margin-top: 22px; display: flex; gap: 10px; max-width: 520px; }
.hero-search input {
  flex: 1; height: 46px; border-radius: var(--r-pill); border: none; padding: 0 18px;
  font-size: 14px; background: rgba(255,255,255,.94); color: var(--ink);
}
.hero-search button {
  height: 46px; padding: 0 22px; border: none; border-radius: var(--r-pill);
  background: var(--grad-brand); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ===================== 宫格 ===================== */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.entry {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 12px; border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.entry:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.entry .ico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 10px; }
.entry .t { font-size: 15px; font-weight: 600; }
.entry .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ===================== 搜索 / 筛选条 ===================== */
.toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; box-shadow: var(--sh-1); }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); height: 44px; padding: 0 16px; }
.search-box input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--ink); outline: none; height: 44px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.filters select {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 13px; color: var(--ink); cursor: pointer;
}
.module-tabs { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; margin-bottom: 14px; }
.module-tab { padding: 8px 18px; border-radius: var(--r-pill); font-size: 14px; color: var(--ink-3); cursor: pointer; font-weight: 500; }
.module-tab-on { background: var(--surface); color: var(--brand); font-weight: 600; box-shadow: var(--sh-1); }

/* ===================== 列表行 ===================== */
.row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.row:first-child { border-top: none; }
.row:hover .row-name { color: var(--brand); }
.row-no { width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 8px; background: var(--surface-3); color: var(--ink-3); font-size: 13px; font-weight: 600; flex: none; }
.row-no-top { background: var(--grad-brand); color: #fff; }
.row-main { flex: 1; min-width: 0; }
.row-name { font-size: 15px; font-weight: 500; }
.row-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.row-data { text-align: right; flex: none; }
.row-data .v { font-size: 15px; color: var(--brand); font-weight: 600; }
.row-data .l { font-size: 11px; color: var(--ink-3); }

/* 院校 / 专业卡片列表 */
.school-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px; cursor: pointer; transition: box-shadow .12s; }
.school-card:hover { box-shadow: var(--sh-2); }
.school-card .meta { flex: 1; min-width: 0; }
.school-card .nm { font-size: 16px; font-weight: 600; }
.school-card .sb { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.school-card .cnt { text-align: right; flex: none; }
.school-card .cnt .n { font-size: 18px; color: var(--brand); font-weight: 700; }
.school-card .cnt .u { font-size: 11px; color: var(--ink-3); }

/* ===================== 详情页 ===================== */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-name { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.detail-name-en { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 16px; }
.info-cell { background: var(--surface); padding: 14px; }
.info-cell .l { font-size: 12px; color: var(--ink-3); }
.info-cell .v { font-size: 15px; font-weight: 600; margin-top: 4px; }
.intro { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-top: 4px; max-height: 280px; overflow: auto; }

.notice-bar { display: flex; gap: 8px; margin: 14px 0; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.group-more { display: flex; justify-content: center; align-items: center; margin-top: 12px; height: 44px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--brand); font-weight: 600; font-size: 14px; cursor: pointer; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 14px; cursor: pointer; margin-bottom: 12px; }

/* 课程项 */
.program-item { padding: 16px 0; border-top: 1px solid var(--line); }
.program-item:first-child { border-top: none; }
.program-name { font-size: 15px; font-weight: 600; }
.program-name-en { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.program-meta { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.program-tuition { font-size: 14px; font-weight: 600; color: var(--brand); margin-top: 6px; }
.program-link { font-size: 12px; color: var(--brand); margin-top: 6px; display: inline-block; }

/* ===================== 状态 ===================== */
.state { text-align: center; padding: 40px 0; color: var(--ink-3); }
.state button { margin-top: 10px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-pill); padding: 8px 20px; cursor: pointer; color: var(--ink-2); }

/* ===================== 页脚 ===================== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 30px; padding: 24px 0 36px; }
.site-footer p { text-align: center; font-size: 12px; color: var(--ink-3); margin: 4px 0; }
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.beian-bar { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.beian-icon { height: 18px; width: auto; vertical-align: middle; }
.beian-pending { color: #e53e3e; font-size: 12px; margin: 0 4px; }
.disclaimer { max-width: 640px; margin: 10px auto 0; line-height: 1.7; }

/* ===================== 响应式 ===================== */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 560px) {
  .topbar-inner { height: 54px; gap: 8px; }
  .brand-text em { display: none; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .study-select span { display: none; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 24px; }
}
