/* ============================================
   星算AI 统一平台 - 温润专业风
   柔和不寡淡 · 精致不花哨
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #f6f5f3;
  --bg-card: #ffffff;
  --bg-hover: #f1efeb;
  --bg-input: #f9f8f6;
  --border: #e8e4dd;
  --border-hover: #c5bfb5;

  --text-primary: #1a1a1a;
  --text-secondary: #5c5652;
  --text-muted: #9c9690;

  --accent: #3b49df;
  --accent-light: #5562e8;
  --accent-bg: #eef0ff;
  --accent-border: #c4c9f7;

  --success: #0e9f6e;
  --success-bg: #e6f6f0;
  --warning: #b45309;
  --warning-bg: #fef5e7;
  --danger: #e02424;
  --danger-bg: #fde8e8;
  --purple: #7c3aed;
  --purple-bg: #f3f0ff;

  --color-zhentan: #3b49df;
  --color-zhentan-bg: #eef0ff;
  --color-wujie: #0e9f6e;
  --color-wujie-bg: #e6f6f0;
  --color-miaobi: #c27803;
  --color-miaobi-bg: #fef5e7;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 4px rgba(0,0,0,.03), 0 1px 1px rgba(0,0,0,.02);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.03);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.08);
  --shadow-btn: 0 2px 6px rgba(59,73,223,.2);

  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-light); }

/* ========== 全局装饰底纹 ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59,73,223,.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 80%, rgba(14,159,110,.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(194,120,3,.03) 0%, transparent 60%);
  pointer-events: none;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  height: 62px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
  cursor: pointer;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--accent-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.user-avatar {
  width: 35px; height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(59,73,223,.15);
  transition: all .2s;
  flex-shrink: 0;
}
.user-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(59,73,223,.25);
}

/* 用户菜单下拉 */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background .2s;
}
.user-menu:hover {
  background: var(--surface);
}
.user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.05);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
  z-index: 100;
  overflow: hidden;
}
.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .15s;
}
.dropdown-item:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* ========== 登录页 ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.auth-logo-topright {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
}
.auth-logo-topright .auth-logo-img {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 70px;
  background: linear-gradient(160deg, #1e1b4b 0%, #0f172a 30%, #3730a3 60%, #4338ca 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(167,139,250,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(96,165,250,.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(52,211,153,.08) 0%, transparent 50%);
}

.auth-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.auth-left-content .logo-icon {
  width: auto; height: auto;
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 32px;
}

.auth-left-content h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.auth-left-content h1 span {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left-content p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
}

.auth-left-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-left-features .feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255,255,255,.85);
}

.auth-left-features .feat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 10px rgba(134,239,172,.4);
  flex-shrink: 0;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.auth-card .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .18s;
  font-family: inherit;
}
.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all .18s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,73,223,.1);
  background: #fff;
}

.form-input::placeholder { color: var(--text-muted); }

.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all .18s;
  resize: vertical;
  min-height: 80px;
}
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,73,223,.1);
  background: #fff;
}

.form-select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all .18s;
  appearance: auto;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,73,223,.1);
  background: #fff;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  font-size: 13px;
}

.checkbox-wrap {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}

.checkbox-wrap input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
}

.forgot-link { color: var(--accent); font-size: 13px; font-weight: 500; }

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  box-shadow: var(--shadow-btn);
}
.btn-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,73,223,.3);
}

.btn-sm {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  line-height: 1.4;
}
.btn-sm.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-sm.btn-primary:hover {
  background: var(--accent-light);
}

.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

.input-with-btn { display: flex; gap: 10px; }
.input-with-btn .form-input { flex: 1; }
.btn-send-code {
  padding: 10px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .15s; font-family: inherit;
}
.btn-send-code:hover:not(:disabled) { background: var(--accent-light); color: #fff; border-color: var(--accent-light); }
.btn-send-code:disabled { color: #9ca3af; cursor: not-allowed; background: #f3f4f6; border-color: #e5e7eb; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12.5px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.auth-footer-big {
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 2.2;
}

/* ========== 应用布局 ========== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ========== 侧边栏 ========== */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: linear-gradient(165deg, #1e1b4b 0%, #0f172a 30%, #3730a3 60%, #4338ca 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(167,139,250,.12) 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(96,165,250,.08) 0%, transparent 50%);
  pointer-events: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px 12px;
  color: #fff;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sb-logo-img { height: 150px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); opacity: .92; }

.sb-nav-group {
  padding: 16px 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .18s;
  position: relative;
}
.sb-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.sb-nav-item.active {
  color: #fff;
  background: rgba(255,255,255,.14);
  font-weight: 600;
}
.sb-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #a5b4fc;
}

.sb-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  font-weight: 600;
  letter-spacing: .04em;
  margin-left: auto;
}
.sb-badge-green { background: rgba(52,211,153,.2); color: #86efac; }
.sb-badge-amber { background: rgba(251,191,36,.2); color: #fcd34d; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: auto;
}
.sb-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.sb-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sb-user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-user-logout {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .15s;
}
.sb-user-logout:hover { color: #fca5a5; }

/* ========== 主内容区 ========== */
.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 32px 36px 56px;
  background: #f8f9fc;
  min-height: 100vh;
}

/* ========== 顶部统计栏 ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card-mini {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  transition: all .2s;
}
.stat-card-mini:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 12px rgba(59,73,223,.06);
}

.stat-m-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 6px;
}
.stat-m-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #111827;
  margin-bottom: 4px;
}
.stat-m-trend {
  font-size: 11.5px;
  color: #9ca3af;
}
.stat-m-trend.up { color: #059669; font-weight: 600; }

/* ========== 工作台内容 ========== */
.dash-greeting { margin-bottom: 18px; }
.dash-greeting h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #111827;
}
.dash-greeting h1 span {
  background: linear-gradient(135deg, #3b49df, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-greeting p {
  font-size: 13.5px;
  color: #6b7280;
  margin-top: 4px;
}

/* 快捷操作 */
.quick-row {
  display: flex;
  gap: 9px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.quick-pill:hover {
  color: #3b49df;
  border-color: #c7d2fe;
  background: #eef0ff;
}

/* 两栏布局 */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.dash-left, .dash-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dash-left > section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 区块标题 */
.dash-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-section-title svg { color: #3b49df; }
.dash-section-more {
  font-size: 12.5px;
  color: #3b49df;
  cursor: pointer;
  font-weight: 500;
}
.dash-section-more:hover { text-decoration: underline; }

/* 白色卡片 */
.white-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.white-card:hover {
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.card-head h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head h3 svg { color: #6b7280; }
.card-body-sm { padding: 16px 20px; }

/* 标签 */
.pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: .02em;
}
.pill-blue { background: #eef0ff; color: #3b49df; }
.pill-green { background: #e6f6f0; color: #0e9f6e; }
.pill-amber { background: #fef5e7; color: #b45309; }

/* 产品卡片 */
.product-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.prod-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all .22s;
  position: relative;
  overflow: hidden;
}
.prod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transition: height .22s;
}
.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-color: transparent;
}
.prod-card:hover::before { height: 5px; }

.prod-zhen::before { background: linear-gradient(90deg, #3b49df, #6366f1); }
.prod-wujie::before { background: linear-gradient(90deg, #0e9f6e, #10b981); }
.prod-miao::before { background: linear-gradient(90deg, #c27803, #f59e0b); }

.prod-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.prod-zhen .prod-icon { background: #eef0ff; color: #3b49df; }
.prod-wujie .prod-icon { background: #e6f6f0; color: #0e9f6e; }
.prod-miao .prod-icon { background: #fef5e7; color: #c27803; }

.prod-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0px;
  letter-spacing: -.01em;
}
.prod-body p {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 3px;
}

.prod-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: .01em;
}
.tag-zhen { background: #eef0ff; color: #3b49df; }
.tag-wujie { background: #e6f6f0; color: #0e9f6e; }
.tag-miao { background: #fef5e7; color: #b45309; }

.prod-stat {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.prod-num {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.02em;
}
.prod-unit {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 500;
}

/* 产品卡片底部按钮 */
.prod-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 0;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
}
.prod-action-zhen {
  background: var(--color-zhentan-bg);
  color: var(--color-zhentan);
}
.prod-action-zhen:hover {
  background: var(--color-zhentan);
  color: #fff;
}
.prod-action-wujie {
  background: var(--color-wujie-bg);
  color: var(--color-wujie);
}
.prod-action-wujie:hover {
  background: var(--color-wujie);
  color: #fff;
}
.prod-action-miao {
  background: var(--color-miaobi-bg);
  color: var(--color-miaobi);
}
.prod-action-miao:hover {
  background: var(--color-miaobi);
  color: #fff;
}

/* 资讯 */
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background .12s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #fafbff; }

.news-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3b49df;
  margin-top: 7px;
  flex-shrink: 0;
}

.news-body { flex: 1; min-width: 0; }
.news-title {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.5;
  margin-bottom: 4px;
}
.news-item:hover .news-title { color: #3b49df; }
.news-meta {
  font-size: 11.5px;
  color: #9ca3af;
  display: flex;
  gap: 10px;
}
.news-source { color: #3b49df; font-weight: 600; }

/* 排行榜 */
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: background .12s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: #fafbff; }

.rank-pos {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.rank-1 { background: #fef3c7; color: #92400e; }
.rank-2 { background: #e5e7eb; color: #374151; }
.rank-3 { background: #fed7aa; color: #9a3412; }
.rank-n { background: #f3f4f6; color: #9ca3af; }

.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 3px;
}
.rank-bar {
  height: 5px;
  border-radius: 3px;
  background: #f3f4f6;
  overflow: hidden;
}
.rank-fill { height: 100%; border-radius: 3px; transition: width .8s ease; }
.fill-green { background: linear-gradient(90deg, #0e9f6e, #34d399); }
.fill-blue { background: linear-gradient(90deg, #3b49df, #818cf8); }
.fill-amber { background: linear-gradient(90deg, #b45309, #f59e0b); }
.fill-red { background: linear-gradient(90deg, #e02424, #f87171); }

.rank-score {
  font-size: 14.5px;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 44px;
  text-align: right;
}
.score-green { color: #0e9f6e; }
.score-blue { color: #3b49df; }
.score-amber { color: #b45309; }
.score-red { color: #e02424; }

.rank-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 11.5px;
  color: #9ca3af;
}
.rank-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-green { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.status-yellow { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.status-red { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.2); }
.rank-metric {
  display: flex;
  align-items: center;
  gap: 2px;
}
.rank-metric svg { width: 12px; height: 12px; color: #9ca3af; }
.rank-metric-val { color: #4b5563; font-weight: 500; }
.score-green { color: #0e9f6e; }
.score-amber { color: #b45309; }
.score-red { color: #e02424; }

/* 账户概览 */
.acc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acc-cell {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 13px 14px;
  transition: all .15s;
}
.acc-cell:hover {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 6px rgba(0,0,0,.03);
}
.acc-label {
  display: block;
  font-size: 11.5px;
  color: #9ca3af;
  margin-bottom: 4px;
  font-weight: 500;
}
.acc-val {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

/* 提示词 */
.prompt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background .12s;
}
.prompt-item:last-child { border-bottom: none; }
.prompt-item:hover { background: #fafbff; }

.prompt-rank {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.prompt-info { flex: 1; min-width: 0; }
.prompt-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0px;
}
.prompt-meta { font-size: 11px; color: #9ca3af; }
.prompt-price {
  font-size: 14px;
  font-weight: 700;
  color: #3b49df;
  flex-shrink: 0;
}

/* 公告 */
.announce-item {
  padding: 14px 20px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.announce-item:hover { background: #fafbff; }
.announce-blue { border-left-color: #3b49df; }
.announce-amber { border-left-color: #b45309; }
.announce-green { border-left-color: #0e9f6e; }
.announce-item .ann-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.announce-item .ann-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
.announce-item .ann-time {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
  margin-top: 2px;
}
.ann-divider { border-top: 1px solid #f3f4f6; }
.ann-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
}
.ann-row:last-child { border-bottom: none; }
.ann-row:hover { background: #fafbff; }
.ann-row-body {
  flex: 1;
  min-width: 0;
}
.ann-row-body strong {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-left: 6px;
  line-height: 1.4;
}
.ann-row-body p {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0 0;
  line-height: 1.5;
}
.ann-row-body small {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
  display: block;
}
.ann-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.ann-draft { opacity: 0.55; background: #f9fafb; }
.ann-level-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ann-info { background: #dbeafe; color: #1d4ed8; }
.ann-warning { background: #fef3c7; color: #b45309; }
.ann-success { background: #d1fae5; color: #0e9f6e; }

/* 产品动态 */
.update-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.log-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.log-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.log-card:hover {
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  transform: translateY(-2px);
}
.log-card:nth-child(1)::before { background: #3b49df; }
.log-card:nth-child(2)::before { background: #0e9f6e; }
.log-card:nth-child(3)::before { background: #c27803; }

.log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.log-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.log-product { font-size: 13.5px; font-weight: 700; color: #111827; }
.log-ver {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
  font-weight: 500;
}
.log-desc { font-size: 12.5px; color: #6b7280; line-height: 1.5; }
.log-time { font-size: 11px; color: #9ca3af; margin-top: 6px; }

/* ========== 后台管理 ========== */
.admin-topbar { margin-bottom: 24px; }
.admin-topbar h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #111827;
  margin-bottom: 4px;
}
.admin-topbar p { font-size: 14px; color: #6b7280; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.astat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all .2s;
}
.astat-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 12px rgba(59,73,223,.06);
}

.astat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.astat-body { flex: 1; display: flex; flex-direction: column; }
.astat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #111827;
}
.astat-label {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
  font-weight: 500;
}

.astat-trend {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.astat-trend.up { background: #e6f6f0; color: #059669; }

/* 表格 */
.tbl-search {
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #1f2937;
  font-size: 12.5px;
  font-family: inherit;
  width: 220px;
  outline: none;
  transition: all .15s;
}
.tbl-search:focus {
  border-color: #3b49df;
  box-shadow: 0 0 0 3px rgba(59,73,223,.08);
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #fafbfc;
  border-bottom: 1px solid #e5e7eb;
}
.data-table td {
  padding: 13px 18px;
  font-size: 13px;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
}
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover { background: #fafbff; }
.data-table tr:last-child td { border-bottom: none; }
.td-strong { color: #111827 !important; font-weight: 600; }

.tbl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #f3f4f6;
  font-size: 12.5px;
  color: #9ca3af;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.status-on { background: #e6f6f0; color: #059669; }
.status-off { background: #f3f4f6; color: #9ca3af; }

.role-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.role-admin { background: #eef0ff; color: #3b49df; }
.role-user { background: #f3f0ff; color: #7c3aed; }

.action-btn {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  transition: all .12s;
  font-family: inherit;
  margin-right: 4px;
}
.action-btn:hover { border-color: #3b49df; color: #3b49df; background: #eef0ff; }
.action-btn.danger:hover { border-color: #e02424; color: #e02424; background: #fde8e8; }

/* 产品数据行 */
.product-data-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.pd-label { font-size: 12.5px; color: #6b7280; }
.pd-val { font-size: 17px; font-weight: 700; color: #111827; }

.pd-bar {
  height: 4px;
  background: #f3f4f6;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.pd-fill { height: 100%; border-radius: 2px; transition: width .8s ease; }
.pd-sub { font-size: 11px; color: #9ca3af; margin-top: 6px; }

/* 分页 */
.page-btns { display: flex; gap: 5px; }
.page-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.page-btn:hover { border-color: #3b49df; color: #3b49df; }
.page-btn.active { background: #3b49df; color: #fff; border-color: #3b49df; }

/* Toast */
.toast-container {
  position: fixed;
  top: 20px; right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  animation: toast-in .3s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 340px;
}
.toast.success { border-color: #a7f3d0; background: #f0fdf4; color: #059669; }
.toast.error { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.toast.info { border-color: #c7d2fe; background: #eef0ff; color: #3b49df; }

/* ===== 移动端导航开关（纯CSS抽屉） ===== */
.nav-toggle-input { display: none; }
.nav-toggle-btn {
  display: none;
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor: pointer;
  color: var(--text-primary);
  transition: all .15s;
}
.nav-toggle-btn:active { transform: scale(.92); }
.nav-toggle-btn svg { pointer-events: none; }
.nav-overlay { display: none; }

/* 移动端顶栏标题 */
.mobile-topbar-title {
  display: none;
  position: fixed;
  top: 10px; left: 60px; right: 10px;
  height: 42px;
  z-index: 99;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4px;
  pointer-events: none;
}
.mobile-logo-img { height: 32px; width: auto; object-fit: contain; }

/* ===== 响应式 ===== */

/* Tablet (≤1200px) */
@media (max-width: 1200px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-right { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats-bar, .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .product-data-row { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { flex: 1; }
  .hero-left { padding-left: 28px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (≤768px) — 抽屉式侧边栏 + 全局适配 */
@media (max-width: 768px) {
  /* 汉堡按钮显示 */
  .nav-toggle-btn { display: flex; }
  .mobile-topbar-title { display: flex; }

  /* 侧边栏变抽屉 */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 30px rgba(0,0,0,.15);
  }
  .nav-toggle-input:checked ~ .app-layout .sidebar {
    transform: translateX(0);
  }

  /* 遮罩层 */
  .nav-toggle-input:checked ~ .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0,0,0,.45);
    cursor: pointer;
  }

  /* 汉堡按钮变 X */
  .nav-toggle-input:checked ~ .nav-toggle-btn { z-index: 100; }

  /* 主内容区 — 去掉左侧边距，顶部留汉堡空间 */
  .main-content {
    margin-left: 0;
    padding: 56px 14px 32px;
  }

  /* 统计栏 → 2列 */
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card-mini { padding: 14px 16px; }
  .stat-m-value { font-size: 20px; }
  .stat-m-label { font-size: 11px; }

  /* 产品卡片 / 更新日志 / 产品数据 → 单列 */
  .product-row { grid-template-columns: 1fr; }
  .update-row { grid-template-columns: 1fr; }
  .product-data-row { grid-template-columns: 1fr; }

  /* 管理后台统计 → 2列 */
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .astat-card { padding: 16px; gap: 10px; }
  .astat-icon { width: 36px; height: 36px; }
  .astat-value { font-size: 20px; }

  /* 右栏 → 单列 */
  .dash-right { grid-template-columns: 1fr; }

  /* 快捷操作换行 */
  .quick-row { gap: 7px; }
  .quick-pill { padding: 7px 14px; font-size: 12.5px; }

  /* 标题缩小 */
  .dash-greeting h1 { font-size: 19px; }
  .admin-topbar h1 { font-size: 20px; }
  .billing-topbar h1, .profile-topbar h1 { font-size: 19px; }
  .dash-section-title { font-size: 14px; }

  /* 表格横向滚动 */
  .data-table-wrap, .white-card:has(.data-table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 640px; }

  /* 搜索框 */
  .tbl-search { width: 100%; }
  .card-head { flex-wrap: wrap; gap: 8px; }

  /* billing 专属 */
  .billing-grid { grid-template-columns: 1fr; }
  .sub-plans { flex-direction: column; }
  .billing-page, .profile-page { max-width: 100%; }
  .recharge-box { width: 92vw; max-width: 360px; padding: 20px; }

  /* profile 专属 */
  .quick-links { grid-template-columns: 1fr; }
  .pwd-form { max-width: 100%; }

  /* 登录页 */
  .auth-right { padding: 30px 20px; }
  .auth-card { padding: 28px 22px; }
  .auth-card h2 { font-size: 22px; }
  .auth-logo-topright { top: 14px; right: 14px; }
  .auth-logo-topright .auth-logo-img { height: 70px; }

  /* Hero / Landing */
  .hero-inner { padding: 12px 14px 36px; }
  .hero-main { flex-direction: column; gap: 24px; }
  .hero-left { text-align: center; flex: none; width: auto; padding-left: 0; }
  .hero-title { font-size: 30px; text-align: center; margin-bottom: 18px; }
  .hero-desc { font-size: 15px; text-align: center; margin-bottom: 24px; }
  .hero-actions { justify-content: center; }
  .hero-right { width: 100%; height: 260px; }
  .hero-btn { padding: 11px 24px; font-size: 14px; }

  /* Landing 产品卡片 */
  .ph-inner { grid-template-columns: 1fr; gap: 10px; }
  .prod-card-h { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
  .pch-list { flex-direction: column; gap: 8px; align-items: flex-start; padding-left: 0; }
  .pch-action { padding-left: 0; }

  /* About */
  .about { padding: 50px 16px; }
  .about-heading { font-size: 26px; margin-bottom: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }

  /* CTA */
  .cta-bottom { padding: 50px 16px; }
  .cta-bottom h2 { font-size: 24px; }
  .cta-bottom p { font-size: 15px; }

  /* Footer */
  .l-footer { padding: 20px 14px 12px; }
  .l-footer-inner { flex-direction: column; align-items: center; gap: 10px; }
  .l-footer-links { gap: 28px; flex-wrap: wrap; justify-content: center; }
  .l-footer-bottom { text-align: center; }

  /* Modal */
  .modal-box { padding: 24px 18px 20px; max-width: 95vw; }
  .modal-box h3 { font-size: 19px; }

  /* Toast 全宽 */
  .toast-container { top: 10px; right: 10px; left: 10px; }
  .toast { max-width: none; font-size: 12.5px; padding: 10px 16px; }

  /* 表格底部 */
  .tbl-footer { flex-wrap: wrap; gap: 8px; }

  /* 资讯/排行榜紧凑 */
  .news-item, .rank-item { padding: 12px 16px; }
  .prompt-item { padding: 10px 16px; }
}

/* 超小屏 (≤480px) */
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .acc-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-btn { width: 100%; justify-content: center; }
  .l-nav-links > a:not(.l-btn-outline):not(.l-btn-primary) { display: none; }
  .auth-card { padding: 24px 18px; }
  .l-footer-links { gap: 20px; }
  .quick-row { flex-direction: column; }
  .quick-pill { width: 100%; justify-content: center; }
}

/* 动画 */
.fade-in { animation: fadeIn .5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ============================================
   品牌展示首页 Landing Page
   ============================================ */

.landing-body { background: #fff; color: var(--text-primary); }

.l-nav {
  position: relative;
  z-index: 100;
  background: transparent;
  border-bottom: none;
}
.l-nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 12px 28px;
  height: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.l-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.l-logo .logo-img { height: 120px; width: auto; }
.l-nav-links { display: flex; align-items: center; gap: 8px; }
.l-nav-links > a { text-decoration: none; }
.l-nav-links > a:not(.l-btn-outline):not(.l-btn-primary) {
  font-size: 14px; color: var(--text-secondary); padding: 8px 16px;
  border-radius: 8px; transition: all .15s;
}
.l-nav-links > a:not(.l-btn-outline):not(.l-btn-primary):hover {
  color: var(--text-primary); background: #f5f5f5;
}

.l-btn-outline {
  font-size: 14px; font-weight: 500;
  padding: 8px 22px; border-radius: 8px;
  border: 1.5px solid #d4d4d8;
  color: var(--text-primary);
  background: #fff; cursor: pointer;
  transition: all .15s;
}
.l-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.l-btn-primary {
  font-size: 14px; font-weight: 500;
  padding: 8px 22px; border-radius: 8px;
  border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff; cursor: pointer;
  transition: all .15s;
}
.l-btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: #fff; }

/* Hero */
.hero {
  padding: 0;
  background:
    radial-gradient(ellipse 800px 400px at 25% -5%, rgba(59,73,223,.05) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}
.hero-inner {
  margin: 0 auto;
  padding: 20px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  min-height: 80px;
  max-height: 80px;
}
.hero-main {
  display: flex;
  align-items: center;
  gap: 36px;
  width: 100%;
  padding: 0;
}
.hero-left { flex: 0 0 48%; min-width: 0; padding-left: 140px; }
.hero-right {
  flex: 1; height: 480px;
  position: relative;
  min-width: 0;
}
.hero-3d {
  width: 100%; height: 100%;
  animation: float3d 6s ease-in-out infinite;
}
@keyframes float3d {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-title {
  font-size: 56px; font-weight: 800;
  line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 28px;
  text-align: left;
}
.hero-desc {
  font-size: 18px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 36px;
  text-align: left;
}
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; }
.hero-btn {
  display: inline-flex; align-items: center;
  padding: 13px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all .18s;
  letter-spacing: -.01em;
}
.hero-btn-primary {
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(59,73,223,.25);
}
.hero-btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,73,223,.35);
  color: #fff;
}
.hero-btn-ghost {
  background: #fff; color: var(--text-primary);
  border: 2px solid #e5e7eb;
}
.hero-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Products Section - 横向长条卡片（一行排列） */
.prods-horiz { padding: 50px 16px; background: linear-gradient(180deg, #f8f9fc 0%, #fafbfc 100%); }
.ph-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.prod-card-h {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 28px 28px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  min-height: 110px;
}
.pch-bar {
  width: 4px; height: 100%;
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px 0 0 4px;
}
.prod-zhen .pch-bar { background: linear-gradient(180deg, #3b49df, #6366f1); }
.prod-wujie .pch-bar { background: linear-gradient(180deg, #10b981, #34d399); }
.prod-miao .pch-bar { background: linear-gradient(180deg, #f59e0b, #fbbf24); }

.prod-card-h:hover {
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  transform: translateY(-3px);
}

/* 左侧：图标 + 标题 */
.pch-left {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  z-index: 1;
  padding-left: 6px;
}

.pch-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.prod-zhen .pch-icon-wrap { color: #3b49df; background: #eef2ff; }
.prod-wujie .pch-icon-wrap { color: #10b981; background: #ecfdf5; }
.prod-miao .pch-icon-wrap { color: #f59e0b; background: #fffbeb; }

.pch-info { min-width: 0; }
.pch-info h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 0px; color: var(--text-primary); }
.pch-info p { font-size: 12.5px; color: var(--text-muted); }

/* 中间：特性列表（横向平铺） */
.pch-list {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  list-style: none; margin: 0; padding: 0;
  z-index: 1;
  padding-left: 16px;
  flex: 1;
  align-items: center;
}
.pch-list li {
  font-size: 13px; color: var(--text-secondary);
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}
.pch-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  opacity: 0.35;
}
.prod-zhen .pch-list li::before { background: #3b49df; }
.prod-wujie .pch-list li::before { background: #10b981; }
.prod-miao .pch-list li::before { background: #f59e0b; }

/* 右侧：标签 + 箭头 */
.pch-action {
  display: flex; align-items: center; gap: 8px;
  z-index: 1;
  flex-shrink: 0;
  padding-left: 12px;
}
.prod-card-h:hover .pch-action { color: var(--accent); }
.prod-card-h:hover .pch-action svg { transform: translateX(3px); }
.pch-action svg { transition: transform .15s; flex-shrink: 0; }

.pch-tag {
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.prod-zhen .pch-tag { background: #eef2ff; color: #3b49df; }
.pch-tag-green { background: #ecfdf5; color: #059669; }
.pch-tag-amber { background: #fffbeb; color: #d97706; }

/* About / Why Us */
.about { padding: 80px 16px; }
.about-inner { margin: 0 auto; }
.about-heading {
  text-align: center; font-size: 34px; font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 52px;
}
.about-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.about-item { text-align: center; }
.about-num {
  font-size: 14px; font-weight: 700; color: var(--accent);
  background: var(--accent-bg);
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  margin-bottom: 16px;
}
.about-item h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.about-item p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.65;
}

/* Bottom CTA */
.cta-bottom {
  padding: 16px 16px; text-align: center;
  background:
    linear-gradient(180deg, #fafbfc 0%, #f0f1ff 100%),
    radial-gradient(ellipse 800px 300px at 50% 50%, rgba(59,73,223,.05) 0%, transparent 70%);
}
.cta-bottom-inner { max-width: 600px; margin: 0 auto; }
.cta-bottom h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.cta-bottom p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }

/* Footer */
.l-footer {
  background: linear-gradient(180deg, #1e2128 0%, #16181f 100%);
  color: #9ca3af;
  padding: 14px 24px 10px;
}
.l-footer-inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.l-footer-links { display: flex; gap: 36px; }
.l-footer-col { display: flex; flex-direction: column; gap: 5px; }
.l-footer-col strong { font-size: 14px; color: #e4e7ec; margin-bottom: 0px; font-weight: 600; }
.l-footer-col a { font-size: 13px; color: #9ca3af; text-decoration: none; transition: color .15s; }
.l-footer-col a:hover { color: var(--accent-light); }
.l-footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
  font-size: 12px;
  color: #6b7080;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pf-brand {
  color: #8b92a6;
  font-weight: 500;
}

/* Landing responsive — 已合并到上方统一 @media 区块 */

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: #fff; border-radius: 16px;
  max-width: 520px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  position: relative;
  animation: modalIn .25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 26px; color: #9ca3af; cursor: pointer;
  width: 36px; height: 36px; line-height: 36px; text-align: center;
  border-radius: 8px; transition: all .15s;
}
.modal-close:hover { background: #f3f4f6; color: #374151; }
.modal-box h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 20px; color: #111827;
}
.modal-box p {
  font-size: 14.5px; color: #4b5563; line-height: 1.7; margin-bottom: 14px;
}
.modal-box strong { color: #111827; }
.modal-box code {
  background: #f3f4f6; padding: 2px 6px; border-radius: 4px;
  font-size: 13px; color: #374151;
}


/* ========== 产品内嵌视图 ========== */
#product-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
  overflow: hidden;
}

.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  min-height: 52px;
  flex-shrink: 0;
}

.product-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.product-topbar-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e1b4b;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-tabs {
  display: flex;
  gap: 2px;
}

.product-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  transition: all .15s;
  white-space: nowrap;
}

.product-tab:hover {
  color: #374151;
  background: #f3f4f6;
}

.product-tab.active {
  color: #3b49df;
  background: #eef0ff;
  font-weight: 600;
}

.product-ext-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #9ca3af;
  transition: all .15s;
  flex-shrink: 0;
}

.product-ext-link:hover {
  color: #3b49df;
  background: #f3f4f6;
}

/* ====== 无界深色导航栏（简洁文字风格，与真探/妙笔统一） ====== */
.product-topbar.wujie-nav {
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
  min-height: 52px;
}
.product-topbar.wujie-nav .product-topbar-name {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.product-topbar.wujie-nav .wj-nav {
  display: flex; align-items: center; gap: 2px;
}
/* 导航项 */
.wj-nav {
  display: flex; align-items: center; gap: 2px;
}
.wj-nav-link {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  font-size: 13px; font-weight: 500; color: #94a3b8;
  text-decoration: none; border-radius: 8px;
  transition: all .15s; white-space: nowrap;
}
.wj-nav-link:hover {
  color: #e2e8f0; background: rgba(255,255,255,0.05);
}
.wj-nav-link.active {
  color: #fff; background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  font-weight: 600;
}
/* 右侧用户区 */
.wj-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto;
}
.wj-user {
  font-size: 13px; color: #cbd5e1; font-weight: 500;
}
.wj-logout {
  padding: 5px 12px; font-size: 12px; color: #64748b;
  background: none; border: 1px solid rgba(148,163,184,0.15); border-radius: 8px;
  cursor: pointer; transition: all .15s;
}
.wj-logout:hover {
  color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08);
}

#productIframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #f8f9fc;
  transition: background 0.15s ease;
}
/* 无界深色背景避免切 tab 白屏闪 */
body.wujie-active #productIframe {
  background: #0f172a;
}

/* 产品顶部导航 mobile */
@media (max-width: 768px) {
  .product-topbar {
    padding: 8px 12px;
    min-height: 44px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .product-topbar-left {
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
  }
  .product-topbar-name {
    font-size: 13px;
  }
  .product-tab {
    font-size: 11px;
    padding: 4px 10px;
  }
  .product-ext-link {
    width: 28px;
    height: 28px;
  }
  #productIframe {
    min-height: calc(100vh - 120px);
  }
}

/* ====== Portal 全局统一 Footer ====== */
.portal-footer {
  background: linear-gradient(180deg, #1a1d24 0%, #12141a 100%);
  color: #9ca3af;
  padding: 6px 24px 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.pf-inner {
  margin: 0 auto;
}
.pf-links {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
}
.pf-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pf-col strong {
  font-size: 15px;
  color: #c4c9d4;
  font-weight: 600;
  margin-bottom: 0px;
}
.pf-col a {
  font-size: 14px;
  color: #7a8294;
  text-decoration: none;
  transition: color .15s;
}
.pf-col a:hover { color: var(--accent-light); }
.pf-bottom {
  text-align: center;
  padding-top: 4px;
  margin-top: 3px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: #5a6072;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pf-brand {
  color: #8b92a6;
  font-weight: 500;
}
@media (max-width: 768px) {
  .pf-links { gap: 32px; }
  .pf-bottom { flex-direction: column; gap: 4px; }
}
