@charset "UTF-8";
/* =========================================================
   振确科技官网 · 全站样式
   极简科技风 · 01 靛蓝电光
   主色 #4f46e5 / 墨色 #111827 / 点缀 #818cf8 / 浅底 #e0e7ff / 页面底 #eef2ff
   ========================================================= */

:root {
  --primary: #4f46e5;
  --ink: #111827;
  --accent: #818cf8;
  --soft: #e0e7ff;
  --bg: #eef2ff;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --line: #e5e7eb;
  --line-2: #f1f2f3;
  --paper: #ffffff;
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
::selection { background: var(--soft); color: var(--primary); }

/* ---------- 布局工具 ---------- */
.sec { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.pad { padding-top: clamp(80px, 12vh, 150px); padding-bottom: clamp(80px, 12vh, 150px); }
.pad-sm { padding-top: clamp(56px, 8vh, 96px); padding-bottom: clamp(56px, 8vh, 96px); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- 标题 / 文字 ---------- */
h1, h2, h3, h4, h5 { letter-spacing: -.035em; line-height: 1.12; font-weight: 700; }
.h-hero { font-size: clamp(44px, 8.2vw, 104px); }
.h-hero .hero-line { display: block; }
.h-sec { font-size: clamp(30px, 4.6vw, 58px); }
.h-3 { font-size: clamp(20px, 2.4vw, 30px); }
.lead { font-size: clamp(16px, 1.7vw, 20px); color: var(--ink-2); line-height: 1.75; max-width: 640px; }
.muted { color: var(--ink-3); }
.accent { color: var(--primary); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 26px;
}
.eyebrow .n { color: var(--primary); font-variant-numeric: tabular-nums; }
.eyebrow .bar { width: 26px; height: 1px; background: var(--ink-3); }

/* =========================================================
   导航
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand .en { font-size: 10px; font-weight: 600; letter-spacing: .18em; color: var(--ink-3); }
.menu { display: flex; align-items: center; gap: 34px; }
.menu a { font-size: 14px; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.menu a:hover { color: var(--ink); }
.menu a.active { color: var(--ink); font-weight: 600; }
.menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--primary); border-radius: 2px;
}
.nav-cta {
  border: 1px solid var(--primary); color: var(--primary);
  padding: 9px 18px; border-radius: 100px; font-size: 13px; font-weight: 600; transition: .2s;
}
.nav-cta:hover { background: var(--primary); color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  flex-direction: column; background: #fff; padding: 14px var(--gut) 24px;
  border-bottom: 1px solid var(--line); gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 2px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.mobile-menu a.active { color: var(--primary); font-weight: 600; }

/* =========================================================
   首页 Hero
   ========================================================= */
.hero {
  padding-top: clamp(90px, 15vh, 180px);
  padding-bottom: clamp(70px, 10vh, 120px);
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 94%);
}
.hero .kicker { font-size: 13px; letter-spacing: .14em; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 30px; }
.hero h1 .dim { color: var(--ink-3); }
.hero .sig { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.hero .sig .line { width: 44px; height: 1px; background: var(--ink); }
.hero .sig span { font-size: 14px; color: var(--ink-2); }
.hero .scroll { position: absolute; bottom: 34px; right: var(--gut); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; }
.hero .scroll::after { content: ""; height: 44px; width: 1px; background: var(--line); }
.orb { position: absolute; right: -80px; top: 80px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c7d2fe 0%, #e0e7ff 45%, transparent 72%); filter: blur(4px); opacity: .85; pointer-events: none; }
@media (max-width: 768px) { .orb { width: 300px; height: 300px; right: -60px; top: 40px; } .hero .scroll { display: none; } }

/* 跑马灯 */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: #f8f9ff; }
.strip-in {
  display: flex; gap: 60px; white-space: nowrap; padding: 20px 0;
  font-size: 13px; color: var(--ink-3); letter-spacing: .04em;
  animation: mv 28s linear infinite; width: max-content;
}
.strip-in b { color: var(--ink-2); font-weight: 600; }
@keyframes mv { to { transform: translateX(-50%); } }

/* 三业务入口 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cell { background: var(--paper); padding: clamp(28px, 4vw, 52px); min-height: 280px; display: flex; flex-direction: column; transition: background .25s; }
.cell:hover { background: #f8f9ff; }
.cell .num { font-size: 12px; color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: auto; }
.cell .ico { width: 42px; height: 42px; margin: 26px 0 20px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.cell h3 { font-size: 22px; margin-bottom: 12px; }
.cell p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.cell .more { margin-top: 22px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.cell .more .arw { transition: transform .2s; }
.cell:hover .more .arw { transform: translateX(5px); }

/* 案例卡片墙 */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case { display: block; }
.case .cover { aspect-ratio: 4/3; border-radius: 14px; position: relative; overflow: hidden; border: 1px solid var(--line); background-size: cover; background-position: center; }
.case .cover.c1 { background-image: linear-gradient(135deg, #1e1b4b 0%, #3730a3 60%, #4f46e5 100%); }
.case .cover.c2 { background-image: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 55%, #a5b4fc 100%); }
.case .cover.c3 { background-image: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #818cf8 100%); }
.case .cover.c4 { background-image: linear-gradient(135deg, #eef2ff 0%, #dbe4ff 100%); }
.case .cover.c5 { background-image: linear-gradient(135deg, #111827 0%, #312e81 100%); }
.case .cover.c6 { background-image: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.case .cover .gline { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px); background-size: 28px 28px; }
.case .cover .mark { position: absolute; left: 20px; bottom: 16px; color: #fff; font-size: 34px; font-weight: 700; letter-spacing: -.04em; opacity: .9; }
.case .cover.light .mark { color: var(--ink); }
.case .cover .badge { position: absolute; right: 16px; top: 16px; font-size: 10px; letter-spacing: .08em; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 4px 9px; border-radius: 100px; backdrop-filter: blur(4px); }
.case .cover.light .badge { color: var(--ink); border-color: rgba(17,18,20,.25); }
.case .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 16px; }
.case h4 { font-size: 17px; letter-spacing: -.02em; transition: color .2s; }
.case:hover h4 { color: var(--primary); }
.case .yr { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.case p { font-size: 13px; color: var(--ink-2); margin-top: 7px; line-height: 1.6; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.section-head a { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--primary); }

/* CTA */
.cta { background: var(--primary); color: #fff; border-radius: 20px; padding: clamp(44px, 7vw, 84px); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: -120px; width: 500px; height: 500px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.20), transparent 65%); }
.cta h2 { font-size: clamp(30px, 5vw, 60px); position: relative; }
.cta p { color: rgba(255,255,255,.85); margin: 20px auto 32px; max-width: 520px; position: relative; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; padding: 14px 26px; border-radius: 100px; position: relative; transition: transform .2s; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn .arw { color: var(--primary); }

/* 页头（内页通用） */
.page-head { background: linear-gradient(180deg, var(--bg), #fff); padding-top: clamp(70px, 11vh, 120px); padding-bottom: clamp(40px, 6vh, 72px); }
.page-head h1 { font-size: clamp(38px, 6vw, 72px); }
.page-head .lead { margin-top: 20px; }

/* 空态 */
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 56px 24px; text-align: center; color: var(--ink-3); background: #fafbff; }
.empty b { display: block; color: var(--ink-2); font-size: 16px; margin-bottom: 8px; }

/* =========================================================
   关于
   ========================================================= */
.persona { display: grid; grid-template-columns: 340px 1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.portrait { aspect-ratio: 1; border-radius: 20px; background: linear-gradient(145deg, #1a1c20 0%, #34383f 100%); position: relative; overflow: hidden; display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .zi { font-size: 120px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: -.06em; }
.portrait .ph { position: absolute; left: 16px; bottom: 16px; font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .06em; }
.persona h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 22px; }
.persona .quote { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.6; font-weight: 600; letter-spacing: -.02em; margin-bottom: 22px; }
.persona p { font-size: 15px; color: var(--ink-2); line-height: 1.9; margin-bottom: 14px; max-width: 560px; }
.timeline { margin-top: clamp(70px, 10vw, 120px); }
.tl-row { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); padding: 26px 0; gap: 24px; }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-row .yr { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primary); }
.tl-row h4 { font-size: 19px; margin-bottom: 6px; }
.tl-row p { font-size: 14px; color: var(--ink-2); }

/* =========================================================
   业务
   ========================================================= */
.blist { display: flex; flex-direction: column; }
.brow { display: grid; grid-template-columns: 80px 1fr 1.2fr; border-top: 1px solid var(--line); padding: 38px 0; gap: 30px; align-items: start; }
.brow:last-child { border-bottom: 1px solid var(--line); }
.brow .n { font-size: 13px; color: var(--primary); font-weight: 700; }
.brow h3 { font-size: clamp(24px, 3vw, 36px); }
.brow .tagline { font-size: 13px; color: var(--ink-3); margin-top: 10px; letter-spacing: .08em; }
.brow .desc p { font-size: 15px; color: var(--ink-2); line-height: 1.85; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 100px; }

/* =========================================================
   案例详情
   ========================================================= */
.detail-cover { aspect-ratio: 21/8; border-radius: 18px; position: relative; overflow: hidden; margin-bottom: 56px; background-size: cover; background-position: center; }
.detail-cover.c1 { background-image: linear-gradient(135deg, #1e1b4b, #3730a3 60%, #4f46e5); }
.detail-cover.c3 { background-image: linear-gradient(135deg, #312e81, #4f46e5 60%, #818cf8); }
.detail-cover.c5 { background-image: linear-gradient(135deg, #111827, #312e81); }
.detail-cover .gline { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px); background-size: 30px 30px; }
.detail-cover .badge { position: absolute; left: 30px; bottom: 26px; font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 6px 14px; border-radius: 100px; }
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(40px, 7vw, 90px); align-items: start; }
.detail-body h1 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 20px; }
.detail-body .summary { font-size: 18px; color: var(--ink-2); line-height: 1.8; margin-bottom: 48px; }
.detail-block { margin-bottom: 44px; }
.detail-block h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.detail-block h3 .n { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.detail-block p { font-size: 16px; color: var(--ink-2); line-height: 1.95; white-space: pre-line; }
.detail-aside { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fafbff; }
.detail-aside h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.detail-aside .arow { display: flex; justify-content: space-between; font-size: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-aside .arow:last-child { border-bottom: 0; }
.detail-aside .arow span:first-child { color: var(--ink-3); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 600; margin-bottom: 36px; }
.back-link:hover { color: var(--primary); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-bar a { font-size: 13px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-2); transition: .2s; }
.filter-bar a:hover, .filter-bar a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =========================================================
   联系 + 表单
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); }
.contact-grid h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 24px; }
.info-row { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .k { font-size: 13px; color: var(--ink-3); }
.info-row .v { font-size: 15px; font-weight: 600; word-break: break-all; }
.qr { width: 130px; height: 130px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9ff; display: grid; place-items: center; overflow: hidden; margin-top: 24px; }
.qr img { width: 100%; height: 100%; object-fit: cover; }
.qr .ph { font-size: 11px; color: var(--ink-3); text-align: center; line-height: 1.5; padding: 10px; }
.form-card { border: 1px solid var(--line); border-radius: 18px; padding: 34px; background: #fafbff; }
.form-card h4 { font-size: 19px; margin-bottom: 22px; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.fld label .req { color: #ef4444; }
.fld input, .fld textarea, .fld select {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; color: var(--ink); outline: none; transition: border .2s;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--primary); }
.fld textarea { min-height: 96px; resize: vertical; }
.submit { width: 100%; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; padding: 14px; border-radius: 10px; border: 0; cursor: pointer; transition: .2s; }
.submit:hover { background: var(--primary); }
.form-msg { border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px; }
.form-msg.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* =========================================================
   页脚
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-top: 54px; padding-bottom: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--ink-3); max-width: 300px; line-height: 1.8; }
.fcols { display: flex; gap: 70px; flex-wrap: wrap; }
.fcol h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.fcol a, .fcol span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.fcol a:hover { color: var(--primary); }
.footer-bot { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; gap: 12px; }

/* =========================================================
   滚动淡入（克制动效）
   ========================================================= */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
@media (max-width: 900px) {
  .menu, .nav-cta { display: none; }
  .burger { display: flex; }
  .grid3 { grid-template-columns: 1fr; }
  .persona { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
  .brow { grid-template-columns: 50px 1fr; }
  .brow .desc { grid-column: 2; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cases { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tl-row { grid-template-columns: 80px 1fr; gap: 16px; }
  .form-card { padding: 24px; }
}

/* =========================================================
   后台管理样式
   ========================================================= */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.admin-header { background: var(--ink); color: #fff; }
.admin-header-in { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; justify-content: space-between; }
.admin-header .logo { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.admin-header .logo span { color: var(--accent); }
.admin-nav { background: #fff; border-bottom: 1px solid var(--line); }
.admin-nav-in { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a { font-size: 13px; padding: 14px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.admin-nav a:hover { color: var(--primary); }
.admin-nav a.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.admin-main { padding-top: 40px; padding-bottom: 80px; }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-title h1 { font-size: 28px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin-bottom: 22px; }
.admin-card h2 { font-size: 17px; margin-bottom: 18px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table img.thumb { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.badge-tag { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 100px; background: var(--soft); color: var(--primary); font-weight: 600; }
.badge-tag.gray { background: #f1f2f3; color: var(--ink-2); }
.badge-tag.green { background: #d1fae5; color: #047857; }
.badge-tag.red { background: #fee2e2; color: #b91c1c; }
.btn-sm { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: .2s; }
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm.danger:hover { border-color: #ef4444; color: #ef4444; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #4338ca; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.stat-box .n { font-size: 38px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-box .l { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.quick-link { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: #fff; transition: .2s; }
.quick-link:hover { border-color: var(--primary); transform: translateY(-2px); }
.quick-link b { display: block; font-size: 15px; margin-bottom: 4px; }
.quick-link span { font-size: 12px; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; margin-top: 10px; }
.form-actions .btn-sm { font-size: 14px; padding: 10px 22px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px; }
.alert.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(145deg, var(--bg), #fff); padding: 20px; }
.login-box { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: 0 20px 60px rgba(79,70,229,.08); }
.login-box h1 { font-size: 26px; margin-bottom: 6px; }
.login-box .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 28px; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-grid, .form-grid { grid-template-columns: 1fr; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 9px 8px; }
}
