/* =========================================================
   广州创羿科技有限公司官网系统 - 样式
   ========================================================= */
:root {
  --brand: #1e6fff;
  --brand-2: #00b4ff;
  --brand-dark: #0f3fa8;
  --ink: #0d1424;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e6eaf2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(15, 63, 168, .08);
  --shadow-lg: 0 18px 48px rgba(15, 63, 168, .16);
  --maxw: 1360px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 12px; line-height: 1.35; }
p { margin: 0 0 12px; }
ul { padding-left: 20px; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: 13px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head h2 { font-size: 30px; }
.section__head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 8px;
}
.text-muted { color: var(--muted); }
.text-danger { color: #dc2626; }
.text-center { text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.spacer { flex: 1; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: .2s; background: #fff;
  color: var(--text); border-color: var(--line);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.btn--primary:hover { box-shadow: 0 8px 24px rgba(30, 111, 255, .32); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--danger { color: var(--danger); border-color: #fecaca; background: #fff; }
.btn--sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); flex: none; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-size: 14px;
}
.logo__img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: none; }
.logo__text small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }
/* 导航：空间不足时自身横向滚动，不再挤压或截断 */
.nav { display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; white-space: nowrap; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 9px; font-size: 15px; color: var(--text); transition: .2s; flex: none; }
.nav a:hover { color: var(--brand); background: #f0f5ff; }
.nav a.active { color: var(--brand); background: #eaf2ff; font-weight: 600; }
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; flex: none; }
.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0 120px;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(0,180,255,.45), transparent 60%),
              linear-gradient(135deg, #0b1a3a 0%, #123a86 45%, #1e6fff 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px;
  background: linear-gradient(to bottom, rgba(245,247,251,0), var(--bg));
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.85); font-size: clamp(15px, 1.4vw, 17px); max-width: 560px; }
.hero__tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 30px; }
.hero__tag { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 5px 14px; border-radius: 999px; font-size: 13px; }
.hero__panel {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 18px;
  padding: 22px;
}
.hero__panel h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.hero-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-stat div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 14px; text-align: center; }
.hero-stat strong { display: block; font-size: 26px; color: #fff; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,.75); }

/* ---------------- 卡片 / 网格 ---------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7e4ff; }
.card__cover { height: 180px; background: linear-gradient(135deg, #eaf2ff, #dbeafe); display: grid; place-items: center; overflow: hidden; }
.card__cover img { width: 100%; height: 100%; object-fit: cover; }
.card__cover span { font-size: 40px; font-weight: 800; color: #93b7ff; }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 17px; font-weight: 600; color: var(--ink); }
.card__desc { color: var(--muted); font-size: 14px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: #eef4ff; color: var(--brand); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.tag--gray { background: #f1f5f9; color: var(--muted); }

/* ---------------- 数据块 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat-card strong { display: block; font-size: 30px; color: var(--brand); }
.stat-card span { color: var(--muted); font-size: 14px; }

/* ---------------- 时间线 / 荣誉 ---------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2)); }
.timeline__item { position: relative; margin-bottom: 22px; }
.timeline__item::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.timeline__year { font-weight: 700; color: var(--brand); }
.honor-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.honor-item { display: flex; gap: 12px; align-items: center; background: #f8fbff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.honor-item .icon { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; }

/* ---------------- 技术栈 ---------------- */
.tech-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tech-group h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.tech-item { margin-bottom: 14px; }
.tech-item__top { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.tech-item__icon { width: 28px; height: 28px; border-radius: 8px; background: #eef4ff; color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.bar { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; }
.tech-item__desc { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------------- 表单 ---------------- */
.form { display: grid; gap: 16px; }
.form__item { display: grid; gap: 6px; }
.form__item > label { font-size: 14px; font-weight: 500; color: var(--ink); }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; background: #fff; color: var(--text); font-family: inherit; transition: .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,111,255,.12); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: #f8fafc; font-weight: 600; color: var(--ink); white-space: nowrap; }
.table tbody tr:hover { background: #f9fbff; }
.table td .btn { margin-right: 4px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.badge--success { background: #e8f9ef; color: var(--success); }
.badge--warning { background: #fff5e5; color: var(--warning); }
.badge--danger { background: #feecec; color: var(--danger); }
.badge--info { background: #eaf2ff; color: var(--brand); }
.badge--gray { background: #f1f5f9; color: var(--muted); }

/* ---------------- 空状态 / 加载 ---------------- */
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* 详情页字段值展示 */
.detail-value { padding: 9px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; min-height: 38px; word-break: break-all; }

/* ---------------- 表单控件（后台编辑框加大） ---------------- */
.input, .select, .textarea { padding: 11px 14px; font-size: 15px; border-radius: 10px; }
.textarea { min-height: 120px; line-height: 1.7; }
.form__item label { font-size: 14px; margin-bottom: 6px; display: inline-block; }
.modal { max-width: 720px; }
.console__content .panel { padding: 22px 24px; }

/* ---------------- 团队 / 代理商查询 ---------------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab { padding: 10px 18px; border-radius: 10px 10px 0 0; color: var(--text); font-size: 15px; border: 1px solid transparent; border-bottom: none; position: relative; top: 1px; }
.tab:hover { color: var(--brand); background: #f0f5ff; }
.tab.active { color: var(--brand); background: #fff; border-color: var(--line); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }

.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.member-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: .18s; color: inherit; }
.member-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.member-card__avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; font-size: 17px; }
.member-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card__body { min-width: 0; }
.member-card__name { font-size: 15px; font-weight: 600; }
.member-card__pos { font-size: 13px; color: var(--muted); margin: 2px 0; }
@media (max-width: 992px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .member-grid { grid-template-columns: 1fr; } }

/* ---------------- 招聘 ---------------- */
.job-list { display: grid; gap: 12px; }
.job-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: .18s; color: inherit; }
.job-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.job-card__main { min-width: 0; }
.job-card__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.job-card__side { display: grid; gap: 6px; justify-items: end; flex: none; text-align: right; }
.job-card__salary { color: var(--danger); font-size: 17px; }
.req { color: #ef4444; font-weight: 400; }

/* ---------------- 赞助计划 ---------------- */
.sponsor-list { display: grid; gap: 8px; padding-left: 20px; }
.sponsor-list li { line-height: 1.7; }

/* =========================================================
   UI 细节优化
   ========================================================= */

/* 卡片交互反馈 */
.card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card:hover, .card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfe0ff; }

/* 表格行悬停 */
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: #f8fbff; }

/* 按钮交互 */
.btn { transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.btn--primary:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(30, 111, 255, .28); transform: translateY(-1px); }
.btn--sm:active:not(:disabled), .btn:active:not(:disabled) { transform: translateY(0); }

/* 输入聚焦柔化 */
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 3px rgba(30, 111, 255, .12); }

/* 分页按钮可点区域 */
.pager button { min-width: 36px; transition: .15s; }
.pager button:hover:not(:disabled):not(.active) { border-color: var(--brand); color: var(--brand); }

/* 徽章与标签统一观感 */
.badge { font-weight: 500; letter-spacing: .2px; }

/* 板块标题间距 */
.section__head { margin-bottom: 28px; }
.section__head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.eyebrow { letter-spacing: 2px; }

/* 空状态图标 */
.empty__icon { font-size: 40px; margin-bottom: 10px; }

/* 细滚动条（桌面） */
@media (min-width: 901px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #cdd6e4; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
  ::-webkit-scrollbar-thumb:hover { background: #aebbd2; border: 2px solid transparent; background-clip: content-box; }
  ::-webkit-scrollbar-track { background: transparent; }
}

/* 顶部导航滚动时增强分隔（配合毛玻璃） */
.site-header { box-shadow: 0 1px 0 rgba(15, 63, 168, .04); }

/* 用户端 / 后台菜单项触控友好 */
.console__menu a { padding: 10px 12px; border-radius: 9px; font-size: 14px; }
.console__menu a:hover { background: rgba(255, 255, 255, .08); }

/* 后台顶栏用户信息在窄屏隐藏昵称只留头像 */
@media (max-width: 480px) {
  .console__top .user-chip span:not(.avatar) { display: none; }
  .hero-stat { grid-template-columns: repeat(2, 1fr); }
}
.empty__icon { font-size: 40px; margin-bottom: 10px; }
.app-loading { display: grid; place-items: center; min-height: 60vh; gap: 14px; color: var(--muted); }
.app-loading__spinner {
  width: 38px; height: 38px; border: 3px solid #dbeafe; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------- 分页 ---------------- */
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 24px; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 14px;
}
.pager button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0b1220; color: #9aa7bd; padding: 48px 0 24px; margin-top: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------------- 后台布局 ---------------- */
.console { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; background: var(--bg); }
.console__side { background: #0e1729; color: #a8b6cc; padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.console__brand { padding: 6px 20px 18px; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.console__menu { display: grid; gap: 2px; padding: 0 12px; }
.console__menu-title { font-size: 12px; color: #5d6b85; padding: 14px 10px 6px; letter-spacing: 1px; }
.console__menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: #b6c3d6; font-size: 14px; transition: .2s;
}
.console__menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.console__menu a.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.console__main { display: flex; flex-direction: column; min-width: 0; }
.console__top {
  height: 62px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.console__content { padding: 20px 28px; flex: 1; }
.page-title { font-size: 20px; font-weight: 600; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel__head h3 { margin: 0; font-size: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }

/* ---------------- 登录 ---------------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(900px 400px at 20% 10%, #dbeafe, transparent), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 32px; }
.auth-card__head { text-align: center; margin-bottom: 24px; }
.auth-card__head h2 { font-size: 24px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--brand); cursor: pointer; }
.providers { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.provider-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; font-size: 13px; transition: .2s;
}
.provider-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(13, 20, 36, .55);
  display: grid; place-items: center; z-index: 200; padding: 20px; animation: fade .2s;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 720px; max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal__head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal__head h3 { margin: 0; font-size: 17px; }
.modal__body { padding: 22px; overflow-y: auto; }
.modal__foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal__close { cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; background: none; border: none; }

.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px;
  padding: 12px 18px; box-shadow: var(--shadow-lg); font-size: 14px; animation: slideDown .25s;
}
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------------- 文章内容 ---------------- */
.article-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.article-body h2 { font-size: 22px; margin-top: 24px; }
.article-body h3 { font-size: 18px; margin-top: 20px; }
.article-body p, .article-body li { color: #374151; }
.article-body blockquote { margin: 12px 0; padding: 10px 16px; background: #f8fbff; border-left: 3px solid var(--brand); color: var(--muted); }
.article-meta { color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- 其他 ---------------- */
.banner {
  background: linear-gradient(135deg, #123a86, #1e6fff); color: #fff; border-radius: var(--radius);
  padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.banner h3 { color: #fff; margin-bottom: 6px; }
.banner p { margin: 0; color: rgba(255,255,255,.8); }
.callout { background: #fff8e6; border: 1px solid #ffe6a8; color: #92610a; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.info-list { display: grid; gap: 10px; }
.info-list div { display: flex; gap: 10px; font-size: 14px; }
.info-list strong { min-width: 72px; color: var(--ink); }

/* 防止栅格子项被长内容撑破（grid 项默认 min-width:auto） */
.grid > *, .stat-grid > *, .footer-grid > *, .hero-stat > * { min-width: 0; }
.stat-card strong { font-size: clamp(20px, 4.5vw, 30px); overflow-wrap: anywhere; }
.hero-stat strong { font-size: clamp(20px, 3.4vw, 26px); overflow-wrap: anywhere; }

/* ---------------- 响应式 ---------------- */

/* 超大屏：内容区再放宽 */
@media (min-width: 1600px) {
  :root { --maxw: 1480px; }
}

/* 中大屏：导航字号与间距收缩，保证全部菜单可见 */
@media (max-width: 1200px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .site-header__inner { gap: 14px; }
  .logo__text { font-size: 16px; }
}

/* ---------------- 移动端抽屉菜单（用户/后台通用） ---------------- */
.drawer-toggle { display: none; }
.console__drawer, .console__drawer-mask { display: none; }

@media (max-width: 992px) {
  /* 后台 / 用户端：侧栏隐藏，改用汉堡按钮唤出抽屉 */
  .console { grid-template-columns: 1fr; }
  .console__side { display: none; }
  .drawer-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: none; border: 1px solid var(--line);
    background: #fff; border-radius: 10px; font-size: 18px; color: var(--ink); cursor: pointer;
  }
  .console__top { gap: 10px; }

  /* 遮罩 */
  .console__drawer-mask {
    display: block; position: fixed; inset: 0; z-index: 890;
    background: rgba(15, 27, 51, .48); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .console__drawer-mask.open { opacity: 1; visibility: visible; }

  /* 抽屉主体 */
  .console__drawer {
    display: block; position: fixed; top: 0; left: 0; bottom: 0; z-index: 891;
    width: min(82vw, 330px); background: #fff; box-shadow: 4px 0 24px rgba(15, 27, 51, .18);
    transform: translateX(-102%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .console__drawer.open { transform: translateX(0); }
  body.drawer-open { overflow: hidden; }

  .drawer__head {
    display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px;
    border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink);
    position: sticky; top: 0; background: #fff; z-index: 1;
  }
  .drawer__close {
    margin-left: auto; width: 34px; height: 34px; border: 0; background: #f2f5fa;
    border-radius: 9px; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
  }

  .drawer__menu { padding: 8px 0 20px; }
  .drawer__group { border-bottom: 1px solid #eef1f6; }
  .drawer__group-title {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 14px 20px; border: 0; background: #fff; color: var(--ink);
    font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
  }
  .drawer__group.is-open > .drawer__group-title { color: var(--brand); }
  .drawer__caret { color: var(--muted); font-size: 18px; transition: transform .2s; }
  .drawer__group.is-open > .drawer__group-title .drawer__caret { transform: rotate(180deg); }

  .drawer__items { display: none; padding: 0 12px 8px; }
  .drawer__group.is-open > .drawer__items { display: block; }
  .drawer__items a {
    display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 16px;
    color: #3b4961; font-size: 14px; border-radius: 9px; text-decoration: none;
  }
  .drawer__items a.active {
    color: var(--brand); font-weight: 700; background: #eaf2ff;
    box-shadow: inset 3px 0 0 var(--brand);
  }
  .drawer__ico { width: 20px; text-align: center; flex: none; }

  .drawer__foot {
    display: flex; gap: 10px; padding: 16px 20px 30px;
  }
  .drawer__foot a {
    flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line);
    border-radius: 9px; color: var(--ink); font-size: 14px; text-decoration: none;
  }
  .drawer__foot a:last-child { background: var(--brand); color: #fff; border-color: var(--brand); }
}
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 10px 16px 14px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); grid-template-columns: repeat(2, 1fr); gap: 4px;
    max-height: 70vh; overflow-y: auto;
  }
  .nav.open { display: grid; }
  .nav a { padding: 11px 12px; font-size: 15px; }
  .nav a.active { background: #eaf2ff; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 64px 0 88px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section__head h2 { font-size: 24px; }
}

/* 手机：单列、紧凑间距、表格横向滚动 */
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .hero { padding: 48px 0 64px; }
  .hero__panel { padding: 18px; }
  .section { padding: 36px 0; }
  .section--tight { padding: 24px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .honor-list, .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .card__title { font-size: 16px; }
  .toolbar { gap: 8px; }
  .toolbar .input, .toolbar .select { width: 100%; min-width: 0; }
  .panel { padding: 16px; }
  .banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* 表格：窄屏横向滚动，避免挤压变形 */
  .table { min-width: 640px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  /* 后台 / 用户端：顶栏与内容紧凑 */
  .console__top { height: auto; min-height: 56px; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .console__content { padding: 14px; }
  .console__brand { padding: 4px 14px 12px; }
  .page-title { font-size: 17px; }
  .modal { width: calc(100% - 24px); }
  .pager { flex-wrap: wrap; }
}
