:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --surface-alt: #fafbfd;
  --text: #1a1a2e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --blue: #6C5CE7;
  --blue-hover: #5a4bd1;
  --blue-soft: #f0edff;
  --primary: #6C5CE7;
  --primary-hover: #5a4bd1;
  --primary-soft: #f0edff;
  --primary-gradient: linear-gradient(135deg, #6C5CE7 0%, #8B7CF7 100%);
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(108,92,231,0.08);
  --shadow-lg: 0 12px 40px rgba(108,92,231,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(108,92,231,0.06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --th-bg: #f8f9fc;
  --cell-even-bg: #fcfdff;
  --input-bg: #fff;
  --token-chip-bg: #fff;
  --token-chip-border: #d8d4f0;
  --token-chip-color: #5a4bd1;
  --disabled-bg: #f3f4f6;
  --disabled-color: #9ca3af;
  --login-gate-bg: linear-gradient(180deg, #f8f7ff 0%, #f0edff 100%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-soft: #1f1f35;
  --surface-alt: #1e1e32;
  --text: #e8e8f0;
  --muted: #8b8fa0;
  --line: #2a2a40;
  --line-strong: #3a3a55;
  --blue: #8B7CF7;
  --blue-hover: #9d8ffa;
  --blue-soft: #1f1a3a;
  --primary: #8B7CF7;
  --primary-hover: #9d8ffa;
  --primary-soft: #1f1a3a;
  --primary-gradient: linear-gradient(135deg, #7C6CF0 0%, #9B8CF8 100%);
  --danger: #f87171;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow: 0 4px 16px rgba(108,92,231,0.12);
  --shadow-lg: 0 12px 40px rgba(108,92,231,0.16);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.2), 0 8px 24px rgba(108,92,231,0.08);
  --th-bg: #1e1e32;
  --cell-even-bg: #1c1c2e;
  --input-bg: #1f1f35;
  --token-chip-bg: #1f1f35;
  --token-chip-border: #3a3560;
  --token-chip-color: #9d8ffa;
  --disabled-bg: #262640;
  --disabled-color: #636380;
  --login-gate-bg: linear-gradient(180deg, #1a1a2e 0%, #1f1a3a 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--login-gate-bg);
}

.login-gate[hidden] {
  display: none;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(31, 35, 41, 0.16);
}

.login-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.login-brand h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.login-brand p,
.login-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.qr-panel {
  display: grid;
  place-items: center;
  margin: 12px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.qr-panel img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface);
}

.login-card .primary-button {
  width: 100%;
}

.login-note {
  text-align: center;
}

.login-locked .app-header,
.login-locked .workspace,
.login-locked .cell-preview {
  filter: blur(2px);
  pointer-events: none;
}

/* header 已删除 */
.app-header {
  display: none;
}

/* 全局头像（右上角固定） */
.global-avatar {
  position: fixed;
  top: 8px;
  right: 16px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: var(--surface);
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.header-actions,
.run-actions,
.two-col,
.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- User badge & center link ---- */
.user-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

#userCenterLink {
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   三栏布局：左导航(56px) + 中工作台(flex:1) + 滚动条(14px) + 右配置(320px)
   ══════════════════════════════════════════════════════════ */

.workspace {
  height: 100vh;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

/* ── 左侧功能导航列 ── */
.func-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #faf8ff 0%, #f5f2ff 40%, #f8f6fe 100%);
  overflow: hidden;
  width: 200px;
  flex-shrink: 0;
  transition: width 0.25s cubic-bezier(0.16,1,0.3,1);
}

[data-theme="dark"] .func-nav {
  background: linear-gradient(180deg, #1a1830 0%, #1d1a35 40%, #19182a 100%);
}

.func-nav.collapsed {
  width: 56px;
}

/* ── 品牌区域 ── */
.nav-brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  overflow: hidden;
  white-space: nowrap;
  min-height: 52px;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.nav-brand-text {
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.nav-brand-text .brand-a {
  font-size: 16px;
  font-weight: 850;
  color: var(--primary);
}

.nav-brand-text .brand-e {
  font-size: 16px;
  font-weight: 850;
  color: var(--primary);
}

.nav-brand-text .brand-3 {
  font-size: 14px;
  font-weight: 700;
}

.func-nav.collapsed .nav-brand-area {
  justify-content: center;
  padding: 14px 0;
}

.func-nav.collapsed .nav-brand-text {
  display: none;
}

/* ── 功能区域 ── */
.func-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.nav-section-label {
  padding: 6px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
}

.func-nav.collapsed .nav-section-label {
  text-align: center;
  padding: 6px 0 4px;
  font-size: 9px;
}

.func-nav.collapsed .nav-section-label::after {
  display: none;
}

.func-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.func-nav-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.func-nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
  position: relative;
}

.func-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.func-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.func-nav-icon svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.func-nav-item.active .func-nav-icon svg {
  opacity: 1;
}

.func-nav-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.func-nav.collapsed .func-nav-item {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px;
}

.func-nav.collapsed .func-nav-label {
  font-size: 10px;
  font-weight: 500;
}

.func-nav.collapsed .func-nav-item.active::before {
  top: 2px;
  bottom: 2px;
}

/* ── 底部 ── */
.func-nav-footer {
  padding: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.nav-collapse-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.nav-collapse-btn:hover {
  background: var(--line);
  color: var(--text);
}

.func-nav.collapsed .nav-collapse-btn svg {
  transform: rotate(180deg);
}

/* ── 中间工作台 ── */
.workbench {
  background: var(--bg);
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* 欢迎面板 */
.welcome-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.welcome-hero {
  text-align: center;
  max-width: 560px;
  margin-bottom: 48px;
}

.welcome-icon {
  margin-bottom: 20px;
}

.welcome-icon svg {
  width: 80px;
  height: 80px;
}

.welcome-hero h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.welcome-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.welcome-actions {
  display: flex;
  justify-content: center;
}

.welcome-upload {
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}

/* 案例模板区域 */
.welcome-templates {
  width: 100%;
  max-width: 720px;
}

.welcome-templates h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 4px;
  color: var(--text);
}

.welcome-templates-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.case-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
}

.case-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(108,92,231,0.1);
  transform: translateY(-2px);
}

.case-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.case-card-body {
  flex: 1;
  min-width: 0;
}

.case-card-title {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 4px;
  color: var(--text);
}

.case-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 8px;
}

.case-card-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* 表格视图 */
.table-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

/* ── 右侧配置面板 ── */
.config-panel {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  width: 320px;
  flex-shrink: 0;
}

.config-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.config-panel-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.config-panel-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: none; /* 桌面端默认隐藏关闭按钮 */
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.config-panel-close:hover {
  background: var(--line);
  color: var(--text);
}

.config-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.config-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.config-section:last-child {
  border-bottom: none;
}

.config-section-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}

.config-panel-body textarea {
  min-height: 100px;
  font-size: 12px;
}

.config-panel-body select {
  font-size: 12px;
}

.config-panel-body .token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 80px;
  overflow-y: auto;
}

.config-panel-body .check-row {
  padding: 8px 16px;
  margin: 0;
}

.config-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.config-panel-footer .run-actions {
  display: flex;
  gap: 8px;
}

.config-panel-footer .run-actions button {
  flex: 1;
}

/* ── 模板库（右侧面板中） ── */
.config-panel .template-library {
  margin: 0;
}

.config-panel .template-list {
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.config-panel .template-item {
  padding: 8px 6px;
  min-height: 60px;
  border-radius: 8px;
}

.config-panel .template-icon {
  font-size: 18px;
}

.config-panel .template-name {
  font-size: 11px;
}

.mini-button {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mini-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #363c46;
  font-size: 12px;
}

.two-col {
  align-items: start;
}

.two-col .field {
  flex: 1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: 13px;
}

textarea {
  resize: vertical;
  min-height: 144px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.12);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.check-row input {
  width: auto;
}

.primary-upload,
.primary-button,
.ghost-button,
.thin-button,
.danger-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 13px;
}

.primary-upload,
.primary-button {
  background: var(--blue);
  color: var(--surface);
}

.primary-upload:hover,
.primary-button:hover {
  background: var(--blue-hover);
}

.primary-upload input {
  display: none;
}

.ghost-button,
.thin-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.ghost-button:hover,
.thin-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.danger-button {
  background: var(--surface);
  border-color: #f2b8b5;
  color: var(--danger);
}

button:disabled {
  border-color: var(--line);
  background: var(--disabled-bg);
  color: var(--disabled-color);
  cursor: not-allowed;
}

.status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.status.ok {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

.token-box {
  margin: 4px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

/* ═══════ 提示词模板库 ═══════ */
.template-library {
  margin-bottom: 0;
}

.template-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.template-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  min-height: 80px;
}

.template-item:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(108,92,231,0.08);
}

.template-item.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(108,92,231,0.15);
}

.template-icon {
  font-size: 22px;
  line-height: 1;
}

.template-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.template-item.active .template-name {
  color: var(--primary);
}

.token-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
}

.token-head small,
.token-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 112px;
  overflow: auto;
}

.token-chip {
  height: 24px;
  border: 1px solid var(--token-chip-border);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--token-chip-bg);
  color: var(--token-chip-color);
  font-size: 12px;
}

.table-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: var(--surface);
  overflow: hidden;
  contain: layout style;
  flex: 1;
}

/* ── 表格顶部标签栏（文件+工作表） ── */
.table-top-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.view-title-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.top-bar-sep {
  color: var(--line-strong);
  font-size: 14px;
  flex-shrink: 0;
}

.top-bar-file {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 160px;
}

/* 工作表标签 */
.sheet-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 12px;
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

.sheet-tab {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  border-radius: 0;
  background: none;
}

.sheet-tab:hover {
  color: var(--text);
  background: rgba(108,92,231,0.04);
}

.sheet-tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* 旧 view-tabs（保留兼容） */
.view-tabs {
  display: none;
}

.view-tab {
  height: 26px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

#fileText {
  color: var(--muted);
  font-size: 12px;
}

.table-toolbar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.table-toolbar input {
  width: min(260px, 32vw);
  height: 28px;
  font-size: 12px;
}

.toolbar-upload {
  height: 28px;
  font-size: 12px;
  padding: 0 10px;
  border-radius: 6px;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  transition: all 0.15s;
}

.toolbar-upload:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.toolbar-upload input {
  display: none;
}

.toolbar-right .mini-button {
  gap: 5px;
}

.row-height-control {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.row-height-control select {
  width: 82px;
  height: 28px;
  line-height: 1.2;
  font-size: 12px;
  padding: 0 4px;
  box-sizing: border-box;
}

#metaText {
  color: var(--muted);
  font-size: 12px;
}

.h-scroll {
  position: absolute;
  left: 0;
  right: 16px;
  bottom: 0;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  z-index: 30;
}

.h-scroll > div {
  height: 1px;
}

.v-scroll {
  position: absolute;
  top: 80px;
  right: 0;
  bottom: 18px;
  width: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--surface-alt);
  z-index: 19;
}

.v-scroll > div {
  width: 1px;
}

.table-wrap {
  overflow: auto;
  margin-right: 16px;
  margin-bottom: 18px;
  background: var(--surface);
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
}

.table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  --row-height: 72px;
}

table.row-compact {
  --row-height: 52px;
}

table.row-normal {
  --row-height: 72px;
}

table.row-comfortable {
  --row-height: 100px;
}

th,
td {
  position: relative;
  width: 180px;
  min-width: 120px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  vertical-align: top;
  font-size: 13px;
  text-align: left;
}

tbody tr td {
  height: var(--row-height);
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 36px;
  padding: 0 10px;
  background: var(--th-bg);
  color: var(--text);
  text-align: left;
  font-weight: 650;
  line-height: 36px;
  user-select: none;
  transition: background 0.12s ease;
}
/* 表头 sticky 下方阴影指示 */
th::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
thead:hover th::before { opacity: 1; }

th:not(.row-index) {
  position: sticky;
}

/* 补齐表头右侧空白（滚动条上方） */
.table-wrap::before {
  content: '';
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  width: 14px;
  height: 36px;
  background: var(--th-bg);
  float: right;
  margin-right: -14px;
  border-bottom: 1px solid var(--line);
}

.th-label {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px 2px 0;
  border: 1px solid transparent;
  border-radius: 3px;
  outline: none;
  line-height: 1.4;
  font-weight: 650;
  font-size: inherit;
  cursor: text;
  transition: border-color 0.15s, background 0.15s, max-width 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.th-label:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.th-label:focus {
  border-color: var(--blue);
  background: var(--input-bg);
  box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.12);
  white-space: normal;
  overflow: visible;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 4;
}

.col-resizer::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 3px;
  width: 1px;
  height: 22px;
  background: transparent;
}

.col-resizer:hover::after,
.resizing-column .col-resizer::after {
  background: var(--blue);
}

.resizing-column {
  cursor: col-resize;
  user-select: none;
}

.resizing-column .cell-content {
  pointer-events: none;
}

.row-index {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  background: var(--th-bg);
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

td.row-index {
  padding-top: 8px;
}

tbody tr:nth-child(even) td:not(.row-index) {
  background: var(--cell-even-bg);
}

.cell-content {
  height: 100%;
  max-height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 8px 10px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  cursor: text;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

[data-theme="light"] .cell-content:focus,
:root .cell-content:focus {
  background: #fffbea;
  box-shadow: inset 0 0 0 2px rgba(51, 112, 255, 0.28);
}

[data-theme="dark"] .cell-content:focus {
  background: #2a2618;
  box-shadow: inset 0 0 0 2px rgba(91, 143, 255, 0.35);
}

.cell-collapsed .cell-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.row-compact .cell-collapsed .cell-content {
  -webkit-line-clamp: 2;
}

.row-normal .cell-collapsed .cell-content {
  -webkit-line-clamp: 3;
}

.row-comfortable .cell-collapsed .cell-content {
  -webkit-line-clamp: 5;
}

.cell-preview {
  position: fixed;
  z-index: 1000;
  max-height: 360px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(31, 35, 41, 0.18);
  overflow: hidden;
}

.cell-preview-head {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.cell-preview-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

  .cell-preview-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
}

.cell-ai-float {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--token-chip-border);
  border-radius: 6px;
  background: var(--token-chip-bg);
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(31, 35, 41, 0.12);
  opacity: 0;
  transition: opacity 0.12s ease, background 0.12s ease;
}

.ai-empty-cell:hover .cell-ai-float,
.cell-ai-float:focus {
  opacity: 1;
}

.cell-ai-float:hover {
  background: var(--blue-soft);
}

.cell-ai-float svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-icon-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
}

.preview-icon-button:hover {
  background: var(--blue-soft);
}

.preview-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
}

.theme-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-close-button {
  height: 28px;
  padding: 0 6px;
}

.cell-preview-body {
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty {
  width: 100%;
  min-width: 420px;
  padding: 72px 24px;
  color: var(--muted);
  text-align: center;
}

/* ---- 头像悬浮窗 ---- */
.avatar-wrapper {
  position: relative;
  display: inline-flex;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary-soft);
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.avatar-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.avatar-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.avatar-wrapper:hover .avatar-dropdown,
.avatar-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.avatar-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.dropdown-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-header .avatar-big {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dropdown-header .user-info h4 {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}

.dropdown-header .user-info .admin-tag {
  display: inline-flex !important; align-items: center;
  font-size: 11px; font-weight: 600; color: #d97706;
  background: #fef3c7; padding: 2px 8px; border-radius: 999px;
  line-height: 1.4; white-space: nowrap;
}
[data-theme="dark"] .dropdown-header .user-info .admin-tag { background: rgba(217,119,6,.2); color: #fbbf24; }
.dropdown-header .user-info span:not(.admin-tag) {
  font-size: 12px; color: var(--muted);
}

.dropdown-body {
  padding: 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}

.dropdown-footer {
  padding: 8px;
  border-top: 1px solid var(--line);
}

.dropdown-logout {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.dropdown-logout:hover {
  color: var(--danger);
  background: #fef2f2;
}

/* ---- 头像下拉：积分/空间（微信风格权益区） ---- */
.dd-rights-head {
  display: flex; align-items: center;
  padding: 8px 20px 2px;
}
.dd-rights-title { font-size: 13px; color: var(--text); font-weight: 500; }

.dd-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px 4px; cursor: pointer; text-decoration: none;
  color: inherit; transition: background .15s;
}
.dd-stat-row:hover { background: rgba(0,0,0,.03); }
[data-theme="dark"] .dd-stat-row:hover { background: rgba(255,255,255,.04); }
.dd-stat-row:last-child { padding-bottom: 14px; }
.dd-stat-label { font-size: 13px; color: var(--text); font-weight: 400; }
.dd-stat-val { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 2px; }
.dd-stat-val .arrow { font-size: 11px; color: #bbb; }

.dd-progress-bar { height: 3px; background: transparent; margin: 0 20px 8px; }
.dd-progress-fill { height: 100%; border-radius: 1.5px; transition: width .4s; }
.dd-progress-fill.pts { background: linear-gradient(90deg, #07c160, #06ad56); }

.dd-section-line { height: 1px; background: var(--line); margin: 0; }

/* 管理员头像悬停标识 */
.admin-avatar-badge {
  position: absolute; top: -4px; right: -8px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .2s, transform .2s; z-index: 10;
  box-shadow: 0 2px 8px rgba(245,158,11,.35);
}
.avatar-wrapper:hover .admin-avatar-badge { opacity: 1; transform: translateY(0); }
[data-theme="dark"] .admin-avatar-badge { background: linear-gradient(135deg, #b45309, #92400e); }

/* 隐藏旧版 dropdown-stats（兼容 user.html 不在 styles.css 覆盖时） */
.dropdown-stats { display: none; }

/* ---- 头像下拉：分割线 ---- */
.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 20px;
}

/* ---- 积分/点数 ---- */
.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #7c2d12;
  font-size: 11px;
  font-weight: 700;
}

/* ---- 导航栏头像（Landing 页） ---- */
.nav-avatar-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.nav-avatar-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary-soft);
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-avatar-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.nav-avatar-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

/* 头像下拉 — 挂载在 nav 外部，用 JS 控制显隐 */
.nav-avatar-dropdown {
  position: fixed;
  width: 280px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.nav-avatar-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---- 全局丝滑过渡 ---- */
a, button, .card {
  transition: all 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE V3 · PRO REDESIGN
   设计对标：Notion × Linear × Vercel
   核心技术：极光渐变 + 液金玻璃 + 3D 悬浮 + SVG 图标体系
   ══════════════════════════════════════════════════════════════ */

/* ── 扩展圆角变量 ── */
:root {
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;
  --r-glow: rgba(108,92,231,0.35);
}

/* ── 全局动效 ── */
@keyframes aurora-float-1 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  33% { transform: translateX(-52%) translateY(-10px) scale(1.03); }
  66% { transform: translateX(-48%) translateY(8px) scale(0.98); }
}
@keyframes aurora-float-2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-15px) scale(1.05); }
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,92,231,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(108,92,231,0); }
}

/* ── 噪音纹理 ── */
.page-landing::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 极光背景 ── */
.aurora-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-bg::before, .aurora-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(120px); }
.aurora-bg::before {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(108,92,231,0.12) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: aurora-float-1 10s ease-in-out infinite;
}
.aurora-bg::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  animation: aurora-float-2 12s ease-in-out infinite;
}
.aurora-hero {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(167,139,250,0.10) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 60%, rgba(108,92,231,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 40%, rgba(236,72,153,0.04) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
  animation: aurora-float-1 10s ease-in-out infinite;
}

/* ── Fade-in ── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── 根页面背景 ── */
.page-landing {
  background: #fafbfe;
}

/* ═══════ NAVIGATION ═══════ */
.landing-nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: calc(100% - 48px); max-width: 1168px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-radius: var(--r-lg);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(108,92,231,0.06);
  box-shadow: 0 4px 24px rgba(108,92,231,0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.landing-nav.scrolled {
  box-shadow: 0 8px 32px rgba(108,92,231,0.10);
  border-color: rgba(108,92,231,0.10);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--primary); font-weight: 700; font-size: 17px;
}
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--primary-gradient);
  color: #fff; font-size: 16px; font-weight: 800;
  animation: breathe 3s ease-in-out infinite;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  filter: drop-shadow(0 2px 6px rgba(108,92,231,0.25));
  animation: breathe 3s ease-in-out infinite;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  text-decoration: none; padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 14px; font-weight: 500;
  position: relative; transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 40%; height: 2px; background: var(--primary); border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-links .nav-cta {
  background: var(--primary-gradient) !important;
  color: #fff !important; font-weight: 600 !important;
  padding: 8px 20px !important;
  box-shadow: 0 2px 12px var(--r-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-links .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.45) !important;
  background: var(--primary-gradient) !important;
}
.nav-links .nav-cta::after { display: none !important; }

/* ── 头像在导航中的容器（登录感知）── */
#navAuthSlot { display: inline-flex; vertical-align: middle; }

/* ═══════ HERO ═══════ */
.hero-section {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 140px 32px 100px; text-align: center;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 16px; border-radius: var(--r-full);
  background: rgba(108,92,231,0.08); color: var(--primary);
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
  border: 1px solid rgba(108,92,231,0.12);
  backdrop-filter: blur(8px);
}
.hero-badge .badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  animation: breathe 2s ease-in-out infinite;
}

.hero-section h1 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(36px, 5.5vw, 56px); font-weight: 800; line-height: 1.15;
  margin: 0 0 20px; color: var(--text);
  letter-spacing: -0.02em;
}
.hero-section h1 .gradient-text {
  background: linear-gradient(135deg, #6C5CE7 0%, #8B7CF7 40%, #A78BFA 70%, #C084FC 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero-section .hero-sub {
  font-size: 18px; color: var(--muted); line-height: 1.65;
  max-width: 640px; margin: 0 auto 36px;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}

.btn-primary {
  height: 52px; padding: 0 32px; border-radius: var(--r-md);
  background: var(--primary-gradient); border: none;
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px var(--r-glow), 0 0 0 0 var(--r-glow);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,92,231,0.45), 0 0 0 4px rgba(108,92,231,0.12);
}

.btn-secondary {
  height: 52px; padding: 0 28px; border-radius: var(--r-md);
  background: var(--surface); border: 2px solid rgba(108,92,231,0.18);
  color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-tertiary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0; border: none; background: none;
  color: #94a3b8; font-size: 14px; font-weight: 500; cursor: pointer;
  position: relative; text-decoration: none; margin-top: 12px;
}
.btn-tertiary::after {
  content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 1px;
  background: #94a3b8; transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.btn-tertiary:hover { color: var(--primary); }
.btn-tertiary:hover::after { background: var(--primary); transform: scaleX(1); }

/* ── Hero Product Preview ── */
.hero-preview {
  margin-top: 56px; position: relative; z-index: 1;
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.preview-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid rgba(108,92,231,0.10);
  box-shadow: 0 16px 48px rgba(108,92,231,0.10), 0 0 0 1px rgba(108,92,231,0.04);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-1deg) rotateX(2deg);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.preview-card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.preview-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid rgba(108,92,231,0.06);
  background: #fafbfe;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #ef4444; }
.preview-dot:nth-child(2) { background: #f59e0b; }
.preview-dot:nth-child(3) { background: #10b981; }
.preview-title { flex: 1; text-align: center; font-size: 12px; color: #94a3b8; font-weight: 500; }
.preview-body { display: grid; grid-template-columns: 240px 1fr; min-height: 320px; }
.preview-sidebar { border-right: 1px solid rgba(108,92,231,0.06); padding: 16px; background: #fcfcff; }
.preview-sidebar .ps-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r-sm); font-size: 13px; color: var(--muted);
  cursor: pointer; transition: all 0.2s ease;
}
.preview-sidebar .ps-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.preview-sidebar .ps-item:hover:not(.active) { background: rgba(108,92,231,0.04); }
.preview-sidebar .ps-icon { width: 20px; height: 20px; opacity: 0.6; flex-shrink: 0; }
.preview-sidebar .ps-item.active .ps-icon { opacity: 1; }
.preview-main {
  padding: 20px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fafbfe 0%, #f0edff 100%);
  position: relative;
}
.preview-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border-radius: var(--r-sm);
  overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid rgba(108,92,231,0.06);
  font-size: 12px;
}
.preview-table th {
  background: #f8f9ff; padding: 8px 12px; text-align: left;
  font-weight: 600; color: var(--muted); font-size: 11px;
  border-bottom: 1px solid rgba(108,92,231,0.06);
}
.preview-table td {
  padding: 8px 12px; border-bottom: 1px solid rgba(108,92,231,0.06);
  color: var(--text);
}
.preview-table tr:last-child td { border-bottom: none; }
.preview-table .ai-col {
  background: rgba(108,92,231,0.04); color: var(--primary); font-weight: 500;
  border-left: 2px solid var(--primary);
}
.preview-glow {
  position: absolute; top: -40px; right: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(108,92,231,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

/* ═══════ TRUST BANNER ═══════ */
.trust-section {
  position: relative; z-index: 1; background: var(--surface);
  border-top: 1px solid rgba(108,92,231,0.06);
  border-bottom: 1px solid rgba(108,92,231,0.06);
  padding: 48px 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; max-width: 960px; margin: 0 auto; padding: 0 32px;
}
.trust-item { text-align: center; }
.trust-number {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 42px; font-weight: 700; letter-spacing: -0.03em;
  background: var(--primary-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.trust-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.trust-platforms { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.trust-platform-tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
}
.tag-xhs { background: #ffeef4; color: #ff2442; }
.tag-dy { background: #e8f8f8; color: #00c9c9; }
.tag-wx { background: #e9f7e9; color: #07c160; }
.tag-review { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; color: #94a3b8; }
.star-rating { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }

/* ═══════ SECTIONS ═══════ */
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
  padding: 4px 12px; border-radius: var(--r-full);
  background: var(--primary-soft);
}
.section-header {
  text-align: center; margin-bottom: 64px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* ═══════ PRODUCT DEMO ═══════ */
.demo-section {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #fafbfe 0%, #f0f3fa 100%);
  padding: 100px 0;
}
.demo-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.demo-left h2 {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 36px; font-weight: 700; line-height: 1.2; margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.demo-left .demo-desc { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 32px; max-width: 480px; }
.demo-features { list-style: none; padding: 0; display: grid; gap: 16px; }
.demo-features li {
  display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: var(--text);
  padding: 16px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.demo-features li:hover, .demo-features li.active {
  background: var(--surface); border-color: rgba(108,92,231,0.10);
  box-shadow: 0 2px 8px rgba(108,92,231,0.06);
}
.demo-features li.active { border-color: var(--primary-soft); background: var(--primary-soft); }
.demo-feature-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(108,92,231,0.08); color: var(--primary);
}
.demo-features li.active .demo-feature-icon { background: var(--primary-gradient); color: #fff; }
.demo-features h4 { font-size: 15px; font-weight: 650; margin: 0 0 2px; }
.demo-features p { font-size: 13px; color: #94a3b8; margin: 0; line-height: 1.5; }
.demo-right { display: flex; align-items: center; justify-content: center; }
.demo-screen {
  width: 100%; background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid rgba(108,92,231,0.10); box-shadow: 0 16px 48px rgba(108,92,231,0.10);
  overflow: hidden;
}
.demo-screen-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #fafbfe; border-bottom: 1px solid rgba(108,92,231,0.06);
}
.demo-screen-body {
  padding: 24px; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f8f9ff 0%, #fdfdff 100%);
}

/* ═══════ 3 STEPS · 横向时间线 ═══════ */
.steps-section { position: relative; padding: 100px 48px;}
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; position: relative;
  max-width: 1200px; margin: 0 auto;
}
/* 横向时间线 */
.steps-grid::before {
  content: ''; position: absolute; top: 36px; left: 8.33%;
  width: 83.33%; height: 3px;
  background: linear-gradient(90deg, #6C5CE7 0%, #8B7CF7 50%, #A78BFA 100%);
  z-index: 0; border-radius: 3px;
  opacity: 0.25;
}
/* 箭头节点 */
.steps-grid::after {
  content: ''; position: absolute; top: 33px; left: 8.33%; width: 83.33%; height: 9px;
  z-index: 0;
  background: 
    radial-gradient(circle 4px, #6C5CE7 100%, transparent 100%) 0% 50%,
    radial-gradient(circle 4px, #8B7CF7 100%, transparent 100%) 50% 50%,
    radial-gradient(circle 4px, #A78BFA 100%, transparent 100%) 100% 50%;
  background-repeat: no-repeat;
}
.step-card {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid rgba(108,92,231,0.06);
  border-radius: var(--r-lg); padding: 60px 28px 36px; text-align: center;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  margin: 0 12px;
}
.step-card:nth-child(1) { border-top: none; border-top: 3px solid #6C5CE7; }
.step-card:nth-child(2) { border-top: 3px solid #8B7CF7; }
.step-card:nth-child(3) { border-top: 3px solid #A78BFA; }
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(108,92,231,0.10);
  border-color: rgba(108,92,231,0.14);
}
.step-icon {
  width: 64px; height: 64px; border-radius: var(--r-lg);
  display: inline-grid; place-items: center; margin-bottom: 24px;
  position: relative;
}
.step-icon svg { width: 28px; height: 28px; color: var(--primary); }
.step-icon.upload { background: linear-gradient(135deg, #f0edff, #e8e0ff); }
.step-icon.sparkles { background: linear-gradient(135deg, #e8e0ff, #f0e5ff); }
.step-icon.download { background: linear-gradient(135deg, #f0e5ff, #f0edff); }
.step-number-dot {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-gradient); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  box-shadow: 0 3px 12px var(--r-glow);
  z-index: 2;
}
.step-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.step-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ═══════ INDUSTRY CARDS · 2 列精准排列 ═══════ */
.industry-section { background: linear-gradient(180deg, #fafbfe 0%, #f4f2ff 100%); padding: 100px 48px; }
.industry-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  perspective: 1000px;
  max-width: 1200px; margin: 0 auto;
}
.industry-card {
  position: relative; background: var(--surface); border-radius: var(--r-xl);
  border: 1px solid rgba(108,92,231,0.06); padding: 32px 32px 28px;
  cursor: pointer; transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  display: flex; gap: 24px; align-items: flex-start;
  transform-style: preserve-3d;
}
/* 左彩色条 */
.industry-card::before {
  content: ''; position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 4px; border-radius: 0 4px 4px 0;
  transition: width 0.25s ease, opacity 0.25s ease;
  opacity: 0.6;
}
.industry-card:nth-child(1)::before { background: #ff6b6b; }
.industry-card:nth-child(2)::before { background: #6C5CE7; }
.industry-card:nth-child(3)::before { background: #ff9ff3; }
.industry-card:nth-child(4)::before { background: #48dbfb; }
.industry-card:nth-child(5)::before { background: #feca57; }
.industry-card:nth-child(6)::before { background: #10ac84; }
.industry-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(108,92,231,0.08); border-color: rgba(108,92,231,0.12); }
.industry-card:hover::before { width: 5px; opacity: 1; }
.industry-icon {
  width: 56px; height: 56px; border-radius: var(--r-md); flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(167,139,250,0.03));
  color: var(--primary);
}
.industry-icon svg { width: 26px; height: 26px; }
.industry-card-content { flex: 1; min-width: 0; }
.industry-card h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.industry-card .example { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; cursor: pointer;
  background: rgba(108,92,231,0.06); color: var(--primary);
  transition: all 0.2s ease;
  border: 1px solid rgba(108,92,231,0.08);
}
.industry-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.industry-tag svg { width: 13px; height: 13px; }

/* ═══════ SECURITY · 2x2 数据安全感 ═══════ */
.security-section {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #f4f2ff 0%, #fafbfe 100%);
  border-top: 1px solid rgba(108,92,231,0.06);
  border-bottom: 1px solid rgba(108,92,231,0.06);
  padding: 100px 48px;
}
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1200px; margin: 0 auto; }
.security-card {
  background: var(--surface); border: 1px solid rgba(108,92,231,0.06);
  border-radius: var(--r-xl); padding: 36px 32px 32px;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  display: flex; gap: 24px; align-items: flex-start;
}
.security-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(108,92,231,0.08); }
.security-icon {
  width: 56px; height: 56px; border-radius: var(--r-md); flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(167,139,250,0.03));
  color: var(--primary);
}
.security-icon svg { width: 26px; height: 26px; }
.security-card-content { flex: 1; min-width: 0; }
.security-big-num {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  background: var(--primary-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.security-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.security-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ═══════ TESTIMONIALS · 用户口碑 ═══════ */
.testimonial-section {
  background: var(--surface);
  border-top: 1px solid rgba(108,92,231,0.06);
  border-bottom: 1px solid rgba(108,92,231,0.06);
  max-width: 100% !important;
  padding-left: 0 !important; padding-right: 0 !important;
  padding-top: 80px !important; padding-bottom: 80px !important;
}
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
}
.testimonial-card {
  background: #fafbfe; border: 1px solid rgba(108,92,231,0.06);
  border-radius: var(--r-xl); padding: 40px 32px 32px;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  border-radius: 0 0 4px 4px;
  transition: opacity 0.3s ease;
}
.testimonial-card:nth-child(1)::before { background: #6C5CE7; }
.testimonial-card:nth-child(2)::before { background: #8B7CF7; }
.testimonial-card:nth-child(3)::before { background: #A78BFA; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(108,92,231,0.06); background: var(--surface); }
.testimonial-quote {
  position: absolute; top: 16px; right: 20px;
  font-size: 56px; line-height: 1; color: rgba(108,92,231,0.06);
  font-family: Georgia, serif;
}
.testimonial-stars-row {
  display: flex; gap: 2px; margin-bottom: 16px; color: #f59e0b; font-size: 18px;
}
.testimonial-text {
  font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 24px; padding-right: 8px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--primary-gradient); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.testimonial-name { font-size: 14px; font-weight: 650; }
.testimonial-role { font-size: 12px; color: var(--muted); }

/* ═══════ BOTTOM CTA ═══════ */
.bottom-cta { position: relative; z-index: 1; padding: 120px 32px; text-align: center; }
.cta-card {
  max-width: 720px; margin: 0 auto;
  background: #1a1a2e; border-radius: 32px; padding: 64px 48px;
  position: relative; overflow: hidden;
  color: #e8e8f0;
}
.cta-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(108,92,231,0.12) 0%, transparent 60%);
  animation: aurora-float-1 8s ease-in-out infinite;
  pointer-events: none;
}
.cta-card h2 {
  font-family: "Noto Sans SC", sans-serif;
  position: relative; z-index: 1;
  font-size: 32px; font-weight: 700; margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta-card p {
  position: relative; z-index: 1;
  font-size: 16px; color: rgba(255,255,255,0.55); max-width: 480px; margin: 0 auto 32px;
}
.cta-card .btn-primary {
  position: relative; z-index: 1;
  height: 56px; padding: 0 40px; font-size: 17px; border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(108,92,231,0.45);
}
.cta-reassurance {
  position: relative; z-index: 1;
  margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.35);
}

/* ═══════ FOOTER ═══════ */
.landing-footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(108,92,231,0.06);
  background: var(--surface); padding: 56px 32px 32px;
  color: var(--muted); font-size: 13px;
}
.landing-footer a { color: var(--primary); text-decoration: none; }
.footer-grid {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.footer-col h4 {
  font-size: 13px; font-weight: 650; margin: 0 0 16px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text);
}
.footer-col a { display: block; font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(108,92,231,0.06);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #94a3b8;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ════════════════════════════════════════════
   RESPONSIVE — 全站手机适配
   ════════════════════════════════════════════ */

/* ───── Hamburger 菜单 ───── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: 8px 6px;
  border: none; background: none; cursor: pointer;
  border-radius: var(--r-sm); align-items: center; justify-content: center;
  z-index: 100;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--text); transition: all 0.3s ease; transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───── 平板横屏 ≤1024px ───── */
@media (max-width: 1024px) {
  .steps-section { padding: 80px 32px; }
  .industry-section { padding: 80px 32px; }
  .security-section { padding: 80px 32px; }
  .testimonial-grid { padding: 0 32px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-card { flex-direction: column; gap: 16px; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid::before, .steps-grid::after { display: none; }
  .step-card { padding: 44px 20px 28px; margin: 0 6px; }
  .landing-nav { padding: 0 24px; }
}

/* ───── 平板竖屏 / 大手机 ≤768px ───── */
@media (max-width: 768px) {
  /* 导航栏：汉堡菜单 */
  .nav-hamburger { display: flex; }
  .landing-nav { padding: 0 16px; width: calc(100% - 24px); border-radius: var(--r-md); }
  .nav-links {
    position: fixed; top: 0; right: -320px; width: 280px; height: 100vh;
    background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 80px 24px 40px; gap: 4px; z-index: 99;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    transition: right 0.3s cubic-bezier(0.16,1,0.3,1);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    padding: 12px 16px; border-radius: var(--r-sm);
    display: block; font-size: 15px;
  }
  .nav-links .nav-cta { text-align: center; margin-top: 8px; }

  /* Hero */
  .hero-section { min-height: auto; padding: 120px 20px 80px; }
  .hero-section h1 { font-size: 28px; line-height: 1.25; }
  .hero-section .hero-sub { font-size: 14px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .hero-badge { font-size: 12px; padding: 0 12px; height: 28px; }
  .hero-preview { margin-top: 40px; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-sidebar { border-right: none; border-bottom: 1px solid rgba(108,92,231,0.06); }
  .preview-card { transform: none !important; }

  /* Trust */
  .trust-section { padding: 32px 0; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 16px; }
  .trust-number { font-size: 28px; }
  .trust-label { font-size: 12px; }
  .trust-platforms { flex-wrap: wrap; gap: 6px; }
  .trust-platform-tag { height: 22px; padding: 0 8px; font-size: 11px; }

  /* Demo */
  .demo-section { padding: 64px 0; }
  .demo-grid { padding: 0 20px; }
  .demo-left h2 { font-size: 28px; }
  .demo-left .demo-desc { font-size: 14px; }
  .demo-screen-body { padding: 16px; min-height: 200px; }

  /* Steps / Industry / Security */
  .section { padding: 48px 20px; }
  .steps-section, .industry-section, .security-section { padding: 48px 20px; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 24px; }
  .section-label { font-size: 11px; }

  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps-grid::before, .steps-grid::after { display: none; }
  .step-card { margin: 0; padding: 48px 24px 28px; }

  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { flex-direction: column; gap: 14px; padding: 24px 20px 20px; }
  .industry-card::before { top: 20px; bottom: 20px; }

  .security-grid { grid-template-columns: 1fr; }
  .security-card { flex-direction: column; gap: 16px; padding: 24px 20px 20px; }
  .security-big-num { font-size: 32px; }

  /* Testimonials */
  .testimonial-section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .testimonial-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .testimonial-card { padding: 32px 24px 28px; }

  /* CTA */
  .bottom-cta { padding: 64px 20px; }
  .cta-card { padding: 48px 28px; border-radius: 24px; }
  .cta-card h2 { font-size: 24px; }
  .cta-card p { font-size: 14px; }

  /* Footer */
  .landing-footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  /* ── 工具页 ── */
  .brand h1 { font-size: 15px; }
  .brand p { display: none; }

  .workspace { height: auto; }
  .func-nav { width: 56px; }
  .func-nav .nav-brand-text { display: none; }
  .func-nav .nav-section-label { text-align: center; padding: 6px 0 4px; font-size: 9px; }
  .func-nav .func-nav-item { flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; }
  .func-nav .func-nav-label { font-size: 10px; font-weight: 500; }
  .func-nav .nav-collapse-btn svg { transform: rotate(180deg); }
  .config-panel {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    z-index: 60;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right 0.3s cubic-bezier(0.16,1,0.3,1);
  }
  .config-panel.open { right: 0; }
  .config-panel-close { display: flex; }

  .welcome-panel { padding: 32px 20px; }
  .case-grid { grid-template-columns: 1fr; }

  .table-toolbar { align-items: flex-start; height: auto; flex-direction: column; padding: 8px 10px; gap: 8px; }
  .table-toolbar input { width: 100% !important; }
  .table-area { min-height: 50vh; }
  .table-top-bar { height: auto; padding: 8px 10px; flex-wrap: wrap; }
  .row-height-control { width: 100%; justify-content: flex-start; }

  /* 手机端表格触摸滚动提示 */
  .h-scroll { height: 20px; }
  .mobile-only { display: inline-flex !important; }

  /* ── 通用弹窗 ── */
  .modal { max-width: calc(100vw - 40px); padding: 24px; }
  .confirm-box { width: auto; max-width: calc(100vw - 40px); padding: 20px; }
}

/* ───── 手机 ≤600px ───── */
@media (max-width: 600px) {
  /* Hero 紧凑 */
  .hero-section { padding: 110px 16px 60px; }
  .hero-section h1 { font-size: 24px; }
  .hero-section .hero-sub { font-size: 13px; max-width: 100%; }
  .hero-badge { font-size: 11px; }

  /* Trust 两列+一列 */
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .trust-item:last-child { grid-column: span 2; }
  .trust-number { font-size: 24px; }

  /* Demo */
  .demo-grid { gap: 32px; }
  .demo-left h2 { font-size: 24px; }
  .demo-features li { padding: 12px; gap: 10px; }

  /* Steps / Industry / Security */
  .section { padding: 40px 14px; }
  .steps-section, .industry-section, .security-section { padding: 40px 14px; }
  .testimonial-grid { padding: 0 14px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 22px; }
  .step-card { padding: 44px 18px 24px; }
  .step-icon { width: 52px; height: 52px; margin-bottom: 18px; }
  .step-card h3 { font-size: 17px; }
  .industry-card { padding: 20px 16px 18px; }
  .security-card { padding: 20px 16px 18px; }
  .testimonial-card { padding: 28px 20px 24px; }

  /* CTA */
  .bottom-cta { padding: 48px 16px; }
  .cta-card { padding: 40px 20px; border-radius: 20px; }
  .cta-card h2 { font-size: 22px; }
  .cta-card .btn-primary { height: 48px; font-size: 15px; padding: 0 28px; }

  /* Footer */
  .landing-footer { padding: 32px 16px 20px; }

  /* Tool 页 */
  .brand { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; font-size: 12px; }
  .nav-logo-icon { width: 28px; height: 28px; }
  .sidebar { max-height: 40vh; }
  .config-block { padding: 12px; }
  textarea { min-height: 100px; }
  .primary-button, .ghost-button, .thin-button, .danger-button { height: 30px; font-size: 12px; padding: 0 10px; }

  /* 管理后台 */
  .admin-side { display: none; }
  .admin-main { padding: 14px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row.col2, .stat-row.col3 { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 12px; }
  .stat .num { font-size: 22px; }
  .stat .num.sm { font-size: 18px; }
  .search-bar { flex-direction: column; }
  .search-bar input { max-width: 100%; }
  .cfg-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cfg-row input { width: 100%; }
  .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-bar button { white-space: nowrap; padding: 10px 12px; font-size: 12px; }
  .log-entry { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .log-time { min-width: auto; }
  .modal-overlay { align-items: flex-end; }
  .modal { border-radius: var(--r-lg) var(--r-lg) 0 0; max-width: 100%; }
  .btn-group { flex-wrap: wrap; }
  .admin-table { font-size: 11px; }
  .tbl-wrap { -webkit-overflow-scrolling: touch; }

  /* 用户中心 */
  .uc-topbar { padding: 0 12px; height: 48px; }
  .uc-topbar .brand { font-size: 14px; }
  .uc-topbar .actions { gap: 8px; }
  .uc-topbar .actions a { font-size: 12px; }
  .uc-shell { padding: 16px 12px 48px; }
  .uc-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; }
  .uc-tab { white-space: nowrap; padding: 10px 0; margin-right: 20px; font-size: 13px; }
  .uc-stats-row { grid-template-columns: 1fr; }
  .uc-stat-card { padding: 18px 16px; }
  .uc-stat-value { font-size: 24px; }
  .uc-section-title { font-size: 16px; }
  .checkin-box { flex-direction: column; gap: 12px; text-align: center; }
  .uc-filter-row { flex-wrap: wrap; }
  .uc-table-section { padding: 12px 10px; overflow-x: auto; }
  .uc-pager { flex-direction: column; gap: 8px; align-items: stretch; }
  .uc-pager-left, .uc-pager-right { justify-content: center; }
  .contact-modal { max-width: calc(100vw - 40px); padding: 24px 16px; }

  /* 存储页 */
  .st-shell { padding: 16px 10px 64px; }
  .st-topbar { flex-wrap: wrap; gap: 8px; }
  .st-title { font-size: 16px; }
  .upload-zone { padding: 24px 16px; }
  .upload-zone .upload-text { font-size: 14px; }
  .upload-zone .upload-icon { font-size: 32px; }
  .file-actions { flex-direction: column; }
  .file-origin { max-width: 120px; }
  .file-table th, .file-table td { padding: 8px 6px; font-size: 11px; }
}

/* ───── 小手机 ≤480px ───── */
@media (max-width: 480px) {
  .hero-section { padding: 100px 12px 48px; }
  .hero-section h1 { font-size: 22px; letter-spacing: -0.5px; }
  .hero-section .hero-sub { font-size: 13px; }
  .hero-actions { gap: 10px; }
  .btn-primary, .btn-secondary { height: 46px; font-size: 14px; }

  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .trust-item:last-child { grid-column: auto; }

  .demo-left h2 { font-size: 22px; }
  .demo-features li { padding: 10px 14px; }
  .demo-features h4 { font-size: 14px; }

  .section-header h2 { font-size: 20px; }
  .step-card h3 { font-size: 16px; }
  .step-number-dot { width: 28px; height: 28px; font-size: 12px; top: -14px; }

  .cta-card { padding: 32px 16px; border-radius: 16px; }
  .cta-card h2 { font-size: 20px; }
  .cta-card .btn-primary { height: 44px; font-size: 14px; padding: 0 24px; width: 100%; }

  .nav-links { width: 260px; }
  .nav-links a { font-size: 14px; padding: 10px 14px; }

  /* 管理后台 */
  .stat-row { grid-template-columns: 1fr; }
  .stat-row.col2, .stat-row.col3 { grid-template-columns: 1fr; }
  .admin-main h2 { font-size: 16px; }
  .ann-card { padding: 14px 12px; }
  .ann-card .ann-title { font-size: 14px; }

  /* 工具页 */
  .workspace { flex-direction: column; }

  /* 存储页 */
  .st-shell { padding: 12px 8px 56px; }
  .file-table { font-size: 10px; }
  .btn-sm { height: 26px; padding: 0 10px; font-size: 11px; }
  .toast { font-size: 12px; padding: 10px 16px; }
}

/* ═══════ 移动端 side-drawer 遮罩 ═══════ */
@media (max-width: 768px) {
  .nav-links::before {
    content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    z-index: -1; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  }
  .nav-links.open::before { opacity: 1; pointer-events: auto; }
}

.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: inline-flex !important; } }

/* ---- 管理后台开关 Toggle ---- */
.cfg-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cfg-toggle:last-of-type {
  border-bottom: none;
}
.cfg-toggle .cfg-info {
  flex: 1;
}
.cfg-toggle .cfg-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.cfg-toggle .cfg-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* ═══════════════════════════════════════════════════════
   分析中状态（流光背景 + 动态省略号 ... → .. → . → ...）
   ═══════════════════════════════════════════════════════ */
.ai-analyzing-cell {
  vertical-align: top !important;
  text-align: left !important;
  overflow: hidden !important;
  position: relative;
}

/* 液态流光背景 */
.ai-analyzing-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(108,92,231,0.06) 40%, rgba(108,92,231,0.12) 50%, rgba(108,92,231,0.06) 60%, transparent 100%);
  background-size: 200% 100%;
  animation: ai-shimmer 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ai-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ai-analyzing-text {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 10px;
  display: block;
  position: relative;
  z-index: 1;
}

/* 省略号逐帧动画：... → .. → . → ... */
.ai-ellipsis {
  display: inline-block;
  vertical-align: bottom;
  width: 1.2em;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  animation: ai-dots-step 1.2s steps(1, end) infinite;
}

@keyframes ai-dots-step {
  0%   { width: 1.2em; }  /* ... */
  25%  { width: 0.8em; }  /* ..  */
  50%  { width: 0.4em; }  /* .   */
  75%  { width: 0.8em; }  /* ..  */
  100% { width: 1.2em; }  /* ... */
}

/* 分析完成后恢复普通单元格样式 */
.ai-result-cell {
  text-align: left !important;
}

/* ═══════════════════════════════════════════════════════
   THINKING PANEL · AI 思考过程面板
   ═══════════════════════════════════════════════════════ */
.think-panel {
  margin: 0 16px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.think-panel.collapsed .think-body { display: none; }
.think-panel.hidden { display: none; }

.think-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  user-select: none;
  background: var(--surface-alt);
  transition: background 0.15s;
}
.think-header:hover { background: var(--primary-soft); }
.think-header-left { display: flex; align-items: center; gap: 8px; }
.think-icon { font-size: 16px; }
.think-title { font-size: 13px; font-weight: 600; color: var(--text); }
.think-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: all 0.3s;
}
.think-badge.running {
  background: #dbeafe;
  color: #2563eb;
  animation: think-badge-pulse 1.5s ease-in-out infinite;
}
.think-badge.done {
  background: #dcfce7;
  color: #16a34a;
}
.think-badge.stopped {
  background: #fef3c7;
  color: #d97706;
}
.think-badge.error {
  background: #fee2e2;
  color: #dc2626;
}

@keyframes think-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.think-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.think-toggle:hover { background: var(--line); color: var(--text); }
.think-panel.collapsed .think-toggle svg { transform: rotate(-90deg); }
.think-toggle svg { transition: transform 0.3s; }

.think-body {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

/* 进度条 */
.think-progress-wrap {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-alt);
  overflow: hidden;
}
.think-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  transition: width 0.3s ease;
}
.think-progress-bar.running {
  animation: think-progress-shimmer 1.5s ease-in-out infinite;
}
@keyframes think-progress-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* 统计数据行 */
.think-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.think-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.think-stat-label { color: var(--muted); }
.think-stat-value { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.think-stat-done .think-stat-value { color: #16a34a; }
.think-stat-fail .think-stat-value { color: #dc2626; }
.think-stat-speed .think-stat-value { color: var(--primary); }

/* 日志区 */
.think-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
  font-size: 12px;
}

/* 推理槽位容器（放在 thinkLog 外部） */
.think-slots-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.think-log-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  color: var(--muted);
  animation: think-log-fadein 0.3s ease;
}
@keyframes think-log-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.think-log-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: var(--line);
  transition: background 0.3s;
}
.think-log-item.think-log-done .think-log-dot { background: #16a34a; }
.think-log-item.think-log-fail .think-log-dot { background: #dc2626; }
.think-log-item.think-log-running .think-log-dot {
  background: #2563eb;
  animation: think-dot-pulse 1s ease-in-out infinite;
}
@keyframes think-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.4); }
  50% { box-shadow: 0 0 0 4px rgba(37,99,235,0); }
}
.think-log-item.think-log-waiting .think-log-dot { background: var(--muted); }

/* 日志条目淡出消失动画 */
.think-log-item.think-log-fadeout {
  animation: think-log-fadeout 0.4s ease forwards;
}
@keyframes think-log-fadeout {
  from { opacity: 1; max-height: 30px; }
  to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; overflow: hidden; }
}

/* ═══════════════════════════════════════════════════════
   推理过程槽位 · Reasoning Slot
   ═══════════════════════════════════════════════════════ */
.think-reasoning-slot {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 4px 0;
  overflow: hidden;
  transition: border-color 0.3s;
}
.think-reasoning-slot.think-reasoning-slot-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft);
}

.think-reasoning-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  background: var(--surface-alt);
  transition: background 0.15s;
}
.think-reasoning-header:hover { background: var(--primary-soft); }

.think-reasoning-arrow {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}
.think-reasoning-label {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}
.think-reasoning-status {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
  flex-shrink: 0;
}
.think-reasoning-status-active {
  background: #dbeafe;
  color: #2563eb;
  animation: think-badge-pulse 1.5s ease-in-out infinite;
}
.think-reasoning-status-done {
  background: #dcfce7;
  color: #16a34a;
}

.think-reasoning-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.think-reasoning-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.think-reasoning-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.think-reasoning-text {
  margin: 0;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  background: var(--surface-alt);
  border-radius: 4px;
  color: var(--text);
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid var(--line);
}
.think-reasoning-text:empty::after {
  content: "等待中...";
  color: var(--muted);
  font-style: italic;
}
.think-content-text {
  color: var(--primary-dark, #1d4ed8);
}
[data-theme="dark"] .think-content-text {
  color: #93c5fd;
}

/* ══════════════════════════════════════════════════════════
   WELCOME VIEW · 欢迎页（三栏：中功能介绍 + 右上传对话）
   ══════════════════════════════════════════════════════════ */
.welcome-view {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── 中间功能介绍区 ── */
.welcome-center {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  min-width: 0;
}

.welcome-hero-new {
  margin-bottom: 36px;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(108,92,231,0.12);
}
.welcome-badge .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: breathe 2s ease-in-out infinite;
}

.welcome-heading {
  font-size: 28px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.welcome-heading .gradient-text {
  background: linear-gradient(135deg, #6C5CE7 0%, #8B7CF7 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 540px;
}

/* ── 功能卡片 ── */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.2s ease;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(108,92,231,0.08);
  transform: translateY(-1px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.ficon-upload {
  background: linear-gradient(135deg, #f0edff, #e8e0ff);
  color: #6C5CE7;
}
.ficon-ai {
  background: linear-gradient(135deg, #dbeafe, #c7d2fe);
  color: #4f46e5;
}
.ficon-report {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #16a34a;
}
.ficon-export {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.feature-card-body {
  flex: 1;
  min-width: 0;
}
.feature-card-body h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.feature-card-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── 场景案例 ── */
.scenario-section {
  margin-bottom: 24px;
}

.scenario-header {
  margin-bottom: 16px;
}
.scenario-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}
.scenario-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.scenario-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
}
.scenario-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(108,92,231,0.1);
  transform: translateY(-2px);
}
.scenario-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.scenario-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scenario-icon svg {
  width: 18px;
  height: 18px;
}
.sc-icon-sales { background: #f0edff; color: #6C5CE7; }
.sc-icon-inventory { background: #dbeafe; color: #3b82f6; }
.sc-icon-customer { background: #dcfce7; color: #16a34a; }
.sc-icon-finance { background: #fef3c7; color: #d97706; }
.sc-icon-marketing { background: #fce7f3; color: #ec4899; }
.sc-icon-hr { background: #e0f2fe; color: #0ea5e9; }

.scenario-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #d97706;
}

.scenario-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.scenario-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.scenario-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* ── 右侧面板（上传 + 对话） ── */
.chat-panel {
  width: 630px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

/* 上传区域 */
.chat-upload-area {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.chat-upload-inner {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.chat-upload-inner:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.chat-upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.chat-upload-icon svg {
  width: 24px;
  height: 24px;
}

.chat-upload-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.chat-upload-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}

.chat-upload-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.chat-upload-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.chat-upload-btn input {
  display: none;
}

/* 已上传文件信息 */
.chat-file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.chat-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-file-icon svg {
  width: 18px;
  height: 18px;
}

.chat-file-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-file-size {
  font-size: 11px;
  color: var(--muted);
}

.chat-file-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.chat-file-remove:hover {
  background: #fef2f2;
  color: var(--danger);
}
.chat-file-remove svg {
  width: 14px;
  height: 14px;
}

.chat-start-btn {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.chat-start-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* AI 对话区 */
.chat-conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.chat-welcome-msg {
  display: flex;
  gap: 10px;
}

.chat-ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble {
  flex: 1;
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
}
.chat-bubble p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.chat-bubble p:last-child {
  margin-bottom: 0;
}
.chat-bubble ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.chat-bubble li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.chat-input-area input:focus {
  border-color: var(--primary);
}
.chat-input-area input:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-color);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.chat-send-btn:hover {
  opacity: 0.9;
}
.chat-send-btn:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-color);
  cursor: not-allowed;
}
.chat-send-btn svg {
  width: 16px;
  height: 16px;
}

/* 用户消息 */
.chat-user-msg {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.chat-bubble.user {
  background: var(--primary-soft);
  border-color: var(--primary);
  border: 1px solid rgba(108,92,231,0.2);
  max-width: 80%;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   WELCOME RIGHT PANEL · 欢迎页右侧面板（report.html）
   与 report-workspace.html 的 ws-right 共享样式
   ═══════════════════════════════════════════════════════ */
.ws-right {
  width:320px; flex-shrink:0;
  display:flex; flex-direction:column;
  border-left:1px solid var(--line);
  background:var(--surface); overflow:hidden;
}
.ws-right-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--line); flex-shrink:0;
}
.ws-right-brand {
  font-size:13px; font-weight:700; color:var(--primary);
}
.ws-new-chat-btn {
  display:inline-flex; align-items:center; gap:4px;
  padding:5px 10px; border:1px solid var(--line);
  border-radius:6px; background:var(--surface);
  color:var(--muted); font-size:11px; cursor:pointer;
}
.ws-new-chat-btn:hover {
  background:var(--primary-soft); color:var(--primary);
}
.ws-right-upload {
  padding:14px; flex-shrink:0;
}
.ws-upload-box {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:24px 16px; border:2px dashed var(--line);
  border-radius:12px; cursor:pointer; transition:all 0.2s;
}
.ws-upload-box:hover {
  border-color:var(--primary); background:var(--primary-soft);
}
.ws-upload-cloud {
  margin-bottom:8px; color:var(--muted);
}
.ws-upload-cloud svg { width:32px; height:32px; }
.ws-upload-text {
  font-size:12px; color:var(--muted); text-align:center; margin:0;
}
.ws-upload-info {
  margin-top:10px; display:flex; flex-direction:column; gap:4px;
}
.ws-info-title {
  font-size:11px; font-weight:600; color:var(--muted);
  display:flex; align-items:center; gap:4px; margin-bottom:2px;
}
.ws-info-item {
  font-size:11px; color:var(--muted);
  display:flex; align-items:center; gap:4px;
}
.ws-right-chat {
  flex:1; display:flex; flex-direction:column; min-height:0;
}
.ws-chat-msgs {
  flex:1; overflow-y:auto; padding:14px;
}

/* 底部输入框：与工作台 ws-chat-input 完全一致 */
.ws-chat-input {
  display:flex; gap:8px; padding:10px 14px;
  border-top:1px solid var(--line); flex-shrink:0;
}
.ws-chat-input input {
  flex:1; height:36px; border:1px solid var(--line);
  border-radius:8px; padding:0 10px; font-size:12px;
  background:var(--surface-soft); color:var(--text); outline:none;
}
.ws-chat-input input:focus {
  border-color:var(--primary);
}
.ws-chat-send {
  width:36px; height:36px; border:none; border-radius:8px;
  background:var(--primary); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:all 0.15s;
}
.ws-chat-send:hover { opacity:0.9; }
.ws-chat-send svg { width:15px; height:15px; }

/* ── 响应式：欢迎页 ── */
@media (max-width: 1200px) {
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chat-panel {
    width: 630px;
  }
}

/* ── 报告工作台补充 ── */
.ws-center-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

@media (max-width: 1024px) {
  .welcome-view {
    flex-direction: column;
  }
  .welcome-center {
    padding: 24px 20px;
  }
  .chat-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    max-height: 50vh;
  }
  .feature-cards {
    grid-template-columns: 1fr;
  }
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome-heading {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .welcome-view {
    flex-direction: column;
  }
  .welcome-center {
    padding: 20px 16px;
  }
  .chat-panel {
    width: 100%;
    max-height: 45vh;
  }
  .feature-cards {
    grid-template-columns: 1fr;
  }
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .welcome-heading {
    font-size: 22px;
  }
}
