/* ============================================================
   启程留学 · 全局样式
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 15px; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; font-weight: 800; font-size: 18px;
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.main-nav { display: flex; gap: 6px; margin-left: 8px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-weight: 500; color: var(--ink-2);
  transition: all .2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #7c3aed 100%);
  color: #fff; padding: 96px 0 140px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(255,255,255,.12), transparent),
    radial-gradient(500px 300px at 10% 80%, rgba(124,58,237,.35), transparent);
}
.hero-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 36px; }

/* 搜索框 */
.search-card {
  position: relative; z-index: 2; margin-top: -70px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 24px;
}
.search-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.field select, .field input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink); background: var(--white); transition: border .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:focus, .field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.search-btn { padding: 13px 32px; }

/* 热门标签 */
.hot-tags { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hot-tags span { font-size: 13px; color: var(--ink-3); }
.hot-tags a {
  font-size: 13px; padding: 5px 14px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink-2); transition: all .2s;
}
.hot-tags a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ============================================================
   智能选校（首页表单 + 匹配结果）
   ============================================================ */
.hero-match {
  padding: 72px 0 130px;
  background-color: #1e3a8a;
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, .78), rgba(30, 58, 138, .68) 50%, rgba(76, 29, 149, .74)),
    url('../assets/cambridge.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.degree-toggle { display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid var(--line); }
.degree-toggle button {
  flex: 1; padding: 13px 16px; font-size: 15px; font-weight: 600;
  background: transparent; border: none; border-bottom: 3px solid transparent;
  color: var(--ink-2); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.degree-toggle button:hover { color: var(--primary); background: var(--primary-light); }
.degree-toggle button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* 字段区紧贴 tab 栏下方，与选中项连成一体 */
.match-form { padding-top: 20px; }

/* 学历切换时表单字段的过渡动画 */
@keyframes degreeSwitch {
  from { opacity: .25; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.match-form.degree-switch { animation: degreeSwitch .4s ease; }
.match-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.match-form-grid .field input { padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; width: 100%; }
.match-form-grid .field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.match-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.match-actions .hot-tags { margin-top: 0; }
.match-btn { padding: 15px 40px; margin-top: 0; font-size: 16px; flex-shrink: 0; }

/* 背景摘要 */
.bg-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 24px; margin-bottom: 28px;
}
.bg-tag { font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px; background: var(--primary); color: #fff; }
.bg-item { font-size: 14px; color: var(--ink-3); }
.bg-item strong { color: var(--ink); }

/* 匹配结果网格 */
.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.match-school-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all .25s;
}
.match-school-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.match-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.match-card-top .school-logo { width: 46px; height: 46px; font-size: 20px; border-radius: 12px; }
.match-card-info { flex: 1; min-width: 0; }
.match-card-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.match-rate { text-align: right; flex-shrink: 0; }
.rate-num { font-size: 22px; font-weight: 800; line-height: 1; }
.rate-lbl { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.match-rate-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.match-rate-fill { height: 100%; border-radius: 999px; }
.match-school-card .school-tags { padding: 0; }

/* ============================================================
   首页区块
   ============================================================ */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.section-title-note { margin-left: 10px; color: var(--ink-3); font-size: 16px; font-weight: 500; vertical-align: middle; }
.section-head p { color: var(--ink-3); font-size: 16px; }

/* 国家卡片 */
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.country-card {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 16px; cursor: pointer; transition: all .2s;
}
.country-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); background: var(--primary-light); }
.country-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.country-more { border-style: dashed; }
.country-more .country-name { color: var(--ink-3); }

/* 特色功能 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: all .25s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 18px; color: var(--primary);
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(14,165,233,.16));
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.12);
}
.feature-icon svg {
  width: 28px; height: 28px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--ink-3); font-size: 15px; }

/* CTA 横幅 */
.cta-banner {
  background-color: #1e3a8a;
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.66), rgba(30,64,175,.5)),
    url('../assets/cambridge.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  padding: 56px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 28px; }

/* ============================================================
   院校库列表页
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 56px 0;
}
.photo-hero {
  background-color: #1e3a8a;
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, .64), rgba(30, 64, 175, .46)),
    url('../assets/overseas-school.jpg');
  background-size: cover;
  background-position: center 42%;
}
.auth-hero {
  background-color: #1e3a8a;
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, .62), rgba(30, 64, 175, .42)),
    url('../assets/campus-banner.jpg');
  background-size: cover;
  background-position: center;
}

/* 各页面照片横幅（每个使用不同的超宽横幅图） */
.hero-match, .hero-essay, .hero-essay-write, .hero-news, .hero-apply,
.hero-assessment, .hero-conferences, .hero-journals, .hero-competitions,
.hero-packages, .hero-business, .hero-about, .hero-placeholder {
  background-color: #1e3a8a;
  background-size: cover;
  background-position: center;
}
.hero-match {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/cornell.jpg');
}
.hero-essay {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/chicago.jpg');
}
.hero-essay-write {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/aarhus.jpg');
}
.hero-news {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.68), rgba(30,64,175,.52)),
    url('../assets/schools-banner-2.png');
  background-position: center 44%;
}
.hero-news h1,
.hero-news p { text-shadow: 0 2px 12px rgba(2, 6, 23, .38); }
.hero-apply {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/waseda.jpg');
}
.hero-assessment {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/stuttgart.jpg');
}
.hero-conferences {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/wageningen.jpg');
}
.hero-journals {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/anglia.jpg');
}
.hero-competitions {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/carroll.jpg');
}
.hero-packages {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/macquarie.jpg');
}
.hero-business {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/mennonite.jpg');
}
.hero-about {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/macquarie2.jpg');
}
.hero-placeholder {
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(30,64,175,.42)),
    url('../assets/banners/chicago.jpg');
}
.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.85); }

.schools-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 40px 0 72px; }

/* 侧边筛选 */
.filter-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; height: fit-content; position: sticky; top: 88px;
}
.filter-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.filter-group { margin-bottom: 22px; }
.filter-group > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.filter-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--ink); background: var(--white); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filter-group select:focus { outline: none; border-color: var(--primary); }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check-list input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); }
.filter-reset { width: 100%; margin-top: 8px; }

/* 结果区 */
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-count { font-size: 15px; color: var(--ink-3); }
.results-count strong { color: var(--primary); font-size: 18px; }
.sort-select {
  padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px;
  color: var(--ink-2); background: var(--white); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}

/* 学校卡片 */
.school-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.school-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; cursor: pointer; display: flex; flex-direction: column;
}
.school-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.school-card-top { padding: 24px 24px 0; display: flex; gap: 16px; align-items: flex-start; }
.school-logo {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.school-logo-img { background: #fff; border: 1px solid var(--line); }
.school-logo-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 6px;
  box-sizing: border-box;
}
.school-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.school-card .school-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.rank-badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: var(--primary-light); color: var(--primary);
}
.school-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 24px; }
.school-tags span {
  font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink-2);
}
.school-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line);
  margin-top: auto;
}
.stat { padding: 14px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: 17px; font-weight: 700; color: var(--primary); }
.stat .lbl { font-size: 12px; color: var(--ink-3); }

/* 空状态 */
.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-3); }
.empty-state .icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* ============================================================
   学校详情页
   ============================================================ */
.detail-hero {
  background-color: #1e3a8a;
  background-image:
    linear-gradient(135deg, rgba(15,23,42,.66), rgba(30,64,175,.5)),
    url('../assets/schools-banner.jpg');
  background-size: cover;
  background-position: center;
  color: #fff; padding: 48px 0 0;
}
.detail-hero-inner { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 40px; }
.detail-logo {
  width: 88px; height: 88px; border-radius: 20px; display: grid; place-items: center;
  font-size: 40px; font-weight: 800; color: #fff; flex-shrink: 0; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  overflow: hidden;
}
.detail-logo-img { background: #fff; }
.detail-logo-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.detail-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.detail-hero .sub { color: rgba(255,255,255,.85); font-size: 16px; margin-bottom: 14px; }
.detail-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-hero .badges span {
  font-size: 13px; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}
.detail-actions { margin-left: auto; display: flex; gap: 12px; align-self: center; }

.detail-body { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 40px 0 72px; }
.detail-main { min-width: 0; }
.detail-side { position: sticky; top: 88px; align-self: start; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 24px;
}
.card h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card h2 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* 概览统计 */
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.overview-item { background: var(--bg); border-radius: var(--radius-sm); padding: 18px; text-align: center; }
.overview-item .num { font-size: 24px; font-weight: 800; color: var(--primary); }
.overview-item .lbl { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* 招生情况 */
.admission-bar { margin-bottom: 20px; }
.admission-bar .bar-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.admission-bar .bar-head .lbl { font-weight: 600; }
.admission-bar .bar-head .val { color: var(--primary); font-weight: 700; }
.bar-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #7c3aed); }

/* 专业列表 */
.major-list { display: flex; flex-direction: column; gap: 12px; }
.major-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; transition: all .2s;
}
.major-item:hover { border-color: var(--primary); background: var(--primary-light); }
.major-item .name { font-weight: 600; font-size: 15px; }
.major-item .degree { font-size: 13px; color: var(--ink-3); }
.major-item .fee { font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* 申请条件 */
.req-list { display: flex; flex-direction: column; gap: 14px; }
.req-item { display: flex; gap: 14px; align-items: flex-start; }
.req-item .req-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); font-size: 16px; flex-shrink: 0;
}
.req-item .req-label { font-size: 13px; color: var(--ink-3); }
.req-item .req-value { font-weight: 600; font-size: 15px; }

/* 侧边申请卡 */
.apply-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.apply-card .price { font-size: 32px; font-weight: 800; color: var(--primary); }
.apply-card .price span { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.apply-card .deadline { font-size: 14px; color: var(--ink-3); margin: 8px 0 20px; }
.apply-card .deadline strong { color: var(--danger); }
.apply-card ul { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.apply-card ul li { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.apply-card ul li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   申请中心页
   ============================================================ */
.apply-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--ink-3); }

/* 申请表单 */
.apply-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 720px; margin: 0 auto; }
.apply-form-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.apply-form-card > p { color: var(--ink-3); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid + .form-section-title,
.cv-item-list + .form-section-title { margin-top: 32px; }
.form-section-title {
  font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.form-section-title::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--primary);
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink); background: var(--white); transition: border .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: 28px; }

/* 简历动态条目 */
.section-optional { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.form-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.form-section-head .form-section-title {
  margin: 0; padding: 0; border: none;
}
.btn-add-item {
  font-size: 13px; font-weight: 600; color: var(--primary);
  padding: 7px 14px; border: 1px solid var(--primary); border-radius: 999px;
  background: var(--white); transition: all .2s; white-space: nowrap;
}
.btn-add-item:hover { background: var(--primary); color: #fff; }
.cv-item-list { display: flex; flex-direction: column; gap: 16px; }
.cv-item-row { grid-template-columns: 200px 1fr; }
.cv-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; background: var(--bg);
}
.cv-item + .cv-item { margin-top: 0; }
.cv-item-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.cv-item-index { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.btn-remove-item {
  width: 26px; height: 26px; border-radius: 6px; font-size: 13px; line-height: 1;
  color: var(--ink-3); background: var(--white); border: 1px solid var(--line);
  transition: all .2s;
}
.btn-remove-item:hover { color: var(--danger); border-color: var(--danger); }
.verify-row { display: flex; gap: 10px; }
.verify-row input { flex: 1; }
.verify-btn { flex-shrink: 0; padding: 0 18px; }
.auth-message {
  min-height: 22px;
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--danger);
}
.auth-message.success { color: var(--success); }
.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-3);
}
.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   关于我们页
   ============================================================ */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.value-card .icon { font-size: 40px; margin-bottom: 16px; }
.value-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.value-card p { color: var(--ink-3); font-size: 15px; }

/* ============================================================
   最新资讯页
   ============================================================ */
.news-page { padding: 36px 24px 72px; }
.portal-news-page { background: #f3f7ff; max-width: none; padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px)); padding-right: max(24px, calc((100vw - 1200px) / 2 + 24px)); }
.portal-news-grid {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.portal-news-card {
  min-height: 326px; background: #fff; border: 1px solid #e5e7eb; border-radius: 0;
  padding: 20px 20px 18px; box-shadow: 0 2px 12px rgba(15, 23, 42, .14);
}
.portal-news-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid #e5e7eb; margin-bottom: 14px;
}
.portal-news-head h2 {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary); color: var(--primary); font-size: 20px; line-height: 1.1;
  font-weight: 500; letter-spacing: 0;
}
.portal-news-head h2 span { font-size: 24px; line-height: 1; color: var(--primary); }
.portal-news-head h2 em { color: #c4c4c4; font-size: 12px; font-style: normal; font-weight: 400; }
.portal-news-head a { color: #999; font-size: 14px; white-space: nowrap; }
.portal-news-head a:hover { color: var(--primary); }
.portal-summary { padding: 2px 0 14px; border-bottom: 1px solid #d6d6d6; margin-bottom: 10px; }
.portal-summary strong { display: block; color: var(--primary); font-size: 14px; margin-bottom: 8px; }
.portal-summary p {
  color: #9a9a9a; font-size: 12px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.portal-bullet-list { list-style: none; display: grid; gap: 9px; }
.portal-bullet-list li { position: relative; padding-left: 13px; }
.portal-bullet-list li::before {
  content: ''; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; background: var(--primary);
}
.portal-bullet-list a,
.portal-simple-list a,
.portal-timeline a,
.portal-report-list a {
  color: #3f3f46; font-size: 14px; line-height: 1.55; transition: color .2s;
}
.portal-bullet-list a:hover,
.portal-simple-list a:hover,
.portal-timeline a:hover span:last-child,
.portal-report-list a:hover span:last-child { color: var(--primary); }
.portal-timeline { display: grid; gap: 13px; }
.portal-timeline a {
  display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: start;
}
.portal-date {
  display: grid; justify-items: start; padding-right: 8px; border-right: 1px solid #cfd8dc;
  color: var(--primary); line-height: 1.1;
}
.portal-date strong { font-size: 18px; font-style: italic; font-weight: 400; }
.portal-date em { margin-top: 4px; font-size: 11px; font-style: italic; }
.portal-simple-list { display: grid; gap: 14px; }
.portal-simple-list a {
  display: block; padding: 4px 0 4px 12px; border-left: 4px solid var(--primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.portal-report-list { display: grid; gap: 11px; }
.portal-report-list a {
  display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: start;
  min-height: 48px; padding: 8px 10px; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
}
.portal-year {
  display: grid; place-items: center; align-self: start; background: var(--primary); color: #fff;
  min-height: 32px; font-size: 16px; line-height: 1.1;
}
.portal-year em {
  width: 100%; padding-top: 4px; background: #fff; color: #444; font-size: 13px;
  font-style: normal; text-align: center;
}
.portal-image-list { display: grid; gap: 12px; }
.portal-image-list a {
  display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center;
  min-height: 76px; padding: 8px; border: 1px solid #e5e7eb; background: #fff;
}
.portal-image-list img { width: 100px; height: 60px; object-fit: cover; }
.portal-image-list strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #3f3f46; font-size: 13px; line-height: 1.55; font-weight: 500;
}
.portal-image-list em { display: block; margin-top: 4px; color: #aaa; font-size: 12px; font-style: normal; }
.news-search-wrap {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 18px 0; box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
}
.news-search-box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  max-width: 780px; margin: 0 auto;
}
.news-search-box input {
  width: 100%; height: 46px; padding: 0 16px; border: 1.5px solid var(--line);
  border-radius: 8px; color: var(--ink); font-size: 15px; background: #fff;
}
.news-search-box input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.news-search-box .btn { height: 46px; padding: 0 26px; border-radius: 8px; }
.news-category-page { padding: 34px 24px 72px; }
.news-category-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; color: var(--ink-3); font-size: 14px;
}
.news-category-toolbar a {
  color: var(--primary); font-weight: 700; padding: 8px 0;
}
.news-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: var(--ink-3); font-size: 14px;
}
.news-breadcrumb a { color: var(--ink-2); font-weight: 600; padding: 0; }
.news-breadcrumb a:hover { color: var(--primary); }
.news-breadcrumb span { color: #94a3b8; }
.news-breadcrumb strong { color: var(--primary); font-weight: 800; }
.news-category-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.news-category-list {
  display: grid; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 18px; box-shadow: var(--shadow);
}
.news-category-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 18px;
  padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.news-category-item.no-image { grid-template-columns: 1fr; }
.news-category-item.active { border-color: var(--primary); background: var(--primary-light); }
.news-category-item img { width: 140px; height: 92px; object-fit: cover; border-radius: 6px; }
.news-category-item time { color: var(--primary); font-size: 13px; font-weight: 800; }
.news-category-item h2 { margin: 6px 0 8px; font-size: 20px; line-height: 1.35; font-weight: 800; letter-spacing: 0; }
.news-category-item p { color: var(--ink-3); font-size: 14px; }
.news-category-side {
  position: sticky; top: 92px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 20px; box-shadow: var(--shadow);
}
.news-category-side h3 {
  font-size: 18px; font-weight: 800; padding-bottom: 12px;
  margin-bottom: 10px; border-bottom: 2px solid var(--primary);
}
.news-category-side a {
  display: block; padding: 11px 10px; border-radius: 6px;
  color: var(--ink-2); font-size: 14px; font-weight: 700;
}
.news-category-side a:hover,
.news-category-side a.active { background: var(--primary-light); color: var(--primary); }
.news-detail-page { padding: 34px 24px 72px; }
.news-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.news-detail-article {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 34px 40px 42px; box-shadow: var(--shadow);
}
.news-detail-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 13px; margin-bottom: 16px;
}
.news-detail-meta span {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px;
  color: var(--primary); background: var(--primary-light); font-weight: 800;
}
.news-detail-meta em { font-style: normal; }
.news-detail-article h1 {
  max-width: 860px; font-size: 34px; line-height: 1.28; font-weight: 800;
  letter-spacing: 0; margin-bottom: 22px;
}
.news-detail-cover {
  width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px;
  margin: 0 0 28px; background: var(--bg);
}
.news-detail-content { max-width: 820px; }
.news-detail-content p {
  color: var(--ink-2); font-size: 16px; line-height: 1.9; margin-bottom: 18px;
}
.news-cats {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
  padding-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.news-cat {
  padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 700;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-2); transition: all .2s;
}
.news-cat:hover { border-color: var(--primary); color: var(--primary); }
.news-cat.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-top-grid {
  display: grid; grid-template-columns: minmax(0, 1.65fr) 360px;
  gap: 28px; align-items: stretch; margin-bottom: 32px;
}
.news-lead {
  position: relative; min-height: 430px; overflow: hidden; cursor: pointer;
  background: #020617; border-radius: 8px; box-shadow: var(--shadow);
}
.news-lead img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .35s ease; }
.news-lead:hover img { transform: scale(1.03); }
.news-lead-content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px;
  color: #fff; background: linear-gradient(180deg, transparent, rgba(2,6,23,.9));
}
.news-lead-content h2 { max-width: 760px; font-size: 34px; line-height: 1.22; font-weight: 800; margin: 14px 0 12px; letter-spacing: 0; }
.news-lead-content p { max-width: 680px; color: rgba(255,255,255,.84); font-size: 16px; }
.news-lead-content .news-meta { color: rgba(255,255,255,.72); margin-top: 14px; }
.news-side,
.news-rank {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 22px; box-shadow: var(--shadow);
}
.news-side { display: flex; flex-direction: column; gap: 24px; }
.news-side-block h3,
.news-rank h3 {
  font-size: 18px; font-weight: 800; line-height: 1.2; padding-bottom: 12px;
  border-bottom: 2px solid var(--ink); margin-bottom: 14px;
}
.news-side-block a {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.news-side-block a:last-child { border-bottom: 0; }
.news-side-block a:hover span { color: var(--primary); }
.news-side-block time { color: var(--primary); font-size: 13px; font-weight: 800; }
.news-side-block span { font-size: 14px; font-weight: 600; line-height: 1.55; transition: color .2s; }
.news-topic-list { display: flex; flex-wrap: wrap; gap: 10px; }
.news-topic-list button {
  padding: 8px 12px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 700; transition: all .2s;
}
.news-topic-list button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.news-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.news-list { display: flex; flex-direction: column; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.news-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 22px; background: var(--white);
  border-bottom: 1px solid var(--line); padding: 22px; cursor: pointer; transition: all .25s;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: #f8fbff; }
.news-thumb {
  width: 220px; height: 136px; object-fit: cover; border-radius: 6px; background: var(--bg);
}
.news-tag {
  display: inline-flex; flex-shrink: 0; align-self: flex-start; font-size: 13px; font-weight: 800;
  padding: 4px 10px; border-radius: 4px; background: var(--primary-light); color: var(--primary);
}
.news-tag.hot { background: #fef3c7; color: #b45309; }
.news-row-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.news-row-meta time { font-size: 13px; color: var(--ink-3); }
.news-body h2 { font-size: 21px; line-height: 1.35; font-weight: 800; margin-bottom: 8px; transition: color .2s; letter-spacing: 0; }
.news-item:hover .news-body h2 { color: var(--primary); }
.news-body p { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.news-meta { font-size: 13px; color: var(--ink-3); }
.news-rank { position: sticky; top: 92px; }
.news-rank a {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.news-rank a:last-child { border-bottom: 0; }
.news-rank strong {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 800;
}
.news-rank a:nth-of-type(1) strong,
.news-rank a:nth-of-type(2) strong,
.news-rank a:nth-of-type(3) strong { background: var(--primary); }
.news-rank span { font-size: 14px; font-weight: 700; line-height: 1.55; color: var(--ink-2); transition: color .2s; }
.news-rank a:hover span { color: var(--primary); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: #0f172a; color: #94a3b8; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 13px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .country-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .school-grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .apply-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .match-form-grid { grid-template-columns: 1fr 1fr; }
  .match-grid { grid-template-columns: 1fr 1fr; }
  .essay-type-grid { grid-template-columns: 1fr 1fr; }
  .essay-editor { grid-template-columns: 1fr; }
  .editor-chat { position: static; }
  .apply-workspace { grid-template-columns: 1fr; }
  .gm-body { grid-template-columns: 1fr; }
  .gm-sidebar { position: static; }
  .assess-workspace { grid-template-columns: 1fr; }
  .academic-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .biz-steps { grid-template-columns: 1fr 1fr; }
  .apply-system-shell { grid-template-columns: 220px 1fr; }
  .apply-system-panel { padding: 24px; }
  .target-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-library-filters,
  .workspace-school-grid,
  .workspace-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .essay-mini-grid,
  .diy-doc-grid,
  .assessment-system-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .portal-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .hero h1 { font-size: 36px; }
  .search-form { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .schools-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .detail-hero-inner { flex-direction: column; }
  .detail-actions { margin-left: 0; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .match-form-grid { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: 1fr; }
  .essay-type-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-list { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-steps { grid-template-columns: 1fr; padding: 18px; }
  .biz-steps::before { display: none; }
  .biz-step { min-height: 0; }
  .table-wrap { overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .news-page { padding: 28px 18px 56px; }
  .portal-news-page { padding-left: 18px; padding-right: 18px; }
  .portal-news-grid { grid-template-columns: 1fr; gap: 18px; }
  .portal-news-card { min-height: 0; padding: 18px; }
  .portal-news-head h2 { font-size: 19px; }
  .news-search-box { grid-template-columns: 1fr; }
  .news-search-box .btn { width: 100%; }
  .news-category-page { padding: 28px 18px 56px; }
  .news-category-toolbar { flex-direction: column; align-items: flex-start; }
  .news-category-layout { grid-template-columns: 1fr; }
  .news-category-side { position: static; }
  .news-category-item { grid-template-columns: 1fr; }
  .news-category-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .news-detail-page { padding: 28px 18px 56px; }
  .news-detail-layout { grid-template-columns: 1fr; }
  .news-detail-article { padding: 24px 20px 30px; }
  .news-detail-article h1 { font-size: 25px; }
  .news-cats { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 14px; }
  .news-cat { flex: 0 0 auto; }
  .news-top-grid,
  .news-main-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-lead { min-height: 360px; }
  .news-lead-content { padding: 24px; }
  .news-lead-content h2 { font-size: 25px; }
  .news-side,
  .news-rank { position: static; padding: 18px; }
  .news-item { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .news-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .news-body h2 { font-size: 18px; }
  .apply-system-shell { display: block; }
  .apply-system-sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }
  .apply-system-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .apply-system-card { margin-top: 0; }
  .apply-system-topbar {
    height: auto;
    align-items: flex-start;
    padding: 18px 20px;
  }
  .apply-system-panel { padding: 20px; }
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }
  .target-summary-grid { grid-template-columns: 1fr 1fr; }
  .workspace-library-filters,
  .workspace-school-grid,
  .workspace-detail-grid,
  .matched-teacher-section,
  .progress-overview-grid,
  .progress-board-grid { grid-template-columns: 1fr; }
  .matched-teacher-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .assessment-bars div { grid-template-columns: 68px 1fr 28px; }
}

/* ============================================================
   智能文书系统
   ============================================================ */
.essay-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.essay-type-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; cursor: pointer; transition: all .22s; text-align: center;
}
.essay-type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.essay-type-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: var(--primary-light); }
.essay-type-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.essay-type-en { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; letter-spacing: .5px; }
.essay-type-card p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.essay-draft-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.essay-draft {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; cursor: pointer; transition: all .2s;
}
.essay-draft:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.draft-type { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.draft-info { flex: 1; min-width: 0; }
.draft-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.draft-action { font-size: 14px; color: var(--primary); font-weight: 600; flex-shrink: 0; }

.essay-write-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; max-width: 820px; }

/* 文书编辑器 */
.essay-editor { display: grid; grid-template-columns: 1fr 380px; gap: 24px; padding: 32px 24px 72px; align-items: start; }
.editor-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.editor-doc-title { font-size: 14px; font-weight: 600; }
.editor-word-count { font-size: 12px; color: var(--ink-3); }
.editor-textarea {
  width: 100%; min-height: 560px; padding: 24px; border: none; resize: vertical;
  font-size: 15px; line-height: 1.9; color: var(--ink); font-family: var(--font);
}
.editor-textarea:focus { outline: none; }

/* ============================================================
   申请中心（AI 对话）与聊天组件
   ============================================================ */
.apply-workspace { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 32px 24px 72px; align-items: start; }
.apply-sidebar { display: flex; flex-direction: column; gap: 16px; }
.apply-side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.apply-side-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.apply-progress { display: flex; flex-direction: column; gap: 14px; }
.progress-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.progress-step .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.progress-step.done { color: var(--ink-2); }
.progress-step.done .dot { background: var(--success); }
.progress-step.current { color: var(--primary); font-weight: 600; }
.progress-step.current .dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.apply-tool { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: all .15s; }
.apply-tool:hover { background: var(--primary-light); color: var(--primary); }
.tool-ic { width: 22px; text-align: center; }

.chat-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; flex-shrink: 0; }
.chat-head-info { min-width: 0; }
.chat-name { font-size: 15px; font-weight: 700; }
.chat-status { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-height: 360px; max-height: 520px; background: var(--bg); }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.msg.ai { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-2); }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 0; }
.chat-quick button { padding: 7px 14px; border-radius: 999px; font-size: 13px; background: var(--primary-light); color: var(--primary); border: 1px solid transparent; transition: all .15s; }
.chat-quick button:hover { border-color: var(--primary); }
.chat-input { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.chat-input .btn { flex-shrink: 0; }
.editor-chat { position: sticky; top: 88px; }

/* ============================================================
   申请中心独立系统
   ============================================================ */
.application-mode {
  background: #eef2f7;
}
.application-mode .site-header,
.application-mode .site-footer {
  display: none;
}
.apply-system-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #eef2f7;
}
.apply-system-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: #0f172a;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  overflow: visible;
  transition: padding .18s ease, background .18s ease;
}
.apply-sidebar-toggle {
  position: absolute;
  top: 18px;
  right: 14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1;
  transition: all .18s;
}
.apply-sidebar-toggle:hover { background: rgba(96,165,250,.24); color: #fff; }
.apply-sidebar-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 3;
}
.apply-sidebar-resizer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  background: transparent;
  transition: background .18s;
}
.apply-sidebar-resizer:hover::after,
.is-resizing-sidebar .apply-sidebar-resizer::after { background: #60a5fa; }
.is-resizing-sidebar { cursor: col-resize; user-select: none; }
.apply-system-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.apply-system-brand strong,
.apply-system-card strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.28;
}
.apply-system-brand small,
.apply-system-card span,
.apply-system-card p {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 3px;
}
.apply-system-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apply-system-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 8px;
  transition: all .18s;
  color: #e2e8f0;
}
.apply-system-nav-item:hover,
.apply-system-nav-item.active {
  background: rgba(37,99,235,.18);
  color: #fff;
}
.apply-system-nav-item.active {
  box-shadow: inset 3px 0 0 #60a5fa;
}
.apply-system-nav-item strong {
  display: block;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.32;
}
.apply-system-nav-item small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}
.apply-system-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.apply-system-card p {
  line-height: 1.6;
}
.apply-system-exit {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}
.apply-system-exit:hover {
  background: rgba(255,255,255,.08);
}
.apply-system-shell.sidebar-collapsed .apply-system-sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  gap: 0;
  background: transparent;
  color: transparent;
}
.apply-system-shell.sidebar-collapsed .apply-system-brand,
.apply-system-shell.sidebar-collapsed .apply-system-brand > span:last-child,
.apply-system-shell.sidebar-collapsed .apply-system-nav-item span,
.apply-system-shell.sidebar-collapsed .apply-system-nav,
.apply-system-shell.sidebar-collapsed .apply-system-card,
.apply-system-shell.sidebar-collapsed .apply-system-exit,
.apply-system-shell.sidebar-collapsed .apply-sidebar-resizer {
  display: none;
}
.apply-system-shell.sidebar-collapsed .apply-sidebar-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  right: auto;
  transform: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(37,99,235,.35);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37,99,235,.28);
}
.apply-system-main {
  min-width: 0;
}
.apply-system-shell.sidebar-collapsed .apply-system-main {
  padding-left: 58px;
}
.apply-system-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.apply-system-topbar span,
.apply-system-user span {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.apply-system-topbar strong,
.apply-system-user strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}
.apply-system-user {
  text-align: right;
}
.apply-system-panel {
  padding: 32px;
}
/* 申请中心内嵌文书编辑器 */
.apply-editor-panel .gm-toolbar {
  position: static;
  border-radius: 10px;
  margin-bottom: 20px;
}
.apply-editor-panel .gm-body {
  padding: 0;
  max-width: none;
}
.apply-editor-panel .gm-sidebar {
  position: static;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.panel-head h1 {
  font-size: 30px;
  font-weight: 760;
  line-height: 1.25;
  margin-bottom: 6px;
}
.panel-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 8px;
}
.panel-crumb a {
  color: #64748b;
  transition: color .18s;
}
.panel-crumb a:hover {
  color: var(--primary);
}
.panel-crumb span,
.panel-crumb em {
  color: #94a3b8;
  font-style: normal;
}
.panel-head p {
  color: var(--ink-3);
  max-width: 660px;
}
.target-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.metric-box {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: all .18s;
}
.metric-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.metric-box.active {
  border-color: var(--primary);
  background: #eff6ff;
}
.metric-box span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 8px;
}
.metric-box strong {
  font-size: 28px;
  line-height: 1;
}
.target-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.target-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.target-table th,
.target-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.target-table th {
  background: #f8fafc;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}
.target-table tr:last-child td {
  border-bottom: none;
}
.target-school-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.target-school-cell .school-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 16px;
}
.target-school-cell span {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}
.status-pill.doing {
  background: var(--primary-light);
  color: var(--primary);
}
.workspace-library-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filter-select-block label {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.workspace-library-filters select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
.workspace-school-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.workspace-school-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.workspace-school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.workspace-school-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink-2);
  font-size: 12px;
}
.workspace-school-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.workspace-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.workspace-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.workspace-detail-card > strong {
  display: block;
  font-size: 18px;
  margin-bottom: 14px;
}
.workspace-detail-card p {
  color: var(--ink-2);
  margin-bottom: 10px;
}
.progress-overview-grid,
.progress-board-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.progress-main-card,
.progress-next-card,
.progress-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.progress-main-card > span,
.progress-next-card > span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.progress-main-card strong,
.progress-next-card strong {
  display: block;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}
.progress-main-card p,
.progress-next-card p {
  color: var(--ink-3);
  margin-top: 12px;
}
.progress-track {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.progress-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.progress-card h2 {
  font-size: 18px;
  font-weight: 760;
  margin-bottom: 16px;
}
.progress-timeline {
  display: grid;
  gap: 14px;
}
.progress-step {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 12px;
}
.progress-step i {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}
.progress-step.done i,
.progress-step.active i {
  background: var(--primary);
}
.progress-step strong {
  color: var(--ink);
  font-size: 15px;
}
.progress-step span {
  grid-column: 2;
  color: var(--ink-3);
  font-size: 13px;
}
.progress-todo-list {
  display: grid;
  gap: 12px;
}
.progress-todo-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
}
.progress-todo-list input {
  width: 16px;
  height: 16px;
}
/* ===== 申请进度 · 高级版 ===== */
.progress-season-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
}
/* ===== 申请进度 · 专业版 ===== */
.prog-summary {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.prog-summary-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.prog-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.prog-label { display: block; color: var(--ink-3); font-size: 13px; margin-bottom: 6px; }
.prog-percent { font-size: 40px; font-weight: 800; line-height: 1; color: var(--ink); }
.prog-summary-desc { color: var(--ink-3); font-size: 13px; line-height: 1.6; margin-top: 12px; white-space: nowrap; }
.prog-stage { text-align: right; }
.prog-stage strong { display: block; font-size: 18px; color: var(--ink); }
.prog-stage p { color: var(--ink-3); font-size: 13px; line-height: 1.6; margin-top: 6px; max-width: 320px; }
.prog-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
}
.prog-bar b { display: block; height: 100%; background: var(--primary); }
.prog-bar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}
.prog-bar-meta span { font-size: 12.5px; color: var(--ink-3); }
.prog-bar-meta span.on { color: var(--primary); font-weight: 600; }
.prog-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.prog-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.prog-stat span { display: block; color: var(--ink-3); font-size: 13px; margin-bottom: 8px; }
.prog-stat strong { font-size: 26px; line-height: 1; color: var(--ink); }
.prog-stat em { display: block; font-style: normal; color: var(--ink-3); font-size: 12px; margin-top: 6px; }
.prog-section { margin-bottom: 28px; }
.prog-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  align-items: start;
}
.prog-col { min-width: 0; }
.prog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.prog-section-head h2 { font-size: 19px; font-weight: 700; color: var(--ink); }
.prog-section-head span { color: var(--ink-3); font-size: 14px; }
.prog-timeline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 24px;
}
.prog-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.prog-step:last-child { border-bottom: none; }
.prog-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 6px;
  flex-shrink: 0;
}
.prog-step.done .prog-step-dot { background: var(--success); }
.prog-step.active .prog-step-dot { background: var(--primary); }
.prog-step-body { flex: 1; min-width: 0; }
.prog-step-head { display: flex; align-items: center; justify-content: space-between; }
.prog-step-head strong { font-size: 15px; color: var(--ink); }
.prog-step-head span { font-size: 12px; color: var(--ink-3); }
.prog-step.done .prog-step-head span { color: var(--success); }
.prog-step.active .prog-step-head span { color: var(--primary); font-weight: 600; }
.prog-step-body p { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.prog-step-date { color: var(--ink-3); font-size: 12px; margin-top: 6px; }
.prog-material-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.prog-mat-group { margin-bottom: 16px; }
.prog-mat-group:last-child { margin-bottom: 0; }
.prog-mat-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.prog-mat-group-head strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.prog-mat-group-head span { font-size: 12px; color: var(--ink-3); }
.prog-mat-group .prog-material-table { border-radius: 0 0 8px 8px; }
/* 院校独特材料（每个学校下方） */
.school-material-row td {
  background: #f8fafc;
  padding: 12px 18px 12px 70px;
  border-bottom: 1px solid var(--line);
}
.school-material-table {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.school-material-table .prog-material-row {
  grid-template-columns: 140px 1fr 90px 70px;
  padding: 10px 16px;
}
.school-material-table .prog-material-row:last-child { border-bottom: none; }
.school-cell-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.school-toggle {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s;
}
.school-toggle:hover { border-color: var(--primary); color: var(--primary); }
/* 编辑院校按钮 */
.prog-edit-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s;
}
.prog-edit-btn svg { width: 16px; height: 16px; }
.prog-edit-btn:hover { border-color: var(--primary); color: var(--primary); }
/* 编辑院校弹窗 */
.school-edit-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  max-height: 320px;
  overflow-y: auto;
}
.school-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr 30px;
  gap: 8px;
  align-items: center;
}
.school-edit-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.school-edit-input:focus { border-color: var(--primary); }
.school-edit-del {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-3);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.school-edit-del:hover { border-color: #dc2626; color: #dc2626; }
.profile-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.9)),
    linear-gradient(135deg, rgba(37,99,235,.12), rgba(16,185,129,.12));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}
.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.profile-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), transparent),
    linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 12px 22px rgba(37, 99, 235, .24);
}
.profile-main { flex: 1; min-width: 0; }
.profile-main strong { display: block; font-size: 25px; line-height: 1.2; color: var(--ink); }
.profile-main span,
.profile-main p { display: block; color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.profile-member-link {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 4px;
}
.profile-member-link:hover {
  color: var(--primary);
}
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.profile-info-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.profile-info-item:last-child { border-bottom: none; }
.profile-info-item span { color: var(--ink-3); font-size: 15px; }
.profile-info-item strong { color: var(--ink); font-size: 16px; }
.profile-pref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.profile-pref-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.profile-pref-item span { display: block; color: var(--ink-3); font-size: 15px; margin-bottom: 6px; }
.profile-pref-item strong { font-size: 17px; color: var(--ink); }
.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 20px;
  align-items: start;
}
.profile-left,
.profile-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.profile-membership-card,
.profile-profile-card,
.profile-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}
.profile-membership-card {
  display: block;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0f766e);
  border-color: transparent;
  overflow: hidden;
  position: relative;
  transition: transform .18s, box-shadow .18s;
}
.profile-membership-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .12);
}
.profile-membership-card::after {
  content: '';
  position: absolute;
  top: -52px;
  right: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.profile-membership-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.profile-membership-head span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  margin-bottom: 4px;
}
.profile-membership-head strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}
.profile-membership-head em {
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}
.profile-benefit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.profile-benefit-grid div {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 13px 14px;
}
.profile-benefit-grid strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 5px;
}
.profile-benefit-grid span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.profile-record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.profile-record-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 18px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfdff;
  color: inherit;
  transition: all .18s;
}
.profile-record-grid a:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.profile-record-grid span {
  display: block;
  color: var(--primary);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.profile-record-grid strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}
.profile-record-grid b {
  color: var(--ink-3);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.service-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 210px;
  padding: 34px 36px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8,15,31,.88), rgba(15,23,42,.58) 48%, rgba(15,23,42,.2)),
    url('../assets/campus-banner.jpg');
  background-size: cover;
  background-position: center 42%;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
  position: relative;
}
.service-status-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.18));
  pointer-events: none;
}
.service-status-main,
.service-status-pill {
  position: relative;
  z-index: 1;
}
.service-status-card span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  margin-bottom: 6px;
}
.service-status-card strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
}
.service-status-card p {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  margin-top: 8px;
}
.service-status-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  max-width: 620px;
}
.service-status-meta div {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}
.service-status-meta small,
.service-status-meta b {
  display: block;
}
.service-status-meta small {
  color: rgba(255,255,255,.68);
  font-size: 12px;
}
.service-status-meta b {
  color: #fff;
  font-size: 14px;
  margin-top: 3px;
}
.service-status-pill {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.service-detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.34);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}
.service-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.service-card-top i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
}
.service-card-top span {
  display: block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.service-detail-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}
.service-detail-card p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
  min-height: 72px;
}
.service-detail-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
.service-detail-card a:hover {
  color: var(--primary-dark);
}
.profile-edit-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}
.profile-edit-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.profile-avatar-upload {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.profile-avatar-upload input {
  display: none;
}
.profile-avatar-upload .profile-avatar {
  transition: transform .18s, box-shadow .18s;
  overflow: hidden;
  text-align: center;
  line-height: 72px;
  font-size: 36px;
  color: #fff;
}
.profile-avatar-upload:hover .profile-avatar {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .28);
}
.profile-avatar.has-image {
  background: #fff;
  line-height: normal;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-upload em {
  color: var(--primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}
.profile-edit-head strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}
.profile-edit-head span {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 6px;
}
.profile-edit-section + .profile-edit-section {
  margin-top: 28px;
}
.profile-edit-section #profileMasterFields + #profileUniversityFields {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.profile-edit-section h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}
.profile-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.profile-status-list,
.profile-message-list,
.profile-preference-list {
  display: grid;
  gap: 12px;
}
.profile-message-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.profile-message-list a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.profile-message-list strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.profile-message-list span {
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.profile-message-list a:hover strong {
  color: var(--primary);
}
/* 消息中心页面 */
.msg-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.msg-tab {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.msg-tab:hover {
  color: var(--primary);
}
.msg-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}
.msg-list {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.msg-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.msg-item:last-child {
  border-bottom: none;
}
.msg-item:hover {
  background: var(--primary-light);
}
.msg-item-main {
  flex: 1;
  min-width: 0;
}
.msg-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.msg-item-head strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.msg-item.unread .msg-item-head strong {
  color: var(--primary);
}
.msg-item-head span {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}
.msg-item-main p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.msg-item-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.msg-item-content {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}
.msg-item {
  cursor: pointer;
}
/* 我的文书页面 */
.my-essay-list {
  display: grid;
  gap: 12px;
}
.my-essay-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s;
}
.my-essay-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.my-essay-type {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 22px;
  text-align: center;
  line-height: 1;
}
.my-essay-type svg {
  width: 22px;
  height: 22px;
}
.my-essay-main {
  flex: 1;
  min-width: 0;
}
.my-essay-main strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.my-essay-main span {
  font-size: 13px;
  color: var(--ink-3);
}
.my-essay-status {
  flex-shrink: 0;
  color: var(--success);
  background: #ecfdf5;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}
/* 我的订单页面 */
.my-order-list {
  display: grid;
  gap: 12px;
}
.my-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all .18s;
}
.my-order-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.my-order-main {
  flex: 1;
  min-width: 0;
}
.my-order-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.my-order-head strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.my-order-status {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.my-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.my-order-meta span {
  font-size: 13px;
  color: var(--ink-3);
}
.my-order-amount {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.profile-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 0 13px;
  border-bottom: 1px solid var(--line);
}
.profile-status-list div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.profile-status-list span {
  color: var(--ink-3);
  font-size: 14px;
}
.profile-status-list strong {
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 14px;
  text-align: right;
}
.profile-preference-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  transition: all .18s;
}
.profile-preference-list a::after {
  content: '›';
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
}
.profile-preference-list a:last-child {
  border-bottom: none;
}
.profile-preference-list a:hover {
  color: var(--primary);
}
.profile-settings {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.profile-settings-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  transition: all .15s;
}
.profile-settings-link:hover { border-color: var(--primary-dark); color: var(--primary-dark); background: var(--primary-light); }
.profile-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.profile-setting-row:last-child { border-bottom: none; }
.profile-setting-info { flex: 1; min-width: 0; }
.profile-setting-info strong { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }
.profile-setting-info span { display: block; color: var(--ink-3); font-size: 14px; margin-top: 3px; }
.profile-setting-btn {
  padding: 7px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.profile-setting-btn:hover { border-color: var(--primary); color: var(--primary); }
.profile-setting-btn.danger { color: #dc2626; border-color: #fecaca; }
.profile-setting-btn.danger:hover { background: #fef2f2; border-color: #dc2626; }
.profile-setting-toggle {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #e2e8f0;
  border: none;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.profile-setting-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: left .2s;
}
.profile-setting-toggle.on { background: var(--primary); }
.profile-setting-toggle.on::after { left: 23px; }
@media (max-width: 760px) {
  .profile-info-grid { grid-template-columns: 1fr; }
  .profile-pref-grid { grid-template-columns: 1fr 1fr; }
  .profile-hero-card,
  .profile-hero-main,
  .profile-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-hero-actions,
  .profile-hero-actions .btn { width: 100%; }
  .profile-dashboard { grid-template-columns: 1fr; }
  .profile-membership-head { flex-direction: column; }
  .profile-benefit-grid,
  .profile-record-grid,
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-status-card { flex-direction: column; align-items: flex-start; }
  .service-status-meta { grid-template-columns: 1fr; width: 100%; }
  .profile-edit-actions { flex-direction: column-reverse; }
  .profile-edit-actions .btn { width: 100%; }
}
.prog-material-row {
  display: grid;
  grid-template-columns: 140px 1fr 90px 70px;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.prog-material-row:last-child { border-bottom: none; }
.prog-mat-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.prog-mat-desc { font-size: 13px; color: var(--ink-3); }
.prog-mat-status {
  justify-self: end;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}
.prog-mat-status.done { color: var(--success); background: #f0fdf4; }
.prog-mat-status.doing { color: var(--primary); background: var(--primary-light); }
.prog-mat-status.todo { color: var(--ink-3); background: #f1f5f9; }
.prog-mat-upload {
  justify-self: end;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.prog-mat-upload:hover { border-color: var(--primary); color: var(--primary); }
/* 上传文件弹窗 */
.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.5);
}
.upload-modal-box {
  position: relative;
  width: 460px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(15,23,42,.2);
  padding: 24px;
}
.upload-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.upload-modal-head h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.upload-modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 18px;
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.upload-modal-close:hover { background: #e2e8f0; color: var(--ink); }
.upload-dropzone {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.upload-dropzone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-dropzone-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.upload-dropzone p { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.upload-dropzone span { font-size: 12px; color: var(--ink-3); }
.upload-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.upload-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.mini-progress {
  width: 90px;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}
.mini-progress b { display: block; height: 100%; background: var(--primary); }
.countdown { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.countdown.warn { color: #dc2626; }
.prog-alert-list { display: grid; gap: 10px; }
.prog-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px;
}
.prog-alert.urgent { border-left: 3px solid #dc2626; }
.prog-alert-info { flex: 1; min-width: 0; }
.prog-alert-info strong { display: block; font-size: 14px; color: var(--ink); }
.prog-alert-info span { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.prog-alert-days { font-size: 14px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
.prog-alert.urgent .prog-alert-days { color: #dc2626; }
@media (max-width: 1100px) {
  .prog-summary { grid-template-columns: 1fr; }
  .prog-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .prog-stats { grid-template-columns: 1fr 1fr; }
  .prog-material-row { grid-template-columns: 1fr; gap: 6px; }
  .prog-mat-status { justify-self: start; }
}
.essay-mini-grid,
.diy-doc-grid,
.assessment-system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.assessment-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.assessment-form-card label,
.filter-select-block label {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.assessment-form-card input,
.assessment-form-card select,
.assessment-form-card textarea,
.workspace-library-filters select {
  font-size: 15px;
  line-height: 1.5;
}
.assessment-form-card .form-submit {
  min-width: 180px;
}
.essay-mini-grid a,
.diy-doc,
.assessment-result-context,
.score-card,
.assessment-bars,
.writing-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.assessment-result-context {
  grid-column: 1 / -1;
  padding: 20px 22px;
}
.assessment-result-context span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 8px;
}
.assessment-result-context strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.3;
}
.assessment-result-context p {
  color: var(--ink-3);
  margin-top: 8px;
}
.essay-mini-grid a {
  transition: all .18s;
}
.essay-mini-grid a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.essay-mini-grid strong,
.diy-doc strong {
  display: block;
  font-size: 17px;
  font-weight: 760;
  margin-bottom: 6px;
}
.essay-mini-grid span,
.diy-doc span,
.score-card p {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.75;
}
.apply-system-chat {
  border-radius: 8px;
}
.teacher-chat-panel .chat-messages {
  min-height: 460px;
  max-height: 560px;
}
.diy-doc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .18s;
}
.diy-doc:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.matched-teacher-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
.matched-teacher-card,
.support-contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.matched-teacher-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.teacher-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  font-size: 20px;
  font-weight: 800;
}
.teacher-main {
  flex: 1;
  min-width: 0;
}
.teacher-main span {
  display: block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.teacher-main strong,
.support-contact-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}
.teacher-main p {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 6px;
}
.support-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.support-contact-list span {
  color: var(--ink-2);
  font-size: 14px;
}
.service-explain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
}
.service-explain-card > span {
  display: block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.service-explain-card p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.95;
}
.diy-doc.active {
  border-color: var(--primary);
}
.diy-doc button {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}
.writing-board {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.writing-line {
  height: 12px;
  width: 74%;
  border-radius: 999px;
  background: #e2e8f0;
}
.writing-line.wide {
  width: 100%;
}
.writing-line.short {
  width: 48%;
}
.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
}
.score-card .assess-ring {
  margin-bottom: 16px;
}
.assessment-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.assessment-bars div {
  display: grid;
  grid-template-columns: 76px 1fr 32px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.assessment-bars i {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.assessment-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.assessment-bars em {
  color: var(--ink-3);
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .apply-system-shell { grid-template-columns: 220px 1fr; }
  .apply-system-panel { padding: 24px; }
  .target-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .essay-mini-grid,
  .diy-doc-grid,
  .assessment-system-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .apply-system-shell { display: block; }
  .apply-system-sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }
  .apply-system-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .apply-system-card { margin-top: 0; }
  .apply-system-topbar {
    height: auto;
    align-items: flex-start;
    padding: 18px 20px;
  }
  .apply-system-panel { padding: 20px; }
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }
  .target-summary-grid { grid-template-columns: 1fr 1fr; }
  .assessment-bars div { grid-template-columns: 68px 1fr 28px; }
}

/* ============================================================
   Grammarly 风格文书编辑器
   ============================================================ */
.gm-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 10; }
.gm-tb-left { display: flex; align-items: center; gap: 12px; }
.gm-logo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; font-weight: 800; }
.gm-doc-title { font-size: 15px; font-weight: 700; }
.gm-doc-sub { font-size: 12px; color: var(--ink-3); }
.gm-tb-right { display: flex; align-items: center; gap: 16px; }
.gm-score-pill { font-size: 13px; color: var(--ink-2); background: var(--bg); padding: 6px 14px; border-radius: 999px; }
.gm-score-pill strong { color: var(--success); font-size: 15px; }
.gm-words { font-size: 13px; color: var(--ink-3); }
.gm-btn { padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; }
.gm-btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.gm-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.gm-btn-primary { background: var(--primary); color: #fff; }
.gm-btn-primary:hover { background: var(--primary-dark); }

/* 导出下拉菜单 */
.gm-export { position: relative; }
.gm-export-caret { font-size: 11px; margin-left: 4px; }
.gm-export-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15,23,42,.14); padding: 6px; z-index: 50;
  display: none; flex-direction: column;
}
.gm-export-menu.open { display: flex; }
.gm-export-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border: none; background: transparent; border-radius: 6px; font-size: 13.5px;
  color: var(--ink-2); cursor: pointer;
}
.gm-export-menu button:hover { background: var(--primary-light); color: var(--primary); }

/* 打印导出：只保留纸张 */
@media print {
  body * { visibility: hidden; }
  .gm-paper, .gm-paper * { visibility: visible; }
  .gm-paper { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: none; border-radius: 0; }
  .gm-paper-resume { padding: 40px !important; }
}

.gm-body { display: grid; grid-template-columns: 1fr 420px; gap: 24px; padding: 24px; max-width: 1340px; margin: 0 auto; align-items: start; }
/* 非简历（个人陈述等）：纸张在左，侧栏（AI 助手）在右 */
.gm-body .gm-paper-wrap { order: 1; }
.gm-body .gm-sidebar { order: 2; }
/* 简历：侧栏（模板选择器）在左，纸张在右 */
.gm-body-resume { grid-template-columns: 320px 1fr; }
.gm-body-resume .gm-paper-wrap { order: 2; }
.gm-body-resume .gm-sidebar { order: 1; }
.gm-paper-wrap { min-width: 0; }

/* 简历模板选择器 */
.gm-tpl-card { padding: 16px 18px; }
.gm-tpl-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.gm-tpl {
  display: flex; align-items: center; gap: 12px; padding: 8px; width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; transition: all .18s; text-align: left;
}
.gm-tpl:hover { border-color: var(--primary); background: var(--primary-light); }
.gm-tpl.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.gm-tpl-preview {
  width: 40px; height: 52px; border-radius: 4px; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08); background: #fff; position: relative; overflow: hidden;
}
.gm-tpl-preview::before, .gm-tpl-preview::after { content: ''; position: absolute; }
/* 10 个模板缩略图：各自用结构示意区分 */
/* academic 居中标题 + 通栏线 */
.gm-tpl-preview-academic::before { top: 6px; left: 12px; right: 12px; height: 3px; background: #1a1a1a; }
.gm-tpl-preview-academic::after { top: 14px; left: 5px; right: 5px; height: 1px; background: #ddd; box-shadow: 0 8px 0 #eee, 0 16px 0 #eee, 0 24px 0 #eee, 0 32px 0 #eee; }
/* executive 左右两段抬头 */
.gm-tpl-preview-executive::before { top: 7px; left: 6px; width: 16px; height: 4px; background: #111; }
.gm-tpl-preview-executive::after { top: 6px; right: 6px; width: 10px; height: 2px; background: #bbb; box-shadow: 0 5px 0 #bbb, 0 10px 0 #bbb; }
/* compact 密集横条 */
.gm-tpl-preview-compact::before { top: 5px; left: 5px; right: 5px; height: 2px; background: #222; }
.gm-tpl-preview-compact::after { top: 12px; left: 5px; right: 5px; height: 1px; background: #ddd; box-shadow: 0 6px 0 #eee, 0 12px 0 #eee, 0 18px 0 #eee, 0 24px 0 #eee, 0 30px 0 #eee; }
/* elegant 居中细线 */
.gm-tpl-preview-elegant::before { top: 10px; left: 16px; right: 16px; height: 2px; background: #999; }
.gm-tpl-preview-elegant::after { top: 18px; left: 8px; right: 8px; height: 1px; background: #eee; box-shadow: 0 8px 0 #eee, 0 16px 0 #eee, 0 24px 0 #eee; }
/* card 卡片格子 */
.gm-tpl-preview-card::before { top: 5px; left: 5px; right: 5px; height: 8px; border: 1px solid #ccc; border-radius: 3px; background: transparent; }
.gm-tpl-preview-card::after { top: 17px; left: 5px; right: 5px; height: 8px; border: 1px solid #ccc; border-radius: 3px; box-shadow: 0 13px 0 #eee, 0 26px 0 #eee; background: transparent; }
/* split 上标题 + 下横条 */
.gm-tpl-preview-split::before { top: 6px; left: 12px; right: 12px; height: 3px; background: #111; }
.gm-tpl-preview-split::after { top: 16px; left: 6px; right: 6px; height: 9px; background: #e2e8f0; border-radius: 2px; }
/* modern 大标题左对齐 */
.gm-tpl-preview-modern::before { top: 7px; left: 5px; width: 22px; height: 6px; background: #000; }
.gm-tpl-preview-modern::after { top: 18px; left: 5px; right: 5px; height: 1px; background: #eee; box-shadow: 0 7px 0 #eee, 0 14px 0 #eee, 0 21px 0 #eee, 0 28px 0 #eee; }
/* profile 圆点头像 */
.gm-tpl-preview-profile::before { top: 6px; left: 15px; width: 12px; height: 12px; border-radius: 50%; background: #6366f1; }
.gm-tpl-preview-profile::after { top: 22px; left: 8px; right: 8px; height: 1px; background: #eee; box-shadow: 0 7px 0 #eee, 0 14px 0 #eee, 0 21px 0 #eee; }
/* banner 顶部深色横幅 */
.gm-tpl-preview-banner::before { top: 0; left: 0; right: 0; height: 15px; background: linear-gradient(135deg,#0f172a,#1e3a5f); }
.gm-tpl-preview-banner::after { top: 20px; left: 6px; right: 6px; height: 1px; background: #ddd; box-shadow: 0 7px 0 #eee, 0 14px 0 #eee, 0 21px 0 #eee, 0 28px 0 #eee; }
/* classic2 双线 */
.gm-tpl-preview-classic2::before { top: 7px; left: 8px; right: 8px; height: 3px; background: #1a1a1a; }
.gm-tpl-preview-classic2::after { top: 11px; left: 8px; right: 8px; height: 1px; background: #1a1a1a; box-shadow: 0 12px 0 #eee, 0 19px 0 #eee, 0 26px 0 #eee, 0 33px 0 #eee; }
.gm-tpl-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gm-tpl-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.gm-tpl-desc { font-size: 11.5px; color: var(--ink-3); }
.gm-paper { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 48px 56px; box-shadow: var(--shadow); }
.gm-title-input { width: 100%; border: none; font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 16px; font-family: var(--font); }
.gm-title-input:focus { outline: none; }
.gm-title-line { height: 1px; background: var(--line); margin-bottom: 28px; }
.gm-doc-text { font-size: 15px; line-height: 2; color: var(--ink-2); }
.gm-doc-text p { margin-bottom: 16px; }

/* ===== 简历模板（10 个结构各异） ===== */
.gm-paper-resume { padding: 64px 72px; background: #fdfdfc; }
.rz-resume {
  color: #1a1a1a; font-size: 14px; line-height: 1.62;
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  max-width: 760px; margin: 0 auto;
}

/* 分节 */
.rz-section { margin-bottom: 22px; }
.rz-section:last-child { margin-bottom: 0; }
.rz-sec-title {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px;
  color: #1a1a1a; padding-bottom: 4px; margin-bottom: 12px;
  border-bottom: 1px solid #cfcfcf;
}
.rz-sec-body { padding-left: 2px; }
.rz-summary { font-size: 13.5px; color: #2b2b2b; line-height: 1.72; text-align: justify; }
.rz-inline { font-size: 13.5px; color: #2b2b2b; line-height: 1.7; }

/* 教育 / 经历条目 */
.rz-item { margin-bottom: 14px; }
.rz-item:last-child { margin-bottom: 0; }
.rz-item-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rz-item-lead { font-size: 14.5px; font-weight: 700; color: #111; }
.rz-item-time { font-size: 13px; color: #333; white-space: nowrap; font-variant-numeric: tabular-nums; font-style: italic; }
.rz-item-sub { font-size: 13.5px; color: #333; margin-top: 1px; }
.rz-item-detail { font-size: 13px; color: #3a3a3a; margin-top: 4px; line-height: 1.66; text-align: justify; }

/* 出版物（编号 + 悬挂缩进）*/
.rz-pub { display: flex; gap: 10px; margin-bottom: 10px; }
.rz-pub:last-child { margin-bottom: 0; }
.rz-pub-num { flex-shrink: 0; font-size: 13.5px; color: #111; font-weight: 700; min-width: 26px; }
.rz-pub-body { font-size: 13.5px; color: #2b2b2b; line-height: 1.6; }
.rz-pub-venue { font-style: italic; }
.rz-pub-note { display: block; font-size: 12.5px; color: #555; margin-top: 2px; }

/* 荣誉 */
.rz-award-row { padding: 4px 0; }
.rz-award-name { font-size: 13.5px; color: #1a1a1a; }

/* 技能 */
.rz-skill-row { display: flex; gap: 14px; padding: 3px 0; align-items: baseline; }
.rz-skill-cat { width: 128px; flex-shrink: 0; font-size: 13.5px; font-weight: 700; color: #111; }
.rz-skill-items { font-size: 13.5px; color: #2b2b2b; }

/* ===== 10 个结构各异的模板样式 ===== */

/* 1. Academic —— 居中 small-caps 抬头 + 通栏粗线 + 编号出版物 */
.rzv-academic .rzv-head { text-align: center; margin-bottom: 6px; }
.rzv-academic .rzv-name { font-size: 32px; font-weight: 700; letter-spacing: 1.5px; color: #111; margin-bottom: 8px; font-variant: small-caps; }
.rzv-academic .rzv-sub { font-size: 14.5px; font-style: italic; color: #444; margin-bottom: 10px; }
.rzv-academic .rzv-contacts { font-size: 12.5px; color: #333; }
.rzv-academic .rzv-contacts .rz-sep { color: #bbb; margin: 0 8px; }
.rzv-academic .rzv-rule { height: 2px; background: #1a1a1a; margin: 4px 0 26px; }
.rzv-academic .rz-sec-title { color: #1a1a1a; border-bottom: 1px solid #cfcfcf; }

/* 2. Executive —— 左姓名右联系 + 粗黑通栏线 */
.rzv-executive { font-family: 'Inter', var(--font); color: #1f2937; }
.rzv-executive .exe-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rzv-executive .exe-name { font-size: 30px; font-weight: 800; color: #111; letter-spacing: 0; }
.rzv-executive .exe-role { font-size: 14px; color: #555; font-weight: 600; margin-top: 4px; }
.rzv-executive .exe-right { text-align: right; }
.rzv-executive .exe-c { font-size: 12.5px; color: #555; line-height: 1.7; }
.rzv-executive .exe-rule { height: 3px; background: #111; margin: 16px 0 24px; }
.rzv-executive .rz-sec-title { font-family: 'Inter', var(--font); color: #111; border-bottom: 2px solid #111; letter-spacing: 1.5px; }
.rzv-executive .rz-item-time { font-style: normal; color: #333; font-weight: 600; }
.rzv-executive .rz-item-sub em { font-style: normal; font-weight: 600; }
.rzv-executive .rz-pub-num { color: #111; }

/* 3. Compact —— 单行抬头 + 表格式条目 */
.rzv-compact { font-family: 'Inter', var(--font); color: #222; }
.rzv-compact .cp-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; border-bottom: 2px solid #222; padding-bottom: 12px; margin-bottom: 20px; }
.rzv-compact .cp-name { font-size: 22px; font-weight: 800; }
.rzv-compact .cp-title { font-size: 13px; color: #666; }
.rzv-compact .cp-contacts { font-size: 12px; color: #888; margin-left: auto; }
.rzv-compact .cp-sec { margin-bottom: 18px; }
.rzv-compact .cp-sec h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin-bottom: 10px; }
.rzv-compact .cp-row { display: flex; gap: 16px; padding: 6px 0; border-bottom: 1px dashed #eee; }
.rzv-compact .cp-time { width: 110px; flex-shrink: 0; font-size: 12.5px; color: #888; font-weight: 600; }
.rzv-compact .cp-body { font-size: 13.5px; color: #333; }
.rzv-compact .cp-note { font-size: 12.5px; color: #777; }
.rzv-compact .cp-awards { font-size: 13.5px; color: #333; }
.rzv-compact .cp-award-time { color: #999; font-size: 12px; }

/* 4. Elegant —— 居中窄栏 + 细线 + 留白 */
.rzv-elegant { max-width: 620px; text-align: center; }
.rzv-elegant .el-head { padding-bottom: 24px; margin-bottom: 8px; }
.rzv-elegant .el-name { font-size: 34px; font-weight: 400; letter-spacing: 6px; color: #111; margin-bottom: 10px; }
.rzv-elegant .el-title { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #999; margin-bottom: 14px; }
.rzv-elegant .el-contacts { font-size: 12px; color: #aaa; letter-spacing: 1px; }
.rzv-elegant .el-contacts .rz-sep { color: #ddd; margin: 0 10px; }
.rzv-elegant .rz-section { text-align: left; }
.rzv-elegant .rz-sec-title { text-align: center; color: #999; font-weight: 400; border-bottom: none; letter-spacing: 4px; font-size: 12px; }
.rzv-elegant .rz-sec-title::before, .rzv-elegant .rz-sec-title::after { content: '——'; color: #ddd; margin: 0 10px; font-size: 10px; }
.rzv-elegant .rz-item { text-align: center; }
.rzv-elegant .rz-item-row { flex-direction: column; align-items: center; gap: 2px; }
.rzv-elegant .rz-item-time { font-style: normal; color: #bbb; }
.rzv-elegant .rz-pub { text-align: left; }

/* 5. Card —— 卡片式分节 */
.rzv-card { font-family: 'Inter', var(--font); color: #1f2937; }
.rzv-card .cd-head { text-align: center; padding-bottom: 20px; margin-bottom: 6px; }
.rzv-card .cd-name { font-size: 30px; font-weight: 800; color: #111; }
.rzv-card .cd-role { font-size: 14px; color: #555; margin-top: 4px; }
.rzv-card .cd-contacts { font-size: 12.5px; color: #888; margin-top: 8px; }
.rzv-card .cd-contacts .rz-sep { color: #ccc; margin: 0 6px; }
.rzv-card .cd-card { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.rzv-card .cd-card-title { background: #f9fafb; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #333; padding: 10px 16px; border-bottom: 1px solid #e5e7eb; }
.rzv-card .cd-card-body { padding: 14px 16px; }

/* 6. Split —— 分离抬头 + 联系横条 */
.rzv-split { font-family: 'Inter', var(--font); color: #1f2937; }
.rzv-split .sp-head { text-align: center; padding-bottom: 14px; }
.rzv-split .sp-name { font-size: 32px; font-weight: 800; color: #111; letter-spacing: 1px; }
.rzv-split .sp-role { font-size: 14px; color: #2563eb; font-weight: 600; margin-top: 4px; }
.rzv-split .sp-contactbar { background: #f1f5f9; border-radius: 6px; text-align: center; font-size: 12.5px; color: #475569; padding: 10px 16px; margin-bottom: 26px; }
.rzv-split .sp-contactbar .rz-sep { color: #cbd5e1; margin: 0 10px; }
.rzv-split .rz-sec-title { color: #2563eb; border-bottom: none; padding-left: 10px; border-left: 4px solid #2563eb; letter-spacing: 1.5px; }
.rzv-split .rz-item-time { font-style: normal; color: #2563eb; font-weight: 600; }
.rzv-split .rz-pub-num { color: #2563eb; }

/* 7. Modern —— 超大姓名 + 左竖线条目 */
.rzv-modern { font-family: 'Inter', var(--font); color: #111; }
.rzv-modern .md-head { margin-bottom: 26px; }
.rzv-modern .md-name { font-size: 42px; font-weight: 900; letter-spacing: -1px; color: #000; }
.rzv-modern .md-sub { font-size: 13px; color: #666; margin-top: 6px; }
.rzv-modern .md-sub .rz-sep { color: #ccc; margin: 0 6px; }
.rzv-modern .rz-sec-title { color: #999; font-weight: 700; border-bottom: none; letter-spacing: 3px; font-size: 12px; }
.rzv-modern .rz-item { padding-left: 14px; border-left: 2px solid #e5e7eb; }
.rzv-modern .rz-item-time { font-style: normal; color: #999; }

/* 8. Profile —— 居中头像 + 图标分节 */
.rzv-profile { font-family: 'Inter', var(--font); color: #1f2937; }
.rzv-profile .pf-head { text-align: center; padding-bottom: 24px; border-bottom: 1px solid #eee; margin-bottom: 22px; }
.rzv-profile .pf-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#3b82f6,#6366f1); letter-spacing: 1px; }
.rzv-profile .pf-name { font-size: 26px; font-weight: 800; color: #111; }
.rzv-profile .pf-role { font-size: 13px; color: #666; margin-top: 4px; }
.rzv-profile .pf-contacts { font-size: 12px; color: #999; margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.rzv-profile .pf-sec { margin-bottom: 20px; }
.rzv-profile .pf-sec-title { font-size: 14px; font-weight: 700; color: #111; border-bottom: 1px solid #eee; padding-bottom: 6px; margin-bottom: 10px; }

/* 9. Banner —— 全宽横幅抬头 */
.rzv-banner { font-family: 'Inter', var(--font); color: #1f2937; max-width: 760px; }
.rzv-banner .bn-head { background: linear-gradient(135deg,#0f172a,#1e3a5f); color: #fff; margin: -64px -72px 0; padding: 44px 72px 36px; text-align: center; }
.rzv-banner .bn-name { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.rzv-banner .bn-role { font-size: 13px; color: #93c5fd; font-weight: 600; margin-top: 6px; }
.rzv-banner .bn-contacts { font-size: 12px; color: #cbd5e1; margin-top: 12px; }
.rzv-banner .bn-contacts .bn-dot { color: #64748b; margin: 0 8px; font-style: normal; }
.rzv-banner .bn-body { padding-top: 28px; }
.rzv-banner .rz-sec-title { color: #1e3a5f; border-bottom: 2px solid #1e3a5f; letter-spacing: 1.5px; }
.rzv-banner .rz-pub-num { color: #1e3a5f; }

/* 10. Classic II —— 左对齐 + 双饰线 */
.rzv-classic2 { font-family: Georgia,'Times New Roman',serif; color: #1a1a1a; }
.rzv-classic2 .c2-head { text-align: left; padding-bottom: 12px; }
.rzv-classic2 .c2-name { font-size: 33px; font-weight: 700; letter-spacing: 1px; color: #111; }
.rzv-classic2 .c2-sub { font-size: 14.5px; font-style: italic; color: #444; margin-top: 6px; }
.rzv-classic2 .c2-contacts { font-size: 12.5px; color: #333; margin-top: 8px; }
.rzv-classic2 .c2-contacts .rz-sep { color: #bbb; margin: 0 8px; }
.rzv-classic2 .c2-double { height: 4px; background: #1a1a1a; border-bottom: 1px solid #1a1a1a; margin: 8px 0 24px; }
.rzv-classic2 .rz-sec-title { color: #1a1a1a; border-bottom: 1px solid #999; letter-spacing: 2px; }

@media (max-width: 900px) {
  .gm-paper-resume { padding: 36px 28px; }
  .rz-skill-cat { width: 96px; }
  .gm-body-resume { grid-template-columns: 1fr; }
  .rzv-banner .bn-head { margin: -36px -28px 0; padding: 32px 28px 28px; }
}

.gm-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
.gm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.gm-score-card { display: flex; align-items: center; gap: 16px; }
.gm-score-ring { width: 60px; height: 60px; border-radius: 50%; background: conic-gradient(var(--success) calc(var(--p)*1%), var(--line) 0); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.gm-score-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.gm-score-ring span { position: relative; z-index: 1; font-weight: 800; font-size: 17px; color: var(--ink); }
.gm-score-title { font-size: 15px; font-weight: 700; }
.gm-score-hint { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.gm-card-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.gm-badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-weight: 600; }
.gm-goal { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gm-goal label { font-size: 13px; color: var(--ink-3); }
.gm-goal select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--ink-2); background: #fff; }
.gm-suggestion { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gm-suggestion:last-child { border-bottom: none; }
.gm-sg-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.gm-sg-type { font-size: 12px; font-weight: 600; }
.gm-sg-text { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.gm-chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.gm-chat-head .chat-avatar { width: 38px; height: 38px; font-size: 13px; border-radius: 10px; }
.gm-chat-head .chat-name { font-size: 14px; }
.gm-chat-head .chat-status { font-size: 11.5px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row.user { justify-content: flex-end; }
.msg-row .ai-avatar { width: 30px; height: 30px; font-size: 11px; border-radius: 10px; flex-shrink: 0; }
.msg-row .msg { max-width: 78%; }
.gm-chat-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gm-chat-quick button { padding: 6px 14px; border-radius: 999px; font-size: 13px; background: var(--primary-light); color: var(--primary); border: none; cursor: pointer; }
.gm-chat-quick button:hover { background: var(--primary); color: #fff; }
.gm-chat-msgs { min-height: 320px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding: 6px 2px; }
.gm-chat-input { display: flex; gap: 8px; }
.gm-chat-input input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; }
.gm-chat-input input:focus { outline: none; border-color: var(--primary); }
.gm-send { padding: 10px 16px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; border: none; }
.gm-send:hover { background: var(--primary-dark); }

/* 文书编辑器沉浸式模式：隐藏网站导航与页脚，全屏独立 */
.essay-mode .site-header { display: none; }
.essay-mode .site-footer { display: none; }
.essay-mode .gm-toolbar { top: 0; }

/* 独立页面顶部返回栏 */
.standalone-bar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.standalone-back { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.standalone-back:hover { color: var(--primary); }
.standalone-title { font-size: 14px; color: var(--ink-3); }

/* ============================================================
   申请评估助手
   ============================================================ */
.assess-workspace { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 32px 24px 72px; align-items: start; }
.assess-sidebar { display: flex; flex-direction: column; gap: 16px; }
.assess-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.assess-total { display: flex; align-items: center; gap: 16px; }
.assess-ring { width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--p)*1%), var(--line) 0); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.assess-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.assess-ring span { position: relative; z-index: 1; font-weight: 800; font-size: 18px; color: var(--ink); }
.assess-total-title { font-size: 15px; font-weight: 700; }
.assess-total-hint { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.assess-card-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.assess-radar { width: 100%; max-width: 220px; margin: 0 auto 16px; }
.radar-svg { width: 100%; height: auto; display: block; }
.assess-dims { display: flex; flex-direction: column; gap: 14px; }
.assess-dim { display: flex; align-items: center; gap: 10px; }
.dim-name { width: 64px; font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.dim-bar { flex: 1; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 999px; }
.dim-val { width: 28px; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink); }

/* ============================================================
   学术资源聚合页
   ============================================================ */
.academic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.academic-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; cursor: pointer; transition: all .22s; overflow: hidden; }
.academic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.academic-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.academic-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.academic-card p { font-size: 14px; color: var(--ink-3); }
.academic-arrow { position: absolute; right: 24px; top: 32px; font-size: 20px; color: var(--ink-3); }

/* ============================================================
   列表工具栏 + 数据表格（会议/期刊）
   ============================================================ */
.list-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.list-toolbar select { padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink-2); background: #fff; min-width: 140px; }
.list-toolbar select:focus { outline: none; border-color: var(--primary); }
.list-count { margin-left: auto; font-size: 14px; color: var(--ink-3); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th { text-align: left; padding: 14px 20px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table tbody td { padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--primary-light); }
.td-main { font-weight: 600; color: var(--ink); }
.td-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.td-deadline { color: var(--danger); font-weight: 600; white-space: nowrap; }
.td-impact { font-weight: 700; color: var(--primary); }
.level-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.level-badge.la { background: #dcfce7; color: #15803d; }
.level-badge.lb { background: #dbeafe; color: #1d4ed8; }
.level-badge.lc { background: #fef3c7; color: #b45309; }

/* ============================================================
   国际竞赛
   ============================================================ */
.seg-tabs { display: flex; gap: 6px; margin-bottom: 24px; border-bottom: 2px solid var(--line); }
.seg-tab { padding: 10px 22px; font-size: 15px; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .15s; }
.seg-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.seg-tab:hover { color: var(--primary); }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.comp-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: all .2s; }
.comp-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.comp-head { display: flex; gap: 12px; margin-bottom: 12px; }
.comp-abbr { width: 46px; height: 46px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.comp-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.comp-field { font-size: 12px; color: var(--ink-3); }
.comp-desc { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-bottom: 12px; }
.comp-deadline { font-size: 12px; color: var(--ink-2); font-weight: 600; }

/* ============================================================
   详情页（会议/期刊/竞赛）
   ============================================================ */
.detail-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.detail-logo-lg { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 32px; font-weight: 800; flex-shrink: 0; }
.detail-head h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.detail-sub { font-size: 15px; color: var(--ink-3); margin-bottom: 10px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-para { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 24px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; text-align: center; }
.metric-value { font-size: 22px; font-weight: 800; color: var(--primary); }
.metric-label { font-size: 13px; color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.metric-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.date-timeline { display: flex; gap: 36px; flex-wrap: wrap; }
.date-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 8px; }
.date-label { font-size: 13px; color: var(--ink-3); }
.date-value { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-row { display: flex; gap: 16px; align-items: center; padding: 12px 16px; background: var(--bg); border-radius: 8px; }
.tl-label { width: 100px; font-size: 13px; color: var(--ink-3); flex-shrink: 0; }
.tl-value { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ============================================================
   学术资源中心主页
   ============================================================ */
.academic-hero { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 40px 0 44px; }
.academic-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.academic-hero p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.academic-search { display: flex; gap: 10px; max-width: 560px; }
.academic-search input { flex: 1; padding: 13px 18px; border: none; border-radius: 10px; font-size: 15px; }
.academic-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.academic-stats { display: flex; align-items: center; gap: 20px; margin-top: 24px; font-size: 14px; color: rgba(255,255,255,.85); }
.academic-stats strong { font-size: 22px; font-weight: 800; color: #fff; }
.stat-sep { width: 1px; height: 24px; background: rgba(255,255,255,.3); }
.academic-sections { padding: 32px 24px 72px; display: flex; flex-direction: column; gap: 28px; }
.academic-section { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.section-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-bar h2 { font-size: 18px; font-weight: 800; }
.section-bar a { font-size: 14px; color: var(--primary); font-weight: 600; }
.mini-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; transition: all .15s; }
.mini-item:hover { border-color: var(--primary); background: var(--primary-light); }
.mini-badge { width: 40px; height: 40px; border-radius: 10px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.mini-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta { font-size: 12px; color: var(--ink-3); flex-shrink: 0; }
.list-search { flex: 1; max-width: 300px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; }
.list-search:focus { outline: none; border-color: var(--primary); }

/* ============================================================
   学术资源查询界面（LetPub 式）
   ============================================================ */
.ac-top { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 36px 0 40px; }
.ac-top h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.ac-top p { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.ac-search { display: flex; gap: 10px; max-width: 640px; }
.ac-search input { flex: 1; padding: 14px 18px; border: none; border-radius: 10px; font-size: 15px; }
.ac-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.ac-body { padding: 28px 24px 72px; }
.ac-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.ac-tab { padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: all .15s; }
.ac-tab:hover { border-color: var(--primary); color: var(--primary); }
.ac-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ac-field-select { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink-2); background: #fff; }
.ac-count { margin-left: auto; font-size: 14px; color: var(--ink-3); }
.ac-list { display: flex; flex-direction: column; gap: 10px; }
.ac-result { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: all .18s; }
.ac-result:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.ac-type { width: 48px; padding: 4px 0; border-radius: 8px; color: #fff; text-align: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ac-main { flex: 1; min-width: 0; }
.ac-name { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ac-abbr { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 1px 8px; border-radius: 6px; }
.ac-field { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.ac-meta { font-size: 13px; color: var(--ink-2); font-weight: 600; flex-shrink: 0; min-width: 120px; text-align: right; }
.ac-date { font-size: 13px; color: var(--ink-3); flex-shrink: 0; min-width: 110px; text-align: right; }
.ac-go { font-size: 18px; color: var(--ink-3); flex-shrink: 0; }

/* ============================================================
   DIY 套餐 + B 端服务
   ============================================================ */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; transition: all .22s; }
.plan-card:hover { box-shadow: var(--shadow-lg); }
.plan-card.highlight { border: 2px solid var(--primary); box-shadow: 0 8px 30px rgba(37,99,235,.15); }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 14px; border-radius: 999px; }
.plan-name { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.plan-price { margin-bottom: 8px; }
.price-num { font-size: 36px; font-weight: 800; color: var(--ink); }
.price-period { font-size: 14px; color: var(--ink-3); }
.plan-desc { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.plan-features { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.cmp-feature { font-weight: 600; color: var(--ink); }
.cmp-cell { text-align: center; }
.cmp-yes { color: var(--success); font-weight: 700; }
.cmp-no { color: var(--line); }
.cmp-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.biz-service { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; transition: all .22s; }
.biz-service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.biz-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(14,165,233,.16));
  color: var(--primary); display: grid; place-items: center; margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.12);
}
.biz-icon svg {
  width: 28px; height: 28px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.biz-service h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.biz-service p { font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.biz-steps {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 26px; background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border: 1px solid rgba(37,99,235,.14); border-radius: 18px;
}
.biz-steps::before {
  content: ''; position: absolute; left: 64px; right: 64px; top: 62px;
  height: 2px; background: linear-gradient(90deg, rgba(37,99,235,.18), rgba(37,99,235,.55), rgba(37,99,235,.18));
}
.biz-step {
  position: relative; min-height: 196px; padding: 26px 22px 22px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(37,99,235,.16);
  border-radius: 16px; box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}
.biz-step-num {
  width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; box-shadow: 0 10px 22px rgba(37,99,235,.28);
}
.biz-step-content { position: relative; }
.biz-step-name { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.biz-step p { color: var(--ink-3); font-size: 13.5px; line-height: 1.65; margin-bottom: 14px; }
.biz-step span {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 800;
}

/* 动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }

/* ============================================================
   可视化编辑模式
   ============================================================ */
.visual-editing [contenteditable="true"] {
  outline: 1.5px dashed rgba(37, 99, 235, .55);
  outline-offset: 3px;
  cursor: text !important;
  border-radius: 4px;
}
.visual-editing [contenteditable="true"]:hover,
.visual-editing [contenteditable="true"]:focus {
  outline-style: solid;
  outline-color: var(--primary);
  background: rgba(239, 246, 255, .8);
}
.visual-editing a,
.visual-editing button,
.visual-editing [onclick] {
  cursor: text !important;
}
