@charset "UTF-8";

/* ══════════════════════════════════════════
   Design System — Midnight Amber
   ICP Commercial Information Service Platform
   ══════════════════════════════════════════ */

/* ========== Design Tokens ========== */
:root {
  /* ── Palette ── */
  --midnight-950: #070b19;
  --midnight-900: #0b1121;
  --midnight-800: #111c38;
  --midnight-700: #1a2a50;
  --amber-500:  #d97706;
  --amber-400:  #f59e0b;
  --amber-300:  #fbbf24;
  --amber-100:  #fef3c7;
  --amber-50:   #fffbeb;
  --slate-900:  #0f172a;
  --slate-700:  #334155;
  --slate-500:  #64748b;
  --slate-300:  #cbd5e1;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;
  --stone-50:   #fafaf9;
  --white:      #ffffff;

  /* ── Semantic ── */
  --c-accent:        var(--amber-500);
  --c-accent-hover:  #b45309;
  --c-accent-light:  var(--amber-50);
  --c-accent-glow:   rgba(217,119,6,.2);
  --c-text:          var(--slate-900);
  --c-text-muted:    var(--slate-500);
  --c-border:        var(--slate-200);
  --c-bg:            var(--stone-50);
  --c-surface:       var(--white);

  /* ── Typography ── */
  --font-display: "PingFang SC", "Noto Serif SC", "STSong", "Songti SC", "SimSun", serif;
  --font-body:    "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "SF Mono", "Cascadia Code", "Fira Code", monospace;

  /* ── Spacing & Shape ── */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 1px 3px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.09);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.12);

  /* ── Motion ── */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.72;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

a { color: var(--c-accent); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--c-accent-hover); }
a:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 2px;
}

img, svg { max-width: 100%; display: block; }

::selection { background: var(--amber-100); color: var(--midnight-900); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ========== Keyframe Animations ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@keyframes floatSlow {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%     { transform: translateY(-6px) rotate(1deg); }
  66%     { transform: translateY(4px) rotate(-1deg); }
}
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 var(--c-accent-glow); }
  70%  { box-shadow: 0 0 0 18px rgba(217,119,6,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drawLine {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes revealRight {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* ── Staggered Reveal Utility ── */
.animate-in > * { animation: fadeUp .65s var(--ease-out) both; }
.animate-in > *:nth-child(1) { animation-delay: .04s; }
.animate-in > *:nth-child(2) { animation-delay: .10s; }
.animate-in > *:nth-child(3) { animation-delay: .16s; }
.animate-in > *:nth-child(4) { animation-delay: .22s; }
.animate-in > *:nth-child(5) { animation-delay: .28s; }
.animate-in > *:nth-child(6) { animation-delay: .34s; }
.animate-in > *:nth-child(7) { animation-delay: .40s; }
.animate-in > *:nth-child(8) { animation-delay: .46s; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; font-family: inherit;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .22s var(--ease-out), transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
  background: var(--slate-100); color: var(--slate-700);
  white-space: nowrap; line-height: 1.4;
  position: relative; overflow: hidden;
}
.btn:hover { background: var(--slate-200); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--c-accent-hover));
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 10px var(--c-accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #c36f09, #9a3d0a);
  color: #fff;
  box-shadow: 0 6px 22px rgba(217,119,6,.35);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(.97); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }

.btn-ghost { background: transparent; color: var(--slate-500); }
.btn-ghost:hover { background: var(--slate-100); color: var(--slate-700); }

.btn-sm { padding: 6px 15px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 15px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-xl { padding: 18px 44px; font-size: 17px; border-radius: var(--radius-lg); letter-spacing: .3px; }

/* ========== Header — Glass Panel ========== */
/* Skip-link: visible on focus */
main a[href="#main-content"]:focus {
  left: 12px; top: 12px;
  width: auto; height: auto;
  padding: 10px 18px;
  background: var(--amber-500);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  clip: auto;
  z-index: 9999;
}

.site-header {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(203,213,225,.5);
  position: sticky; top: 0; z-index: 100;
  animation: slideDown .45s var(--ease-out);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 20px;
}
.brand {
  font-size: 19px; font-weight: 800;
  color: var(--midnight-900);
  letter-spacing: -.3px;
  display: flex; align-items: center; gap: 8px;
}
.brand::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--amber-500);
  border-radius: 2px;
  transform: rotate(45deg);
}
.brand:hover { color: var(--midnight-700); text-decoration: none; }

.nav { display: flex; gap: 2px; }
.nav a {
  color: var(--slate-500);
  padding: 9px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.nav a:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: -2px;
}
.nav a:hover, .nav a.on {
  color: var(--c-accent);
  background: var(--c-accent-light);
  text-decoration: none;
}
.auth { display: flex; gap: 10px; align-items: center; font-size: 14px; }

/* ========== Main Content Area ========== */
.main { padding: 0 0 80px; min-height: calc(100vh - 340px); }
.main > .container { padding-top: 4px; }

/* ══════════════════════════════════════════
   HERO — Midnight Gradient + Geometric Ambiance
   ══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--midnight-950), #0d1530, var(--midnight-800), #13234a);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 72px 60px;
  margin: 28px 0 40px;
  position: relative; overflow: hidden;
  isolation: isolate;
}

/* ── geometric grid overlay ── */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 50%, black 30%, transparent 70%);
}

/* ── warm glow orbs ── */
.hero::after {
  content: '';
  position: absolute; z-index: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,.12) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: floatSlow 8s ease-in-out infinite;
}

.hero > * { position: relative; z-index: 2; }

.hero h1 {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 900;
  line-height: 1.18; letter-spacing: -.6px;
  margin-bottom: 18px;
  max-width: 680px;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-400);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 3px;
  background: var(--amber-500);
  border-radius: 2px;
  opacity: .5;
}

.hero .lead {
  font-size: 16px; line-height: 1.85;
  opacity: .82; max-width: 640px;
  font-weight: 400;
}

.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ── hero stat bar ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 48px;
  position: relative; z-index: 2;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-stat {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(4px);
  padding: 24px 20px; text-align: center;
  transition: background .3s var(--ease-out);
}
.hero-stat:hover { background: rgba(255,255,255,.08); }
.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 800;
  color: var(--amber-400);
  letter-spacing: -1px;
  animation: countUp .6s var(--ease-out) both;
}
.hero-stat .label {
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-top: 6px; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 500;
}

/* ══════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════ */
.section-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--midnight-900);
  margin: 44px 0 6px;
  letter-spacing: -.4px;
}
.section-subtitle {
  color: var(--c-text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 560px;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s var(--ease-out);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--amber-100);
}
.card:focus-within {
  box-shadow: 0 0 0 3px rgba(217,119,6,.15);
  border-color: var(--amber-300);
}

/* ── service icon card ── */
.service-card { text-align: center; padding: 40px 28px; }
.service-card .icon-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-50), var(--amber-100));
  color: var(--amber-500);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  transition: transform .3s var(--spring);
}
.service-card:hover .icon-circle { transform: scale(1.12) rotate(-5deg); }
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--midnight-900); }
.service-card p  { font-size: 14px; color: var(--c-text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ══════════════════════════════════════════
   PLANS — Pricing Cards
   ══════════════════════════════════════════ */
.plan {
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  background: var(--c-surface);
  display: flex; flex-direction: column; gap: 22px;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
  position: relative;
}
.plan:hover {
  border-color: #fcd34d;
  box-shadow: var(--shadow-md);
}
.plan.featured {
  border-color: var(--amber-500);
  box-shadow: 0 8px 36px rgba(217,119,6,.14);
  transform: scale(1.05);
  z-index: 2;
  background: linear-gradient(180deg, #fffef9 0%, var(--white) 100%);
}
.plan.featured::before {
  content: '推荐';
  position: absolute; top: -14px; right: 30px;
  background: linear-gradient(135deg, var(--amber-400), var(--c-accent-hover));
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 18px; border-radius: 999px;
  letter-spacing: .5px;
  animation: pulseGlow 2.8s infinite;
}
.plan .plan-name {
  font-size: 17px; font-weight: 700;
  color: var(--slate-700);
  letter-spacing: -.2px;
}
.plan .price {
  font-size: 46px;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -1.5px;
  line-height: 1;
  font-family: var(--font-display);
}
.plan .price small {
  font-size: 15px; font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0;
}
.plan .price-unit { font-size: 20px; font-weight: 600; }
.plan ul { padding-left: 20px; margin: 0; list-style: none; }
.plan ul li {
  margin: 10px 0; color: var(--c-text-muted);
  font-size: 14px; line-height: 1.5;
  padding-left: 22px; position: relative;
}
.plan ul li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px;
  background: var(--amber-400);
  border-radius: 50%;
  opacity: .6;
}
.plan .btn { margin-top: auto; }

/* ══════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%; border-collapse: collapse;
  background: var(--c-surface);
}
th, td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--slate-100);
  text-align: left; font-size: 14px;
}
th {
  background: var(--slate-100);
  font-weight: 700; font-size: 12px;
  color: var(--c-text-muted);
  text-transform: uppercase; letter-spacing: .6px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--amber-50); }

/* ══════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════ */
.form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form h2, .form h3 { margin: 0 0 8px; font-family: var(--font-display); }
.form label {
  display: block; margin-top: 20px;
  color: var(--slate-700); font-size: 14px; font-weight: 600;
}
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  margin-top: 7px; font-size: 14px; font-family: inherit;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out);
  background: var(--stone-50);
  color: var(--c-text);
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--amber-500);
  outline: none;
  box-shadow: 0 0 0 4px rgba(217,119,6,.07);
  background: var(--white);
}
.form input::placeholder, .form textarea::placeholder { color: var(--slate-300); }
.form button { margin-top: 24px; width: 100%; }

/* ══════════════════════════════════════════
   MESSAGES / ALERTS
   ══════════════════════════════════════════ */
.msg {
  padding: 15px 20px; border-radius: var(--radius);
  margin-bottom: 22px; font-size: 14px; font-weight: 500;
  animation: fadeUp .35s var(--ease-out);
  display: flex; align-items: center; gap: 10px;
}
.msg::before { font-size: 18px; flex-shrink: 0; }
.msg-ok  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.msg-ok::before  { content: '✓'; }
.msg-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.msg-err::before { content: '✕'; }
.msg-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.msg-warn::before { content: '!'; }

/* ══════════════════════════════════════════
   ARTICLE LIST
   ══════════════════════════════════════════ */
.article-list { display: grid; gap: 14px; }
.article-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: box-shadow .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
  position: relative; overflow: hidden;
}
.article-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--amber-400);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.article-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--amber-100);
  transform: translateX(5px);
}
.article-item:hover::before { opacity: 1; }
.article-item a { font-size: 17px; font-weight: 700; color: var(--midnight-900); }
.article-item a:hover { color: var(--c-accent); }
.article-item .meta { color: var(--c-text-muted); font-size: 13px; margin-top: 6px; }

/* ══════════════════════════════════════════
   TAGS / BADGES
   ══════════════════════════════════════════ */
.tag {
  display: inline-block; padding: 3px 12px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  margin-left: 10px; vertical-align: middle;
  text-transform: uppercase; letter-spacing: .6px;
}
.tag.free    { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.tag.premium { background: var(--amber-100); color: #92400e; border: 1px solid #fde68a; }

/* ══════════════════════════════════════════
   COMPLIANCE / LEGAL PAGES
   ══════════════════════════════════════════ */
.legal-article {
  line-height: 1.95;
  max-width: 780px;
}
.legal-article h2 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  margin-bottom: 24px; color: var(--midnight-900);
}
.legal-article h3 {
  font-size: 17px; font-weight: 700;
  margin: 28px 0 12px;
  color: var(--slate-700);
  padding-left: 14px;
  border-left: 3px solid var(--amber-400);
}
.legal-article p, .legal-article li {
  color: var(--slate-500); margin-bottom: 12px;
}
.legal-article ul, .legal-article ol {
  padding-left: 24px; margin-bottom: 16px;
}

/* ══════════════════════════════════════════
   FOOTER — Bold Dark with Amber Accent
   ══════════════════════════════════════════ */
.site-footer {
  background: var(--midnight-950);
  color: #94a3b8;
  padding: 56px 0 0;
  border-top: 4px solid var(--amber-500);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: -4px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,.4), transparent);
}
.site-footer a { color: #cbd5e1; transition: color .2s var(--ease-out); }
.site-footer a:hover { color: var(--amber-400); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}
.footer-grid h4::after {
  content: '';
  display: block;
  width: 28px; height: 3px;
  background: var(--amber-500);
  margin-top: 10px; border-radius: 2px;
}
.footer-grid p  { font-size: 14px; line-height: 1.8; margin-bottom: 6px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin: 9px 0; font-size: 14px; }

.copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  color: #64748b; font-size: 13px;
  text-align: center; letter-spacing: .3px;
}
.copy a { color: #64748b; }
.copy a:hover { color: var(--amber-400); }

/* ══════════════════════════════════════════
   DIALOG / MODAL
   ══════════════════════════════════════════ */
.dialog-mask {
  position: fixed; inset: 0;
  background: rgba(7,11,25,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  animation: fadeIn .25s var(--ease-out);
}
.dialog-mask.on { display: flex; }
.dialog {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: min(94vw, 480px);
  box-shadow: var(--shadow-xl);
  animation: scaleIn .32s var(--spring);
}
.dialog h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  margin: 0 0 18px;
  color: var(--midnight-900);
}
.dialog .actions { display: flex; gap: 12px; margin-top: 24px; }
.dialog .actions .btn { flex: 1; }

/* ══════════════════════════════════════════
   PREMIUM CONTENT LOCK
   ══════════════════════════════════════════ */
.premium-lock {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: .55;
}

/* ══════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════ */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  color: var(--slate-300); font-size: 13px;
  padding: 14px 0 4px;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { color: var(--slate-300); }

/* ══════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted  { color: var(--c-text-muted); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.gap-sm { gap: 10px; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero { padding: 44px 24px; border-radius: var(--radius-lg); }
  .hero h1 { font-size: 24px; }
  .hero .lead { font-size: 14px; }
  .plan.featured { transform: none; }
  .section-title { font-size: 21px; }
  .brand { font-size: 16px; }
  .card, .form { padding: 24px; }
}
/* ══════════════════════════════════════════
   增强组件 - 移动导航、品牌图标、会员头像
   ══════════════════════════════════════════ */

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* 品牌图标 */
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--amber-500);
  color: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  margin-right: 8px;
  flex-shrink: 0;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
}

/* 会员头像 */
.member-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--slate-300);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.member-link:hover { color: var(--amber-400); }
.member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--amber-500);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 导航登录按钮 */
.nav-login {
  color: var(--slate-300);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 4px;
  transition: color .2s;
}
.nav-login:hover { color: var(--amber-400); }
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--slate-300) !important;
}
.btn-outline-light:hover {
  border-color: var(--amber-400);
  color: var(--amber-400) !important;
}

/* 导航栏滚动效果 */
.site-header.scrolled {
  background: rgba(7,11,25,.98) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

/* ═══ 移动端汉堡按钮 ═══ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background .2s;
}
.menu-toggle:hover { background: rgba(255,255,255,.08); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-300);
  border-radius: 2px;
  transition: all .3s var(--ease-out);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .auth { display: none; }
}

/* ═══ 移动端导航抽屉 ═══ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--midnight-900);
  border-left: 1px solid rgba(255,255,255,.08);
  z-index: 300;
  transition: right .35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 0 0 32px;
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}
.mobile-nav-close {
  background: none;
  border: none;
  color: var(--slate-300);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all .2s;
}
.mobile-nav-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.mobile-nav-links {
  padding: 8px 16px;
}
.mobile-nav-links a {
  display: block;
  padding: 13px 12px;
  color: var(--slate-300);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all .2s;
  margin-bottom: 2px;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.on {
  background: rgba(217,119,6,.15);
  color: var(--amber-400);
  padding-left: 18px;
}

/* 移动端遮罩 */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ═══ 返回顶部按钮 ═══ */
#backTop {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--amber-500);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(16px);
  transition: all .3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(217,119,6,.4);
}
#backTop.visible {
  opacity: 1;
  transform: translateY(0);
}
#backTop:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,.5);
}

/* ═══ 动画：animate-in ═══ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.animate-in.animated {
  opacity: 1;
  transform: translateY(0);
}
.animate-in > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.animate-in.animated > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: .05s; }
.animate-in.animated > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .12s; }
.animate-in.animated > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .19s; }
.animate-in.animated > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: .26s; }
.animate-in.animated > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: .33s; }
.animate-in.animated > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: .40s; }

/* 首页hero直接显示 */
.hero.animate-in,
.hero .animate-in {
  opacity: 1 !important;
  transform: none !important;
}

/* ═══ 会员等级徽章 ═══ */
.level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}
.level-badge.free     { background: var(--slate-200); color: var(--slate-700); }
.level-badge.basic    { background: #dbeafe; color: #1e40af; }
.level-badge.premium  { background: var(--amber-100); color: var(--amber-500); }
.level-badge.enterprise { background: #f3e8ff; color: #7c3aed; }

/* ═══ 文章卡片增强 ═══ */
.article-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
  transition: all .2s;
}
.article-item:last-child { border-bottom: none; }
.article-item a {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color .2s;
  line-height: 1.5;
}
.article-item a:hover { color: var(--c-accent); }
.article-item .meta {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 4px 0 0;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-left: 8px;
  vertical-align: middle;
}
.tag.premium  { background: var(--amber-100); color: var(--amber-500); }
.tag.free     { background: #dcfce7; color: #15803d; }
.tag.compliance { background: #dbeafe; color: #1e40af; }

/* ═══ 服务卡片图标 ═══ */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--c-accent-light);
  border-radius: var(--radius);
  font-size: 22px;
  margin-bottom: 14px;
}

/* ═══ 消息提示增强 ═══ */
.msg {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.msg-ok  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.msg-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.msg-warn { background: var(--amber-50); border: 1px solid #fcd34d; color: #92400e; }

/* ═══ 按钮加载状态 ═══ */
button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ═══ 响应式补充 ═══ */
@media (max-width: 480px) {
  #backTop { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ═══ 首页快捷入口 ═══ */
.quick-entries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.quick-entry {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--c-text);
  transition: all .25s var(--ease-out);
  cursor: pointer;
}
.quick-entry:hover {
  border-color: var(--c-accent);
  box-shadow: 0 4px 20px var(--c-accent-glow);
  transform: translateY(-3px);
}
.quick-entry .qe-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}
.quick-entry .qe-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
.quick-entry .qe-sub {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .quick-entries { grid-template-columns: repeat(2, 1fr); }
}
