/* ============================================================
   启创科技 - 官网样式(现代渐变主题)
   ============================================================ */
:root {
  --primary: #4f6ef7;
  --primary-2: #7c5cfc;
  --accent: #22d3ee;
  --grad: linear-gradient(135deg, #4f6ef7 0%, #7c5cfc 100%);
  --grad-soft: linear-gradient(135deg, rgba(79, 110, 247, .1), rgba(124, 92, 252, .1));
  --dark: #0f172a;
  --dark-2: #1e293b;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --text-2: #64748b;
  --border: #e2e8f0;
  --ok: #10b981;
  --err: #ef4444;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(2, 6, 23, .07);
  --shadow-lg: 0 12px 40px rgba(2, 6, 23, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; opacity: .85; }
code { background: #eef2ff; color: #4338ca; padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(10px);
  color: #fff; padding: 0 28px;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.nav .brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 19px; letter-spacing: 1px;
}
.nav .brand:hover { opacity: 1; }
.nav .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, .5);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(99, 102, 241, .5); }
  50% { box-shadow: 0 2px 22px rgba(99, 102, 241, .95); }
}
.nav .links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav .links a { color: #cbd5e1; transition: color .15s; }
.nav .links a:hover { color: #fff; opacity: 1; }
.nav .links a.active { color: #fff; font-weight: 600; position: relative; }
.nav .links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.nav .links .user {
  color: #94a3b8; font-size: 13px; border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 18px; margin-left: 4px;
}
.nav .links .user a { color: #fbbf24; margin-left: 6px; }

/* ---------- 布局 ---------- */
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, .7);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.card::before { /* 科技感发光描边 */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(79, 110, 247, .55), transparent 38%, transparent 62%, rgba(34, 211, 238, .55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
  color: #fff; padding: 76px 20px 84px;
  text-align: center;
}
.hero::before { /* 网格纹理 */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9), transparent 75%);
}
.hero::after { /* 光晕 */
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(79,110,247,.35), transparent 45%),
              radial-gradient(circle at 75% 70%, rgba(34,211,238,.22), transparent 45%);
  animation: float 9s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(-12px) scale(1); }
  to   { transform: translateY(12px) scale(1.04); }
}
.hero > * { position: relative; z-index: 1; }
.hero .badge {
  display: inline-block; padding: 5px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  font-size: 13px; color: #e0e7ff; letter-spacing: 2px; margin-bottom: 18px;
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
  50% { box-shadow: 0 0 20px 3px rgba(103, 232, 249, .3); }
}
/* 悬浮光点 */
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  z-index: 0; pointer-events: none;
  animation: float 9s ease-in-out infinite alternate;
}
.orb-1 { width: 320px; height: 320px; top: -90px; left: 8%;
  background: radial-gradient(circle, rgba(79, 110, 247, .55), transparent 70%); }
.orb-2 { width: 280px; height: 280px; bottom: -80px; right: 10%;
  background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 70%);
  animation-delay: -4s; }
/* 扫描线 */
.scan {
  position: absolute; left: 0; right: 0; height: 140px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(103, 232, 249, .09), transparent);
  animation: scanMove 5.5s linear infinite;
}
@keyframes scanMove { from { top: -140px; } to { top: 100%; } }
.hero h1 {
  font-size: 64px; font-weight: 800; letter-spacing: 10px;
  background: linear-gradient(120deg, #fff, #a5b4fc, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 26px rgba(129, 140, 248, .5));
}
.hero .slogan {
  font-size: 20px; color: #e0e7ff; margin-bottom: 8px;
  letter-spacing: 3px; text-shadow: 0 0 18px rgba(103, 232, 249, .35);
}
.hero .desc { font-size: 14px; color: #94a3b8; margin-bottom: 30px; }
.hero .btn-big {
  display: inline-block; padding: 13px 42px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 26px rgba(99, 102, 241, .45);
  transition: transform .15s, box-shadow .15s;
}
.hero .btn-big:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,.6); opacity: 1; }
.hero .ver-line { margin-top: 22px; font-size: 13px; color: #94a3b8; }
.hero .ver-line .tag-latest { color: #fbbf24; font-weight: 600; }

/* ---------- 特性卡片 ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: -34px auto 30px; position: relative; z-index: 2; max-width: 1040px; padding: 0 20px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid rgba(226,232,240,.7); transition: transform .18s, box-shadow .18s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, .28);
}
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--text-2); }

/* ---------- 按钮 / 表单 ---------- */
.btn {
  display: inline-block; padding: 8px 18px; border: none; border-radius: 9px;
  cursor: pointer; font-size: 14px; font-weight: 500;
  background: var(--grad); color: #fff;
  transition: transform .12s, box-shadow .12s, opacity .12s;
  box-shadow: 0 3px 12px rgba(99, 102, 241, .3);
  position: relative; overflow: hidden;
}
.btn::after { /* 流光 */
  content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -90%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); animation: sweep 3s ease-in-out infinite;
}
@keyframes sweep {
  0% { left: -90%; }
  55% { left: 130%; }
  100% { left: 130%; }
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,.4); opacity: 1; }
.btn:active { transform: translateY(0); }
.btn.green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 3px 12px rgba(16,185,129,.3); }
.btn.red { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 3px 12px rgba(239,68,68,.3); }
.btn.gray { background: #e2e8f0; color: #475569; box-shadow: none; }
.btn.gray:hover { background: #cbd5e1; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.sm { padding: 4px 12px; font-size: 12px; border-radius: 7px; box-shadow: none; }

input[type=text], input[type=password], input[type=file], textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; margin-bottom: 14px; background: #f8fafc;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 110, 247, .15);
}
label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
textarea { min-height: 100px; resize: vertical; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: linear-gradient(180deg, #f8fafc, #eef2ff); color: var(--text-2); font-weight: 600; white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8faff; }

/* ---------- 标签 / 徽章 ---------- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag.latest { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.4); }
.tag.admin { background: linear-gradient(135deg, #f472b6, #ec4899); color: #fff; }
.tag.user { background: #e2e8f0; color: #475569; }
.tag.off { background: #e2e8f0; color: #94a3b8; }
.tag.ok { background: linear-gradient(135deg, #34d399, #10b981); color: #fff; }

/* ---------- 消息 ---------- */
.msg { padding: 11px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; display: none; }
.msg.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { /* 竖线 */
  content: ""; position: absolute; left: 9px; top: 22px; bottom: -2px;
  width: 2px; background: var(--border);
}
.timeline li:last-child::before { display: none; }
.timeline li::after { /* 圆点 */
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, .18);
}
.timeline li.latest::after { background: var(--grad); border-color: #fff; box-shadow: 0 0 0 3px rgba(251, 191, 36, .35); }
.timeline .v-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timeline .v-ver { font-size: 16px; font-weight: 700; }
.timeline .v-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.timeline .v-notes { margin-top: 8px; font-size: 13px; color: var(--text); white-space: pre-wrap; background: #f8fafc; border-radius: 10px; padding: 10px 14px; border: 1px solid var(--border); }
.timeline .v-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.timeline .v-actions .muted { margin-right: auto; }

/* ---------- 页脚 ---------- */
.footer { text-align: center; padding: 30px 20px 36px; color: #94a3b8; font-size: 13px; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 30px 16px;
  background: radial-gradient(circle at 20% 20%, rgba(79,110,247,.14), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(34,211,238,.12), transparent 45%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; padding: 36px 32px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; margin-bottom: 10px; }
.auth-logo h1 { font-size: 22px; letter-spacing: 4px; }
.auth-logo p { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.auth-card .tabs { display: flex; background: #f1f5f9; border-radius: 11px; padding: 4px; margin-bottom: 20px; }
.auth-card .tabs button { flex: 1; padding: 8px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-2); font-weight: 500; transition: all .15s; }
.auth-card .tabs button.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(2,6,23,.08); font-weight: 600; }
.auth-card .btn { width: 100%; padding: 12px; font-size: 15px; border-radius: 10px; }
.auth-card .tip { margin-top: 14px; font-size: 12px; color: #94a3b8; text-align: center; }

/* ---------- 其他 ---------- */
.hidden { display: none !important; }
.muted { color: var(--text-2); font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { font-size: 20px; font-weight: 700; margin: 34px 0 16px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 640px) {
  .hero h1 { font-size: 44px; letter-spacing: 6px; }
  .hero { padding: 54px 16px 70px; }
  .features { margin-top: -26px; }
  .nav { padding: 0 16px; }
  .nav .links { gap: 12px; font-size: 13px; }
}
