:root {
  /* 主色调 - 深靛蓝体系 */
  --indigo-950: #0f172a;
  --indigo-900: #1e293b;
  --indigo-800: #273449;
  --indigo-700: #334155;
  --indigo-600: #475569;
  --indigo-500: #64748b;
  --indigo-400: #94a3b8;
  --indigo-300: #cbd5e1;
  --indigo-200: #e2e8f0;
  --indigo-100: #f1f5f9;
  --indigo-50: #f8fafc;

  /* 强调色 - 暖橙 */
  --accent-600: #ea580c;
  --accent-500: #f97316;
  --accent-400: #fb923c;
  --accent-300: #fdba74;
  --accent-100: #ffedd5;
  --accent-50: #fff7ed;

  /* 辅助色 */
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --violet-600: #7c3aed;
  --rose-600: #e11d48;

  /* 语义色 */
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;

  /* 背景 */
  --bg-page: #fafbfc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-code: #0f172a;

  /* 边框 */
  --border-default: #e2e8f0;
  --border-muted: #f1f5f9;
  --border-strong: #cbd5e1;

  /* 文字 */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-inverse: #ffffff;
  --text-code: #e2e8f0;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  /* 字体 */
  --font-sans: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;

  /* 导航高度 */
  --nav-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-muted);
}
::-webkit-scrollbar-thumb {
  background: var(--indigo-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--indigo-400);
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
}

.navbar-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.nav-brand-text {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.nav-brand-sub {
  font-size: 11px;
  color: var(--indigo-400);
  font-weight: 400;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--indigo-300);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
  color: #fff;
  background: rgba(249, 115, 22, 0.2);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== 布局 ===== */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid var(--border-muted);
  scrollbar-width: thin;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  padding-left: var(--space-3);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-item {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-item:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.toc-item.active {
  color: var(--accent-600);
  background: var(--accent-50);
  border-left-color: var(--accent-500);
  font-weight: 500;
}

.toc-item.toc-sub {
  padding-left: 28px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== 主内容 ===== */
.main-content {
  padding: var(--space-10) var(--space-10) var(--space-20);
  min-width: 0;
}

.page-header {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-default);
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-600);
  background: var(--accent-50);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-muted);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== 章节 ===== */
.section {
  margin-bottom: var(--space-20);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 2px solid var(--text-primary);
}

.section-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  opacity: 0.08;
  flex-shrink: 0;
}

.section-title-wrap {
  flex: 1;
  padding-top: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* ===== 子章节 ===== */
.subsection {
  margin-bottom: var(--space-12);
}

.subsection-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.subsection-mark {
  width: 4px;
  height: 20px;
  background: var(--accent-500);
  border-radius: 2px;
  flex-shrink: 0;
}

.subsection-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.subsection-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--indigo-100);
  color: var(--indigo-700);
}

.card-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 网格 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ===== 风格卡片 ===== */
.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.style-card:hover {
  border-color: var(--accent-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.style-card-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.style-color-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.style-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
}

.style-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.style-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.style-field {
  display: flex;
  gap: var(--space-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.style-field-label {
  color: var(--text-tertiary);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 52px;
}
.style-field-value {
  color: var(--text-secondary);
}

/* 行业分区标题 */
.industry-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-10) 0 var(--space-6);
  padding-top: var(--space-2);
}
.industry-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--indigo-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.industry-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.industry-count {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

/* ===== 标签云 ===== */
.tag-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tag-section-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: 999px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 450;
}
.tag:hover {
  border-color: var(--accent-400);
  color: var(--accent-600);
  background: var(--accent-50);
  transform: translateY(-1px);
}
.tag.copied {
  border-color: var(--success);
  color: var(--success);
  background: #f0fdf4;
}

.tag-color-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  border: 1px solid rgba(0,0,0,0.1);
}

/* 模块面板 */
.module-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.module-panel-header {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.module-panel-header:hover {
  background: var(--indigo-100);
}

.module-panel-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.module-index {
  width: 24px;
  height: 24px;
  background: var(--indigo-900);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.module-panel-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.module-panel-chevron {
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
  font-size: 12px;
}
.module-panel.open .module-panel-chevron {
  transform: rotate(180deg);
}

.module-panel-body {
  display: none;
  padding: var(--space-5);
}
.module-panel.open .module-panel-body {
  display: block;
}

/* ===== 提示词生成器 ===== */
.generator-container {
  background: var(--indigo-950);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: #fff;
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.generator-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.generator-header {
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.generator-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-400);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.generator-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.generator-desc {
  font-size: 14px;
  color: var(--indigo-400);
  max-width: 560px;
}

.generator-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.gen-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gen-field-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--indigo-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gen-select {
  background: var(--indigo-900);
  border: 1px solid var(--indigo-700);
  color: #fff;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}
.gen-select:hover {
  border-color: var(--indigo-500);
}
.gen-select:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.generator-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-500);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--indigo-800);
  color: #fff;
  border: 1px solid var(--indigo-600);
}
.btn-secondary:hover {
  background: var(--indigo-700);
  border-color: var(--indigo-500);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* 生成结果 */
.generator-result {
  background: var(--indigo-900);
  border: 1px solid var(--indigo-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--indigo-800);
  border-bottom: 1px solid var(--indigo-700);
}

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

.result-tab {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--indigo-400);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.result-tab.active {
  background: var(--indigo-700);
  color: #fff;
}

.result-copy-btn {
  background: var(--accent-500);
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.result-copy-btn:hover {
  background: var(--accent-600);
}
.result-copy-btn.copied {
  background: var(--success);
}

.result-body {
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--indigo-200);
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 模板卡片 ===== */
.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}
.template-card:hover {
  border-color: var(--accent-400);
  box-shadow: var(--shadow-lg);
}

.template-header {
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--indigo-900), var(--indigo-800));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  opacity: 0.5;
}

.template-title {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.template-subtitle {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

.template-body {
  padding: var(--space-5);
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.template-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  border-radius: 4px;
  font-weight: 500;
}

.template-prompt {
  background: var(--bg-code);
  color: var(--text-code);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: var(--space-4);
}

.template-actions {
  display: flex;
  gap: var(--space-2);
}

/* ===== 金字塔 / 层级图 ===== */
.pyramid {
  max-width: 500px;
  margin: 0 auto;
}

.pyramid-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  color: #fff;
  font-weight: 600;
  position: relative;
  text-align: center;
}

.pyramid-layer.l1 {
  width: 60%;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
}
.pyramid-layer.l2 {
  width: 75%;
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-800));
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0% 100%);
}
.pyramid-layer.l3 {
  width: 90%;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-700));
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0% 100%);
}
.pyramid-layer.l4 {
  width: 100%;
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}

.pyramid-label {
  font-size: 14px;
  margin-right: 8px;
}
.pyramid-desc {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 400;
}

/* ===== 信息架构四视图 ===== */
.info-arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.info-face {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}

.face-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  background: var(--indigo-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.face-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.face-list {
  text-align: left;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.face-list li {
  list-style: none;
  padding-left: 14px;
  position: relative;
}
.face-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* ===== 货架三秒法则 ===== */
.shelf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.shelf-step {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  text-align: center;
}

.shelf-step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--accent-500);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.shelf-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-2) 0 var(--space-2);
}

.shelf-step-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.shelf-step-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 色彩对照表 ===== */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.color-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}
.color-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.color-chip-swatch {
  height: 56px;
}

.color-chip-info {
  padding: var(--space-3);
}

.color-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.color-chip-emotion {
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ===== 字体搭配 ===== */
.font-pair-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.font-sample-display {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.font-pair-info {
  border-top: 1px solid var(--border-muted);
  padding-top: var(--space-3);
}

.font-pair-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.font-pair-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== 创意组合卡片 ===== */
.creative-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all 0.25s ease;
}
.creative-card:hover {
  border-color: var(--accent-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.creative-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-100);
  color: var(--accent-600);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.creative-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.creative-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 六要素卡片 ===== */
.six-elements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.six-element {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.six-element::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-500);
}

.six-element-icon {
  width: 40px;
  height: 40px;
  background: var(--indigo-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 18px;
}

.six-element-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.six-element-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 指南模块 ===== */
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.guide-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.guide-card-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent-500);
  border-radius: 2px;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.guide-list li {
  display: flex;
  gap: var(--space-3);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: var(--space-4);
  position: relative;
}

.guide-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-400);
}

.guide-list strong {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 120px;
  flex-shrink: 0;
}

/* 两列内容 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

/* ===== 印刷规范 ===== */
.print-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.print-spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
}

.print-spec-icon {
  width: 44px;
  height: 44px;
  background: var(--indigo-900);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.print-spec-content {
  flex: 1;
}

.print-spec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.print-spec-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--indigo-900);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
  box-shadow: var(--shadow-lg);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent-500);
  transform: translateY(-2px);
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--indigo-900);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 公式展示 ===== */
.formula-bar {
  background: linear-gradient(135deg, var(--indigo-900), var(--indigo-800));
  color: #fff;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
  overflow-x: auto;
}

.formula-text {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
  white-space: nowrap;
}
.formula-text span {
  padding: 3px 10px;
  border-radius: 4px;
  margin: 0 2px;
}
.formula-plus {
  color: var(--accent-400);
  padding: 0 4px !important;
}

/* ===== 行业 Tab ===== */
.industry-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.industry-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.industry-tab:hover {
  border-color: var(--accent-400);
  color: var(--accent-600);
}
.industry-tab.active {
  background: var(--indigo-900);
  color: #fff;
  border-color: var(--indigo-900);
}

/* ===== 复制提示 ===== */
.copy-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: -4px;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 底部 ===== */
.footer {
  padding: var(--space-10) var(--space-10) var(--space-16);
  border-top: 1px solid var(--border-default);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .main-content {
    padding: var(--space-8) var(--space-6);
  }
  .generator-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .info-arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .six-elements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .print-spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-menu-btn {
    display: block;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--indigo-950);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .page-title {
    font-size: 32px;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .shelf-steps {
    grid-template-columns: 1fr;
  }
  .generator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .main-content {
    padding: var(--space-6) var(--space-4);
  }
  .page-title {
    font-size: 26px;
  }
  .section-title {
    font-size: 22px;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .generator-container {
    padding: var(--space-6) var(--space-4);
  }
  .generator-grid {
    grid-template-columns: 1fr;
  }
  .generator-actions {
    flex-direction: column;
  }
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .six-elements-grid {
    grid-template-columns: 1fr;
  }
  .info-arch-grid {
    grid-template-columns: 1fr;
  }
  .shelf-steps {
    grid-template-columns: 1fr;
  }
  .industry-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* 工具类 */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.text-center { text-align: center; }
.text-small { font-size: 12.5px; }
