﻿:root {
  --primary: #0078d4;
  --primary-2: #0f9be0;
  --primary-deep: #0c4f7a;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #f1f5f9;
  --white: #fff;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: #0088cc; text-decoration: none; }
a:hover { color: #0a8fd0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  background: radial-gradient(1100px 480px at 50% -10%, #0f9be0 0%, #0078d4 55%, #0c4f7a 100%);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 120, 212, .25);
}
.header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.logo img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}
.logo span { color: #8fd0ff; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
  padding: 7px 15px;
  border-radius: 8px;
  font-weight: 500;
  transition: all .15s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.site-nav a.active { color: #fff; background: rgba(255, 255, 255, .2); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 10px; }
.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  opacity: .9;
  border-radius: 8px;
}
.login-link:hover { opacity: 1; color: #fff; background: rgba(255, 255, 255, .14); }
.user-pill {
  display: inline-flex;
  align-items: center;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 12.5px;
}
.user-pill:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .85);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.link-btn:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.inline-form { display: inline; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0071b3; color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--ink); }
.btn-white { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; }
.btn-white:hover { background: rgba(255, 255, 255, .32); color: #fff; transform: translateY(-1px); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-hero {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 26px -8px rgba(0, 40, 80, .5);
}
.btn-hero:hover { background: #f0f9ff; color: var(--primary); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }

/* ---------- hero ---------- */
.hero-wrap {
  background: radial-gradient(1100px 480px at 50% -10%, #0f9be0 0%, #0078d4 55%, #0c4f7a 100%);
  position: relative;
  overflow: hidden;
}
.hero-wrap::before {
  content: "";
  position: absolute;
  right: -150px;
  top: 50%;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .03), 0 0 0 140px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 260px at 82% 76%, rgba(255, 255, 255, .1), transparent 62%);
  pointer-events: none;
}
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px 82px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-l { flex: 1; min-width: 0; max-width: 820px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .28);
}
.hero h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 2px 14px rgba(0, 40, 80, .3);
}
.hero-slogan {
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 660px;
  text-shadow: 0 2px 12px rgba(0, 40, 80, .25);
}
.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.85;
  max-width: 620px;
  margin: 0 0 34px;
  text-shadow: 0 1px 6px rgba(0, 40, 80, .2);
}
.hero-cta { display: flex; gap: 14px; margin-bottom: 42px; flex-wrap: wrap; }
.hero-cta .btn { height: 48px; padding: 0 30px; font-size: 15px; border-radius: 10px; }
.hero-stats { display: flex; }
.hero-stat { padding: 0 30px; border-left: 1px solid rgba(255, 255, 255, .25); }
.hero-stat:first-child { border-left: none; padding-left: 0; }
.hero-stat .n { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.hero-stat .l { font-size: 12.5px; color: rgba(255, 255, 255, .78); margin-top: 4px; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.hero-pills a {
  font-size: 12px;
  color: rgba(255, 255, 255, .84);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  padding: 6px 12px;
  border-radius: 100px;
  transition: all .15s;
}
.hero-pills a:hover { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .15); }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: #e9eef5; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 10px;
}
.sec-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #0078d4, #0f9be0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-head p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 16px;
}
.feature { padding: 26px 24px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .4); transform: translateY(-2px); }
.feature-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e8f4fd;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 16px; margin: 0 0 8px; }
.feature p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin: 0; }
.card.feature h3 { font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; }
.step-n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin: 0 0 8px; }
.step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin: 0; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: rgba(0, 120, 212, .45); box-shadow: 0 20px 50px -30px rgba(0, 90, 160, .55); }
.price-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}
.price-name { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.price-amount { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.price-amount span { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.price-card li { font-size: 13px; color: var(--ink-2); padding: 7px 0 7px 20px; position: relative; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}
.price-note { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 18px; line-height: 1.8; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; max-width: 1080px; margin: 0 auto; align-items: start; }
.faq-side {
  position: sticky;
  top: 92px;
  border-radius: 18px;
  padding: 26px 24px 22px;
  color: #fff;
  background: radial-gradient(420px 300px at 0% 0%, #0f9be0 0%, #0078d4 45%, #0b3f63 100%);
  box-shadow: 0 20px 50px -24px rgba(0, 80, 150, .5);
  overflow: hidden;
}
.faq-side::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .03);
}
.faq-kicker { font-size: 10.5px; letter-spacing: .18em; font-weight: 800; color: rgba(255, 255, 255, .6); margin-bottom: 10px; }
.faq-side h2 { font-size: 25px; font-weight: 900; margin: 0 0 10px; line-height: 1.25; }
.faq-side h2 em { font-style: normal; color: #bfe6ff; }
.faq-side p { font-size: 13px; color: rgba(255, 255, 255, .82); line-height: 1.8; margin: 0 0 18px; }
.faq-links { display: flex; flex-direction: column; gap: 7px; position: relative; z-index: 1; }
.faq-links a {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.faq-links a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 9px; overflow: hidden; }
.faq-item.open { border-color: rgba(0, 120, 212, .35); }
.faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.faq-qtext { flex: 1; }
.faq-q .ic { color: var(--ink-3); font-size: 20px; transition: transform .25s; }
.faq-item.open .ic { transform: rotate(45deg); color: var(--primary); }
.faq-a { display: none; }
.faq-item.open .faq-a { display: block; }
.faq-a-inner > div { padding: 0 18px 16px; font-size: 13.2px; color: var(--ink-2); line-height: 1.85; }

/* ---------- cta ---------- */
.cta-wrap { padding: 72px 24px; }
.cta {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(120deg, #0f9be0 0%, #0078d4 48%, #0c4f7a 100%);
  border-radius: 18px;
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  box-shadow: 0 20px 50px -24px rgba(0, 60, 110, .45);
}
.cta h3 { font-size: 23px; font-weight: 800; margin: 0 0 5px; }
.cta p { font-size: 13.5px; opacity: .9; margin: 0; }
.cta-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.cta .btn { background: #fff; color: var(--primary); height: 40px; }
.cta .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .42); }
.cta .btn.ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- footer ---------- */
.nc-footer { background: #0a0d10; color: #9aa4b2; position: relative; margin-top: 90px; overflow: hidden; }
.nc-footer-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(0, 136, 204, .22), transparent 70%);
  pointer-events: none;
}
.nc-footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 0; position: relative; }
.nc-footer-cols { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 30px; }
.nc-footer-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.3px; margin-bottom: 14px; }
.nc-footer-logo img { width: 28px; height: 28px; border-radius: 8px; display: block; flex-shrink: 0; }
.nc-footer-logo em { font-style: normal; color: #8fd0ff; }
.nc-footer-desc { font-size: 12.5px; line-height: 1.8; color: #7d8794; margin-bottom: 14px; }
.nc-footer-about { font-size: 12.5px; color: #5fb6ea; font-weight: 600; }
.nc-footer-title { font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .5px; margin-bottom: 14px; }
.nc-footer-col a { display: block; font-size: 12.5px; color: #8b95a3; padding: 5px 0; }
.nc-footer-col a:hover { color: #fff; }
.nc-footer-platforms {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
}
.nc-footer-platforms a { color: #7d8794; text-decoration: none; }
.nc-footer-platforms a:hover { color: #fff; }
.nc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #6b7480;
  flex-wrap: wrap;
}
.nc-footer-bottom a { color: #8b95a3; }
.nc-footer-bottom a:hover { color: #fff; }

/* ---------- page head / docs ---------- */
.page-head {
  background: radial-gradient(900px 360px at 50% -20%, #0f9be0 0%, #0078d4 60%, #0c4f7a 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-head h1 { font-size: 38px; font-weight: 900; letter-spacing: -1px; margin: 0 0 10px; }
.page-head p { font-size: 15px; color: rgba(255, 255, 255, .88); margin: 0; }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.doc-nav a { font-size: 13.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; }
.doc-nav a:hover { background: #fff; color: var(--primary); }
.doc-body { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px 40px; }
.doc-body h2 { font-size: 24px; margin: 36px 0 14px; letter-spacing: -.4px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 16px; margin: 22px 0 8px; }
.doc-body p, .doc-body li { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.doc-body ol, .doc-body ul { padding-left: 22px; }
.doc-body code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; padding: 1px 6px; font-size: 12.5px; color: #0f172a; }
.doc-body pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 16px 18px; overflow: auto; font-size: 12.5px; line-height: 1.7; }
.doc-body pre code { background: none; border: none; color: inherit; padding: 0; }
.callout { background: #eef6fd; border: 1px solid #cfe8fb; border-left: 3px solid var(--primary); border-radius: 8px; padding: 14px 16px; font-size: 13.5px; color: #14507a; line-height: 1.8; margin: 18px 0; }
.callout.warn { background: #fff7ed; border-color: #fed7aa; border-left-color: #f59e0b; color: #92400e; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 56px); display: flex; align-items: flex-start; justify-content: center; padding: 64px 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; box-shadow: 0 24px 60px -40px rgba(15, 23, 42, .35); }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.5px; }
.auth-sub { font-size: 13.5px; color: var(--ink-3); margin: 0 0 24px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 18px; }
.auth-note { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 120, 212, .12); }
.form textarea { resize: vertical; }
.upload-field { cursor: pointer; }
.upload-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
}
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 18px;
  border: 1.5px dashed #c9d3df;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.upload-field:hover .upload-box,
.upload-field.dragover .upload-box {
  border-color: var(--primary);
  background: #f4f9ff;
  box-shadow: 0 0 0 4px rgba(0, 120, 212, .08);
}
.upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f2fc;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
}
.upload-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.upload-sub { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.upload-file { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.upload-field.has-file .upload-file { color: var(--primary); }
.form .opt { color: var(--ink-3); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 24px; }
.form-grid .form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.span2 { grid-column: span 2; }
.hint { font-size: 11.5px; color: var(--ink-3); font-weight: 400; line-height: 1.6; }

.alert { border-radius: 9px; padding: 11px 14px; font-size: 13px; margin-bottom: 16px; line-height: 1.7; }
.alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert.info { background: #eef6fd; border: 1px solid #cfe8fb; color: #14507a; }

/* ---------- admin console ---------- */
.admin-body { background: #eef3f9; color: #16202e; }
.admin-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(0, 120, 212, .12), transparent 60%),
    #eef3f9;
}
.admin-side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 3px;
  padding: 22px 14px 18px;
  background: linear-gradient(180deg, #0b1522 0%, #101d2e 55%, #0b1522 100%);
  color: #aebed2;
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.admin-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 16px; margin-bottom: 8px;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.2px;
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.admin-brand img { border-radius: 6px; }
.admin-brand em { font-style: normal; color: #58aef5; }
.admin-side-title {
  margin: 18px 10px 6px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #5f7590; font-weight: 700;
}
.admin-side a {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 9px;
  color: #b9c8da; font-size: 13.5px; text-decoration: none;
  transition: background .15s, color .15s;
}
.admin-side a:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.admin-side a.active {
  background: linear-gradient(90deg, rgba(0, 120, 212, .28), rgba(0, 120, 212, .06));
  color: #fff;
}
.admin-side a.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: #2f9bf0;
}
.admin-side .link-btn {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 9px;
  color: #b9c8da; font-size: 13.5px;
}
.admin-side .link-btn:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.admin-side .inline-form { margin-top: auto; }

.admin-main { padding: 26px 34px 64px; min-width: 0; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 20px; padding: 18px 22px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #e2eaf4;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(18, 38, 63, .05);
  backdrop-filter: blur(6px);
}
.admin-top h1 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.6px; }
.admin-kicker { font-size: 10px; letter-spacing: .16em; color: #7c8da3; font-weight: 700; }
.admin-top .muted { font-size: 12.5px; }

.admin-note { font-size: 13px; color: #6c7f96; margin: 0 0 18px; }
.admin-kpis {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px; margin-bottom: 6px;
}
.admin-kpi {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px 15px;
  background: #fff;
  border: 1px solid #e3ebf5;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, .045);
}
.admin-kpi-l { font-size: 11px; letter-spacing: .06em; color: #7c8da3; font-weight: 700; }
.admin-kpi b { font-size: 24px; line-height: 1.15; letter-spacing: -.6px; color: #122033; }
.admin-kpi em { font-style: normal; font-size: 11.5px; color: #8293a8; }

.admin-quick {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px;
}
.admin-quick a {
  padding: 8px 14px; border-radius: 9px;
  background: #fff; border: 1px solid #e3ebf5;
  color: #245a8a; font-size: 12.5px; font-weight: 600; text-decoration: none;
  box-shadow: 0 2px 8px rgba(18, 38, 63, .04);
}
.admin-quick a:hover { border-color: #bcd9f2; background: #f6fbff; }
.admin-user-actions {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 0 20px 20px;
}
.admin-user-actions form { gap: 8px; }
.admin-user-actions label { font-weight: 600; white-space: nowrap; }
.admin-kpi b.small-path { font-size: 13px; line-height: 1.35; word-break: break-all; letter-spacing: 0; }

.admin-section { margin-top: 22px; }
.admin-section .card,
.admin-main .card {
  background: #fff;
  border: 1px solid #e3ebf5;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(18, 38, 63, .045);
  overflow: hidden;
}
.admin-section .card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; border-bottom: 1px solid #edf2f8;
  background: linear-gradient(180deg, #fbfdff, #f7faff);
  font-size: 14px; font-weight: 700; color: #1b2a3d;
}
.admin-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-filter input,
.admin-filter select {
  height: 34px; padding: 0 10px;
  border: 1px solid #dbe5f0; border-radius: 9px;
  background: #fff; color: #23344b; font-size: 12.5px;
  outline: none;
}
.admin-filter input:focus,
.admin-filter select:focus { border-color: #2f9bf0; box-shadow: 0 0 0 3px rgba(0, 120, 212, .1); }
.admin-filter input[type="search"] { width: 230px; }

.admin-main .table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-main .table th {
  padding: 10px 14px; text-align: left;
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: #7c8da3; background: #f8fbff; border-bottom: 1px solid #e7eef7; white-space: nowrap;
}
.admin-main .table td { padding: 12px 14px; border-bottom: 1px solid #eff4fa; vertical-align: middle; }
.admin-main .table tbody tr:hover { background: #f8fbff; }
.admin-main .table tbody tr:last-child td { border-bottom: 0; }
.admin-main .mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; color: #4d6480; }
.admin-main .muted { color: #7c8da3; }

.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-actions .link { font-size: 12.5px; }
.link-btn.danger { color: #c0392b; }
.table-wrap { overflow-x: auto; }
.btn-sm { padding: 7px 13px !important; font-size: 12.5px !important; border-radius: 8px !important; }

.admin-profile { display: flex; flex-wrap: wrap; gap: 14px; padding: 20px; }
.admin-profile-item {
  min-width: 150px; padding: 12px 16px;
  background: #f8fbff; border: 1px solid #e7eef7; border-radius: 12px;
}
.admin-profile-item span { display: block; font-size: 11px; letter-spacing: .05em; color: #7c8da3; font-weight: 700; }
.admin-profile-item b { display: block; margin-top: 4px; font-size: 15px; color: #16263a; }

@media (max-width: 1240px) { .admin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .admin-brand { border: 0; padding: 4px 8px; margin: 0; }
  .admin-side-title { display: none; }
  .admin-side .inline-form { margin-top: 0; }
  .admin-main { padding: 18px 14px 48px; }
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-top { flex-direction: column; align-items: flex-start; }
  .admin-filter input[type="search"] { width: 100%; }
}

/* ---------- dashboard ---------- */
.dash-wrap { padding-top: 32px; padding-bottom: 8px; }
.dash-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 26px; align-items: start; }
.dash-nav { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav-title { font-size: 11px; font-weight: 800; color: var(--ink-3); letter-spacing: .6px; padding: 6px 10px 10px; }
.dash-nav a { font-size: 13.5px; color: var(--ink-2); padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.dash-nav a:hover { background: #f1f5f9; color: var(--ink); }
.dash-nav a.active { background: #e8f4fd; color: var(--primary); font-weight: 700; }
.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dash-head h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.6px; }
.dash-head p { margin: 0; font-size: 13.5px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat { padding: 18px 20px; margin: 0; }
.stat-n { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.stat-l { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.card-head { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head a { font-size: 12.5px; font-weight: 500; }
.pad { padding: 20px; }
.pad p { font-size: 13.5px; line-height: 1.8; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 10px 14px; font-size: 11px; color: var(--ink-3); font-weight: 700; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8fafc; }
.table code { font-size: 12px; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
.empty { padding: 34px 20px; text-align: center; font-size: 13px; color: var(--ink-3); }
.empty a { font-weight: 600; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.link { font-weight: 600; font-size: 12.5px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #f1f5f9; color: var(--ink-2); }
.badge.success { background: rgba(34, 197, 94, .1); color: #16a34a; }
.badge.error { background: rgba(239, 68, 68, .1); color: #dc2626; }
.badge.warn { background: rgba(245, 158, 11, .12); color: #b45309; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .grid3, .steps { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nc-footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
}
@media (max-width: 760px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 38px; }
  .hero-slogan { font-size: 19px; }
  .hero-stats { flex-wrap: wrap; gap: 14px 24px; }
  .hero-stat { border-left: none; padding: 0; }
  .grid3, .steps, .price-grid { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .dash-nav-title { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
  .header-inner { gap: 10px; }
  .site-nav a { padding: 7px 9px; font-size: 13px; }
  .site-nav a[href="/pricing"] { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .nc-footer-cols { grid-template-columns: 1fr 1fr; }
  .doc-body { padding: 24px 20px; }
  .hero-wrap::before { display: none; }
  .sec-head h2 { font-size: 26px; }
  .page-head h1 { font-size: 30px; }
}

/* ===== admin console v2: 与 naicha.cloud 账号/后台视觉统一 ===== */
.admin-body { background: #f2f6fa; color: #1a2b3c; min-height: 100vh; }
.admin-topbar {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  color: #fff;
  background: radial-gradient(1100px 480px at 50% -10%, #0f9be0 0%, #0078d4 55%, #0c4f7a 100%);
  box-shadow: 0 2px 10px rgba(12, 79, 122, .18);
}
.admin-topbar-brand {
  display: flex; align-items: center; gap: 9px;
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .3px;
  text-decoration: none; white-space: nowrap;
}
.admin-topbar-brand img { border-radius: 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.admin-topbar-brand em { font-style: normal; font-weight: 400; opacity: .9; }
.admin-topbar-brand i {
  font-style: normal; font-size: 12px; font-weight: 400;
  padding: 2px 8px; margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 20px; opacity: .9;
}
.admin-topbar-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.admin-topbar-right a { color: #fff; opacity: .92; text-decoration: none; }
.admin-topbar-right a:hover { opacity: 1; }
.admin-topbar-user { opacity: .85; font-size: 12.5px; }
.admin-topbar-btn { border: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; cursor: pointer; opacity: .92; }

.admin-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  max-width: 1800px;
  margin: 24px auto;
  padding: 0 20px;
  align-items: start;
  min-height: auto;
  background: none;
}
.admin-side {
  position: sticky; top: 20px;
  display: flex; flex-direction: column; gap: 2px;
  height: auto; align-self: start;
  padding: 16px 14px;
  background: #fff;
  color: #1a2b3c;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 120, 212, .08);
}
.admin-side-title { margin: 12px 10px 5px; font-size: 11px; letter-spacing: .5px; color: #8899aa; text-transform: none; font-weight: 400; }
.admin-side a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px;
  color: #1a2b3c; font-size: 14px; text-decoration: none;
}
.admin-side a:hover, .admin-side a.active { background: #eaf4fa; color: #0078d4; }
.admin-side a.active { font-weight: 600; }
.admin-side a.active::before { display: none; }
.admin-side .link-btn { color: #1a2b3c; padding: 9px 10px; border-radius: 8px; text-align: left; width: 100%; font-size: 14px; }
.admin-side .link-btn:hover { background: #eaf4fa; color: #0078d4; }

.admin-main { padding: 0; min-width: 0; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; margin-bottom: 16px;
  background: #fff; border: 0; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 120, 212, .08);
  backdrop-filter: none;
}
.admin-top h1 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.3px; }
.admin-kicker { font-size: 10px; letter-spacing: .14em; color: #8899aa; font-weight: 700; }

.admin-note { font-size: 13px; color: #8899aa; margin: 0 0 16px; }
.admin-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 0; }
.admin-kpi {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px; border-radius: 12px; color: #fff;
  border: 0; box-shadow: 0 6px 18px rgba(0, 120, 212, .16);
  background: linear-gradient(135deg, #0f9be0 0%, #0078d4 100%);
}
.admin-kpi:nth-child(2) { background: linear-gradient(135deg, #2ba7e0 0%, #116fb8 100%); }
.admin-kpi:nth-child(3) { background: linear-gradient(135deg, #1788cf 0%, #0c4f7a 100%); }
.admin-kpi:nth-child(4) { background: linear-gradient(135deg, #2e9e6b 0%, #14724a 100%); box-shadow: 0 6px 18px rgba(46, 158, 107, .18); }
.admin-kpi:nth-child(5) { background: linear-gradient(135deg, #5a7fb5 0%, #33507a 100%); box-shadow: 0 6px 18px rgba(51, 80, 122, .18); }
.admin-kpi:nth-child(6) { background: linear-gradient(135deg, #d98a12 0%, #a5620a 100%); box-shadow: 0 6px 18px rgba(217, 138, 18, .18); }
.admin-kpi-l { font-size: 11.5px; opacity: .92; color: #fff; letter-spacing: 0; font-weight: 400; }
.admin-kpi b { font-size: 25px; line-height: 1.2; font-weight: 700; letter-spacing: -.5px; color: #fff; }
.admin-kpi em { font-style: normal; font-size: 11.5px; opacity: .9; color: #fff; }
.admin-kpi b.small-path { font-size: 13px; line-height: 1.35; word-break: break-all; letter-spacing: 0; }

.admin-quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.admin-quick a { padding: 8px 14px; border-radius: 9px; background: #fff; border: 1px solid #e6edf4; color: #0078d4; font-size: 12.5px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 120, 212, .06); }
.admin-quick a:hover { background: #eaf4fa; }

.admin-section { margin-top: 16px; }
.admin-main .card, .admin-section .card {
  background: #fff; border: 0; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 120, 212, .08);
  overflow: hidden;
}
.admin-section .card-head, .admin-main .card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; border-bottom: 1px solid #eef2f6;
  background: none; font-size: 14px; font-weight: 700; color: #1a2b3c;
}
.admin-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-filter input, .admin-filter select {
  height: 34px; padding: 0 11px; border: 1px solid #d6e0ea; border-radius: 8px;
  background: #fff; color: #1a2b3c; font-size: 13px; outline: none;
  box-shadow: none;
}
.admin-filter input:focus, .admin-filter select:focus { border-color: #0078d4; box-shadow: none; }
.admin-filter input[type="search"] { width: 230px; }

.admin-main .table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.admin-main .table th {
  text-align: left; padding: 9px 12px; color: #475569; font-weight: 600;
  font-size: 12px; letter-spacing: .3px; text-transform: none;
  background: #f5f8fc; border-bottom: 1px solid #e3ebf3; white-space: nowrap;
}
.admin-main .table td { padding: 9px 12px; border-bottom: 1px solid #f0f4f8; vertical-align: middle; color: #334155; }
.admin-main .table tbody tr:nth-child(even) td { background: #fbfcfe; }
.admin-main .table tbody tr:hover td { background: #eef6fc; }
.admin-main .table tbody tr:last-child td { border-bottom: 0; }
.admin-main .mono { font-family: Consolas, Menlo, monospace; font-size: 12px; color: #445; }
.admin-main .muted { color: #8899aa; }

.admin-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.admin-actions .link { font-size: 12.5px; color: #0078d4; }
.link-btn.danger { color: #e05a4e; }
.btn-sm { padding: 7px 13px !important; font-size: 12.5px !important; border-radius: 8px !important; }

.admin-profile { display: flex; flex-wrap: wrap; gap: 14px; padding: 20px; }
.admin-profile-item { min-width: 150px; padding: 12px 16px; background: #f7fafd; border: 1px solid #e6edf4; border-radius: 10px; }
.admin-profile-item span { display: block; font-size: 11px; letter-spacing: .5px; color: #8899aa; font-weight: 700; }
.admin-profile-item b { display: block; margin-top: 4px; font-size: 15px; color: #1a2b3c; }
.admin-user-actions { display: flex; gap: 24px; flex-wrap: wrap; padding: 0 20px 20px; }
.admin-user-actions form { gap: 8px; }
.admin-user-actions label { font-weight: 600; white-space: nowrap; }

@media (max-width: 1240px) { .admin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .admin-topbar { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .admin-topbar-right { gap: 12px; flex-wrap: wrap; }
  .admin-shell { grid-template-columns: 1fr; margin: 16px auto; padding: 0 14px; gap: 14px; }
  .admin-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side-title { display: none; }
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-top { flex-direction: column; align-items: flex-start; }
  .admin-filter input[type="search"] { width: 100%; }
}

/* 任务详情：加密前后对比 */
.code-compare { display: grid; grid-template-columns: 1fr 1fr; }
.code-pane { min-width: 0; border-right: 1px solid #e6edf4; display: flex; flex-direction: column; }
.code-pane:last-child { border-right: 0; }
.code-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: #f5f8fc; border-bottom: 1px solid #e3ebf3;
  font-size: 12.5px; font-weight: 700; color: #334155;
}
.code-title span { font-weight: 400; color: #8899aa; font-size: 11.5px; }
.code-pane pre {
  margin: 0; padding: 14px 16px; height: 520px; overflow: auto;
  background: #0d1928; color: #d7e6f7;
  font-family: Consolas, Menlo, "SFMono-Regular", monospace;
  font-size: 12px; line-height: 1.55; white-space: pre;
}
.code-empty { padding: 40px 18px; color: #8899aa; font-size: 13px; text-align: center; }
@media (max-width: 1100px) {
  .code-compare { grid-template-columns: 1fr; }
  .code-pane { border-right: 0; border-bottom: 1px solid #e6edf4; }
  .code-pane:last-child { border-bottom: 0; }
  .code-pane pre { height: 380px; }
}

/* 批量操作与分页 */
.batch-bar { padding: 12px 16px; border-top: 1px solid #eef2f6; background: #fbfdff; }
.batch-bar form { margin: 0; }
.admin-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 16px; border-top: 1px solid #eef2f6;
  font-size: 12.5px; color: #66788f;
}
.admin-pager a {
  padding: 6px 12px; border-radius: 8px;
  background: #fff; border: 1px solid #d6e0ea; color: #0078d4; text-decoration: none;
}
.admin-pager a:hover { background: #eaf4fa; }

/* 首页加密前后对比 */
.landing-code { margin-top: 22px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(18,38,63,.10); background:#fff; }
.landing-code .code-pane pre { height: 400px; }
.compare-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 860px) {
  .landing-code .code-pane pre { height: 320px; }
  .compare-points { grid-template-columns: 1fr; }
}
