/* ============================================================
   个人综合网页 · 共享样式
   包含：设计变量 / 导航 / 侧边栏 / 卡片 / 表格 / 表单 / 轮播 /
        弹窗 / 提示 / 分页 / 时间线 / 画廊 / 响应式
   ============================================================ */

:root {
  --primary: #3b6ef5;
  --primary-dark: #2b56cc;
  --primary-light: #eef3fe;
  --accent: #7c5cff;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e5e9f2;
  --text: #1e293b;
  --text-2: #64748b;
  --text-3: #94a3b8;

  --header-bg: rgba(255, 255, 255, 0.92);
  --sidebar-bg: #101a33;
  --sidebar-text: #b8c4dc;
  --footer-bg: #101a33;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.14);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

::selection { background: rgba(59, 110, 245, 0.22); }

/* ---------- 通用容器 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); }
.text-center { text-align: center; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hidden { display: none !important; }

.section-title { font-size: 24px; font-weight: 700; letter-spacing: 0.5px; }
.section-sub { color: var(--text-2); margin-top: 6px; }
.title-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.title-bar::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), var(--accent)); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 62px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; flex-shrink: 0; }
.nav-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(59, 110, 245, 0.35);
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links > a {
  padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text-2);
  white-space: nowrap;
}
.nav-links > a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links > a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-search { position: relative; }
.nav-search input {
  width: 200px; height: 36px; padding: 0 12px 0 34px;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface-2);
  outline: none; transition: all 0.2s;
}
.nav-search input:focus { width: 240px; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(59,110,245,0.12); }
.nav-search::before {
  content: "🔍"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: 0.55;
}
.nav-user {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  border-radius: 20px; cursor: pointer; border: 1px solid var(--border); background: #fff;
}
.nav-user:hover { border-color: var(--primary); }
.nav-user img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-user span { font-weight: 500; }
.hamburger { display: none; font-size: 22px; padding: 6px 10px; border-radius: 8px; }
.hamburger:hover { background: var(--surface-2); }

/* 用户下拉菜单 */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all 0.18s; z-index: 120;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13.5px;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--primary); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: 5px 8px; }

/* ---------- 功能页布局（侧边栏 + 内容） ---------- */
.layout { display: grid; grid-template-columns: 216px 1fr; min-height: calc(100vh - 62px); }
.sidebar {
  background: var(--sidebar-bg); padding: 18px 12px; position: sticky; top: 62px;
  height: calc(100vh - 62px); overflow-y: auto;
}
.side-group { margin-bottom: 22px; }
.side-group-title { font-size: 11.5px; color: #5f6f92; padding: 0 12px 8px; letter-spacing: 1px; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--sidebar-text); font-size: 13.5px; margin-bottom: 2px; transition: all 0.15s;
}
.side-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.side-link.active { background: linear-gradient(90deg, var(--primary), rgba(59,110,245,0.35)); color: #fff; font-weight: 600; }
.side-link .ico { width: 18px; text-align: center; }
.side-link .badge-dot { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; border-radius: 9px; padding: 0 6px; line-height: 18px; }
.main { padding: 24px 28px 48px; min-width: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.page-title { font-size: 21px; font-weight: 700; }
.page-desc { color: var(--text-2); font-size: 13px; margin-top: 3px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600;
}
.card-hd .sub { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.card-bd { padding: 18px; }
.card-bd.flush { padding: 0; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.18s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 21px;
}
.stat-icon.blue { background: #e8efff; } .stat-icon.green { background: #e6f7ec; }
.stat-icon.orange { background: #fdf1e3; } .stat-icon.purple { background: #f1ecff; }
.stat-icon.red { background: #fdecec; } .stat-icon.cyan { background: #e4f6fa; }
.stat-value { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--text-2); }
.stat-trend { font-size: 12px; font-weight: 600; }
.stat-trend.up { color: var(--success); } .stat-trend.down { color: var(--danger); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; border: 1px solid transparent;
  transition: all 0.18s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #5b83f7); color: #fff; box-shadow: 0 3px 8px rgba(59,110,245,0.28); }
.btn-primary:hover { filter: brightness(1.07); color: #fff; transform: translateY(-1px); }
.btn-line { background: #fff; border-color: var(--border); color: var(--text); }
.btn-line:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.08); color: #fff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-link { color: var(--primary); padding: 0 6px; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--danger); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.field label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: all 0.18s; color: var(--text);
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 96px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,110,245,0.13); }
.input.err, .select.err { border-color: var(--danger); }
.field-msg { font-size: 12px; color: var(--danger); margin-top: 4px; min-height: 16px; }
.field-msg.ok { color: var(--success); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row .input { flex: 1; }
.captcha-img {
  width: 110px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: repeating-linear-gradient(45deg, #eef2f9, #eef2f9 8px, #e2e9f6 8px, #e2e9f6 16px);
  display: grid; place-items: center; font-weight: 700; letter-spacing: 3px;
  color: var(--primary-dark); font-family: var(--mono); font-size: 17px; cursor: pointer;
  user-select: none; flex-shrink: 0;
}
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.checkline input { width: 15px; height: 15px; accent-color: var(--primary); }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0; border-radius: 22px; background: #cbd5e1; transition: 0.2s; cursor: pointer;
}
.switch .sl::before {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  left: 2px; top: 2px; background: #fff; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch input:checked + .sl { background: var(--primary); }
.switch input:checked + .sl::before { transform: translateX(18px); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 11px 14px; background: var(--surface-2);
  color: var(--text-2); font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid var(--border); user-select: none;
}
.table th.sortable { cursor: pointer; }
.table th.sortable:hover { color: var(--primary); }
.table th .arrow { font-size: 10px; margin-left: 3px; opacity: 0.75; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: var(--primary-light); }
.table .num { font-variant-numeric: tabular-nums; }
.table .wrap-cell { white-space: normal; min-width: 160px; }
.table .empty-row td { text-align: center; padding: 40px 0; color: var(--text-3); }
.table .check-col { width: 36px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.table-toolbar .input, .table-toolbar .select { width: auto; height: 34px; min-width: 130px; }
.table-toolbar .grow { flex: 1; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; flex-wrap: wrap; gap: 10px; }
.table-footer .total { color: var(--text-2); font-size: 13px; }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: #e6f7ec; color: var(--success); }
.badge-warn { background: #fdf1e3; color: var(--warning); }
.badge-err { background: #fdecec; color: var(--danger); }
.badge-info { background: #e8efff; color: var(--primary); }
.badge-gray { background: var(--surface-2); color: var(--text-2); }
.badge.plain::before { display: none; }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px;
  background: var(--surface-2); color: var(--text-2); margin-right: 5px; border: 1px solid var(--border);
}

/* ---------- 轮播图 ---------- */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); }
.slide { min-width: 100%; position: relative; aspect-ratio: 21/8; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 32px 22px;
  background: linear-gradient(transparent, rgba(8, 15, 40, 0.82));
  color: #fff;
}
.slide-cap h3 { font-size: 22px; font-weight: 700; }
.slide-cap p { font-size: 13.5px; opacity: 0.88; margin-top: 4px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.86);
  display: grid; place-items: center; font-size: 17px; color: var(--text);
  box-shadow: var(--shadow); opacity: 0; transition: all 0.2s;
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-btn.prev { left: 16px; } .carousel-btn.next { right: 16px; }
.carousel-dots { position: absolute; bottom: 14px; right: 24px; display: flex; gap: 7px; z-index: 5; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all 0.25s;
}
.carousel-dots button.active { background: #fff; width: 24px; border-radius: 5px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 9px 18px; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab .cnt { font-size: 12px; background: var(--surface-2); border-radius: 9px; padding: 0 7px; margin-left: 5px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 200;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: all 0.2s; backdrop-filter: blur(3px);
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  box-shadow: var(--shadow-lg); transform: translateY(14px) scale(0.98); transition: all 0.22s;
  max-height: 88vh; display: flex; flex-direction: column;
}
.modal-mask.show .modal { transform: none; }
.modal-hd { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.modal-close { font-size: 20px; color: var(--text-3); width: 32px; height: 32px; border-radius: 8px; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-bd { padding: 20px; overflow-y: auto; }
.modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.modal.wide { max-width: 820px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 76px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: 10px; padding: 11px 16px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; min-width: 230px;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warning); }
.toast.hide { animation: toastOut 0.25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 5px; align-items: center; }
.pagination button {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--text-2);
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pagination button:disabled { opacity: 0.45; cursor: not-allowed; }
.pagination .ellipsis { color: var(--text-3); padding: 0 2px; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -24px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--primary);
}
.timeline-item.done::before { border-color: var(--success); }
.timeline-date { font-size: 12.5px; color: var(--text-3); }
.timeline-title { font-weight: 600; margin: 2px 0; }
.timeline-text { color: var(--text-2); font-size: 13.5px; }

/* ---------- 画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(8,15,40,0.8)); color: #fff;
  font-size: 13.5px; font-weight: 600; transform: translateY(6px); opacity: 0.92; transition: all 0.25s;
}
.gallery-item:hover .cap { transform: none; opacity: 1; }

/* ---------- 进度条 ---------- */
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0; transition: width 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.skill-row { display: grid; grid-template-columns: 92px 1fr 46px; align-items: center; gap: 14px; padding: 9px 0; }
.skill-row .name { font-weight: 500; }
.skill-row .val { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 13px; }

/* ---------- 视频卡片 ---------- */
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b1226; }
.video-card .poster { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: 0.85; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.video-play .ring {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: grid; place-items: center; font-size: 22px; color: var(--primary);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35); transition: transform 0.2s; padding-left: 4px;
}
.video-play:hover .ring { transform: scale(1.1); }
.video-card video { width: 100%; display: block; background: #000; }

/* ---------- 上传区 ---------- */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 30px 20px;
  text-align: center; color: var(--text-2); transition: all 0.2s; cursor: pointer; background: var(--surface-2);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.upload-zone .big { font-size: 30px; margin-bottom: 6px; }

/* ---------- 文件网格 ---------- */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.file-item {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px;
  text-align: center; background: #fff; transition: all 0.18s; cursor: pointer; position: relative;
}
.file-item:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.file-item .fico { font-size: 32px; }
.file-item .fname { font-size: 13px; font-weight: 500; margin-top: 8px; word-break: break-all; }
.file-item .fmeta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

/* ---------- 图表 ---------- */
.chart-box { width: 100%; }
.chart-box svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* ---------- 园区示意图 ---------- */
.map-schematic { position: relative; background: #0e1a33; border-radius: var(--radius); overflow: hidden; }
.map-schematic svg { width: 100%; height: auto; display: block; }
.map-tip {
  position: absolute; background: rgba(10, 18, 38, 0.92); color: #fff; font-size: 12px;
  padding: 7px 11px; border-radius: 8px; pointer-events: none; z-index: 10;
  border: 1px solid rgba(255,255,255,0.16); transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap; display: none; box-shadow: var(--shadow-lg);
}
.map-marker { cursor: pointer; }
.map-marker circle.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 0.7; r: 6; } 70% { opacity: 0; r: 16; } 100% { opacity: 0; r: 16; } }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; min-height: 520px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.82), rgba(59,110,245,0.45)); }
.hero-inner { position: relative; z-index: 2; padding: 90px 20px; max-width: 860px; }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero h1 .grad { background: linear-gradient(90deg, #ffd166, #ff8a8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 16.5px; opacity: 0.92; margin: 16px 0 30px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-line { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); color: #fff; backdrop-filter: blur(6px); }
.hero .btn-line:hover { background: rgba(255,255,255,0.26); color: #fff; }
.hero-stats { display: flex; justify-content: center; gap: 44px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat .v { font-size: 26px; font-weight: 800; }
.hero-stat .k { font-size: 12.5px; opacity: 0.8; }

/* ---------- 个人介绍 ---------- */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 1/1; object-fit: cover; }
.about-photo .exp {
  position: absolute; right: -14px; bottom: 18px; background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border-radius: 14px; padding: 12px 18px; text-align: center; box-shadow: var(--shadow-lg);
}
.about-photo .exp b { font-size: 24px; display: block; line-height: 1.1; }
.about-photo .exp span { font-size: 12px; opacity: 0.9; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin-top: 18px; }
.info-list li { display: flex; gap: 10px; font-size: 13.5px; }
.info-list .k { color: var(--text-3); flex-shrink: 0; }
.info-list .v { font-weight: 500; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--footer-bg); color: #aeb9d4; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 46px 0 30px; }
.footer-grid h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 13px; color: #aeb9d4; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.footer-text { font-size: 13px; line-height: 1.8; max-width: 300px; }
.footer-qr { display: flex; gap: 12px; margin-top: 12px; }
.footer-qr .qr { width: 76px; height: 76px; border-radius: 8px; background: #fff; display: grid; place-items: center; font-size: 10px; color: var(--text-3); text-align: center; }
.copyright { border-top: 1px solid rgba(255,255,255,0.09); padding: 16px 0; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 登录/注册 ---------- */
.auth-page { min-height: calc(100vh - 62px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(16,26,51,0.86), rgba(59,110,245,0.55)); }
.auth-visual .slogan { position: absolute; z-index: 2; inset: auto 12% 12%; color: #fff; }
.auth-visual .slogan h2 { font-size: 30px; font-weight: 800; }
.auth-visual .slogan p { opacity: 0.85; margin-top: 10px; font-size: 14px; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 25px; font-weight: 800; }
.auth-box .sub { color: var(--text-2); margin: 6px 0 26px; font-size: 13.5px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-2); }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-tip { margin-top: 20px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }

/* ---------- 个人中心 ---------- */
.profile-head {
  background: linear-gradient(135deg, #16224a, #2b56cc); border-radius: var(--radius);
  padding: 30px; color: #fff; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.profile-head::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.profile-head img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.6); object-fit: cover; }
.profile-head .nm { font-size: 22px; font-weight: 700; }
.profile-head .rl { opacity: 0.85; font-size: 13px; margin-top: 2px; }
.profile-head .meta { display: flex; gap: 26px; margin-top: 14px; flex-wrap: wrap; }
.profile-head .meta div { font-size: 12.5px; opacity: 0.85; }
.profile-head .meta b { display: block; font-size: 18px; opacity: 1; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty .ico { font-size: 40px; margin-bottom: 8px; }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 300px 1fr; }
}
@media (max-width: 992px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; display: flex; gap: 6px; overflow-x: auto;
    padding: 10px; position: sticky; top: 62px; z-index: 90;
  }
  .side-group { margin-bottom: 0; display: flex; gap: 4px; flex-shrink: 0; }
  .side-group-title { display: none; }
  .side-link { white-space: nowrap; margin-bottom: 0; }
  .main { padding: 20px 16px 40px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 768px) {
  .nav { height: 56px; gap: 12px; }
  .nav-links {
    position: absolute; top: 56px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 11px 14px; }
  .nav-search { display: none; }
  .hamburger { display: block; }
  .nav-user span { display: none; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 14.5px; }
  .hero-stats { gap: 24px; }
  .section { padding: 40px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .slide { aspect-ratio: 16/9; }
  .slide-cap { padding: 30px 18px 16px; }
  .slide-cap h3 { font-size: 17px; }
  .skill-row { grid-template-columns: 76px 1fr 42px; }
  .table-toolbar .input, .table-toolbar .select { min-width: 108px; flex: 1; }
  .stat-value { font-size: 20px; }
  .page-head { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 18px; }
  .hero-stat .v { font-size: 21px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .file-grid { grid-template-columns: 1fr 1fr; }
  .pagination button { min-width: 27px; height: 27px; padding: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
