
/* ============ Design Tokens（亮色主题） ============ */
:root {
  /* 品牌主色：科技青（亮色主题主角） */
  --brand: #00B894;
  --brand-strong: #00A884;
  --brand-soft: #E6F9F4;
  --brand-softer: #F0FBF8;
  /* 辅助色：琥珀金（仅点缀，按钮/CAL用） */
  --amber: #F5A623;
  --amber-deep: #D97B06;
  /* 文字 */
  --ink: #0F1E2E;
  --ink-2: #40556B;
  --ink-3: #7E93A8;
  /* 线/面 */
  --line: #E3EAF2;
  --bg: #F4F7FB;
  --bg-soft: #EBF1F8;
  --white: #FFFFFF;
  /* 状态 */
  --danger: #E5484D;
  --success: #12B76A;
  --info: #2E90FA;
  --warning: #F79009;
  /* 圆角规范 */
  --radius-card: 16px;
  --radius-btn: 999px;
  --radius-input: 12px;
  --radius-tag: 6px;
  --shadow-card: 0 1px 2px rgba(16, 30, 46, 0.04), 0 8px 24px rgba(16, 30, 46, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(16, 30, 46, 0.05), 0 16px 40px rgba(16, 30, 46, 0.10);
  --shadow-btn: 0 6px 16px rgba(0, 168, 132, 0.28);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-mono: 'Roboto Mono', ui-monospace, monospace;
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
}

/* 兼容旧变量名（代码里仍引用 deep-blue 的地方降级为品牌青） */
:root {
  --deep-blue: #0E2A39;
  --deep-blue-2: #12344A;
  --deep-blue-3: #1B4A5A;
  --teal: #00B894;
  --teal-dim: #00997A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
::selection { background: rgba(0, 212, 170, 0.25); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D0D5DD; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ Page system ============ */
.page { display: none; min-height: 100vh; min-height: 100dvh; }
.page.active { display: block; animation: pageIn 0.3s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ Login Page ============ */
#page-login { background: var(--white); }
.login-wrap { display: flex; min-height: 100vh; min-height: 100dvh; }
.login-brand {
  flex: 0 0 55%; background: var(--deep-blue); color: #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 56px 64px;
}
.login-brand::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 10%, rgba(0, 212, 170, 0.14), transparent 60%),
              radial-gradient(ellipse 50% 40% at 90% 90%, rgba(245, 166, 35, 0.10), transparent 60%);
  pointer-events: none;
}
#particle-canvas { position: absolute; inset: 0; z-index: 1; }
.brand-inner { position: relative; z-index: 2; }
.brand-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.brand-logo .logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), #0A8F74);
  display: grid; place-items: center; font-size: 20px; color: #04231C;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
}
.brand-hero { margin-top: auto; margin-bottom: auto; padding: 80px 0 40px; }
.brand-hero h1 {
  font-size: 28px; font-weight: 700; line-height: 1.4; max-width: 480px;
  letter-spacing: 0.5px;
}
.brand-hero .sub {
  margin-top: 16px; font-size: 14px; color: var(--teal);
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}
.brand-hero .desc { margin-top: 20px; color: #94A3B8; font-size: 14px; line-height: 1.8; max-width: 440px; }
.brand-metrics { position: relative; z-index: 2; display: flex; gap: 40px; }
.metric-block .metric-num {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  color: #fff; display: flex; align-items: baseline; gap: 2px;
}
.metric-block .metric-num em { font-style: normal; color: var(--teal); font-size: 18px; }
.metric-block .metric-label { margin-top: 6px; font-size: 12px; color: #64748B; }
.brand-metrics .m-sep { width: 1px; background: rgba(255,255,255,0.1); }

.login-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.login-card .login-sub { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.login-card .login-sub a { color: var(--teal-dim); font-weight: 600; }
.form-group { margin-top: 24px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-3); pointer-events: none;
}
.input-wrap input {
  width: 100%; height: 48px; border-radius: var(--radius-input);
  border: 1.5px solid var(--line); background: #FBFCFE;
  padding: 0 16px 0 42px; font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrap input::placeholder { color: #B8C0CC; }
.input-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.15);
}
.input-wrap input.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.12); }
.field-err { display: none; margin-top: 6px; font-size: 12px; color: var(--danger); }
.field-err.show { display: block; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; user-select: none; }
.checkbox input { accent-color: var(--teal); width: 15px; height: 15px; }
.checkbox:hover { color: var(--ink); }
.link { color: var(--teal-dim); font-weight: 600; }
.link:hover { color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-btn); font-weight: 600; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--deep-blue); color: #fff; height: 48px; padding: 0 28px; box-shadow: var(--shadow-btn); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10, 22, 40, 0.25); background: var(--deep-blue-2); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-amber { background: var(--amber); color: #3D2A00; height: 48px; padding: 0 28px; box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35); }
.btn-amber:hover { transform: translateY(-2px); background: #FFB43D; }
.btn-ghost { background: rgba(255,255,255,0.06); color: #E2E8F0; height: 48px; padding: 0 28px; border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-teal { background: var(--teal); color: #04231C; height: 44px; padding: 0 24px; }
.btn-teal:hover { background: #19E0B8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 212, 170, 0.35); }
.btn-block { width: 100%; margin-top: 24px; }
.btn-lg { height: 56px; padding: 0 36px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 18px; font-size: 13px; }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink-2); height: 48px; padding: 0 28px; background: #fff; }
.btn-outline:hover { border-color: #D0D5DD; color: var(--ink); background: var(--bg-soft); }
.divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 20px; color: var(--ink-3); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-row { display: flex; gap: 12px; }
.social-btn {
  flex: 1; height: 46px; border-radius: var(--radius-input);
  border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff;
  transition: all 0.15s;
}
.social-btn:hover { border-color: #D0D5DD; background: var(--bg-soft); color: var(--ink); }
.login-footer { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-3); z-index: 2; }
.login-footer a { color: var(--ink-2); margin: 0 10px; }
.login-footer a:hover { color: var(--teal-dim); }
.lang-switch { position: absolute; top: 24px; right: 32px; display: flex; gap: 4px; font-size: 13px; z-index: 2; }
.lang-switch button { padding: 6px 12px; border-radius: var(--radius-tag); color: var(--ink-3); font-weight: 600; }
.lang-switch button.active { background: var(--bg-soft); color: var(--ink); }
.lang-switch button:hover { color: var(--ink); }

/* ============ Top Nav (Landing) ============ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 28px; margin-left: 16px; }
.nav-links a { color: #C0CCDA; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-cta .link { color: #C0CCDA; font-size: 14px; }
.nav-cta .link:hover { color: #fff; }

/* ============ Landing Hero ============ */
.hero {
  background: linear-gradient(160deg, var(--deep-blue) 0%, var(--deep-blue-2) 45%, #0B1E3F 100%);
  color: #fff; position: relative; overflow: hidden;
  padding: 96px 0 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 15% 20%, rgba(0, 212, 170, 0.18), transparent 70%),
    radial-gradient(ellipse 35% 25% at 85% 15%, rgba(245, 166, 35, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 212, 170, 0.1); border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--teal); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-btn);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { margin-top: 24px; font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: -1.5px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--teal), #7AE8D0 50%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .typing-line { margin-top: 20px; font-size: 17px; color: #B8C4D6; min-height: 26px; }
.hero .typing-line .cursor { display: inline-block; width: 2px; height: 20px; background: var(--teal); vertical-align: -3px; margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .hero-desc { margin-top: 16px; color: #8FA0B8; font-size: 15px; line-height: 1.8; max-width: 480px; }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; }
.hero-trust { display: flex; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); }
.hero-trust .t-item .t-num { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: #fff; }
.hero-trust .t-item .t-num em { font-style: normal; color: var(--teal); }
.hero-trust .t-item .t-label { font-size: 12px; color: #64748B; margin-top: 4px; }

/* Dashboard preview (3D tilt) */
.dash-preview { position: relative; perspective: 1400px; padding: 24px 0 80px; }
.dash-frame {
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(0deg);
  transform-style: preserve-3d;
  background: #0E1F3A; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  overflow: hidden; transition: transform 0.4s var(--ease);
}
.dash-preview:hover .dash-frame { transform: rotateY(-8deg) rotateX(3deg); }
.dash-topbar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dash-topbar .d-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-topbar .d-search { flex: 1; margin-left: 16px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.06); display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: #5B6B84; gap: 8px; }
.dash-body { display: grid; grid-template-columns: 48px 1fr; min-height: 300px; }
.dash-side { background: rgba(255,255,255,0.03); border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; align-items: center; padding-top: 14px; gap: 16px; }
.dash-side .s-icon { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,0.07); }
.dash-side .s-icon.on { background: var(--teal); box-shadow: 0 0 12px rgba(0,212,170,0.5); }
.dash-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-kpi { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 12px; }
.dash-kpi .k-label { font-size: 10px; color: #5B6B84; }
.dash-kpi .k-num { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: #fff; margin-top: 4px; }
.dash-kpi .k-num em { font-style: normal; color: var(--teal); font-size: 11px; }
.dash-chart { flex: 1; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; }
.dash-chart .c-head { display: flex; justify-content: space-between; font-size: 11px; color: #5B6B84; }
.dash-chart svg { margin-top: 8px; width: 100%; flex: 1; }
.dash-glow {
  position: absolute; width: 70%; height: 40px; bottom: 60px; left: 15%;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.35), transparent 70%);
  filter: blur(20px); z-index: -1;
}

/* ============ Landing sections ============ */
.section { max-width: 1200px; margin: 0 auto; padding: 96px 32px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--teal-dim); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { margin-top: 12px; font-size: 36px; font-weight: 800; letter-spacing: -0.8px; }
.section-head p { margin-top: 14px; color: var(--ink-3); font-size: 15px; line-height: 1.7; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 32px 28px; box-shadow: var(--shadow-card);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(0, 212, 170, 0.35); }
.f-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(0,212,170,0.04));
  color: var(--teal-dim); border: 1px solid rgba(0,212,170,0.2);
}
.feature-card h3 { margin-top: 20px; font-size: 17px; font-weight: 700; }
.feature-card p { margin-top: 10px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.f-metric { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--teal-dim); font-weight: 600; }
.f-metric span { color: var(--ink-3); font-family: var(--font-sans); font-weight: 400; }

/* Stats trust band */
.stats-band { background: var(--deep-blue); position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(0,212,170,0.12), transparent 70%); }
.stats-grid { max-width: 1200px; margin: 0 auto; padding: 72px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 2; }
.stat-item { text-align: center; }
.stat-item .s-num { font-family: var(--font-mono); font-size: 44px; font-weight: 700; color: #fff; line-height: 1; }
.stat-item .s-num em { font-style: normal; color: var(--teal); }
.stat-item .s-label { margin-top: 12px; color: #8FA0B8; font-size: 13px; }

/* Cases */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.15s var(--ease), box-shadow 0.15s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.case-cover { height: 140px; background: linear-gradient(135deg, var(--deep-blue-2), var(--deep-blue-3)); position: relative; display: grid; place-items: center; }
.case-cover .c-logo { font-size: 30px; font-weight: 800; color: #fff; opacity: 0.9; font-family: var(--font-mono); }
.case-cover .c-flag { position: absolute; top: 12px; right: 12px; font-size: 14px; }
.case-body { padding: 22px 24px; }
.case-body h4 { font-size: 15px; font-weight: 700; }
.case-body .c-meta { margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.case-body .c-result { margin-top: 14px; display: flex; gap: 20px; }
.case-body .c-result .r { font-size: 12px; color: var(--ink-3); }
.case-body .c-result .r b { display: block; font-family: var(--font-mono); font-size: 17px; color: var(--teal-dim); margin-top: 2px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--deep-blue), #0B1E3F); border-radius: 24px; padding: 72px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(0,212,170,0.2), transparent 70%); top: -200px; left: -100px; }
.cta-band h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.cta-band p { margin-top: 14px; color: #8FA0B8; font-size: 15px; }
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; margin-top: 36px; position: relative; z-index: 2; }

/* Site footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 32px; display: flex; justify-content: space-between; align-items: center; }
.footer-inner .f-links { display: flex; gap: 24px; color: var(--ink-3); font-size: 13px; }
.footer-inner .f-links a:hover { color: var(--teal-dim); }
.f-copy { color: var(--ink-3); font-size: 13px; }

/* ============ App Shell (Dashboard & GEO) ============ */
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.app-side {
  width: 216px; background: var(--deep-blue); color: #C0CCDA;
  display: flex; flex-direction: column; transition: width 0.2s var(--ease);
  position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 40;
}
.app-side.collapsed { width: 72px; }
.side-logo { display: flex; align-items: center; gap: 10px; padding: 18px 16px; font-weight: 800; font-size: 15px; color: #fff; white-space: nowrap; }
.side-logo .logo-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), #0A8F74); display: grid; place-items: center; font-size: 15px; color: #04231C; flex-shrink: 0; }
.side-group-label { padding: 16px 20px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: #51627B; font-weight: 700; white-space: nowrap; }
.app-side.collapsed .side-group-label { text-align: center; padding: 18px 0 8px; font-size: 9px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: #8FA0B8; font-size: 14px; font-weight: 500; cursor: pointer;
  border-left: 3px solid transparent; transition: all 0.15s; white-space: nowrap;
  position: relative;
}
.side-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.side-item:hover { color: #fff; background: rgba(255,255,255,0.04); }
.side-item.active { color: #fff; background: rgba(0, 212, 170, 0.12); border-left-color: var(--teal); }
.side-item.active svg { color: var(--teal); }
.app-side.collapsed .side-item { padding: 11px 0; justify-content: center; }
.app-side.collapsed .side-item span, .app-side.collapsed .side-logo span, .app-side.collapsed .side-footer span { display: none; }
.side-footer { margin-top: auto; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.side-footer .avatar { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--amber), #E08E00); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #3D2A00; flex-shrink: 0; }
.side-footer .f-name { font-size: 13px; color: #E2E8F0; font-weight: 600; }
.side-footer .f-plan { font-size: 11px; color: #51627B; }
.side-collapse-btn { position: absolute; right: -12px; top: 80px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(10,22,40,0.1); display: grid; place-items: center; color: var(--ink-2); z-index: 5; }
.side-collapse-btn:hover { color: var(--teal-dim); }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  height: 64px; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 28px; gap: 24px; position: sticky; top: 0; z-index: 30;
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumb .current { color: var(--ink); font-weight: 600; }
.crumb .sep { color: #D0D5DD; }
.global-search {
  flex: 1; max-width: 420px; margin: 0 auto; position: relative;
}
.global-search .gs-inner {
  display: flex; align-items: center; gap: 10px; height: 40px;
  background: var(--bg-soft); border: 1.5px solid transparent; border-radius: var(--radius-input);
  padding: 0 14px; color: var(--ink-3); font-size: 14px; cursor: pointer;
  transition: all 0.15s;
}
.global-search .gs-inner:hover { background: #EDF0F3; }
.global-search .gs-inner.focused { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(0,212,170,0.12); }
.global-search .gs-inner svg { width: 17px; height: 17px; }
.global-search .gs-inner .kbd { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }
.global-search .gs-input { display: none; flex: 1; background: transparent; border: none; outline: none; font-size: 14px; color: var(--ink); }
.global-search .gs-input.show { display: block; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink-2); position: relative; transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
.topbar-avatar { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--amber), #E08E00); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #3D2A00; cursor: pointer; transition: transform 0.15s; }
.topbar-avatar:hover { transform: scale(1.05); }

/* Dropdown menu */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: #fff; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(10,22,40,0.16); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.15s var(--ease); z-index: 60;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu .dm-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.dropdown-menu .dm-item:hover { background: var(--bg-soft); color: var(--ink); }
.dropdown-menu .dm-item.danger { color: var(--danger); }
.dropdown-menu .dm-item svg { width: 16px; height: 16px; }
.dropdown-menu .dm-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.dropdown-menu .dm-head { padding: 10px 12px 6px; }
.dropdown-menu .dm-head .n { font-size: 13px; font-weight: 700; color: var(--ink); }
.dropdown-menu .dm-head .e { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* Notification panel */
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; cursor: pointer; }
.notif-item:hover { background: var(--bg-soft); }
.notif-item .n-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.notif-item .n-icon svg { width: 17px; height: 17px; }
.notif-item .n-text { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.notif-item .n-text b { color: var(--ink); font-weight: 600; }
.notif-item .n-time { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

/* App content */
.app-content { padding: 28px; flex: 1; }
.page-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title-row h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.page-title-row .pt-sub { margin-top: 4px; color: var(--ink-3); font-size: 13px; }

/* KPI cards */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpi-card {
  background: #fff; border-radius: var(--radius-card); border: 1px solid var(--line);
  padding: 22px 24px; box-shadow: var(--shadow-card); transition: all 0.15s var(--ease);
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.kpi-card .k-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-card .k-label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.kpi-card .k-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.kpi-card .k-icon svg { width: 18px; height: 18px; }
.kpi-card .k-num { font-family: var(--font-mono); font-size: 30px; font-weight: 700; margin-top: 14px; letter-spacing: -0.5px; }
.kpi-card .k-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; margin-top: 8px; padding: 3px 8px; border-radius: var(--radius-tag); }
.kpi-card .k-trend.up { color: var(--success); background: rgba(18, 183, 106, 0.1); }
.kpi-card .k-trend.down { color: var(--danger); background: rgba(240, 68, 56, 0.1); }
.kpi-card .k-trend.flat { color: var(--ink-3); background: var(--bg-soft); }
.kpi-card .k-vs { font-size: 12px; color: var(--ink-3); margin-left: 6px; }

/* Chart cards */
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 20px; }
.panel-card {
  background: #fff; border-radius: var(--radius-card); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); padding: 24px;
}
.panel-card .pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-card .pc-head h3 { font-size: 15px; font-weight: 700; }
.panel-card .pc-head .pc-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); }
.legend .lg { display: flex; align-items: center; gap: 6px; }
.legend .lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 3px; border-radius: 10px; }
.chart-tabs button { padding: 5px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.chart-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(10,22,40,0.08); }

/* Quick actions */
.quick-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.quick-card {
  border-radius: var(--radius-card); padding: 26px; color: #fff;
  display: flex; align-items: center; gap: 18px; cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s; position: relative; overflow: hidden;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,22,40,0.25); }
.quick-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.quick-card .q-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.15); display: grid; place-items: center; flex-shrink: 0; }
.quick-card .q-icon svg { width: 24px; height: 24px; }
.quick-card h4 { font-size: 15px; font-weight: 700; }
.quick-card p { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.quick-card.qc-1 { background: linear-gradient(135deg, #0F2A52, #14366B); }
.quick-card.qc-2 { background: linear-gradient(135deg, #0A8F74, #00B894); }
.quick-card.qc-3 { background: linear-gradient(135deg, #B45309, #D97706); }

/* Activity feed */
.feed-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 20px; }
.feed-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-item .f-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.feed-item .f-body { flex: 1; }
.feed-item .f-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.feed-item .f-title b { color: var(--teal-dim); font-weight: 700; }
.feed-item .f-desc { font-size: 13px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.feed-item .f-time { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.feed-item .f-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-tag); margin-top: 6px; display: inline-block; }

/* Tasks list */
.task-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task-item:last-child { border-bottom: none; }
.task-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #D0D5DD; display: grid; place-items: center; color: transparent; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.task-check svg { width: 12px; height: 12px; }
.task-check.done { background: var(--teal); border-color: var(--teal); color: #04231C; }
.task-item .t-title { font-size: 13px; color: var(--ink-2); flex: 1; }
.task-item .t-title.done-t { text-decoration: line-through; color: var(--ink-3); }
.task-item .t-pri { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-tag); }

/* ============ GEO Page ============ */
.geo-top { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.score-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; }
.score-ring { position: relative; width: 190px; height: 190px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: var(--bg-soft); stroke-width: 12; }
.score-ring .ring-val { fill: none; stroke: url(#scoreGrad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 528; stroke-dashoffset: 528; transition: stroke-dashoffset 1.2s var(--ease); }
.score-ring .ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .ring-center .sc-num { font-family: var(--font-mono); font-size: 52px; font-weight: 700; line-height: 1; }
.score-ring .ring-center .sc-label { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.score-card .sc-desc { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.score-card .sc-badge { margin-top: 14px; padding: 5px 14px; border-radius: var(--radius-btn); font-size: 12px; font-weight: 700; background: rgba(0,212,170,0.1); color: var(--teal-dim); }
.geo-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.geo-sum-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px 24px; }
.geo-sum-card .gs-label { font-size: 13px; color: var(--ink-3); }
.geo-sum-card .gs-num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; margin-top: 10px; }
.geo-sum-card .gs-num em { font-style: normal; color: var(--teal-dim); font-size: 16px; }
.geo-sum-card .gs-bar { height: 6px; border-radius: 3px; background: var(--bg-soft); margin-top: 14px; overflow: hidden; }
.geo-sum-card .gs-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), #7AE8D0); transition: width 1s var(--ease); }
.geo-sum-card .gs-foot { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* Suggestions */
.suggest-item { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; background: #fff; transition: border-color 0.15s; }
.suggest-item:hover { border-color: rgba(0,212,170,0.4); }
.suggest-item .s-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.suggest-item .s-head h4 { font-size: 14px; font-weight: 700; flex: 1; }
.pri-tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-tag); }
.pri-urgent { background: rgba(240, 68, 56, 0.1); color: var(--danger); }
.pri-suggest { background: rgba(245, 166, 35, 0.12); color: #B45309; }
.pri-done { background: rgba(18, 183, 106, 0.1); color: var(--success); }
.suggest-item .s-body { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.suggest-item.open .s-body { display: block; }
.suggest-item .s-arrow { width: 20px; height: 20px; color: var(--ink-3); transition: transform 0.2s; }
.suggest-item.open .s-arrow { transform: rotate(180deg); }
.suggest-item .s-act { margin-top: 14px; display: flex; gap: 10px; }
.suggest-item .s-act .btn { height: 34px; padding: 0 16px; font-size: 12px; }

/* Compare table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th { text-align: left; padding: 12px 16px; color: var(--ink-3); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.compare-table th:first-child { border-radius: 10px 0 0 0; }
.compare-table th:last-child { border-radius: 0 10px 0 0; }
.compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .row-flag { font-size: 18px; margin-right: 8px; }
.compare-table .cell-bar { height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; width: 120px; display: inline-block; vertical-align: middle; margin-left: 8px; }
.compare-table .cell-bar i { display: block; height: 100%; border-radius: 3px; }
.compare-table .me { font-weight: 700; color: var(--ink); }
.compare-table .me-row td { background: rgba(0, 212, 170, 0.04); }
.win { color: var(--success); font-weight: 700; }
.lose { color: var(--danger); font-weight: 700; }
.tie { color: var(--ink-3); }

/* ============ Command Palette ============ */
.cmd-overlay {
  position: fixed; inset: 0; background: rgba(10, 22, 40, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 100; display: none; align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.cmd-overlay.show { display: flex; animation: fadeIn 0.15s; }
@keyframes fadeIn { from { opacity: 0; } }
.cmd-palette { width: 560px; max-width: 92vw; background: #fff; border-radius: 20px; box-shadow: 0 24px 80px rgba(10,22,40,0.3); overflow: hidden; animation: popIn 0.2s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(0.97) translateY(-8px); } }
.cmd-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cmd-input-row svg { width: 20px; height: 20px; color: var(--ink-3); }
.cmd-input-row input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--ink); }
.cmd-input-row input::placeholder { color: #B8C0CC; }
.cmd-list { max-height: 360px; overflow-y: auto; padding: 8px; }
.cmd-group-label { padding: 10px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); font-weight: 700; }
.cmd-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.cmd-item svg { width: 18px; height: 18px; color: var(--ink-3); }
.cmd-item:hover, .cmd-item.hl { background: var(--bg-soft); color: var(--ink); }
.cmd-item .cmd-kbd { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* ============ Toast ============ */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 12px; min-width: 300px; max-width: 380px;
  background: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(10,22,40,0.18); border: 1px solid var(--line);
  border-left: 4px solid var(--info);
  animation: toastIn 0.3s var(--ease); transform-origin: top right;
}
.toast.leaving { animation: toastOut 0.25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(0.95); } }
.toast .t-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; font-size: 12px; font-weight: 800; }
.toast.success { border-left-color: var(--success); } .toast.success .t-icon { background: var(--success); }
.toast.info { border-left-color: var(--info); } .toast.info .t-icon { background: var(--info); }
.toast.warning { border-left-color: var(--warning); } .toast.warning .t-icon { background: var(--warning); }
.toast.error { border-left-color: var(--danger); } .toast.error .t-icon { background: var(--danger); }
.toast .t-body { flex: 1; }
.toast .t-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.toast .t-msg { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.toast .t-close { color: var(--ink-3); padding: 2px; }
.toast .t-close:hover { color: var(--ink); }

/* ============ Skeleton ============ */
.skeleton { position: relative; overflow: hidden; background: var(--bg-soft); border-radius: 8px; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .dash-preview { max-width: 560px; margin: 0 auto; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .chart-grid, .feed-row { grid-template-columns: 1fr; }
  .geo-top { grid-template-columns: 1fr; }
  .login-wrap { flex-direction: column; }
  .login-brand { flex: none; min-height: 40vh; padding: 40px 32px; }
  .brand-hero { padding: 40px 0 24px; }
  .brand-metrics { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 36px; }
  .hero { padding-top: 64px; overflow: hidden; }
  .hero-inner { padding: 0 20px; gap: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { flex-wrap: wrap; gap: 20px; }
  .dash-preview { padding: 8px 4px 40px; }
  .dash-frame { transform: rotateY(-6deg) rotateX(3deg); }
  .dash-frame .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .app-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); width: 216px !important; }
  .app-side.mobile-open { transform: none; box-shadow: 0 0 60px rgba(10,22,40,0.4); }
  .app-content { padding: 20px 16px; }
  .kpi-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 64px 20px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .stat-item .s-num { font-size: 34px; }
  .pc-head { flex-wrap: wrap; gap: 12px; }
  .pc-tools { flex-wrap: wrap; gap: 10px; }
  .geo-summary { margin-top: 20px; }
  .pt-actions { flex-wrap: wrap; }
  .topbar-right .icon-btn, .dropdown-menu.notif-menu { display: none; }
  .global-search { max-width: 200px; }
  .crumb span:not(.current) { display: none; }
}

/* ============ 平板层（721–1024px）：侧栏自动收起为图标条 ============ */
@media (max-width: 1024px) and (min-width: 721px) {
  .app-side { width: 72px; }
  .app-side .side-group-label { text-align: center; padding: 18px 0 8px; font-size: 9px; }
  .app-side .side-item { padding: 11px 0; justify-content: center; }
  .app-side .side-item span, .app-side .side-logo span, .app-side .side-footer span { display: none; }
  .app-side .side-footer { justify-content: center; padding: 16px 0; }
  .app-side .side-collapse-btn { display: none; }
  .app-side .side-badge { display: none; }
  /* 内容区随之变宽 */
  .app-topbar { padding: 0 20px; }
  .app-content { padding: 24px 20px; }
}

/* ============ 标准页补充 ============ */
/* 登录页 body 无需背景（login-wrap 全屏白） */
.login-body { background: #fff; }

/* 视图切换 */
.view[hidden] { display: none !important; }
.pt-actions { display: flex; gap: 12px; }
.chart-box { width: 100%; }
.chart-box svg { display: block; }
.donut-box { display: flex; justify-content: center; }
.donut-box svg { max-width: 220px; }

/* 图例与分布 */
.pc-tools { display: flex; align-items: center; gap: 16px; }
.ai-dist { padding: 4px 0; }
.dist-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.dist-ico { font-size: 18px; width: 26px; text-align: center; }
.dist-name { flex: 1; font-size: 13px; }
.dist-val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; min-width: 44px; }
.dist-track { width: 90px; height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.dist-track i { display: block; height: 100%; border-radius: 3px; background: var(--teal); }

/* 环形图图例 */
#donut-legend { margin-top: 14px; }
.dl-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: var(--ink-2); }
.dl-dot { width: 10px; height: 10px; border-radius: 3px; }
.dl-val { margin-left: auto; font-family: var(--font-mono); color: var(--ink-3); }

/* 表格横向滚动 */
.table-scroll { overflow-x: auto; }
.table-scroll .compare-table { min-width: 560px; }

/* 命令面板补充 */
.cmd-item .cmd-label { flex: 1; }
.cmd-empty { padding: 24px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* 侧栏导航（语义化 nav 修正） */
.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; }
.app-side .side-logo { display: flex; text-decoration: none; color: #fff; }
.site-nav a.brand-logo, .brand-inner a.brand-logo, .footer-inner a.brand-logo { text-decoration: none; color: inherit; }
.site-nav .brand-logo span:last-child { color: #fff; }
.footer-inner .brand-logo span:last-child { color: var(--ink); }
.login-brand a.brand-logo { color: #fff; }
.login-brand a.brand-logo .logo-mark { color: #04231C; }

/* 下拉按钮默认样式重置 */
.dm-item { width: 100%; text-align: left; font-size: 13px; font-family: inherit; }
.topbar-avatar { display: grid; place-items: center; }
.notif-menu { width: 340px; max-width: 90vw; }
.notif-item .n-text b { display: inline; }
.notif-item .n-icon svg { width: 17px; height: 17px; }

/* 快速操作卡片作为 <a>/<button> */
.quick-card { width: 100%; text-align: left; border: none; }
a.quick-card { text-decoration: none; color: #fff; }

/* toast 按钮 */
.t-close { color: var(--ink-3); padding: 2px 4px; font-size: 13px; line-height: 1; }
.t-close:hover { color: var(--ink); }

/* =========================================================
   亮色主题覆盖层（Light Theme Overrides）
   品牌青做主色，全站浅色；无大面积深海蓝暗块
   ========================================================= */

/* ---------- 顶部导航：白色毛玻璃 ---------- */
.site-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner .brand-logo span:last-child { color: var(--ink); }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--brand-strong); }
.nav-cta .link { color: var(--ink-2); }
.nav-cta .link:hover { color: var(--brand-strong); }
.btn-amber { background: linear-gradient(135deg, #FFB020, #F5A623); color: #3D2A00; box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35); }
.btn-amber:hover { background: linear-gradient(135deg, #FFB93C, #FFA90F); }

/* ---------- Hero：浅色渐变 ---------- */
.hero {
  background: linear-gradient(150deg, #F3FAF8 0%, #E9F6F2 40%, #E3F0FA 100%);
  color: var(--ink);
}
.hero::before {
  background:
    radial-gradient(ellipse 40% 30% at 15% 15%, rgba(0, 184, 148, 0.10), transparent 70%),
    radial-gradient(ellipse 35% 25% at 88% 10%, rgba(245, 166, 35, 0.08), transparent 70%);
}
.hero-grid {
  background-image: linear-gradient(rgba(0, 120, 100, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 120, 100, 0.05) 1px, transparent 1px);
}
.hero-badge { background: var(--brand-soft); border-color: rgba(0, 184, 148, 0.4); color: var(--brand-strong); }
.hero-badge .dot { background: var(--brand); box-shadow: 0 0 8px rgba(0, 184, 148, 0.8); }
.hero h1 .grad {
  background: linear-gradient(90deg, #00997A, #00B894 45%, #D97706 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero .typing-line { color: var(--ink-2); }
.hero .typing-line .cursor { background: var(--brand-strong); }
.hero .hero-desc { color: var(--ink-3); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #D3DEE9; }
.hero-trust { border-top-color: rgba(0, 120, 100, 0.12); }
.hero-trust .t-item .t-num { color: var(--ink); }
.hero-trust .t-item .t-num em { color: var(--brand-strong); }
.hero-trust .t-item .t-label { color: var(--ink-3); }

/* Dashboard 预览浮层（亮色） */
.dash-frame { background: #fff; border-color: #E4EDF4; box-shadow: 0 30px 60px rgba(30, 60, 90, 0.18); }
.dash-topbar { border-bottom-color: var(--line); }
.dash-topbar .d-search { background: var(--bg-soft); color: var(--ink-3); }
.dash-side { background: var(--brand-softer); border-right-color: var(--line); }
.dash-side .s-icon { background: #D8F0EA; }
.dash-side .s-icon.on { background: var(--brand); box-shadow: 0 0 12px rgba(0, 184, 148, 0.4); }
.dash-kpi { background: var(--bg-soft); }
.dash-kpi .k-label { color: var(--ink-3); }
.dash-kpi .k-num { color: var(--ink); }
.dash-kpi .k-num em { color: var(--brand-strong); }
.dash-chart { background: var(--brand-softer); }
.dash-chart .c-head { color: var(--ink-3); }
.dash-glow { background: radial-gradient(ellipse, rgba(0, 184, 148, 0.25), transparent 70%); }

/* ---------- 数据信任带：品牌青浅色 ---------- */
.stats-band { background: linear-gradient(120deg, #0E7A62 0%, #00A884 55%, #12B0A0 100%); }
.stats-band::before { background: radial-gradient(ellipse 60% 60% at 80% 0%, rgba(255,255,255,0.14), transparent 70%); }
.stat-item .s-num { color: #fff; }
.stat-item .s-num em { color: #C9F5E9; }
.stat-item .s-label { color: rgba(255, 255, 255, 0.85); }

/* ---------- 你的 AI 获客团队 ---------- */
.team-section { background: linear-gradient(180deg, #fff 0%, var(--brand-softer) 100%); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 24px; box-shadow: var(--shadow-card);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(0,212,170,0.35); }
.role-card .r-avatar {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.5px;
  background: var(--ra, #00B894);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(0,0,0,0.14));
  box-shadow: 0 6px 16px rgba(16, 30, 46, 0.16);
}
.role-card .r-name { margin-top: 18px; font-size: 16px; font-weight: 700; color: var(--ink); }
.role-card .r-role { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--brand-strong); letter-spacing: 0.5px; }
.role-card p { margin-top: 12px; color: var(--ink-3); font-size: 13.5px; line-height: 1.7; }

/* ---------- 指南/内容矩阵（guides）---------- */
.guide-wrap { max-width: 820px; margin: 0 auto; padding: 48px 32px 72px; }
.guide-crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.guide-crumb a { color: var(--brand-strong); font-weight: 600; }
.guide-crumb span { margin: 0 8px; color: var(--line); }
.guide-wrap h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.25; color: var(--ink); }
.guide-meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.guide-lead { margin-top: 24px; font-size: 18px; line-height: 1.8; color: var(--ink-2); font-weight: 500; }
.guide-body { margin-top: 36px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.guide-body h2 { margin: 40px 0 16px; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.4px; }
.guide-body h3 { margin: 28px 0 12px; font-size: 18px; font-weight: 700; color: var(--ink); }
.guide-body p { margin: 14px 0; }
.guide-body ul, .guide-body ol { margin: 14px 0; padding-left: 24px; }
.guide-body li { margin: 8px 0; }
.guide-body strong { color: var(--ink); font-weight: 700; }
.guide-body a { color: var(--brand-strong); font-weight: 600; border-bottom: 1px solid rgba(0,168,132,0.3); }
.guide-body code { font-family: var(--font-mono); background: var(--brand-softer); padding: 2px 6px; border-radius: 5px; font-size: 14px; color: var(--teal-dim); }
.guide-callout {
  margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--brand);
  background: var(--brand-softer); border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-size: 15px; line-height: 1.8; color: var(--ink-2);
}
.guide-faq { margin-top: 44px; }
.guide-faq h2 { margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.faq-item p { margin: 10px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-3); }
.guide-cta { margin: 48px 0 0; padding: 36px 32px; border-radius: var(--radius-card);
  background: linear-gradient(120deg, #0E7A62 0%, #00A884 55%, #12B0A0 100%); text-align: center; }
.guide-cta h3 { color: #fff; font-size: 22px; font-weight: 800; }
.guide-cta p { color: rgba(255,255,255,0.88); margin: 10px 0 20px; font-size: 15px; }
/* 指南列表页 */
.guides-hero { text-align: center; padding: 64px 32px 32px; max-width: 760px; margin: 0 auto; }
.guides-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.guides-hero p { margin-top: 16px; font-size: 16px; color: var(--ink-3); line-height: 1.7; }
.guides-list { max-width: 1080px; margin: 0 auto; padding: 24px 32px 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 24px; box-shadow: var(--shadow-card); transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s; text-decoration: none; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(0,212,170,0.35); }
.guide-card .gc-tag { font-size: 12px; font-weight: 700; color: var(--brand-strong); letter-spacing: 1px; text-transform: uppercase; }
.guide-card h3 { margin-top: 12px; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.guide-card p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--ink-3); flex: 1; }
.guide-card .gc-more { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--brand-strong); }
@media (max-width: 720px) {
  .guide-wrap { padding: 32px 20px 56px; }
  .guide-wrap h1 { font-size: 28px; }
  .guide-body h2 { font-size: 21px; }
  .guides-hero h1 { font-size: 30px; }
  .guides-list { grid-template-columns: 1fr; }
}

/* ---------- 实时数据墙：实时徽标 + 底注 ---------- */
.stats-live-badge {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  margin: 56px auto 0; padding: 7px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #EAFFF9; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.stats-band { text-align: center; }
.stats-band > .stats-live-badge { display: inline-flex; }
.stats-band .stats-grid { padding-top: 32px; padding-bottom: 32px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7CFFCB; box-shadow: 0 0 0 0 rgba(124, 255, 203, 0.7);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 255, 203, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(124, 255, 203, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 255, 203, 0); }
}
.stats-foot {
  position: relative; z-index: 2;
  padding-bottom: 48px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px; letter-spacing: 0.02em;
}

/* ---------- 案例封面 ---------- */
.case-cover { background: linear-gradient(135deg, #D7F2EA, #B9E8DC); }
.case-cover .c-logo { color: #0E7A62; }

/* ---------- CTA 横幅：品牌青渐变 ---------- */
.cta-band { background: linear-gradient(135deg, #0E7A62, #00A884 60%, #0D9488); color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }
.cta-band::before { background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%); }
.cta-band .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ---------- 登录页品牌区：浅色渐变（55%区） ---------- */
.login-brand {
  background: linear-gradient(155deg, #E8F7F3 0%, #D8F0EA 45%, #E4F0FA 100%);
  color: var(--ink);
}
.login-brand::after {
  background:
    radial-gradient(ellipse 60% 50% at 18% 8%, rgba(0, 184, 148, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 92% 92%, rgba(245, 166, 35, 0.10), transparent 60%);
}
.login-brand .brand-logo span:last-child { color: var(--ink); }
.brand-hero h1 { color: var(--ink); }
.brand-hero .sub { color: var(--brand-strong); }
.brand-hero .desc { color: var(--ink-3); }
.metric-block .metric-num { color: var(--ink); }
.metric-block .metric-num em { color: var(--brand-strong); }
.metric-block .metric-label { color: var(--ink-3); }
.brand-metrics .m-sep { background: rgba(0, 120, 100, 0.15); }
.login-brand .logo-mark { background: linear-gradient(135deg, #00C9A2, #00997A); color: #fff; box-shadow: 0 4px 16px rgba(0, 184, 148, 0.35); }
.login-brand .brand-inner .brand-logo .logo-mark { color: #fff; }

/* ---------- 主按钮：品牌青（原深海蓝） ---------- */
.btn-primary {
  background: linear-gradient(135deg, #00A884, #00997A);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: linear-gradient(135deg, #00B894, #00A884); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 168, 132, 0.35); }

/* ---------- 侧边栏：白底亮色 ---------- */
.app-side {
  background: #fff;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
}
.side-logo span:last-child { color: var(--ink); }
.side-group-label { color: var(--ink-3); }
.side-item { color: var(--ink-2); }
.side-item svg { color: var(--ink-3); }
.side-item:hover { color: var(--brand-strong); background: var(--bg-soft); }
.side-item:hover svg { color: var(--brand-strong); }
.side-item.active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-left-color: var(--brand);
  font-weight: 600;
}
.side-item.active svg { color: var(--brand-strong); }
.side-footer { border-top-color: var(--line); }
.side-footer .f-name { color: var(--ink); }
.side-footer .f-plan { color: var(--ink-3); }
.side-footer .avatar { background: linear-gradient(135deg, #FFB020, #F5A623); color: #3D2A00; }
.side-collapse-btn { background: #fff; border-color: var(--line); color: var(--ink-3); box-shadow: 0 2px 8px rgba(16,30,46,0.08); }
.side-collapse-btn:hover { color: var(--brand-strong); }

/* ---------- 快捷操作卡：亮色渐变（不用深色） ---------- */
.quick-card.qc-1 { background: linear-gradient(135deg, #0EA58E, #00B894); }
.quick-card.qc-2 { background: linear-gradient(135deg, #2E90FA, #1B74E4); }
.quick-card.qc-3 { background: linear-gradient(135deg, #FFB020, #F59E0B); }
.quick-card .q-icon { background: rgba(255, 255, 255, 0.22); }
.quick-card:hover { box-shadow: 0 14px 34px rgba(16, 60, 50, 0.22); }

/* ---------- KPI 图标底色调亮 ---------- */
.kpi-card .k-icon[style*="rgba(0,212,170"] { background: var(--brand-soft) !important; color: var(--brand-strong) !important; }

/* ---------- 移动端遮罩 ---------- */
.app-side.mobile-open { box-shadow: 0 0 60px rgba(30, 60, 90, 0.25); }
.cmd-overlay { background: rgba(23, 40, 60, 0.4); }

/* =========================================================
   真实业务栏目样式（站点/页面/内容/询盘/分析/设置）
   ========================================================= */

/* ---------- 我的网站 ---------- */
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.site-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .15s var(--ease), box-shadow .15s;
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.sc-head { display: flex; align-items: center; gap: 14px; }
.sc-logo { width: 44px; height: 44px; border-radius: 12px; color: #fff; font-size: 18px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.sc-title { flex: 1; }
.sc-title h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.pub-tag { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-tag); }
.pub-tag.live { background: rgba(18,183,106,.1); color: var(--success); }
.pub-tag.draft { background: var(--bg-soft); color: var(--ink-3); }
.sc-desc { margin-top: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.7; min-height: 44px; }
.sc-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.sm { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.sm svg { width: 14px; height: 14px; color: var(--ink-3); flex-shrink: 0; }
.sc-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sc-actions .btn { flex: 1; }
.site-card.new-site { border-style: dashed; align-items: center; text-align: center; justify-content: center; gap: 8px; background: var(--brand-softer); border-color: rgba(0,184,148,.35); }
.site-card.new-site h3 { font-size: 15px; }
.site-card.new-site p { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.sc-plus { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 22px; display: grid; place-items: center; margin-bottom: 4px; }
.quota-card { margin-top: 20px; display: flex; align-items: center; gap: 24px; }
.quota-info { flex: 1; display: flex; align-items: center; gap: 24px; }
.qi-left h4 { font-size: 14px; font-weight: 700; }
.qi-left p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.qi-right { min-width: 180px; }
.quota-num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.quota-num b { font-size: 22px; color: var(--ink); }
.quota-bar { height: 6px; background: var(--bg-soft); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.quota-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #2DD4BF); }

/* ---------- 数据表格（页面管理/部署记录通用） ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 14px 20px; font-size: 12px; color: var(--ink-3); font-weight: 600; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.data-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #FAFCFE; }
.td-title { display: flex; align-items: center; gap: 12px; }
.td-title b { font-size: 14px; font-weight: 600; color: var(--ink); }
.td-title small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; font-weight: 400; }
.td-file { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-soft); color: var(--ink-2); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.td-mono { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.td-dim { color: var(--ink-3); font-size: 12px; }
.ta-r { text-align: right; }
.type-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-tag); }
.type-tag.static { background: rgba(46,144,250,.1); color: #1D6FD6; }
.type-tag.dyn { background: rgba(0,184,148,.1); color: var(--brand-strong); }
.type-tag.blog { background: rgba(139,92,246,.1); color: #7C3AED; }
.mod-count { font-family: var(--font-mono); font-weight: 700; color: var(--ink); font-size: 13px; }
.btn-xs { height: 28px; padding: 0 12px; font-size: 12px; }
.btn-ghost-xs { color: var(--ink-2); font-size: 12px; padding: 6px 8px; border-radius: 8px; }
.btn-ghost-xs:hover { background: var(--bg-soft); color: var(--brand-strong); }

/* ---------- 内容中心 ---------- */
.content-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ctab { padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px; }
.ctab:hover { color: var(--ink-2); }
.ctab.active { color: var(--brand-strong); border-bottom-color: var(--brand); }
.ctab-n { font-family: var(--font-mono); font-size: 11px; background: var(--bg-soft); color: var(--ink-3); border-radius: 20px; padding: 1px 8px; }
.ctab.active .ctab-n { background: var(--brand-soft); color: var(--brand-strong); }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .15s, box-shadow .15s; position: relative; }
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.cc-thumb { height: 84px; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 800; }
.cc-body { padding: 14px 16px 10px; }
.cc-body h4 { font-size: 14px; font-weight: 700; }
.cc-body p { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; min-height: 38px; }
.cc-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cc-time { font-size: 11px; color: var(--ink-3); }
.cc-ops { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.content-card:hover .cc-ops { opacity: 1; }
.icon-btn-sm { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--ink-2); font-size: 13px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(16,30,46,.12); }
.icon-btn-sm:hover { color: var(--brand-strong); }
.article-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.article-row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: #FAFCFE; }
.ar-body { flex: 1; }
.ar-body h4 { font-size: 14px; font-weight: 600; }
.ar-body p { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.ar-date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ---------- 询盘 ---------- */
.lead-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ls-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-card); }
.ls-num { font-family: var(--font-mono); font-size: 24px; font-weight: 700; }
.ls-num.ls-accent { color: var(--brand-strong); }
.ls-label { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.lead-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.lead-list-card { padding: 0; overflow: hidden; }
.lead-list-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lead-filter { display: flex; gap: 4px; flex: 1; }
.fchip { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.fchip:hover { color: var(--ink-2); background: var(--bg-soft); }
.fchip.active { background: var(--brand-soft); color: var(--brand-strong); }
.lead-search { border: 1.5px solid var(--line); border-radius: 10px; height: 34px; padding: 0 12px; font-size: 12px; width: 170px; outline: none; }
.lead-search:focus { border-color: var(--brand); }
.lead-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.lead-item:hover { background: #FAFCFE; }
.lead-item.active { background: var(--brand-softer); box-shadow: inset 3px 0 0 var(--brand); }
.lead-item:last-child { border-bottom: none; }
.li-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #00A884, #0D9488); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.li-avatar2 { background: linear-gradient(135deg, #FFB020, #F59E0B); }
.li-main { flex: 1; min-width: 0; }
.li-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.status-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-tag); }
.status-tag.new { background: rgba(245,166,35,.14); color: #D97706; }
.status-tag.conv { background: rgba(18,183,106,.12); color: var(--success); }
.status-tag.ok { background: rgba(18,183,106,.12); color: var(--success); }
.status-tag.fail { background: rgba(229,72,77,.12); color: var(--danger); }
.li-msg { font-size: 12px; color: var(--ink-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-time { font-size: 11px; color: #B4C0CE; margin-top: 4px; }
.lead-detail h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.ld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ld-row { background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; }
.ld-k { display: block; font-size: 11px; color: var(--ink-3); }
.ld-v { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 3px; word-break: break-all; }
.ld-msg { margin-top: 16px; }
.ld-msg .ld-k { margin-bottom: 8px; }
.ld-msg p { background: var(--brand-softer); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.ld-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- 系统设置 ---------- */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.settings-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 8px; box-shadow: var(--shadow-card); }
.stab { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stab:hover { background: var(--bg-soft); }
.stab.active { background: var(--brand-soft); color: var(--brand-strong); }
.settings-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-card); }
.settings-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
.form-input { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: var(--radius-input); padding: 0 14px; font-size: 13px; color: var(--ink); outline: none; background: #FBFCFE; transition: border-color .15s, box-shadow .15s; }
textarea.form-input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,184,148,.12); }
select.form-input { appearance: auto; }
.form-actions { margin-top: 24px; }
.field-hint { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.switch-row { display: flex; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); max-width: 720px; }
.switch-row:first-of-type { padding-top: 0; }
.switch-row:last-of-type { border-bottom: none; }
.switch-row b { font-size: 14px; font-weight: 600; }
.switch-row p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; margin-left: auto; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #CBD5E1; border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch i::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::before { transform: translateX(18px); }
.ssl-tag { font-family: var(--font-mono); font-size: 11px; color: var(--success); background: rgba(18,183,106,.1); padding: 2px 8px; border-radius: var(--radius-tag); }
.ssl-tag.dim { color: var(--ink-3); background: var(--bg-soft); }

/* ---------- 编辑器占位可视化 ---------- */
.editor-placeholder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.ep-visual { display: grid; grid-template-columns: 180px 1fr 180px; min-height: 420px; }
.ep-modlib { border-right: 1px solid var(--line); padding: 14px; background: var(--bg-soft); }
.ep-modlib-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); margin-bottom: 12px; }
.ep-mod { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--ink-2); cursor: grab; }
.ep-mod:hover { background: #fff; color: var(--brand-strong); box-shadow: 0 2px 8px rgba(16,30,46,.08); }
.ep-ico { color: var(--ink-3); font-size: 14px; }
.ep-canvas { padding: 16px; background: repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(0,120,100,.04) 24px); }
.ep-device { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px 10px 0 0; padding: 8px 12px; }
.ep-dot { width: 8px; height: 8px; border-radius: 50%; }
.ep-url { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); }
.ep-row { border: 1.5px dashed #CBE5DE; background: #F6FCFA; border-radius: 8px; margin-top: 8px; padding: 14px; font-size: 11px; color: var(--brand-strong); text-align: center; }
.ep-row.ep-hero { padding: 44px 14px; background: linear-gradient(135deg, #F0FBF8, #E4F6F0); border-style: solid; border-color: #B8E6DB; }
.ep-row2 { padding: 20px 14px; }
.ep-form { background: var(--brand-softer); }
.ep-props { border-left: 1px solid var(--line); padding: 14px; background: var(--bg-soft); }
.ep-prop { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 12px; color: var(--ink-2); }
.ep-bar { display: inline-block; width: 70px; height: 4px; background: #E2E8F0; border-radius: 2px; overflow: hidden; }
.ep-bar i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.ep-bar-color { height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #2DD4BF, var(--amber), #8B5CF6); }
.ep-f { font-family: serif; font-size: 15px; }
.ep-tag2 { font-size: 10px; background: #fff; border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }
.editor-cta { border-top: 1px solid var(--line); padding: 20px; text-align: center; background: #FBFCFE; }
.editor-cta p { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }

/* 侧栏消息数角标 */
.side-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; border-radius: 20px; padding: 1px 7px; min-width: 18px; text-align: center; }
.app-side.collapsed .side-badge { display: none; }

/* 响应式补充 */
@media (max-width: 1100px) {
  .lead-layout { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .ep-visual { grid-template-columns: 140px 1fr; }
  .ep-props { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .quota-info { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ep-modlib { display: none; }
  .ep-visual { grid-template-columns: 1fr; }
  .lead-list-head { flex-direction: column; align-items: stretch; }
  .lead-search { width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
}

/* 询盘空态 */
.lead-empty { padding: 40px 20px; text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.lead-empty small { color: #B4C0CE; font-size: 12px; }

/* 汉堡菜单按钮：默认隐藏，≤720px 显示 */
.mobile-menu-btn { display: none; }
@media (max-width: 720px) {
  .mobile-menu-btn { display: grid; }
  .app-main { min-width: 0; }
}

/* ============ iOS 安全区 / 触屏细节 ============ */
@supports (padding: env(safe-area-inset-bottom)) {
  .app-content { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .toast-wrap { top: calc(20px + env(safe-area-inset-top)); }
  .cmd-overlay { padding-top: env(safe-area-inset-top); }
  .app-side { padding-bottom: env(safe-area-inset-bottom); }
  .login-panel { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}
/* 触屏元素最小点击区（<44px 的按钮补内边距） */
@media (hover: none) and (pointer: coarse) {
  .icon-btn, .side-collapse-btn, .task-check, .social-btn { min-width: 44px; min-height: 44px; }
  .fchip, .ctab { min-height: 40px; }
}
/* 长单词/URL 强制断行防溢出（手机尤其） */
.sm, .td-mono, .ld-v, .li-msg { overflow-wrap: anywhere; word-break: break-word; }
img, svg, canvas, video { max-width: 100%; }
