/* ==========================================================================
   云鼎恒创 SaaS · 前台 / 商家工作台 / 通用组件
   ========================================================================== */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --navy-900: #071b2b;
  --navy-800: #0b263a;
  --navy-700: #12344d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --red-500: #ef4444;
  --red-50: #fef2f2;
  --green-500: #16a34a;
  --green-50: #f0fdf4;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --bg: #f5f8f7;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 12px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sidebar-w: 258px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4vw, 52px); }
h2 { font-size: clamp(24px, 2.6vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
code { font-family: var(--mono); background: var(--slate-100); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
pre { background: var(--navy-900); color: #dbeafe; padding: 18px; border-radius: var(--radius); overflow: auto; }
pre code { background: transparent; padding: 0; color: inherit; }
::selection { background: var(--teal-200); color: var(--navy-900); }
:focus-visible { outline: 3px solid rgba(20, 184, 166, .35); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ------------------------------- layout ---------------------------------- */
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.container-narrow { width: min(880px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section-sm { padding: 52px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal-500); border-radius: 2px; }
.section-head p { color: var(--slate-600); font-size: 17px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-muted { color: var(--slate-500); }
.text-teal { color: var(--teal-700); }
.text-red { color: var(--red-500); }
.text-green { color: var(--green-500); }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.w-100 { width: 100%; }
.divider { height: 1px; background: var(--slate-200); margin: 20px 0; border: 0; }

/* ------------------------------- header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(15, 23, 42, .06); }
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { animation: revealIn .55s ease both; }
@keyframes revealIn { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-size: 10px; color: var(--slate-500); letter-spacing: .12em; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--slate-600); font-size: 14px; font-weight: 500; padding: 9px 13px; border-radius: 10px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--teal-700); background: var(--teal-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; background: none; border: 0; color: var(--slate-700); padding: 6px; cursor: pointer; }
.mobile-menu { display: none; }

/* ------------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 11px 20px;
  font-size: 14px; font-weight: 650; line-height: 1.2; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--teal-600), var(--teal-700)); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, .24); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(13, 148, 136, .32); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--slate-700); border-color: var(--slate-200); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { color: var(--teal-700); border-color: var(--teal-300); }
.btn-ghost { background: transparent; color: var(--slate-600); }
.btn-ghost:hover { background: var(--slate-100); color: var(--slate-900); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-light { background: #fff; color: var(--teal-800); }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-amber { background: var(--amber-500); color: #3b2400; }
.btn-amber:hover { background: var(--amber-400); color: #3b2400; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------- badges ---------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.6; }
.badge-teal { background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); }
.badge-amber { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-red { background: var(--red-50); color: #991b1b; border: 1px solid #fecaca; }
.badge-green { background: var(--green-50); color: #166534; border: 1px solid #bbf7d0; }
.badge-gray { background: var(--slate-100); color: var(--slate-600); border: 1px solid var(--slate-200); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--slate-100); color: var(--slate-600); }
.tag-success { background: var(--green-50); color: #166534; }
.tag-danger { background: var(--red-50); color: #991b1b; }
.tag-warning { background: #fffbeb; color: #92400e; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); display: inline-block; }

/* ------------------------------- alerts ---------------------------------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; }
.alert-success { background: var(--green-50); border-color: #bbf7d0; color: #166534; }
.alert-error { background: var(--red-50); border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-900); }

/* ------------------------------- forms ----------------------------------- */
.form-group { margin-bottom: 18px; }
.form-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 650; color: var(--slate-700); margin-bottom: 7px; }
.form-label .req { color: var(--red-500); margin-left: 3px; }
.form-control, .form-select, .form-textarea {
  width: 100%; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-900);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; font-family: inherit; line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(20, 184, 166, .13); }
.form-control::placeholder, .form-textarea::placeholder { color: var(--slate-400); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.form-help { font-size: 12.5px; color: var(--slate-500); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--red-500); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--slate-600); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--teal-600); }
.checkbox.is-disabled { opacity: .55; cursor: not-allowed; }
.input-group { display: flex; gap: 8px; }
.input-group .form-control { flex: 1; }
.input-group .btn { flex: 0 0 auto; }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--slate-300); border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--teal-600); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--slate-100); }
.switch-row:last-child { border-bottom: 0; }
.switch-row strong { display: block; font-size: 14px; color: var(--slate-800); }
.switch-row small { color: var(--slate-500); font-size: 12.5px; }
.secret-field { display: flex; gap: 8px; }
.secret-field .form-control { font-family: var(--mono); font-size: 13px; }
.file-drop { border: 1.5px dashed var(--slate-300); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--slate-500); background: var(--slate-50); cursor: pointer; transition: all .2s ease; }
.file-drop:hover { border-color: var(--teal-400); background: var(--teal-50); color: var(--teal-700); }
.file-drop input { display: none; }

/* ------------------------------- cards ----------------------------------- */
.card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--slate-100); }
.card-head h3 { margin: 0; font-size: 17px; }
.card-head .sub { font-size: 12.5px; color: var(--slate-500); margin-top: 2px; }
.card-body { padding: 24px; }
.card-body.tight { padding: 16px; }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--slate-100); background: var(--slate-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-box { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); }
.icon-box.amber { background: #fffbeb; color: #b45309; }
.icon-box.navy { background: #eef2ff; color: #3730a3; }
.icon-box.red { background: var(--red-50); color: #b91c1c; }

/* ------------------------------- hero ------------------------------------ */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, rgba(20, 184, 166, .25), transparent 60%), linear-gradient(145deg, #061725 0%, #0a2a3d 46%, #0d3b4a 100%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(45, 212, 191, .3), transparent 68%); filter: blur(20px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 92px 0 96px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(153, 246, 228, .25); background: rgba(20, 184, 166, .12); color: var(--teal-200); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.14; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 .gradient-text { background: linear-gradient(100deg, #5eead4, #99f6e4 45%, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #b6c9d4; font-size: 17px; max-width: 560px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-proof div strong { display: block; font-size: 24px; color: #fff; line-height: 1.2; }
.hero-proof div span { color: #8fa8b5; font-size: 12.5px; }
.hero-visual { position: relative; }
.mock-window { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 12px; box-shadow: 0 40px 90px rgba(0,0,0,.4); backdrop-filter: blur(14px); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
.mock-window-inner { background: #f8fafc; border-radius: 15px; overflow: hidden; color: var(--slate-900); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--slate-100); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-300); display: block; }
.mock-bar i:first-child { background: #fca5a5; } .mock-bar i:nth-child(2) { background: #fcd34d; } .mock-bar i:nth-child(3) { background: #86efac; }
.mock-bar span { margin-left: 8px; font-size: 10px; color: var(--slate-400); }
.mock-body { padding: 16px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-head strong { font-size: 13px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.mock-stat { background: #fff; border: 1px solid var(--slate-100); border-radius: 10px; padding: 10px; }
.mock-stat small { display: block; font-size: 9px; color: var(--slate-400); }
.mock-stat strong { font-size: 17px; color: var(--teal-700); }
.mock-chart { background: #fff; border: 1px solid var(--slate-100); border-radius: 10px; padding: 12px; height: 118px; display: flex; align-items: flex-end; gap: 6px; }
.mock-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); display: block; }
.mock-table { background: #fff; border: 1px solid var(--slate-100); border-radius: 10px; padding: 10px 12px; margin-top: 9px; }
.mock-table div { display: flex; justify-content: space-between; font-size: 9px; padding: 5px 0; border-bottom: 1px solid var(--slate-50); }
.mock-table div:last-child { border-bottom: 0; }
.mock-table em { font-style: normal; color: var(--slate-400); }
.mock-float { position: absolute; right: -18px; bottom: 34px; background: #fff; color: var(--slate-900); border-radius: 13px; padding: 12px 15px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.mock-float .icon-box { width: 34px; height: 34px; border-radius: 10px; }
.hero-logo-strip { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; }
.hero-logo-strip .container { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; color: #7893a1; font-size: 12.5px; }
.hero-logo-strip strong { color: #b8ccd6; font-weight: 600; }

/* ------------------------------- features -------------------------------- */
.feature-card { padding: 26px; }
.feature-card h3 { font-size: 18px; margin: 16px 0 8px; }
.feature-card p { color: var(--slate-600); font-size: 14px; margin: 0; }
.feature-card .more { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 13px; font-weight: 650; color: var(--teal-700); }
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { position: relative; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 26px 22px; overflow: hidden; }
.step-card::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 16px; top: 10px; font-size: 46px; font-weight: 800; color: var(--slate-100); line-height: 1; }
.step-card h4 { position: relative; font-size: 16px; margin-bottom: 8px; }
.step-card p { position: relative; color: var(--slate-600); font-size: 13.5px; margin: 0; }
.step-card .icon-box { margin-bottom: 16px; }

/* ------------------------------- pricing --------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); padding: 30px 28px; box-shadow: var(--shadow-xs); transition: transform .25s ease, box-shadow .25s ease; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--teal-500); box-shadow: 0 26px 60px rgba(13, 148, 136, .16); background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%); }
.price-card.dark { background: radial-gradient(800px 300px at 80% 0%, rgba(45,212,191,.2), transparent 60%), linear-gradient(160deg, #0b263a, #071b2b); color: #fff; border-color: rgba(255,255,255,.1); }
.price-card.dark .price-desc, .price-card.dark .price-features li { color: #b6c9d4; }
.price-card.dark .price-period, .price-card.dark .price-from { color: #8fa8b5; }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--amber-400), var(--amber-500)); color: #3b2400; font-size: 11.5px; font-weight: 800; padding: 5px 14px; border-radius: 999px; letter-spacing: .04em; box-shadow: 0 6px 16px rgba(245, 158, 11, .3); }
.price-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.price-desc { color: var(--slate-500); font-size: 13px; min-height: 42px; margin-bottom: 16px; }
.price-line { display: flex; align-items: baseline; gap: 6px; padding: 10px 0 16px; border-bottom: 1px dashed var(--slate-200); }
.price-card.dark .price-line { border-color: rgba(255,255,255,.14); }
.price-line .currency { font-size: 18px; font-weight: 700; align-self: flex-start; margin-top: 8px; }
.price-line .amount { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.price-line .period { font-size: 13px; color: var(--slate-500); }
.price-year { font-size: 12.5px; color: var(--teal-700); font-weight: 650; margin-top: 8px; }
.price-card.dark .price-year { color: var(--teal-300); }
.price-features { list-style: none; padding: 0; margin: 18px 0 0; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 13.5px; color: var(--slate-600); padding: 7px 0; }
.price-features li .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--teal-600); }
.price-features li.no { color: var(--slate-400); }
.price-features li.no .icon { color: var(--slate-300); }
.price-card .btn { margin-top: 22px; }
.pricing-note { margin-top: 26px; padding: 18px 22px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); color: var(--slate-600); font-size: 13px; }
.pricing-note ul { margin: 0; }
.point-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.point-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 20px; transition: all .2s ease; }
.point-card:hover { border-color: var(--teal-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.point-card .pt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--slate-500); margin-bottom: 10px; }
.point-card .num { font-size: 26px; font-weight: 800; color: var(--slate-900); line-height: 1.2; }
.point-card .num small { font-size: 12px; color: var(--slate-500); font-weight: 600; }
.point-card .price { margin-top: 8px; color: var(--teal-700); font-weight: 700; }
.point-card .price small { color: var(--slate-400); font-weight: 500; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; font-size: 13.5px; }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--slate-100); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--slate-600); }
.compare-table thead th { background: var(--slate-50); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--teal-600); font-weight: 700; }
.compare-table .no { color: var(--slate-300); }

/* ------------------------------- cases ----------------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; transition: all .25s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-cover { height: 160px; background: linear-gradient(135deg, var(--teal-700), var(--navy-800)); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); }
.case-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 18px 18px; opacity: .7; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover .case-initial { font-size: 54px; font-weight: 800; opacity: .3; letter-spacing: -.05em; }
.case-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: 17px; margin-bottom: 8px; }
.case-body p { color: var(--slate-600); font-size: 13.5px; flex: 1; }
.case-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--slate-500); }

/* ------------------------------- FAQ ------------------------------------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: 0; text-align: left; font-size: 15px; font-weight: 650; color: var(--slate-900); cursor: pointer; font-family: inherit; }
.faq-question .icon { transition: transform .2s ease; color: var(--teal-600); }
.faq-item.is-open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 22px 20px; color: var(--slate-600); font-size: 14px; line-height: 1.8; }
.faq-item.is-open .faq-answer { display: block; }

/* ------------------------------- prose ----------------------------------- */
.prose { color: var(--slate-700); font-size: 15px; line-height: 1.9; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .7em; color: var(--slate-900); }
.prose h3 { font-size: 20px; margin: 1.4em 0 .6em; color: var(--slate-900); }
.prose h4 { font-size: 16px; margin: 1.2em 0 .5em; color: var(--slate-900); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--teal-400); background: var(--teal-50); color: var(--teal-900); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--slate-200); padding: 10px 12px; text-align: left; }
.prose th { background: var(--slate-50); }
.prose img { border-radius: var(--radius); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.md-table-wrap { overflow-x: auto; margin: 1.2em 0; }
.md-table-wrap table { margin: 0; }

/* ------------------------------- auth ------------------------------------ */
.auth-page { min-height: 100vh; background: var(--bg); }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side { position: relative; overflow: hidden; padding: 56px; color: #fff; background: radial-gradient(900px 500px at 80% 0%, rgba(20,184,166,.28), transparent 60%), linear-gradient(150deg, #061725, #0b2f42); display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: 36px; line-height: 1.25; margin-bottom: 16px; }
.auth-side p { color: #b6c9d4; max-width: 440px; }
.auth-features { display: grid; gap: 16px; margin-top: 32px; }
.auth-feature { display: flex; gap: 12px; align-items: flex-start; }
.auth-feature .icon-box { background: rgba(20,184,166,.16); color: var(--teal-200); }
.auth-feature strong { display: block; font-size: 14px; }
.auth-feature span { color: #8fa8b5; font-size: 12.5px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(430px, 100%); }
.auth-card .brand { margin-bottom: 34px; }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--slate-500); margin-bottom: 26px; }
.auth-footer { margin-top: 22px; text-align: center; font-size: 13px; color: var(--slate-500); }
.auth-legal { margin-top: 24px; max-height: 150px; overflow: auto; padding: 14px 16px; background: #fff; border: 1px solid var(--slate-200); border-radius: 10px; font-size: 11.5px; line-height: 1.65; color: var(--slate-500); }
.auth-legal h3 { font-size: 13px; color: var(--slate-700); }
.auth-legal p, .auth-legal ul { margin-bottom: 8px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; }
.auth-top .brand { margin: 0; }

/* ------------------------------- app shell ------------------------------- */
.app-shell { min-height: 100vh; display: flex; background: var(--bg); }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: linear-gradient(180deg, #071b2b, #0a2638); color: #cbd5e1; display: flex; flex-direction: column; z-index: 70; border-right: 1px solid rgba(255,255,255,.06); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; height: 70px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; font-weight: 800; font-size: 16px; }
.sidebar-brand img { width: 32px; height: 32px; border-radius: 9px; }
.sidebar-brand small { display: block; font-size: 9.5px; color: #7d95a3; font-weight: 500; letter-spacing: .12em; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #647d8b; padding: 14px 12px 8px; font-weight: 700; }
.sidebar-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #9fb3be; font-size: 13.5px; font-weight: 500; margin-bottom: 2px; transition: all .18s ease; }
.sidebar-link .icon { width: 18px; height: 18px; color: #6f8996; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-link.is-active { color: #fff; background: linear-gradient(90deg, rgba(20,184,166,.24), rgba(20,184,166,.08)); box-shadow: inset 2px 0 0 var(--teal-400); }
.sidebar-link.is-active .icon { color: var(--teal-300); }
.sidebar-link .badge { margin-left: auto; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.sidebar-user .avatar { width: 34px; height: 34px; border-radius: 10px; background: rgba(20,184,166,.2); color: var(--teal-200); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.sidebar-user strong { display: block; color: #e2e8f0; font-size: 12.5px; }
.sidebar-user small { color: #7d95a3; font-size: 10.5px; }
.app-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.app-topbar { height: 70px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--slate-200); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 50; }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-title { font-size: 15px; font-weight: 700; color: var(--slate-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-icon { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--slate-600); background: transparent; border: 0; cursor: pointer; }
.topbar-icon:hover { background: var(--slate-100); color: var(--slate-900); }
.topbar-icon .badge-dot { position: absolute; top: 7px; right: 6px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--red-500); color: #fff; font-size: 9.5px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid #fff; }
.app-content { padding: 28px; max-width: 1480px; width: 100%; margin: 0 auto; flex: 1; }
.mobile-bar { display: none; }
.sidebar-overlay { display: none; }

/* ------------------------------- page head ------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; margin: 0 0 4px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--slate-500); font-size: 13.5px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------- stats ----------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 70px; height: 70px; right: -20px; top: -20px; border-radius: 50%; background: var(--teal-50); }
.stat-card .stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.stat-label { color: var(--slate-500); font-size: 12.5px; font-weight: 600; }
.stat-value { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin-top: 5px; line-height: 1.2; position: relative; z-index: 1; }
.stat-value small { font-size: 13px; color: var(--slate-500); font-weight: 600; }
.stat-meta { margin-top: 4px; font-size: 11.5px; color: var(--slate-400); position: relative; z-index: 1; }
.stat-card.teal { background: linear-gradient(135deg, var(--teal-700), var(--teal-600)); border-color: transparent; color: #fff; }
.stat-card.teal .stat-label, .stat-card.teal .stat-meta { color: rgba(255,255,255,.72); }
.stat-card.teal::after { background: rgba(255,255,255,.12); }
.stat-card.amber { background: linear-gradient(135deg, #b45309, #f59e0b); border-color: transparent; color: #fff; }
.stat-card.amber .stat-label, .stat-card.amber .stat-meta { color: rgba(255,255,255,.78); }
.stat-card.amber::after { background: rgba(255,255,255,.14); }
.stat-card.dark { background: linear-gradient(135deg, #0b263a, #12344d); border-color: transparent; color: #fff; }
.stat-card.dark .stat-label, .stat-card.dark .stat-meta { color: rgba(255,255,255,.65); }
.stat-card.dark::after { background: rgba(255,255,255,.08); }

/* ------------------------------- points ---------------------------------- */
.point-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.point-pill { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; padding: 12px 14px; }
.point-pill .icon-box { width: 36px; height: 36px; border-radius: 10px; }
.point-pill small { display: block; font-size: 11px; color: var(--slate-500); }
.point-pill strong { display: block; font-size: 18px; line-height: 1.25; }
.point-pill .sub { font-size: 10px; color: var(--slate-400); }
.point-pill.is-low strong { color: var(--red-500); }

/* ------------------------------- tables ---------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 11px 14px; background: var(--slate-50); color: var(--slate-500); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border-bottom: 1px solid var(--slate-200); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfc; }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.data-table .cell-title { font-weight: 650; color: var(--slate-900); }
.data-table .cell-sub { font-size: 11.5px; color: var(--slate-400); margin-top: 2px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .empty { text-align: center; color: var(--slate-400); padding: 40px; }
.table-compact th, .table-compact td { padding: 9px 10px; }
.table-actions { white-space: nowrap; }

/* ------------------------------- toolbar --------------------------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-group { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box .form-control { padding-left: 36px; min-width: 210px; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate-400); width: 16px; height: 16px; }
.filter-tabs { display: flex; gap: 6px; background: var(--slate-100); padding: 4px; border-radius: 10px; flex-wrap: wrap; }
.filter-tabs a { padding: 6px 12px; border-radius: 7px; font-size: 12.5px; color: var(--slate-500); font-weight: 600; }
.filter-tabs a.is-active { background: #fff; color: var(--slate-900); box-shadow: var(--shadow-xs); }

/* ------------------------------- empty ----------------------------------- */
.empty-state { text-align: center; padding: 52px 24px; color: var(--slate-500); }
.empty-state .icon-box { width: 58px; height: 58px; border-radius: 18px; margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; color: var(--slate-700); margin-bottom: 6px; }
.empty-state p { font-size: 13px; max-width: 400px; margin: 0 auto 18px; }

/* ------------------------------- notifications --------------------------- */
.notification-list { display: grid; gap: 10px; }
.notification-item { display: flex; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); }
.notification-item.is-unread { border-color: var(--teal-200); background: linear-gradient(90deg, var(--teal-50), #fff 35%); }
.notification-item .icon-box { width: 38px; height: 38px; border-radius: 11px; }
.notification-body { flex: 1; min-width: 0; }
.notification-body strong { display: block; font-size: 14px; margin-bottom: 3px; }
.notification-body p { margin: 0; color: var(--slate-600); font-size: 13px; white-space: pre-line; }
.notification-meta { display: flex; align-items: center; gap: 12px; margin-top: 7px; font-size: 11.5px; color: var(--slate-400); }
.notification-meta a { font-weight: 600; }

/* ------------------------------- works ----------------------------------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .2s ease; }
.work-card:hover { border-color: var(--teal-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.work-thumb { height: 150px; background: linear-gradient(135deg, #e2f7f4, #f0fdfa); display: flex; align-items: center; justify-content: center; color: var(--teal-700); position: relative; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb .icon { width: 42px; height: 42px; opacity: .7; }
.work-thumb .type-badge { position: absolute; top: 10px; left: 10px; }
.work-body { padding: 15px 16px; flex: 1; display: flex; flex-direction: column; }
.work-body h3 { font-size: 14px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-body .work-excerpt { color: var(--slate-500); font-size: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 11px; color: var(--slate-400); }
.work-actions { display: flex; gap: 5px; }
.work-actions .btn { padding: 5px 8px; font-size: 11px; }

/* ------------------------------- schedule -------------------------------- */
.schedule-summary { display: flex; gap: 22px; flex-wrap: wrap; }
.schedule-summary div { min-width: 90px; }
.schedule-summary strong { display: block; font-size: 22px; line-height: 1.2; }
.schedule-summary span { font-size: 11.5px; color: var(--slate-500); }
.schedule-table td { vertical-align: top; }
.schedule-table .topic { font-weight: 650; color: var(--slate-900); max-width: 260px; }
.schedule-table .note { color: var(--slate-500); font-size: 11.5px; max-width: 220px; }
.platform-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 6px; }
.platform-douyin { background: #0f172a; color: #fff; }
.platform-xhs { background: #fef2f2; color: #b91c1c; }
.platform-kuaishou { background: #fff7ed; color: #c2410c; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-published { background: var(--green-50); color: #166534; }
.status-draft { background: var(--slate-100); color: var(--slate-600); }
.status-success { background: var(--green-50); color: #166534; }
.status-failed { background: var(--red-50); color: #991b1b; }
.status-processing { background: #eff6ff; color: #1d4ed8; }

/* ------------------------------- tabs ------------------------------------ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--slate-200); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 16px; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--slate-500); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-family: inherit; }
.tab:hover { color: var(--slate-900); }
.tab.is-active { color: var(--teal-700); border-bottom-color: var(--teal-600); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ------------------------------- modal ----------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(7, 27, 43, .55); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-backdrop.is-open { display: flex; }
.modal { width: min(560px, 100%); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin: auto; animation: modalIn .18s ease; }
.modal.modal-lg { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--slate-100); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 24px; max-height: 70vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--slate-100); background: var(--slate-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--slate-100); color: var(--slate-500); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-close:hover { background: var(--slate-200); color: var(--slate-900); }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

/* ------------------------------- toast ----------------------------------- */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 9px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; padding: 13px 15px; box-shadow: var(--shadow); font-size: 13px; color: var(--slate-700); animation: toastIn .25s ease; }
.toast .toast-icon { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.toast-success { border-left: 3px solid var(--green-500); }
.toast-success .toast-icon { color: var(--green-500); }
.toast-error { border-left: 3px solid var(--red-500); }
.toast-error .toast-icon { color: var(--red-500); }
.toast-warning { border-left: 3px solid var(--amber-500); }
.toast-warning .toast-icon { color: var(--amber-500); }
.toast-info { border-left: 3px solid var(--teal-500); }
.toast-info .toast-icon { color: var(--teal-500); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--slate-400); cursor: pointer; padding: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------- editor ---------------------------------- */
.editor-toolbar { display: flex; gap: 3px; padding: 6px; border: 1px solid var(--slate-200); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--slate-50); flex-wrap: wrap; }
.editor-toolbar button { border: 0; background: transparent; color: var(--slate-600); padding: 5px 9px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: inherit; }
.editor-toolbar button:hover { background: #fff; color: var(--slate-900); }
.editor-area { border: 1px solid var(--slate-200); border-radius: 0 0 10px 10px; min-height: 260px; padding: 16px; font-size: 14px; line-height: 1.9; outline: none; background: #fff; overflow-y: auto; }
.editor-area:focus { border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(20,184,166,.1); }
.editor-area p { margin: 0 0 .8em; }
.banned-word { background: #fee2e2; color: #b91c1c; border-radius: 3px; padding: 0 3px; font-weight: 700; }
.limit-result { padding: 10px 14px; border-radius: 9px; font-size: 12.5px; margin-top: 10px; }
.limit-result.has { background: var(--red-50); color: #991b1b; border: 1px solid #fecaca; }
.limit-result.clean { background: var(--green-50); color: #166534; border: 1px solid #bbf7d0; }
.limit-result .word { display: inline-block; background: #fee2e2; color: #b91c1c; border-radius: 4px; padding: 0 5px; margin: 2px; font-weight: 650; }

/* ------------------------------- material -------------------------------- */
.material-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: start; }
.material-panel { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; }
.material-panel-head { padding: 18px 22px; border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.material-panel-body { padding: 22px; }
.material-result { min-height: 300px; background: var(--slate-50); border-radius: var(--radius); padding: 20px; white-space: pre-wrap; font-size: 14px; line-height: 1.9; color: var(--slate-700); }
.material-result:empty::before { content: "生成结果将显示在这里"; color: var(--slate-400); }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.image-preview { border-radius: var(--radius); overflow: hidden; background: var(--slate-100); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; color: var(--slate-400); position: relative; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview .preview-tag { position: absolute; top: 10px; left: 10px; }
.video-task { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--slate-200); border-radius: 11px; margin-bottom: 10px; }
.video-task .icon-box { width: 38px; height: 38px; border-radius: 10px; }
.video-task .vt-body { flex: 1; min-width: 0; }
.video-task strong { display: block; font-size: 13px; }
.video-task small { color: var(--slate-500); font-size: 11.5px; }
.progress { height: 6px; background: var(--slate-100); border-radius: 999px; overflow: hidden; margin-top: 7px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); border-radius: 999px; transition: width .4s ease; }
.kv-list { display: grid; gap: 10px; }
.kv-list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--slate-100); font-size: 13px; }
.kv-list div:last-child { border: 0; padding-bottom: 0; }
.kv-list span { color: var(--slate-500); }
.kv-list strong { text-align: right; color: var(--slate-800); }

/* ------------------------------- analytics ------------------------------- */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chart-box { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 18px 20px; }
.chart-box h3 { font-size: 15px; margin-bottom: 4px; }
.chart-box .sub { font-size: 11.5px; color: var(--slate-400); margin-bottom: 12px; }
.chart-canvas { width: 100%; height: 290px; }
.chart-canvas.tall { height: 340px; }
.top-list { display: grid; gap: 8px; }
.top-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--slate-100); border-radius: 10px; }
.top-item .rank { width: 24px; height: 24px; border-radius: 7px; background: var(--slate-100); color: var(--slate-500); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.top-item:nth-child(1) .rank { background: #fef3c7; color: #b45309; }
.top-item:nth-child(2) .rank { background: #e2e8f0; color: #475569; }
.top-item:nth-child(3) .rank { background: #ffedd5; color: #c2410c; }
.top-item .ti-body { flex: 1; min-width: 0; }
.top-item strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-item small { color: var(--slate-400); font-size: 11px; }
.top-item .ti-num { font-weight: 700; color: var(--teal-700); font-size: 13px; }

/* ------------------------------- pagination ------------------------------ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 24px; flex-wrap: wrap; }
.page-link { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 9px; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600); font-size: 12.5px; font-weight: 600; }
.page-link:hover { border-color: var(--teal-300); color: var(--teal-700); }
.page-link.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.page-ellipsis { color: var(--slate-400); padding: 0 4px; }

/* ------------------------------- misc ------------------------------------ */
.kbd { font-family: var(--mono); font-size: 11px; background: var(--slate-100); border: 1px solid var(--slate-200); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; }
.loading { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
.loading.dark { border-color: var(--slate-200); border-top-color: var(--teal-600); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--slate-100) 25%, #f8fafc 37%, var(--slate-100) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.video-wrap { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-wrap video { width: 100%; display: block; }
.code-block { background: var(--navy-900); color: #dbeafe; border-radius: var(--radius); padding: 16px; overflow: auto; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; }
.copy-btn { cursor: pointer; }
.copy-btn.is-copied { color: var(--green-500); }
.plan-doc { font-size: 14.5px; }
.plan-doc h2 { font-size: 21px; margin-top: 1.4em; }
.plan-doc h3 { font-size: 17px; }
.plan-doc table { font-size: 13px; }
.stat-inline { display: flex; gap: 26px; flex-wrap: wrap; }
.stat-inline div strong { display: block; font-size: 21px; line-height: 1.2; }
.stat-inline div span { font-size: 11.5px; color: var(--slate-500); }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--teal-100), var(--teal-50)); color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.hero-sm { background: radial-gradient(800px 300px at 80% 0%, rgba(20,184,166,.2), transparent 60%), linear-gradient(150deg, #071b2b, #0b2f42); color: #fff; padding: 56px 0; }
.hero-sm h1 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 8px; }
.hero-sm p { color: #b6c9d4; margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-700), #0b3b4a); border-radius: var(--radius-xl); padding: 52px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 22px 22px; opacity: .4; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: #ccfbf1; margin: 0; }

/* ------------------------------- footer ---------------------------------- */
.site-footer { background: #061725; color: #8fa8b5; padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #7d95a3; }
.footer-desc { font-size: 12.5px; line-height: 1.8; max-width: 320px; }
.footer-col h4 { color: #dbe7ec; font-size: 13px; margin-bottom: 14px; }
.footer-col a { display: block; color: #8fa8b5; font-size: 12.5px; padding: 4px 0; }
.footer-col a:hover { color: var(--teal-300); }
.footer-contact { font-size: 12.5px; line-height: 2; }
.footer-contact strong { color: #dbe7ec; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 42px; padding-top: 20px; font-size: 11.5px; color: #6f8996; }
.footer-bottom a { color: #8fa8b5; }
.footer-disclaimer { font-size: 11px; color: #5f7886; line-height: 1.7; margin-top: 16px; max-width: 980px; }
.back-top { position: fixed; right: 20px; bottom: 24px; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--slate-200); box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; z-index: 80; cursor: pointer; color: var(--slate-600); }
.back-top.is-show { display: flex; }
.back-top .icon { transform: rotate(-90deg); }

/* ------------------------------- responsive ------------------------------ */
@media (max-width: 1100px) {
  .hero-inner { gap: 34px; }
  .grid-4, .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: span 3; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--slate-200); padding: 12px 24px 20px; box-shadow: var(--shadow); }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a { display: block; padding: 10px 0; color: var(--slate-700); font-size: 14px; border-bottom: 1px solid var(--slate-50); }
  .hero-inner { grid-template-columns: 1fr; padding: 62px 0 70px; }
  .hero-visual { max-width: 560px; }
  .mock-window { transform: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .price-card.featured { order: -1; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .app-sidebar.is-open { transform: none; }
  .app-main { margin-left: 0; }
  .mobile-bar { display: inline-flex; }
  .sidebar-overlay.is-open { display: block; position: fixed; inset: 0; background: rgba(7,27,43,.5); z-index: 65; }
  .app-content { padding: 20px; }
  .app-topbar { padding: 0 18px; }
  .material-layout { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 38px 26px; }
  .compare-table { font-size: 12.5px; }
}
@media (max-width: 680px) {
  .container, .container-narrow { width: calc(100% - 32px); }
  .section { padding: 58px 0; }
  .grid-2, .grid-3, .grid-4, .point-grid, .workflow, .works-grid, .case-grid, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .point-badges { grid-template-columns: 1fr 1fr; }
  .hero { border-radius: 0; }
  .hero h1 { font-size: 34px; }
  .hero-proof { gap: 18px; }
  .hero-proof div strong { font-size: 20px; }
  .mock-float { right: 4px; bottom: -14px; }
  .nav-actions .btn { padding: 8px 12px; font-size: 12.5px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: span 2; }
  .app-content { padding: 16px 14px 32px; }
  .page-head h1 { font-size: 21px; }
  .card-body, .card-head { padding: 16px; }
  .stat-value { font-size: 22px; }
  .modal-backdrop { padding: 14px 10px; }
  .modal-body { padding: 18px; }
  .schedule-summary { gap: 14px; }
  .toolbar { align-items: stretch; }
  .search-box .form-control { min-width: 0; width: 100%; }
  .table-wrap { margin: 0 -4px; }
  .toast-stack { top: 10px; right: 10px; left: 10px; max-width: none; }
  .auth-main { padding: 24px 18px; }
  .auth-card .brand { margin-bottom: 24px; }
}

@media print {
  .site-header, .site-footer, .app-sidebar, .app-topbar, .page-actions, .btn, .no-print { display: none !important; }
  .app-main { margin: 0; }
  .app-content { padding: 0; }
  body { background: #fff; }
}
