/* ============================================================
   锐意工场 — 6 套视觉预设 (data-visual-preset)
   ============================================================ */

body.theme-enterprise-studio {
  --font-display: var(--font-sans);
}

body.theme-enterprise-studio .hero-title,
body.theme-enterprise-studio .section-title,
body.theme-enterprise-studio .studio-page-hero h1,
body.theme-enterprise-studio .cta-band-text h2,
body.theme-enterprise-studio .page-title {
  font-family: var(--font-display);
}

/* ═══ 1. void — 深空暗色光晕（默认） ═══ */
body.theme-enterprise-studio.studio-preset-void:not([data-colors-custom]) {
  --color-primary: #818cf8;
  --color-accent: #22d3ee;
  --color-bg: #09090b;
  --color-surface: #111114;
  --color-surface-elevated: #18181c;
  --color-text: #fafafa;
  --color-muted: #a1a1aa;
}

body.theme-enterprise-studio.studio-preset-void[data-theme="light"]:not([data-colors-custom]),
[data-theme="light"] body.theme-enterprise-studio.studio-preset-void:not([data-colors-custom]) {
  --color-primary: #4f46e5;
  --color-accent: #0891b2;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-surface-elevated: #f4f4f5;
  --color-text: #09090b;
  --color-muted: #71717a;
}

/* ═══ 2. signal — 亮色锐利 ═══ */
body.theme-enterprise-studio.studio-preset-signal:not([data-colors-custom]) {
  --color-primary: #2563eb;
  --color-accent: #06b6d4;
  --font-display: var(--font-sans);
}

body.theme-enterprise-studio.studio-preset-signal:not([data-colors-custom]) {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-elevated: #f1f5f9;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: rgba(15, 23, 42, 0.1);
}

body.theme-enterprise-studio.studio-preset-signal[data-theme="dark"]:not([data-colors-custom]),
[data-theme="dark"] body.theme-enterprise-studio.studio-preset-signal:not([data-colors-custom]) {
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-elevated: #334155;
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
}

body.theme-enterprise-studio.studio-preset-signal .stat-value {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ═══ 3. mono — 黑白编辑 ═══ */
body.theme-enterprise-studio.studio-preset-mono:not([data-colors-custom]) {
  --color-primary: #18181b;
  --color-accent: #52525b;
  --font-display: "Source Serif 4", "Noto Serif SC", Georgia, serif;
}

body.theme-enterprise-studio.studio-preset-mono:not([data-colors-custom]) {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #09090b;
  --color-muted: #71717a;
  --orb-opacity: 0;
}

body.theme-enterprise-studio.studio-preset-mono[data-theme="dark"]:not([data-colors-custom]),
[data-theme="dark"] body.theme-enterprise-studio.studio-preset-mono:not([data-colors-custom]) {
  --color-primary: #fafafa;
  --color-accent: #a1a1aa;
  --color-bg: #09090b;
  --color-surface: #18181b;
  --color-text: #fafafa;
  --color-muted: #a1a1aa;
}

body.theme-enterprise-studio.studio-preset-mono .btn-primary {
  background: var(--color-primary);
  box-shadow: none;
}

body.theme-enterprise-studio.studio-preset-mono .stat-value {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--color-text);
}

body.theme-enterprise-studio.studio-preset-mono.has-glow-orbs .studio-glow-layer {
  display: none;
}

/* ═══ 4. glass — 玻璃拟态 ═══ */
body.theme-enterprise-studio.studio-preset-glass:not([data-colors-custom]) {
  --color-primary: #8b5cf6;
  --color-accent: #ec4899;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-blur: 20px;
}

body.theme-enterprise-studio.studio-preset-glass:not([data-colors-custom]) {
  --color-bg: #0c0a14;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-text: #f5f3ff;
  --color-muted: #c4b5fd;
}

body.theme-enterprise-studio.studio-preset-glass[data-theme="light"]:not([data-colors-custom]),
[data-theme="light"] body.theme-enterprise-studio.studio-preset-glass:not([data-colors-custom]) {
  --color-bg: #f5f3ff;
  --color-surface: rgba(255, 255, 255, 0.65);
  --color-text: #1e1b4b;
  --color-muted: #6d28d9;
  --glass-bg: rgba(255, 255, 255, 0.55);
}

body.theme-enterprise-studio.studio-preset-glass.studio-surface-bordered .studio-card,
body.theme-enterprise-studio.studio-preset-glass .studio-header {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ═══ 5. prism — 棱镜渐变边缘 ═══ */
body.theme-enterprise-studio.studio-preset-prism:not([data-colors-custom]) {
  --color-primary: #a855f7;
  --color-accent: #f97316;
}

body.theme-enterprise-studio.studio-preset-prism.studio-surface-bordered .studio-card {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
}

body.theme-enterprise-studio.studio-preset-prism .hero-badge {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(90deg, var(--color-primary), var(--color-accent)) border-box;
}

body.theme-enterprise-studio.studio-preset-prism .section-label {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══ 6. editorial — 杂志衬线 ═══ */
body.theme-enterprise-studio.studio-preset-editorial:not([data-colors-custom]) {
  --color-primary: #1c1917;
  --color-accent: #b45309;
  --font-display: "Source Serif 4", "Noto Serif SC", Georgia, serif;
  --font-sans: "Source Serif 4", "Noto Serif SC", Georgia, serif;
}

body.theme-enterprise-studio.studio-preset-editorial:not([data-colors-custom]) {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-muted: #78716c;
  --radius: 2px;
  --radius-lg: 4px;
}

body.theme-enterprise-studio.studio-preset-editorial[data-theme="dark"]:not([data-colors-custom]),
[data-theme="dark"] body.theme-enterprise-studio.studio-preset-editorial:not([data-colors-custom]) {
  --color-primary: #fafaf9;
  --color-accent: #fbbf24;
  --color-bg: #1c1917;
  --color-surface: #292524;
  --color-text: #fafaf9;
  --color-muted: #a8a29e;
}

body.theme-enterprise-studio.studio-preset-editorial .hero-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.theme-enterprise-studio.studio-preset-editorial .section-label {
  font-family: var(--font-sans);
  color: var(--color-accent);
}

body.theme-enterprise-studio.studio-preset-editorial .btn-primary {
  background: var(--color-primary);
  border-radius: 2px;
  box-shadow: none;
}

/* —— Hero 模式微调 —— */
body[data-hero-mode="minimal"] .studio-grid-bg {
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 10%, transparent 65%);
}

body[data-hero-mode="cinematic"] .studio-hero-cinematic {
  border-bottom: 1px solid var(--color-border);
}

/* —— 列表布局 —— */
body.layout-list .post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}

body.layout-list .post-card-cover {
  aspect-ratio: auto;
  height: 100%;
  min-height: 140px;
}

@media (max-width: 640px) {
  body.layout-list .post-card {
    grid-template-columns: 1fr;
  }
}
