:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --ok: #16a34a;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: .2s; line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.muted { color: var(--muted); }
.section { padding: 72px 0; }
.section-title { font-size: 30px; font-weight: 800; text-align: center; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--muted); margin-top: 10px; margin-bottom: 40px; }

/* ========== 顶部导航 —— 科技感设计 ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,42,.92);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(37,99,235,.06) 50%, transparent 100%);
  pointer-events: none;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; position: relative; }

/* Logo —— 科技风 */
.logo {
  font-weight: 800; font-size: 21px; color: #f1f5f9;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -.3px;
}
.logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(14,165,233,.35);
  position: relative;
}
.logo .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(14,165,233,.25);
  animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* 导航链接容器 */
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }

/* 导航链接 */
.nav-links a {
  font-weight: 500; font-size: 14px; color: #94a3b8;
  padding: 7px 15px; border-radius: 8px;
  position: relative; transition: all .22s ease;
  letter-spacing: .2px;
}
.nav-links a:hover {
  color: #e2e8f0; background: rgba(255,255,255,.06);
}
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37,99,235,.65), rgba(14,165,233,.45));
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 16px rgba(37,99,235,.18);
}
.nav-links a.active:hover {
  background: linear-gradient(135deg, rgba(37,99,235,.75), rgba(14,165,233,.55));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 20px rgba(37,99,235,.28);
}

/* 后台入口 */
.nav-links li:last-child a {
  color: #64748b; font-size: 13px; padding: 6px 13px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.nav-links li:last-child a:hover {
  color: #94a3b8; border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); box-shadow: none;
}

.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #94a3b8; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%); color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 80% -10%, rgba(255,255,255,.18), transparent); }
.hero-inner { position: relative; padding: 96px 0 104px; }
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.hero p { font-size: 18px; margin-top: 18px; max-width: 620px; color: rgba(255,255,255,.9); }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.22); }
.hero-stats { margin-top: 54px; display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats .num { font-size: 34px; font-weight: 800; }
.hero-stats .lbl { color: rgba(255,255,255,.8); font-size: 14px; }

/* 通用网格卡片 */
.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); padding: 26px; box-shadow: var(--shadow); transition: .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.icon-box { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12px; background: var(--primary-light); color: var(--primary); padding: 3px 10px; border-radius: 999px; }

/* 案例卡片 */
.case-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; cursor: pointer; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,.14); }
.case-cover { aspect-ratio: 16/10; background: linear-gradient(135deg, #dbeafe, #e0f2fe); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 40px; position: relative; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: 17px; margin-bottom: 6px; }
.case-body .sum { color: var(--muted); font-size: 14px; flex: 1; }
.case-meta { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.badge { font-size: 12px; background: #ecfdf5; color: var(--ok); padding: 2px 9px; border-radius: 999px; }

/* 轮播 */
.banner { border-radius: 18px; overflow: hidden; min-height: 240px; display: flex; align-items: center; background: linear-gradient(135deg, #1e3a8a, #0ea5e9); color: #fff; padding: 48px; position: relative; }
.banner h2 { font-size: 32px; font-weight: 800; }
.banner p { margin-top: 10px; color: rgba(255,255,255,.85); }
.banner-nav { display: flex; gap: 8px; margin-top: 18px; }
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.banner-dot.active { background: #fff; }

/* 详情页 */
.detail-hero { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 56px 0; }
.detail-hero h1 { font-size: 34px; font-weight: 800; }
.detail-hero .meta { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.85); font-size: 14px; }
.detail-body { padding: 48px 0; }
.detail-body .content { font-size: 16px; line-height: 1.9; white-space: pre-wrap; color: #334155; max-width: 820px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; margin-bottom: 18px; cursor: pointer; }

/* ====== 表单（全局 + 后台通用）====== */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 7px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: #0f172a;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-row textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.form-row .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.alert {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.alert::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-ok::before { background: #059669; }
.alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-err::before { background: #dc2626; }

/* ---- 后台表单系统 ---- */
.form-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 30px; box-shadow: 0 1px 3px rgba(15,23,42,.04);
}

.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13.5px; font-weight: 650; color: #475569; margin-bottom: 7px;
  letter-spacing: .15px; text-transform: uppercase; font-size: 12px;
  letter-spacing: .4px; text-transform: uppercase; color: #64748b;
}
.field label i { color: var(--danger); font-style: normal; margin-left: 3px; }

/* 输入框统一样式 */
.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 14.5px; font-family: inherit; background: #fafbfc; color: #0f172a;
  transition: all .2s ease; line-height: 1.5;
}
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: #cbd5e1; background: #fff; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10), 0 1px 4px rgba(37,99,235,.08);
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.65; padding: 12px 14px; }
.field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.field input[readonly] { background: #f1f5f9; color: #64748b; cursor: default; }

/* Checkbox 开关 */
.field input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer;
  border: 1.5px solid #cbd5e1; border-radius: 5px; width: auto;
}

/* Tags 输入 */
.field input[type="text"][placeholder*="逗号"] {
  font-family: 'SF Mono', 'Consolas', 'Menlo', monospace; font-size: 13.5px;
  background: linear-gradient(#fff, #fafbfc);
}

/* 图片上传 */
.img-field {
  display: flex; align-items: center; gap: 14px; padding: 10px 0;
}
.img-field .preview {
  width: 88px; height: 60px; border-radius: 10px; object-fit: cover;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border: 1.5px dashed #93c5fd; display: flex; align-items: center;
  justify-content: center; color: var(--primary); font-size: 22px; overflow: hidden;
  flex-shrink: 0;
}
.img-field input[type="file"] {
  font-size: 13px; color: var(--primary); font-weight: 500; cursor: pointer;
  padding: 6px 0; background: none; border: none;
}
.img-field input[type="file"]::file-selector-button {
  padding: 7px 16px; border: 1.5px solid var(--primary); border-radius: 8px;
  background: #eff6ff; color: var(--primary); font-weight: 600; font-size: 13px;
  cursor: pointer; margin-right: 8px; transition: all .2s;
}
.img-field input[type="file"]::file-selector-button:hover {
  background: var(--primary); color: #fff;
}

/* ---- 站点设置专用卡片布局 ---- */
.config-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 28px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.config-card-title {
  font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 8px;
}
.config-card-title span { font-size: 17px; }
.config-card .form-grid {
  box-shadow: none; border: none; padding: 0; border-radius: 0; background: transparent;
}

/* 筛选标签 */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-tabs .tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; }
.filter-tabs .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 团队 */
.member { text-align: center; }
.member .avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, #dbeafe, #e0f2fe); display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--primary); overflow: hidden; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 17px; }
.member .role { color: var(--primary); font-size: 13.5px; margin: 4px 0 8px; font-weight: 600; }
.member p { color: var(--muted); font-size: 13.5px; }

/* 文章 */
.article-card { cursor: pointer; }
.article-card .cover { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e0f2fe, #fce7f3); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 34px; }
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3 { font-size: 18px; }
.article-card .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-info .item .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.contact-info .item .t { font-weight: 600; }
.contact-info .item .v { color: var(--muted); }

/* 页脚 */
.footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 28px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { color: #cbd5e1; font-size: 14px; display: block; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer .copy { border-top: 1px solid #1e293b; margin-top: 30px; padding-top: 18px; font-size: 13px; color: #64748b; text-align: center; }

/* ========== 管理后台 ========== */
.admin-wrap { display: grid; grid-template-columns: 244px 1fr; min-height: calc(100vh - 66px); }

/* 侧边栏 */
.admin-side {
  background: linear-gradient(180deg, #0f172a 0%, #111c33 100%);
  color: #cbd5e1; padding: 22px 14px; display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
}
.admin-side .brand {
  display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16px;
  padding: 4px 10px 20px; letter-spacing: .3px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 14px;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px;
  color: #94a3b8; cursor: pointer; font-size: 14.5px; transition: all .2s ease; position: relative;
}
.admin-nav a .nav-ic { font-size: 16px; width: 22px; text-align: center; filter: grayscale(.2); }
.admin-nav a:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
.admin-nav a.active {
  background: linear-gradient(135deg, rgba(37,99,235,.55), rgba(14,165,233,.32));
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 4px 16px rgba(37,99,235,.18);
}
.admin-nav a.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.logout {
  margin-top: 14px; padding: 11px 13px; border-radius: 10px; color: #fca5a5 !important;
  cursor: pointer; font-size: 14px; text-align: center; border: 1px solid rgba(248,113,113,.25);
  transition: all .2s ease;
}
.logout:hover { background: rgba(248,113,113,.08) !important; color: #fecaca !important; }

/* 主内容区 */
.admin-main { padding: 30px 34px; overflow: auto; background: #f6f8fb; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h2 { font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: -.4px; }
.admin-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.admin-head-date { font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.sc {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  position: relative; overflow: hidden; transition: .2s; box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.sc:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,.1); }
.sc-ic { font-size: 20px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; margin-bottom: 12px; }
.sc .n { font-size: 30px; font-weight: 800; line-height: 1; color: #0f172a; }
.sc .l { color: var(--muted); font-size: 13px; margin-top: 6px; }
.sc-blue .sc-ic { background: #eff6ff; }
.sc-violet .sc-ic { background: #f5f3ff; }
.sc-cyan .sc-ic { background: #ecfeff; }
.sc-emerald .sc-ic { background: #ecfdf5; }
.sc-amber .sc-ic { background: #fffbeb; }
.sc-slate .sc-ic { background: #f1f5f9; }
.sc-rose .sc-ic { background: #fff1f2; }

/* 区块标题 / 表格 / 状态徽标 */
.block-title { font-size: 17px; font-weight: 700; color: #0f172a; margin: 4px 0 14px; }
.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; }
table.tbl th, table.tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
table.tbl th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 13px; }
table.tbl tbody tr { transition: background .15s; }
table.tbl tbody tr:hover { background: #f8fafc; }
table.tbl tr:last-child td { border-bottom: none; }
.td-strong { font-weight: 600; color: #1e293b; }
.td-clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-new { background: #fff1f2; color: #e11d48; }
.badge-done { background: #ecfdf5; color: #059669; }
.badge-pub { background: #eff6ff; color: #2563eb; }
.badge-draft { background: #f1f5f9; color: #64748b; }
.badge-show { background: #ecfdf5; color: #059669; }
.badge-hide { background: #f1f5f9; color: #64748b; }

.thumb { width: 60px; height: 42px; border-radius: 8px; object-fit: cover; background: #e0f2fe; }
.more-link { margin-top: 14px; }
.more-link a { color: var(--primary); font-weight: 600; }

/* 弹窗（新增/编辑） */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 18px; width: min(660px, 100%); max-height: 90vh; overflow: auto; padding: 28px 30px; box-shadow: 0 30px 80px rgba(15,23,42,.3); }
.modal h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.img-field { display: flex; align-items: center; gap: 12px; }
.img-field .preview { width: 88px; height: 60px; border-radius: 10px; object-fit: cover; background: #e0f2fe; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; overflow: hidden; }

/* 登录框 */
.login-box {
  max-width: 400px; margin: 9vh auto; background: #fff;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 38px 36px; box-shadow: 0 20px 60px rgba(15,23,42,.12);
  position: relative; overflow: hidden;
}
.login-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.login-box h2 { text-align: center; margin-bottom: 6px; font-size: 22px; font-weight: 800; color: #0f172a; }
.login-box .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.login-box label { display: block; font-size: 13.5px; font-weight: 600; color: #475569; margin-bottom: 7px; letter-spacing: .2px; }
.login-box input[type="password"] {
  width: 100%; padding: 12px 15px; border: 1.5px solid #e2e8f0; border-radius: 11px;
  font-size: 15.5px; font-family: inherit; background: #fafbfc; color: #0f172a;
  transition: all .2s ease; box-sizing: border-box;
}
.login-box input[type="password"]:hover { border-color: #cbd5e1; background: #fff; }
.login-box input[type="password"]:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.login-box .btn { width: 100%; padding: 13px; font-size: 16px; font-weight: 700; border-radius: 11px; margin-top: 8px; }

.loading { text-align: center; padding: 60px 0; color: var(--muted); }
.empty { text-align: center; padding: 50px 0; color: var(--muted); }

@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { flex-direction: column; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav a { flex: 1 1 auto; justify-content: center; }
  .admin-nav a.active::before { display: none; }
  .admin-main { padding: 22px 18px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(15,23,42,.96);
    backdrop-filter: saturate(180%) blur(24px);
    padding: 12px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 40px rgba(0,0,0,.35); gap: 3px; }
  .nav-links.open a { padding: 11px 16px; border-radius: 8px; font-size: 15px; color: #94a3b8; }
  .nav-links.open a:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
  .nav-links.open a.active { background: linear-gradient(135deg, rgba(37,99,235,.65), rgba(14,165,233,.45)); color: #fff; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 50px 0; }
  .admin-main { padding: 18px 14px; }
}
