/* ============================================================
   提示词工场 — 重构版样式
   Theme: Light (Default) + Dark Mode Toggle
   Design: Modern SaaS · Bright · Vivid · Ultra-polished
   ============================================================ */

/* ── 1. 亮色主题变量（默认） ── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-ultra: #c7d2fe;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* 亮色背景 */
  --bg-base: #f5f7ff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbff;
  --bg-primary-soft: rgba(99,102,241,0.06);
  --bg-accent-soft: rgba(6,182,212,0.06);
  --bg-glass: rgba(255,255,255,0.88);
  --bg-glass-dark: rgba(15,23,42,0.06);

  /* 边框 */
  --border: rgba(99,102,241,0.1);
  --border-light: rgba(0,0,0,0.06);
  --border-active: rgba(99,102,241,0.4);
  --border-glow: rgba(99,102,241,0.25);

  /* 文字 */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #6366f1;
  --text-on-color: #ffffff;

  /* 阴影 */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-color: 0 4px 20px rgba(99,102,241,0.2);
  --shadow-color-lg: 0 8px 40px rgba(99,102,241,0.25);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.05), 0 0 0 1px rgba(99,102,241,0.06);
  --shadow-card-hover: 0 8px 32px rgba(99,102,241,0.12), 0 0 0 1px rgba(99,102,241,0.2);

  /* 尺寸 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;
  --nav-h: 68px;

  /* 动画 */
  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
  --font: 'PingFang SC','Microsoft YaHei',-apple-system,BlinkMacSystemFont,sans-serif;

  /* Hero渐变 */
  --hero-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #0ea5e9 100%);

  /* 别名（兼容旧代码） */
  --card-bg: #ffffff;
  --bg-secondary: #f1f5ff;
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* ── 2. 暗色模式 ── */
[data-theme="dark"] {
  --bg-base: #060b18;
  --bg-surface: #0d1526;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-primary-soft: rgba(99,102,241,0.1);
  --bg-accent-soft: rgba(6,182,212,0.08);
  --bg-glass: rgba(13,21,38,0.85);
  --bg-glass-dark: rgba(99,102,241,0.08);

  --border: rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.05);
  --border-active: rgba(99,102,241,0.5);
  --border-glow: rgba(99,102,241,0.3);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --text-accent: #818cf8;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-color: 0 4px 20px rgba(99,102,241,0.25);
  --shadow-color-lg: 0 8px 40px rgba(99,102,241,0.2);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.3);

  /* 别名（暗色覆盖） */
  --card-bg: rgba(255,255,255,0.04);
  --bg-secondary: rgba(255,255,255,0.05);
}

/* ── 3. 主题切换过渡 ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
/* 但排除动画元素，避免冲突 */
.btn, .card, .tool-card, .topic-card, .platform-card, .rank-item, .record-item, .prompt-list-card, .tool-list-card, .hero-orb, .nav-logo-icon {
  transition: var(--transition);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── 4. 工具类 ── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-surface); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── 5. 亮色全局背景装饰 ── */
body:not([data-theme="dark"])::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background:
    radial-gradient(ellipse 900px 700px at 0% 0%, rgba(99,102,241,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 600px 500px at 100% 5%, rgba(139,92,246,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"]::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background:
    radial-gradient(ellipse 900px 700px at 10% -5%, rgba(99,102,241,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 600px 500px at 90% 5%, rgba(139,92,246,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(6,182,212,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── 6. 节标题 ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-primary-soft);
  border: 1px solid var(--border-glow);
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 16px; border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; color: var(--text-primary);
  margin-bottom: 14px; line-height: 1.25; letter-spacing: -0.5px;
}
.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { color: var(--text-secondary); font-size: 16px; max-width: 580px; margin: 0 auto; line-height: 1.7; }
.section-header-flex { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.section-header-flex .section-title { margin-bottom: 0; text-align: left; }
.section-header-flex .section-tag { margin-bottom: 8px; }
.view-more {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--primary); font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--bg-primary-soft); border: 1px solid var(--border-glow);
  transition: var(--transition); white-space: nowrap;
}
.view-more:hover {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-color);
  transform: translateX(2px);
}

/* ── 7. 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: var(--transition);
  position: relative; overflow: hidden; cursor: pointer;
  letter-spacing: 0.2px;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  opacity: 0; transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-outline {
  border: 1.5px solid var(--border-active);
  color: var(--primary);
  background: var(--bg-primary-soft);
}
.btn-outline:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-color);
  transform: translateY(-1px);
}
.btn-ghost { color: var(--text-secondary); border: 1px solid var(--border-light); }
.btn-ghost:hover { color: var(--primary); background: var(--bg-primary-soft); border-color: var(--border-glow); }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); flex-shrink: 0; }

/* ── 8. 卡片 ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.card-hover {
  transition: var(--transition);
  cursor: pointer;
}
.card-hover:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.card-hover:hover::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── 9. 徽章 ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}
.badge-primary { background: rgba(99,102,241,0.1); color: var(--primary); border: 1px solid rgba(99,102,241,0.2); }
.badge-accent { background: rgba(6,182,212,0.1); color: var(--accent); border: 1px solid rgba(6,182,212,0.2); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.2); }
.badge-amber { background: rgba(245,158,11,0.1); color: var(--accent-amber); border: 1px solid rgba(245,158,11,0.2); }
.badge-hot { background: linear-gradient(135deg,rgba(239,68,68,0.1),rgba(245,158,11,0.1)); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.badge-rose { background: rgba(244,63,94,0.1); color: var(--accent-rose); border: 1px solid rgba(244,63,94,0.2); }

/* ── 10. 顶部导航 ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center;
  transition: var(--transition-slow);
}
#navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.nav-inner { display: flex; align-items: center; width: 100%; gap: 0; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  margin-right: 36px; text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
  letter-spacing: -1px; flex-shrink: 0;
  transition: var(--transition);
}
.nav-logo:hover .nav-logo-icon { transform: rotate(-5deg) scale(1.08); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }
.nav-logo-text { font-size: 18px; font-weight: 800; color: var(--text-primary); white-space: nowrap; letter-spacing: -0.3px; }
.nav-logo-text span { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition); white-space: nowrap;
  border: 1px solid transparent;
}
.nav-item:hover { color: var(--primary); background: var(--bg-primary-soft); border-color: var(--border); }
.nav-item.active { color: var(--primary); background: var(--bg-primary-soft); border-color: var(--border-glow); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 7px 14px; min-width: 200px;
  transition: var(--transition);
  position: relative;
}
.nav-search:focus-within {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.nav-search input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 13px; width: 100%; }
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search-icon { color: var(--text-muted); font-size: 15px; flex-shrink: 0; }

/* 主题切换按钮 */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-primary-soft); transform: rotate(20deg); }

.btn-login {
  padding: 7px 18px; font-size: 13px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary); background: var(--bg-surface);
  font-weight: 500; transition: var(--transition);
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-primary-soft); }
.btn-register {
  padding: 8px 20px; font-size: 13px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 700;
  box-shadow: 0 3px 12px rgba(99,102,241,0.35);
  transition: var(--transition);
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }

.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: var(--transition); }
.nav-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 11. Hero 区 ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--hero-grad);
}
/* 亮色时Hero使用渐变 */
body:not([data-theme="dark"]) #hero {
  background: var(--hero-grad);
}
[data-theme="dark"] #hero {
  background: linear-gradient(160deg, #0a0f2e 0%, #0d1526 50%, #0a1a2e 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 40%, transparent 100%);
}
[data-theme="dark"] .hero-grid {
  background-image:
    linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 9s ease-in-out infinite;
}
.hero-orb-1 { width: 700px; height: 600px; background: rgba(255,255,255,0.12); top: -120px; left: -180px; }
.hero-orb-2 { width: 500px; height: 500px; background: rgba(255,255,255,0.08); top: 30px; right: -120px; animation-delay: -3s; }
.hero-orb-3 { width: 400px; height: 400px; background: rgba(6,182,212,0.18); bottom: 60px; left: 35%; animation-delay: -6s; }
[data-theme="dark"] .hero-orb-1 { background: rgba(99,102,241,0.15); }
[data-theme="dark"] .hero-orb-2 { background: rgba(139,92,246,0.12); }
[data-theme="dark"] .hero-orb-3 { background: rgba(6,182,212,0.08); }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1) rotate(0deg); }
  33% { transform: translateY(-25px) scale(1.04) rotate(2deg); }
  66% { transform: translateY(10px) scale(0.97) rotate(-2deg); }
}

.hero-inner {
  position: relative; z-index: 1; width: 100%;
  padding: 80px 0 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 20px; border-radius: var(--radius-full);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.7s ease both;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s ease infinite; box-shadow: 0 0 6px #4ade80; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.6)} }

.hero-title {
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 900; line-height: 1.1;
  color: #fff;
  margin-bottom: 22px;
  animation: fadeInDown 0.7s ease 0.1s both;
  letter-spacing: -2px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero-title .line2 {
  background: linear-gradient(135deg, #a5f3fc, #c4b5fd, #fde68a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.82);
  max-width: 700px; margin-bottom: 44px;
  animation: fadeInDown 0.7s ease 0.2s both;
  line-height: 1.75;
}
.hero-sub strong { color: #fff; }

/* Hero 输入框 */
.hero-search-wrap {
  width: 100%; max-width: 860px;
  animation: fadeInUp 0.7s ease 0.3s both;
  margin-bottom: 24px;
}
.hero-search-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.22), 0 0 0 1.5px rgba(255,255,255,0.2);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.hero-search-card:focus-within {
  box-shadow: 0 32px 90px rgba(0,0,0,0.28), 0 0 0 3px rgba(255,255,255,0.4), 0 0 60px rgba(99,102,241,0.2);
}
.hero-search-top {
  display: flex; align-items: flex-start;
  padding: 22px 24px 14px;
  gap: 14px;
}
.hero-search-icon-area {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; margin-top: 2px;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.hero-search-top textarea {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 17px;
  line-height: 1.7; resize: none;
  min-height: 90px; max-height: 200px;
  padding: 0;
  font-family: var(--font);
}
.hero-search-top textarea::placeholder {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
.hero-search-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--border-light);
  gap: 12px;
}
.hero-search-hint { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-hint-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-base); border: 1px solid var(--border-light);
  color: var(--text-muted); font-size: 11px;
  padding: 3px 10px; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn-generate {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff; font-size: 16px; font-weight: 800;
  padding: 14px 36px; border-radius: var(--radius-md);
  border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(99,102,241,0.42), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: var(--transition); white-space: nowrap; flex-shrink: 0;
  position: relative; overflow: hidden;
  letter-spacing: 0.3px;
}
.btn-generate::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0; transition: opacity 0.2s;
}
.btn-generate:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 32px rgba(99,102,241,0.55), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-generate:hover::before { opacity: 1; }
.btn-generate:active { transform: translateY(0) scale(0.99); }
.btn-generate .icon { font-size: 22px; animation: sparkle 2s ease infinite; }
@keyframes sparkle {
  0%,100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
  50% { transform: scale(1.2) rotate(15deg); filter: brightness(1.3); }
}

/* 热门搜索词 */
.hero-tags {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  animation: fadeInUp 0.7s ease 0.4s both;
  max-width: 860px;
}
.hero-tags-label { font-size: 13px; color: rgba(255,255,255,0.65); white-space: nowrap; font-weight: 600; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  font-size: 13px; padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer; transition: var(--transition);
  backdrop-filter: blur(10px);
  font-weight: 500;
}
.hero-tag:hover {
  background: rgba(255,255,255,0.26);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.hero-tag:active { transform: translateY(-1px) scale(1.02); }

/* 统计数字 */
.hero-stats {
  display: flex; align-items: center; gap: 0;
  margin-top: 52px;
  animation: fadeInUp 0.7s ease 0.5s both;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 20px 40px;
  backdrop-filter: blur(12px);
  gap: 0;
}
.hero-stat { text-align: center; padding: 0 28px; }
.hero-stat-num {
  font-size: 30px; font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.hero-stat-div { width: 1px; height: 44px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

/* ── 12. 广告位 ── */
.ad-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(139,92,246,0.06) 100%);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ad-banner::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}
.ad-badge { position: absolute; top: 8px; right: 12px; font-size: 10px; color: var(--text-muted); background: var(--bg-base); padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border-light); }
.ad-banner-content { display: flex; align-items: center; gap: 16px; flex: 1; }
.ad-banner-icon { font-size: 36px; flex-shrink: 0; }
.ad-banner-text .title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.ad-banner-text .desc { font-size: 13px; color: var(--text-secondary); }
.ad-banner-tag { position: absolute; top: 0; left: 24px; background: linear-gradient(135deg,var(--accent-amber),#f97316); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 0 0 8px 8px; letter-spacing: 0.5px; }
.ad-section { padding: 20px 0 0; }

/* ── 13. 参数补充区 ── */
#params-section { padding: 64px 0; }
.params-container {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.params-container::before {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}
.params-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: var(--bg-primary-soft);
}
.params-title-area h2 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.params-title-area p { font-size: 13px; color: var(--text-secondary); }
.params-scenario-tabs { display: flex; gap: 8px; }
.params-tab {
  padding: 6px 18px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  background: var(--bg-surface); border: 1.5px solid var(--border-light);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.params-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(99,102,241,0.3); }
.params-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); background: var(--bg-primary-soft); }
.params-body { padding: 28px 32px; }
.params-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 0; }
.param-group { }
.param-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.param-label::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: linear-gradient(var(--primary),var(--secondary)); display: inline-block; }
.param-options { display: flex; gap: 8px; flex-wrap: wrap; }
.param-opt {
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  background: var(--bg-base); border: 1.5px solid var(--border-light);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.param-opt:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-primary-soft); }
.param-opt.selected {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  border-color: var(--primary); color: var(--primary); font-weight: 600;
  box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}
.params-footer {
  padding: 22px 32px;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  background: var(--bg-base);
}
.params-preview { flex: 1; }
.params-preview-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.params-preview-text {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.8;
  font-family: 'JetBrains Mono','Cascadia Code','Consolas',monospace;
  box-shadow: var(--shadow-xs);
}
.params-preview-text em { color: var(--primary); font-style: normal; font-weight: 600; }
.params-preview-text strong { color: var(--accent); font-weight: normal; }
.params-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ── 14. 工具矩阵 ── */
#tools-matrix { padding: 88px 0; }
.tools-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tool-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card-hover);
}
.tool-card-img {
  width: 100%; height: 140px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tool-card:hover .tool-card-img { transform: scale(1.04); }
.tool-card-body { padding: 18px 20px 0; flex: 1; display: flex; flex-direction: column; }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.tool-card h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; line-height: 1.3; }
.tool-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.tool-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 14px;
  background: var(--bg-base);
}
.tool-users { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.tool-users-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); animation: pulse 2.5s ease infinite; }
.tool-card-arrow {
  font-size: 14px; font-weight: 700; color: var(--primary);
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--bg-primary-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.tool-card:hover .tool-card-arrow { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateX(3px); }

/* ── 15. 最近生成记录 ── */
#recent-records { padding: 88px 0; }
.records-list { display: flex; flex-direction: column; gap: 12px; }
.record-item {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.record-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(5px);
}
.record-item:hover .record-index { background: var(--primary); border-color: var(--primary); color: #fff; }
.record-index {
  min-width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary-soft); border: 1.5px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--primary);
  transition: var(--transition); flex-shrink: 0;
}
.record-content { flex: 1; min-width: 0; }
.record-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-desc { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.record-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.record-stat { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.record-btn {
  padding: 7px 18px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: var(--bg-primary-soft);
  transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.record-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-color); }

/* ── 16. 热门排行榜 ── */
#rankings { padding: 88px 0; }
.rankings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.rank-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.rank-panel::before { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.rank-panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-primary-soft);
}
.rank-panel-title { font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.rank-panel-tabs { display: flex; gap: 4px; }
.rank-tab { padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; color: var(--text-muted); cursor: pointer; transition: var(--transition); font-weight: 500; }
.rank-tab.active { background: var(--primary); color: #fff; }
.rank-tab:hover:not(.active) { color: var(--primary); background: var(--bg-primary-soft); }
.rank-list { padding: 6px 0; }
.rank-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  transition: var(--transition); cursor: pointer;
}
.rank-item:hover { background: var(--bg-primary-soft); }
.rank-num {
  min-width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.rank-num.top1 { background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,0.4); }
.rank-num.top2 { background: linear-gradient(135deg,#94a3b8,#64748b); color: #fff; }
.rank-num.top3 { background: linear-gradient(135deg,#d97706,#b45309); color: #fff; }
.rank-num.other { background: var(--bg-base); color: var(--text-muted); border: 1px solid var(--border-light); }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-category { font-size: 11px; color: var(--text-muted); }
.rank-data { text-align: right; flex-shrink: 0; }
.rank-count { font-size: 13px; font-weight: 700; color: var(--primary); }
.rank-unit { font-size: 10px; color: var(--text-muted); }
.rank-trend { font-size: 12px; font-weight: 700; }
.rank-trend.up { color: var(--accent-green); }
.rank-trend.hot { color: #ef4444; }

/* ── 17. 专题库 ── */
#topics { padding: 88px 0; }
.topics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.topic-card {
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.topic-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card-hover);
}
.topic-card-cover { position: relative; height: 165px; overflow: hidden; }
.topic-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.topic-card:hover .topic-card-cover img { transform: scale(1.06); }
.topic-card-cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6) 100%); }
.topic-card-cover-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}
.topic-card-body { padding: 16px 18px; }
.topic-card h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; }
.topic-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.topic-card-meta { display: flex; align-items: center; justify-content: space-between; }
.topic-count { font-size: 12px; color: var(--text-muted); }
.topic-count strong { color: var(--primary); font-weight: 700; }

/* ── 18. AI 效果展示 ── */
#showcase { padding: 88px 0; }
.showcase-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.showcase-item {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; cursor: pointer; aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: var(--transition);
}
.showcase-item:hover { transform: translateY(-6px) scale(1.02); border-color: var(--primary); box-shadow: var(--shadow-color-lg); }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.showcase-item:hover img { transform: scale(1.06); }
.showcase-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  opacity: 0; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 16px;
}
.showcase-item:hover .showcase-overlay { opacity: 1; }
.showcase-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; background: linear-gradient(transparent,rgba(0,0,0,0.8)); }
.showcase-info h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.showcase-info p { font-size: 11px; color: rgba(255,255,255,0.7); }
.showcase-overlay .showcase-label { font-size: 13px; font-weight: 600; color: #fff; text-align: center; margin-bottom: 6px; }
.showcase-overlay .showcase-sub { font-size: 11px; color: rgba(255,255,255,0.8); text-align: center; }

/* ── 19. AI平台导航 ── */
#platforms { padding: 88px 0; }
.platforms-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.platform-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition); cursor: pointer;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.platform-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 0; background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.06)); transition: height 0.3s ease; }
.platform-card:hover::before { height: 100%; }
.platform-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.platform-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; position: relative; }
.platform-logo { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; flex-shrink: 0; box-shadow: var(--shadow-sm); }
/* New real logo image container */
.platform-logo-img {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.platform-logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.platform-card:hover .platform-logo-img { transform: scale(1.08) rotate(-3deg); box-shadow: var(--shadow-color); }
.platform-badge-hot {
  margin-left: auto; flex-shrink: 0;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  padding: 3px 9px; border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(239,68,68,0.35);
}
.platform-meta { flex: 1; min-width: 0; }
.platform-meta h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.platform-meta .platform-tag { font-size: 11px; color: var(--text-muted); }
.platform-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; position: relative; }
.platform-scenes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; position: relative; }
.platform-scene {
  font-size: 11px; padding: 3px 10px;
  background: var(--bg-base); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); color: var(--text-muted);
  transition: var(--transition);
}
.platform-card:hover .platform-scene { border-color: var(--border-glow); color: var(--primary); background: var(--bg-primary-soft); }
.platform-footer { display: flex; align-items: center; justify-content: space-between; position: relative; border-top: 1px solid var(--border-light); padding-top: 14px; margin-top: 4px; }
.platform-users { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.platform-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); animation: pulse 2s ease infinite; flex-shrink: 0; }
.platform-btn {
  font-size: 12px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 4px; transition: var(--transition);
  padding: 6px 14px; border-radius: var(--radius-md);
  background: var(--bg-primary-soft); border: 1px solid var(--border-glow);
}
.platform-card:hover .platform-btn { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateX(3px); }

/* ── 20. 教程资讯区 ── */
#content-section { padding: 88px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.content-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.content-panel::before { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.content-panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-primary-soft);
}
.content-panel-title { font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.content-list { padding: 6px 0; }
.content-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: var(--transition);
}
.content-item:last-child { border-bottom: none; }
.content-item:hover { background: var(--bg-primary-soft); }
.content-item-img { width: 76px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow-xs); }
.content-item-body { flex: 1; }
.content-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; line-height: 1.45; }
.content-item-title:hover { color: var(--primary); }
.content-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.content-item-tag { font-size: 11px; color: var(--primary); font-weight: 600; background: var(--bg-primary-soft); padding: 2px 8px; border-radius: var(--radius-full); }
.content-item-time { font-size: 11px; color: var(--text-muted); }
.content-item-reads { font-size: 11px; color: var(--text-muted); }

/* ── 21. 中部广告 ── */
.ad-middle {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid rgba(245,158,11,0.25);
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(249,115,22,0.06));
  position: relative; padding: 28px 36px;
  display: flex; align-items: center; gap: 28px;
  box-shadow: var(--shadow-md);
}
.ad-middle::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#f59e0b,#f97316,#ef4444); }
.ad-middle .ad-badge { top: 10px; right: 14px; }
.ad-middle-icon { font-size: 52px; flex-shrink: 0; }
.ad-middle-body { flex: 1; }
.ad-middle-body .title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.ad-middle-body .desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.ad-middle-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; flex-direction: column; }

/* ── 22. 合作伙伴 ── */
.ad-partners { padding: 36px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.ad-partners-label { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 22px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.partner-logo {
  color: var(--text-muted); font-size: 16px; font-weight: 800;
  letter-spacing: 0.5px; opacity: 0.5; transition: var(--transition); cursor: pointer;
  padding: 8px 16px; border-radius: var(--radius-md);
}
.partner-logo:hover { opacity: 1; color: var(--primary); background: var(--bg-primary-soft); transform: translateY(-2px); }

/* ── 23. 页脚 ── */
#footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 72px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 52px; }
.footer-brand .nav-logo { margin-bottom: 18px; display: inline-flex; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--bg-base); border: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-muted);
  transition: var(--transition); cursor: pointer;
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-primary-soft); transform: translateY(-2px); box-shadow: var(--shadow-color); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: var(--transition); display: flex; align-items: center; }
.footer-links a:hover { color: var(--primary); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom-left { font-size: 13px; color: var(--text-muted); }
.footer-bottom-right { display: flex; gap: 20px; }
.footer-bottom-right a { font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.footer-bottom-right a:hover { color: var(--primary); }
.footer-qr { display: flex; gap: 18px; }
.footer-qr-item { text-align: center; }
.footer-qr-box {
  width: 76px; height: 76px;
  background: var(--bg-primary-soft); border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  font-size: 11px; color: var(--primary); text-align: center; padding: 8px; line-height: 1.5;
  font-weight: 600;
}
.footer-qr-label { font-size: 11px; color: var(--text-muted); }

/* ── 24. 返回顶部 ── */
#back-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(99,102,241,0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 900;
}
#back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-top:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(99,102,241,0.5); }

/* ── 25. 面包屑 ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  padding: 18px 0; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-active); font-size: 12px; }
.breadcrumb-current { color: var(--text-secondary); font-weight: 500; }

/* ── 26. 侧边栏布局 ── */
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 308px; gap: 32px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.sidebar-panel::before { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.sidebar-panel-header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  background: var(--bg-primary-soft);
  display: flex; align-items: center; gap: 7px;
}
.sidebar-list { padding: 6px 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  cursor: pointer; transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--bg-primary-soft); }
.sidebar-item:hover .sidebar-item-text { color: var(--primary); }
.sidebar-item-index { font-size: 12px; font-weight: 700; color: var(--text-muted); min-width: 20px; }
.sidebar-item-text { font-size: 13px; color: var(--text-secondary); flex: 1; line-height: 1.45; transition: var(--transition); }
.sidebar-item-count { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.sidebar-item-rank {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg-base); color: var(--text-muted);
}
.sidebar-item-rank.rank-gold { background: #fef3c7; color: #d97706; }
.sidebar-item-rank.rank-silver { background: #f1f5f9; color: #64748b; }
.sidebar-item-rank.rank-bronze { background: #fff7ed; color: #ea580c; }

/* ── 27. 提示词详情页 ── */
.detail-page { padding: calc(var(--nav-h) + 16px) 0 88px; }
.prompt-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.prompt-card::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); }
.prompt-card-header { padding: 28px 32px; border-bottom: 1px solid var(--border-light); background: var(--bg-primary-soft); }
.prompt-card-title { font-size: 26px; font-weight: 800; color: var(--text-primary); margin-bottom: 14px; line-height: 1.3; letter-spacing: -0.5px; }
.prompt-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.prompt-platforms { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.platform-tag-item { padding: 4px 14px; border-radius: var(--radius-full); border: 1.5px solid; font-size: 12px; font-weight: 600; }
.prompt-box-wrap { padding: 28px 32px; }
.prompt-box-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.prompt-box {
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  font-size: 14px; line-height: 1.9;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono','Consolas',monospace;
  position: relative; margin-bottom: 18px;
  min-height: 120px;
  box-shadow: var(--shadow-xs);
}
.prompt-box em { color: var(--primary); font-style: normal; font-weight: 600; }
.prompt-box strong { color: var(--accent); font-weight: normal; }
.prompt-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-copy {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none;
  padding: 11px 26px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 3px 14px rgba(99,102,241,0.35);
  transition: var(--transition);
}
.btn-copy:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(99,102,241,0.45); }
.btn-copy.copied { background: linear-gradient(135deg, var(--accent-green), #059669); box-shadow: 0 4px 14px rgba(16,185,129,0.35); }
.btn-share { padding: 10px 20px; }
.prompt-params { padding: 0 32px 28px; }
.prompt-params-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.prompt-tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-param-tag {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-base); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full); padding: 6px 14px;
  font-size: 13px; color: var(--text-secondary);
}
.prompt-param-tag .tag-key { color: var(--text-muted); font-size: 12px; }
.prompt-param-tag .tag-val { color: var(--primary); font-weight: 600; }
.usage-steps { padding: 28px 32px; border-top: 1px solid var(--border-light); }
.usage-steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.step-list { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 16px; }
.step-num {
  min-width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  box-shadow: 0 3px 10px rgba(99,102,241,0.3);
}
.step-body .step-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.step-body .step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }
.showcase-effect { padding: 28px 32px; border-top: 1px solid var(--border-light); }
.showcase-effect h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.effect-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.effect-img-wrap { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4; cursor: pointer; position: relative; box-shadow: var(--shadow-md); }
.effect-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.effect-img-wrap:hover img { transform: scale(1.06); }
.faq-section { padding: 28px 32px; border-top: 1px solid var(--border-light); }
.faq-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-base); border: 1.5px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--border-glow); }
.faq-item.open { border-color: var(--primary); }
.faq-question { padding: 16px 20px; font-size: 14px; font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 20px; color: var(--text-muted); transition: var(--transition); line-height: 1; }
.faq-item.open .faq-question::after { content: '−'; color: var(--primary); transform: rotate(0deg); }
.faq-answer { padding: 0 20px 16px; font-size: 13px; color: var(--text-secondary); line-height: 1.8; display: none; border-top: 1px solid var(--border-light); padding-top: 14px; }
.faq-item.open .faq-answer { display: block; }

/* ── 28. 专题页 ── */
.topic-page { padding: calc(var(--nav-h) + 16px) 0 88px; }
.topic-hero {
  background: linear-gradient(135deg, var(--bg-primary-soft) 0%, rgba(139,92,246,0.06) 100%);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-2xl);
  padding: 44px 52px;
  margin-bottom: 40px;
  display: flex; align-items: center; gap: 36px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.topic-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); }
.topic-hero::after { content: ''; position: absolute; top: -50%; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,0.08), transparent); }
.topic-hero-cover { width: 110px; height: 110px; border-radius: var(--radius-lg); object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow-lg); }
.topic-hero-body { flex: 1; position: relative; z-index: 1; }
.topic-hero-body h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); letter-spacing: -0.5px; }
.topic-hero-body .desc { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 18px; }
.topic-hero-stats { display: flex; gap: 28px; }
.topic-stat { text-align: center; }
.topic-stat-num { font-size: 24px; font-weight: 800; color: var(--primary); }
.topic-stat-label { font-size: 12px; color: var(--text-muted); }
.filter-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-tab { padding: 7px 18px; border-radius: var(--radius-full); border: 1.5px solid var(--border-light); font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: var(--transition); background: var(--bg-surface); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(99,102,241,0.3); }
.filter-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); background: var(--bg-primary-soft); }
.prompt-list-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.prompt-list-card,
.prompt-list-item {
  background: var(--bg-card); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 20px;
  cursor: pointer; transition: var(--transition);
  display: flex; gap: 16px; align-items: center;
  box-shadow: var(--shadow-card);
  text-decoration: none; color: inherit;
}
.prompt-list-card:hover,
.prompt-list-item:hover { border-color: var(--border-glow); transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.prompt-list-index {
  min-width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--bg-primary-soft); border: 1.5px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--primary); flex-shrink: 0;
  transition: var(--transition);
}
.prompt-list-card:hover .prompt-list-index { background: var(--primary); color: #fff; border-color: var(--primary); }
.prompt-list-body { flex: 1; min-width: 0; }
.prompt-list-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; }
.prompt-list-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }
.prompt-list-footer { display: flex; align-items: center; justify-content: space-between; }
.prompt-list-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 29. 工具导航页 ── */
.tools-page { padding: calc(var(--nav-h) + 16px) 0 88px; }
.tools-category-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.cat-tab { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-md); border: 1.5px solid var(--border-light); font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: var(--transition); background: var(--bg-surface); }
.cat-tab .cat-icon { font-size: 18px; }
.cat-tab.active { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08)); border-color: var(--primary); color: var(--primary); font-weight: 700; box-shadow: 0 2px 10px rgba(99,102,241,0.15); }
.cat-tab:hover:not(.active) { border-color: var(--border-active); color: var(--primary); background: var(--bg-primary-soft); }
.tools-recommended {
  background: linear-gradient(135deg, rgba(245,158,11,0.07), rgba(249,115,22,0.07));
  border: 1.5px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-lg); padding: 20px 26px;
  margin-bottom: 32px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.tools-recommended-badge { background: linear-gradient(135deg, var(--accent-amber), #f97316); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: var(--radius-full); white-space: nowrap; box-shadow: 0 3px 10px rgba(245,158,11,0.35); }
.tools-recommended-text { flex: 1; font-size: 14px; color: var(--text-secondary); }
.tools-recommended-text strong { color: var(--text-primary); }
.tools-list-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.tool-list-card {
  background: var(--bg-card); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 22px;
  cursor: pointer; transition: var(--transition);
  display: flex; gap: 18px;
  box-shadow: var(--shadow-card);
}
.tool-list-card:hover { border-color: var(--border-glow); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.tool-list-logo { width: 54px; height: 54px; border-radius: var(--radius-md); font-size: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.tool-list-body { flex: 1; min-width: 0; }
.tool-list-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.tool-list-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.tool-list-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }
.tool-list-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tool-list-crowd { font-size: 12px; color: var(--text-muted); }
.tool-list-scenes { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-scene { font-size: 11px; padding: 3px 10px; background: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius-full); color: var(--text-muted); }
.tool-list-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-light); }
.tool-visit-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  padding: 7px 18px; border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-md); transition: var(--transition);
  background: var(--bg-primary-soft);
}
.tool-visit-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-color); }

/* ── 30. 文章详情页 ── */
.article-page { padding: calc(var(--nav-h) + 16px) 0 88px; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 32px; font-weight: 800; color: var(--text-primary); line-height: 1.3; margin-bottom: 18px; letter-spacing: -0.5px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.article-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.article-cover { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-xl); margin-bottom: 36px; border: 1.5px solid var(--border-light); box-shadow: var(--shadow-lg); }
.article-content { font-size: 16px; line-height: 1.9; color: var(--text-secondary); }
.article-content h2 { font-size: 22px; font-weight: 800; color: var(--text-primary); margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border-light); position: relative; }
.article-content h2::before { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.article-content h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 30px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content strong { color: var(--text-primary); font-weight: 700; }
.article-content em { color: var(--primary); font-style: normal; }
.article-content ul, .article-content ol { margin: 16px 0 22px 22px; }
.article-content li { margin-bottom: 10px; }
.article-content ul li::before { content: '▸ '; color: var(--primary); font-weight: 700; }
.article-content img { width: 100%; border-radius: var(--radius-xl); margin: 28px 0; border: 1.5px solid var(--border-light); box-shadow: var(--shadow-lg); }
.article-blockquote { border-left: 4px solid var(--primary); background: var(--bg-primary-soft); padding: 18px 22px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 28px 0; color: var(--text-secondary); line-height: 1.8; box-shadow: var(--shadow-xs); }
.article-code { background: var(--bg-surface); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px; font-family: 'JetBrains Mono','Consolas',monospace; font-size: 14px; color: var(--primary); overflow-x: auto; margin: 22px 0; line-height: 1.85; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .article-code { background: #0a0f1e; }
.article-tags-wrap { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 26px; border-top: 1.5px solid var(--border-light); flex-wrap: wrap; }
.article-tags-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.article-tag { padding: 5px 14px; border-radius: var(--radius-full); background: var(--bg-base); border: 1.5px solid var(--border-light); font-size: 12px; color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.article-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-primary-soft); }
.related-articles { margin-top: 52px; }
.related-articles h3 { font-size: 22px; font-weight: 800; margin-bottom: 22px; color: var(--text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.related-card { background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-card); }
.related-card:hover { border-color: var(--border-glow); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.related-card-img { width: 100%; height: 130px; object-fit: cover; }
.related-card-body { padding: 14px 16px; }
.related-card-body h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; line-height: 1.45; }
.related-card-meta { font-size: 12px; color: var(--text-muted); }
.comment-section { margin-top: 52px; }
.comment-section h3 { font-size: 22px; font-weight: 800; margin-bottom: 26px; color: var(--text-primary); }
.comment-input-wrap { background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-card); }
.comment-textarea { width: 100%; background: var(--bg-base); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); padding: 16px 18px; font-size: 14px; color: var(--text-primary); resize: none; height: 110px; outline: none; transition: var(--transition); line-height: 1.7; }
.comment-textarea::placeholder { color: var(--text-muted); }
.comment-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.comment-submit { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.comment-char-count { font-size: 12px; color: var(--text-muted); }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); transition: var(--transition); }
.comment-item:hover { border-color: var(--border-glow); }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; }
.comment-user-meta .username { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.comment-user-meta .time { font-size: 12px; color: var(--text-muted); }
.comment-content { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.comment-footer { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.comment-action { font-size: 12px; color: var(--text-muted); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 4px; }
.comment-action:hover { color: var(--primary); }

/* ── 31. 动画 ── */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 滚动动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── 32. Toast ── */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 14px; font-weight: 600;
  padding: 13px 28px; border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(99,102,241,0.4);
  opacity: 0; visibility: hidden;
  transition: all 0.32s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9999; white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ── 33. 移动端菜单 ── */
.nav-overlay {
  position: fixed; inset: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  z-index: 999;
  display: flex; flex-direction: column;
  padding: 20px 24px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--border-light);
}
.nav-overlay.open { transform: translateX(0); }
.nav-overlay-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.nav-overlay-close { font-size: 20px; color: var(--text-secondary); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--bg-base); border: 1.5px solid var(--border-light); transition: var(--transition); }
.nav-overlay-close:hover { border-color: var(--accent-rose); color: var(--accent-rose); }
.nav-overlay-search { display: flex; align-items: center; gap: 8px; background: var(--bg-base); border: 1.5px solid var(--border-light); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 18px; }
.nav-overlay-search input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 15px; flex: 1; }
.nav-overlay-menu { display: flex; flex-direction: column; gap: 4px; }
.nav-overlay-item { padding: 14px 18px; border-radius: var(--radius-md); font-size: 16px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: var(--transition); border: 1.5px solid transparent; }
.nav-overlay-item:hover, .nav-overlay-item.active { background: var(--bg-primary-soft); border-color: var(--border-glow); color: var(--primary); font-weight: 600; }
.nav-overlay-btns { display: flex; gap: 12px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border-light); }
.nav-overlay-btns .btn { flex: 1; padding: 13px; }

/* ── 34. 分割线 ── */
.divider { height: 1px; background: var(--border-light); margin: 44px 0; }

/* ── 35. 响应式 ── */
@media (max-width: 1200px) {
  .tools-grid { grid-template-columns: repeat(3,1fr); }
  .platforms-grid { grid-template-columns: repeat(3,1fr); }
  .showcase-grid { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { display: none; }
}
@media (max-width: 1024px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2,1fr); }
  .tools-grid { grid-template-columns: repeat(2,1fr); }
  .topics-grid { grid-template-columns: repeat(3,1fr); }
  .params-row { grid-template-columns: repeat(2,1fr); }
  .rankings-grid { grid-template-columns: 1fr; gap: 16px; }
  .content-grid { grid-template-columns: 1fr; }
  .effect-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .nav-menu, .nav-search, .btn-login { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-right { gap: 8px; }
  .btn-register { padding: 7px 14px; font-size: 12px; }
  .hero-title { font-size: 34px; letter-spacing: -1px; }
  .hero-stats { flex-direction: row; gap: 0; padding: 16px 20px; }
  .hero-stat { padding: 0 16px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-div { height: 36px; }
  .hero-search-top { padding: 16px 16px 10px; gap: 10px; }
  .hero-search-top textarea { min-height: 80px; font-size: 15px; }
  .hero-search-icon-area { width: 34px; height: 34px; font-size: 17px; }
  .hero-search-bottom { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 16px; }
  .hero-search-hint { justify-content: center; }
  .btn-generate { width: 100%; justify-content: center; padding: 14px 20px; font-size: 16px; }
  .params-row { grid-template-columns: 1fr; }
  .params-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .params-body { padding: 20px 18px; }
  .params-footer { flex-direction: column; gap: 16px; }
  .params-preview { width: 100%; }
  .tools-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .topics-grid { grid-template-columns: repeat(2,1fr); }
  .showcase-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .platforms-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .topic-hero { flex-direction: column; padding: 28px 24px; }
  .topic-hero-cover { width: 80px; height: 80px; }
  .prompt-list-grid { grid-template-columns: 1fr; }
  .tools-list-grid { grid-template-columns: 1fr; }
  .prompt-card-header { padding: 22px 20px; }
  .prompt-card-title { font-size: 20px; }
  .prompt-box-wrap { padding: 20px; }
  .prompt-params, .usage-steps, .showcase-effect, .faq-section { padding: 22px 20px; }
  .effect-grid { grid-template-columns: repeat(3,1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .article-cover { height: 220px; }
  .article-header h1 { font-size: 22px; }
  .section-header-flex { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ad-banner { flex-direction: column; }
  .ad-middle { flex-direction: column; text-align: center; padding: 24px 20px; }
  .ad-middle-actions { flex-direction: row; }
  .hero-stats { overflow-x: auto; }
  .hero-stat-div { display: none; }
  .hero-stats { gap: 16px; background: none; border: none; backdrop-filter: none; padding: 0; flex-wrap: wrap; justify-content: center; }
  .hero-stat { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-md); padding: 14px 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .tools-category-nav { gap: 6px; }
  .params-scenario-tabs { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2,1fr); }
  .showcase-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; letter-spacing: -1px; }
  .effect-grid { grid-template-columns: repeat(2,1fr); }
  .rankings-grid { grid-template-columns: 1fr; }
  .platform-card { padding: 16px; }
  .platform-logo-img { width: 42px; height: 42px; }
  .platform-meta h3 { font-size: 14px; }
  .platform-desc { font-size: 12px; }
  .platform-scenes { display: none; }
  .hero-stats { flex-direction: column; gap: 0; }
  .hero-stat-div { width: 80%; height: 1px; margin: 4px auto; }
}

/* ── 36. 增强UI效果 ── */

/* 卡片内发光线条（hover） */
.tool-card::after, .topic-card::after, .record-item::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0; transition: opacity 0.3s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tool-card:hover::after, .topic-card:hover::after, .record-item:hover::after { opacity: 1; }

/* 工具卡片悬停光晕背景 */
.tool-card:hover { background: var(--bg-card-hover); }

/* 平台卡片顶部彩条 */
.platform-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: height 0.25s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.platform-card:hover::after { height: 3px; }

/* Hero标题渐变动画 */
.hero-title .grad {
  background: linear-gradient(270deg, #a5f3fc, #c4b5fd, #fde68a, #a5f3fc);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradFlow 4s ease infinite;
}
@keyframes gradFlow { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

/* 数字计数加粗强调 */
.hero-stat-num { font-feature-settings: 'tnum'; }

/* 按钮点击波纹 */
.btn-primary, .btn-generate {
  position: relative; overflow: hidden;
}

/* 图片hover缩放 */
.topic-card-cover img, .tool-card-img {
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.topic-card:hover .topic-card-cover img { transform: scale(1.06); }

/* rank-item 交互提升 */
.rank-item { transition: var(--transition); border-radius: var(--radius-md); padding: 10px 12px; }
.rank-item:hover { background: var(--bg-primary-soft); transform: translateX(4px); }
.rank-no { font-weight: 900; font-size: 16px; }

/* Mobile nav优化 */
@media (max-width: 768px) {
  .theme-toggle { width: 36px; height: 36px; font-size: 16px; }
  .btn-register { display: none; }
  #navbar .btn-register { display: block; }
  .nav-right { gap: 6px; }
  /* 平台卡片移动端 */
  .platforms-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .platform-scenes { gap: 4px; }
  .platform-scene { font-size: 10px; padding: 2px 8px; }
  /* Hero搜索框 */
  .hero-search-wrap { max-width: 100%; }
  .hero-inner { padding: 70px 0 50px; }
  .hero-badge { font-size: 12px; padding: 6px 16px; }
}

/* 节头部动效：标签hover */
.section-tag { cursor: default; }

/* 内容分区交替背景更明显 */
#tools-matrix { background: var(--bg-surface); }
#recent-records { background: var(--bg-base); }
#rankings { background: var(--bg-surface); }
#topics { background: var(--bg-base); }
#showcase { background: var(--bg-surface); }
#platforms { background: var(--bg-base); }
[data-theme="dark"] #tools-matrix,
[data-theme="dark"] #rankings,
[data-theme="dark"] #showcase { background: var(--bg-surface); }
[data-theme="dark"] #recent-records,
[data-theme="dark"] #topics,
[data-theme="dark"] #platforms { background: var(--bg-base); }

/* 工具卡片图片圆角 */
.tool-card-img { border-radius: 0; }

/* 渐入动画延迟 stagger */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }
.reveal:nth-child(5) { transition-delay: 240ms; }
.reveal:nth-child(6) { transition-delay: 300ms; }

/* 平台logo图片阴影hover */
.platform-logo-img {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.platform-card:hover .platform-logo-img {
  box-shadow: 0 8px 24px rgba(99,102,241,0.25);
}

/* 回到顶部按钮增强 */
#back-top {
  box-shadow: var(--shadow-color);
}
#back-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-color-lg);
}

/* ── 37. 新增交互状态 ── */

/* 加载更多按钮状态 */
.btn-load-more:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none !important;
}
.btn-load-more:not(:disabled):hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-color);
}

/* 收藏按钮已收藏状态 */
.btn-favorite {
  transition: var(--transition);
}

/* 工具分类tab过滤动画 */
.tool-list-card[style*="display: none"] { display: none !important; }

/* 评论输入框焦点 */
.comment-input-wrap:focus-within {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

/* 评论提交按钮 */
.btn-comment-submit:disabled {
  opacity: 0.6; cursor: not-allowed;
}

/* 登录/注册按钮hover反馈 */
.btn-login:hover { color: var(--primary); background: var(--bg-primary-soft); border-color: var(--border-glow); }
.btn-register:active { transform: scale(0.97); }

/* 页脚政策链接hover */
.footer-policy-link { cursor: pointer; }
.footer-policy-link:hover { color: var(--primary) !important; text-decoration: underline; }

/* 面包屑导航 */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  padding: calc(var(--nav-h) + 16px) 0 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-active); }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* 工具卡片内的 logo 样式 */
.tool-list-logo {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tool-list-card:hover .tool-list-logo {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: var(--shadow-color);
}

/* 侧边栏前3名排名样式 */
.sidebar-item:nth-child(1) .sidebar-item-index { color: #ef4444; }
.sidebar-item:nth-child(2) .sidebar-item-index { color: #f97316; }
.sidebar-item:nth-child(3) .sidebar-item-index { color: #eab308; }

/* 参数选择器动效 */
.param-opt:active { transform: scale(0.94); }
.param-opt.selected { animation: selectPop 0.18s ease; }
@keyframes selectPop { 0%{transform:scale(1)} 50%{transform:scale(1.08)} 100%{transform:scale(1)} }

/* 移动端优化 */
@media (max-width: 768px) {
  .comment-submit { flex-direction: column; align-items: flex-end; gap: 8px; }
  .tool-list-card { flex-direction: column; }
  .tool-list-logo { width: 100%; height: 48px; border-radius: var(--radius-md) var(--radius-md) 0 0; font-size: 22px; }
}

/* ── 38. UI交互补全 ── */

/* 导航当前页高亮 — 动态下划线 */
.nav-item.active-page {
  color: var(--primary) !important;
  position: relative;
}
.nav-item.active-page::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  animation: navUnderlineIn 0.3s ease;
}
@keyframes navUnderlineIn {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Hero 输入框聚焦光圈 */
.hero-input:focus {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2), 0 0 20px rgba(99,102,241,0.12);
  border-color: var(--primary) !important;
}
.hero-search-card:focus-within {
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(99,102,241,0.25), 0 0 40px rgba(99,102,241,0.1);
}

/* Hero 标签 active 按压效果 */
.hero-tag:active {
  transform: scale(0.93) !important;
  opacity: 0.8;
}
.hero-tag {
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s !important;
}

/* 通用按钮 active 按压 */
.btn:active {
  transform: scale(0.96) !important;
  box-shadow: none !important;
  filter: brightness(0.95);
}

/* 内容列表卡片图片 hover 缩放 */
.content-item { overflow: hidden; }
.content-item-img {
  overflow: hidden;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.content-item-img img {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.content-item:hover .content-item-img img {
  transform: scale(1.08);
}
.content-item:hover .content-item-title {
  color: var(--primary);
}
.content-item-title {
  transition: color 0.2s;
}

/* 相关推荐卡片图片 hover 缩放 */
.related-card { overflow: hidden; }
.related-card-img {
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.related-card-img img {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.related-card:hover .related-card-img img {
  transform: scale(1.08);
}
.related-card:hover .related-card-title {
  color: var(--primary);
}
.related-card-title { transition: color 0.2s; }

/* 专题卡片图片 hover 缩放 */
.topic-cover {
  overflow: hidden;
}
.topic-cover img {
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.topic-card:hover .topic-cover img {
  transform: scale(1.06);
}

/* 排行榜条目 hover 左边框高亮 */
.rank-item {
  border-left: 3px solid transparent;
  transition: background 0.2s, transform 0.2s, border-color 0.2s !important;
  padding-left: calc(var(--space-md) - 3px);
}
.rank-item:hover {
  border-left-color: var(--primary);
  background: var(--card-bg) !important;
}
.rank-item:active {
  transform: translateX(4px) scale(0.99);
}

/* 最近生成记录 active 态 */
.record-item:active {
  transform: translateX(3px) scale(0.995) !important;
  background: color-mix(in srgb, var(--primary) 5%, var(--card-bg));
}
.record-item { cursor: pointer; }

/* 工具列表卡片访问按钮箭头动效 */
.tool-list-card:hover .btn-visit-tool {
  padding-right: 20px;
}
.btn-visit-tool {
  transition: padding-right 0.25s ease, background 0.2s, color 0.2s !important;
  position: relative;
}
.btn-visit-tool::after {
  content: '→';
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  font-size: 14px;
}
.tool-list-card:hover .btn-visit-tool::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* 广告位商业感强化 */
.ad-banner {
  position: relative;
  overflow: hidden;
}
.ad-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-amber), var(--primary));
  background-size: 300% 300%;
  animation: adBorderSpin 4s linear infinite;
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: 0;
  opacity: 0.6;
}
.ad-banner > * { position: relative; z-index: 1; }
@keyframes adBorderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 广告中间卡片 shimmer 扫光 */
.ad-middle {
  position: relative;
  overflow: hidden;
}
.ad-middle::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: adShimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes adShimmer {
  0%   { left: -100%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}

/* CTA 按钮更具商业感 */
.btn-cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 15px rgba(99,102,241,0.4);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.btn-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-cta-primary:hover::before { opacity: 1; }
.btn-cta-primary:hover {
  box-shadow: 0 6px 24px rgba(99,102,241,0.55);
  transform: translateY(-2px);
}

/* 评论点赞 active 态 */
.comment-like-btn:active {
  transform: scale(1.3);
  transition: transform 0.1s;
}
.comment-like-btn {
  transition: color 0.2s, transform 0.2s;
}

/* 图片卡片（showcase / 展示区）hover 增强 */
.showcase-item {
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s !important;
}
.showcase-item:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 16px 48px rgba(99,102,241,0.22) !important;
}
.showcase-item .showcase-item-title {
  transition: color 0.2s;
}
.showcase-item:hover .showcase-item-title {
  color: var(--primary);
}

/* 平台卡片 hover 图标缩放 */
.platform-card:hover .platform-icon {
  transform: scale(1.15) rotate(-5deg);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.platform-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}

/* 移动端 nav 菜单打开状态动画优化 */
.nav-mobile-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-mobile-overlay.open {
  animation: mobileNavIn 0.3s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 标签切换过渡 */
.filter-tab, .rank-tab, .params-tab, .cat-tab {
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s !important;
}
.filter-tab:active, .rank-tab:active, .params-tab:active, .cat-tab:active {
  transform: scale(0.95);
}

/* 返回顶部按钮 hover 增强 */
.back-top:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(99,102,241,0.45) !important;
}
.back-top:active {
  transform: translateY(0) scale(0.9) !important;
}

/* 侧边栏推荐项 hover */
.sidebar-item {
  transition: background 0.2s, transform 0.2s;
  border-radius: var(--radius-sm);
}
.sidebar-item:hover {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  transform: translateX(3px);
}

/* 卡片内部的 badge hover */
.badge {
  transition: transform 0.2s, box-shadow 0.2s;
}
.tool-card:hover .badge, .topic-card:hover .badge {
  transform: scale(1.05);
}

/* ── 39. 首页精修 ── */

/* 覆盖旧 record-item::after 顶部高亮线（由左边 ::before 替代） */
.record-item::after { display: none !important; }
/* 覆盖旧的 hover transform 防止叠加 */
.record-item:hover { transform: translateX(4px) !important; }

/* Hero Badge 增强 */
.hero-badge-new {
  display: inline-flex; align-items: center;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 20px;
  margin-left: 8px; letter-spacing: 0.5px;
  vertical-align: middle;
}

/* Hero 标题双行布局 */
.hero-title-main {
  display: block;
  line-height: 1.1;
}
.hero-title-em {
  color: var(--text-primary);
  font-weight: 800;
}
.hero-title-sub {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 12px;
  letter-spacing: 0;
}
.hero-title-sub em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero 场景 Chips */
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 20px 0 0;
  justify-content: center;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  background: rgba(99,102,241,0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(99,102,241,0.15);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.hero-chip:hover {
  background: rgba(99,102,241,0.16);
  color: var(--primary);
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-chip-more {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  color: var(--primary);
  border-color: rgba(99,102,241,0.25);
}

/* Hero 搜索框 label */
.hero-search-label {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 0;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
}
.hero-search-label-icon { font-size: 16px; }
.hero-search-label-tip {
  margin-left: auto;
  font-size: 11px; font-weight: 400;
  color: var(--text-muted);
}

/* 生成按钮箭头 */
.btn-generate-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.25s ease;
}
.btn-generate:hover .btn-generate-arrow {
  transform: translateX(5px);
}

/* 搜索框信任保障行 */
.hero-search-assurance {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.85;
  flex-wrap: wrap;
}
.assurance-sep { color: var(--border-active); }

/* Hero stats 图标 */
.hero-stat-icon {
  font-size: 20px;
  margin-bottom: 4px;
  line-height: 1;
}

/* 参数 tab 图标 */
.params-tab-icon {
  margin-right: 4px;
  font-size: 14px;
}

/* 参数预览 live badge */
.params-preview-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #22c55e;
  margin-left: auto;
}
.params-preview-live .dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

/* 参数预览兼容平台 tag */
.params-preview-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px;
}
.params-preview-tag {
  font-size: 11px; padding: 3px 8px;
  border-radius: 20px;
  background: rgba(99,102,241,0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* 生成按钮下的用量提示 */
.params-gen-btn { position: relative; flex-direction: column; gap: 2px; }
.params-gen-count {
  display: block;
  font-size: 11px; font-weight: 400;
  opacity: 0.75;
}

/* 最近生成记录 — 数据感增强 */
.record-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.record-item:hover {
  background: color-mix(in srgb, var(--primary) 4%, var(--card-bg));
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.record-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: transform 0.2s;
  border-radius: 0 2px 2px 0;
}
.record-item:hover::before { transform: scaleY(1); }

.record-index-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.record-index { font-size: 11px; }
.record-index-1 { color: #ef4444; font-weight: 800; }
.record-index-2 { color: #f97316; font-weight: 800; }
.record-index-3 { color: #eab308; font-weight: 800; }
.record-index-line {
  width: 1px; height: 20px;
  background: var(--border);
}

/* 记录进度条 */
.record-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.record-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* 记录统计行 */
.record-stats-row {
  display: flex; gap: 10px;
  margin: 4px 0;
}
.record-stat { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
.record-stat-icon { font-size: 11px; }

/* 记录按钮 */
.record-btn {
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  padding: 6px 12px;
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.record-item:hover .record-btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* AI 展示区 — 图片比例统一 */
.showcase-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface);
}
.showcase-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.showcase-item:hover .showcase-img-wrap img {
  transform: scale(1.1);
}

/* 展示区平台徽章 */
.showcase-platform-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 11px; font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

/* 页脚品牌区增强 */
.footer-logo { margin-bottom: 12px; display: inline-flex; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin: 0 0 16px; }

.footer-brand-stats {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(99,102,241,0.06);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.footer-brand-stat {
  display: flex; flex-direction: column; align-items: center;
  flex: 1;
}
.footer-brand-stat strong {
  font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand-stat span { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.footer-brand-stat-sep {
  width: 1px; height: 28px;
  background: var(--border);
}

/* 页脚社交按钮增强 */
.footer-social {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.social-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 48px; height: 48px;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-bg);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.social-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
  text-decoration: none;
}
.social-icon { font-size: 18px; line-height: 1; }
.social-label { font-size: 10px; color: var(--text-muted); line-height: 1; }

/* 页脚 QR 增强 */
.footer-qr { display: flex; gap: 14px; }
.footer-qr-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-qr-box {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  position: relative;
  overflow: hidden;
}
.footer-qr-pattern {
  width: 48px; height: 48px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(99,102,241,0.15) 3px, rgba(99,102,241,0.15) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(99,102,241,0.15) 3px, rgba(99,102,241,0.15) 4px);
  border: 2px solid rgba(99,102,241,0.3);
  border-radius: 4px;
}
.footer-qr-pattern-2 {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(139,92,246,0.15) 3px, rgba(139,92,246,0.15) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(139,92,246,0.15) 3px, rgba(139,92,246,0.15) 4px);
  border-color: rgba(139,92,246,0.3);
}
.footer-qr-text {
  font-size: 9px; color: var(--text-muted);
  text-align: center; line-height: 1.3;
  position: absolute; bottom: 4px;
}
.footer-qr-label { font-size: 11px; color: var(--text-muted); }

/* 订阅栏 */
.footer-newsletter {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99,102,241,0.15);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-newsletter-text {
  flex: 1; min-width: 200px;
}
.footer-newsletter-text strong {
  display: block; font-size: 15px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
}
.footer-newsletter-text span { font-size: 13px; color: var(--text-muted); }
.footer-newsletter-form {
  display: flex; gap: 8px;
  flex-shrink: 0;
}
.footer-newsletter-input {
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 13px;
  width: 220px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.footer-newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.footer-newsletter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.footer-newsletter-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.footer-newsletter-btn:active { transform: scale(0.97); }

/* 页脚分割线 */
.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 20px;
}

/* 页脚底部增强 */
.footer-bottom-sep { color: var(--border-active); margin: 0 2px; }
.footer-bottom-left { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }

/* 合作伙伴区品牌感增强 */
.partner-logos {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.partner-logo {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.partner-logo:hover {
  color: var(--primary);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}

/* 教程资讯区 content-item 增强 */
.content-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.content-item:hover {
  border-color: var(--border);
  background: color-mix(in srgb, var(--primary) 3%, var(--card-bg));
}
.content-item-img {
  width: 72px; height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.content-item-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px; font-weight: 600;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
}
.content-item-reads {
  font-size: 11px; color: var(--text-muted);
}
.content-item-time { font-size: 11px; color: var(--text-muted); }
.content-item-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: 5px;
}

/* 工具矩阵 — 卡片图片 hover 统一 */
.tool-card-img {
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1) !important;
}
.tool-card:hover .tool-card-img {
  transform: scale(1.06);
}

/* 排行榜 rank-trend 颜色 */
.rank-trend.hot { color: #ef4444; font-weight: 800; }
.rank-trend.up  { color: #22c55e; font-weight: 700; }
.rank-trend     { font-size: 11px; }

/* 广告横幅 — 底部间距 */
.ad-section { margin-top: 24px; margin-bottom: 0; }

@media (max-width: 768px) {
  .hero-chips { gap: 6px; }
  .hero-chip { font-size: 12px; padding: 5px 11px; }
  .hero-search-label { padding: 10px 12px 0; }
  .hero-search-assurance { gap: 6px; font-size: 11px; }
  .footer-newsletter { flex-direction: column; gap: 14px; }
  .footer-newsletter-form { width: 100%; flex-direction: column; }
  .footer-newsletter-input { width: 100%; }
  .record-item { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .record-meta { grid-column: 2; }
  .record-btn { display: none; }
  .footer-brand-stats { display: none; }
}

/* ============================================================
   40. 内页样式 — Inner Pages (prompt-detail / topic / tools / article)
   ============================================================ */

/* ── 40-A. 内页顶部 Hero Banner ── */
.inner-hero {
  padding: 40px 0 32px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 8%, var(--bg-base)) 0%,
    color-mix(in srgb, var(--secondary) 5%, var(--bg-base)) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(99,102,241,0.07), transparent);
  pointer-events: none;
}
.inner-hero-prompt { border-bottom-color: rgba(99,102,241,0.15); }
.inner-hero .breadcrumb { margin-bottom: 20px; }
.inner-hero-body { display: flex; flex-direction: column; gap: 14px; }
.inner-hero-labels { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inner-hero-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0;
}
.inner-hero-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px 4px;
}
.inner-hero-meta-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-secondary);
}
.inner-hero-meta-sep { color: var(--border-active); font-size: 12px; margin: 0 2px; }
.meta-icon { font-size: 12px; }

/* ── 40-B. 提示词卡片增强 ── */
.prompt-card-type-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 12px;
}
.prompt-card-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-base));
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  letter-spacing: 0.3px;
}
.prompt-card-rating {
  display: inline-flex; align-items: center; gap: 5px;
}
.rating-stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.rating-score { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.rating-count { font-size: 12px; color: var(--text-muted); }

/* ── 40-C. 复制按钮 + 提示条 ── */
.btn-copy-main {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.btn-copy-main:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(99,102,241,0.4); }
.btn-copy-main:active { transform: translateY(0); opacity: 0.9; }
.btn-copy-icon { font-size: 16px; }
.prompt-copy-tip {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-base));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius-md);
  font-size: 12.5px; color: var(--text-secondary);
  line-height: 1.6;
}
.copy-tip-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* ── 40-D. 提示词 CTA 引导框 ── */
.prompt-cta-box {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  margin: 32px 0 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 6%, var(--card-bg)),
    color-mix(in srgb, var(--secondary) 4%, var(--card-bg)));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.prompt-cta-icon { font-size: 32px; flex-shrink: 0; }
.prompt-cta-body { flex: 1; min-width: 160px; }
.prompt-cta-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.prompt-cta-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ── 40-E. 侧边栏广告卡片 ── */
.sidebar-ad-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primary) 5%, var(--card-bg)),
    var(--card-bg));
  text-align: center;
  overflow: hidden;
}
.sidebar-ad-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}
.sidebar-ad-label {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; color: var(--text-muted);
  background: rgba(148,163,184,0.1);
  padding: 1px 6px; border-radius: 4px;
}
.sidebar-ad-icon { font-size: 36px; margin-bottom: 10px; }
.sidebar-ad-title { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
.sidebar-ad-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; text-align: left; }
.sidebar-ad-feat { font-size: 13px; color: var(--text-secondary); }
.sidebar-ad-offer {
  font-size: 12px; font-weight: 600;
  color: var(--accent-amber);
  background: color-mix(in srgb, var(--accent-amber) 8%, var(--bg-base));
  border: 1px dashed color-mix(in srgb, var(--accent-amber) 30%, transparent);
  border-radius: var(--radius-sm);
  padding: 6px 10px; margin-bottom: 14px;
}
.sidebar-ad-btn { width: 100%; display: block; text-align: center; }

/* ── 40-F. 侧边栏用户评价 ── */
.sidebar-social-proof { }
.sidebar-reviews { display: flex; flex-direction: column; gap: 14px; }
.sidebar-review-item {
  padding: 12px;
  background: color-mix(in srgb, var(--primary) 3%, var(--bg-base));
  border-radius: var(--radius-md);
  border-left: 3px solid color-mix(in srgb, var(--accent-amber) 60%, transparent);
}
.sidebar-review-stars { color: #f59e0b; font-size: 12px; margin-bottom: 6px; letter-spacing: 2px; }
.sidebar-review-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; font-style: italic; margin-bottom: 6px; }
.sidebar-review-author { font-size: 11px; color: var(--text-muted); }

/* ── 40-G. 相关推荐 Section ── */
.related-section { margin-top: 40px; }
.related-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.related-section-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0; }
.related-card-img-wrap {
  width: 100%; aspect-ratio: 16/10;
  overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--bg-base);
}
.related-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.related-card:hover .related-card-img { transform: scale(1.07); }
.related-card-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px; font-weight: 700;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-base));
  color: var(--primary);
}
.related-card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11.5px; color: var(--text-muted);
}

/* ── 40-H. 专题页 topic ── */
.topic-hero-img-wrap {
  position: relative;
  width: 100%; min-height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-base);
  flex-shrink: 0;
}
.topic-hero-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.topic-hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(139,92,246,0.15) 100%);
}
.topic-platform-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--primary) 8%, var(--card-bg));
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.topic-platform-tag:hover { color: var(--primary); border-color: rgba(99,102,241,0.35); }
.topic-stat-sep {
  width: 1px; height: 36px;
  background: var(--border);
  flex-shrink: 0;
  align-self: center;
}
.topic-filter-bar {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.topic-filter-label {
  font-size: 13px; color: var(--text-muted);
  white-space: nowrap; padding-top: 7px;
  flex-shrink: 0;
}
.topic-filter-bar .filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-filter-bar .filter-tab em {
  font-style: normal;
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 3px;
}
.topic-filter-bar .filter-tab.active em { color: rgba(255,255,255,0.75); }

/* ── 40-I. 提示词列表卡片增强 ── */
.prompt-list-index-1 {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 900 !important;
  font-size: 20px !important;
}
.prompt-list-preview {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 8px;
}
.prompt-list-preview span {
  display: inline-block;
  margin-left: 4px; margin-right: 2px;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-base));
  color: var(--accent);
}
.prompt-list-stats {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-muted);
}
.prompt-list-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-base));
  color: var(--primary);
  font-size: 16px;
  transition: background 0.2s, transform 0.25s;
  align-self: center;
}
.prompt-list-card:hover .prompt-list-arrow {
  background: var(--primary);
  color: #fff;
  transform: translateX(3px);
}

/* ── 40-J. 加载更多 ── */
.load-more-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 0 8px;
}
.btn-load-more {
  display: inline-flex; align-items: center; gap: 10px;
}
.load-more-count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-base));
  color: var(--primary);
}
.load-more-hint { font-size: 12px; color: var(--text-muted); }

/* ── 40-K. 工具导航页 ── */
.tools-page-header {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px; align-items: center;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.tools-page-stats {
  display: flex; align-items: center; gap: 0;
  margin-top: 16px; flex-wrap: wrap;
}
.tools-page-stat {
  display: flex; align-items: baseline; gap: 5px;
  padding: 0 20px 0 0;
  font-size: 13px; color: var(--text-secondary);
}
.tools-page-stat strong { font-size: 20px; font-weight: 800; color: var(--primary); }
.tools-page-stat-sep {
  width: 1px; height: 28px;
  background: var(--border);
  margin-right: 20px;
}
.tools-search-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tools-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.tools-search-icon { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }
.tools-search-input {
  flex: 1; border: none; outline: none;
  background: transparent; font-size: 14px;
  color: var(--text-primary);
}
.tools-search-input::placeholder { color: var(--text-muted); }
.tools-search-hot {
  margin-top: 10px;
  font-size: 12px; color: var(--text-muted);
}
.tools-search-hot a {
  display: inline-block;
  margin-left: 4px; padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-base));
  color: var(--primary);
  text-decoration: none;
  transition: background 0.18s;
}
.tools-search-hot a:hover { background: color-mix(in srgb, var(--primary) 15%, var(--bg-base)); }

/* 工具卡片 logo 增强 */
.tool-logo-emoji {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* 工具名称行 + 评分 */
.tool-list-name-wrap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.tool-list-rating {
  display: inline-flex; align-items: center; gap: 4px;
}
.rating-stars-sm { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.rating-val { font-size: 12px; font-weight: 700; color: var(--text-secondary); }

/* 徽章行 */
.tool-list-badges {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 6px;
}

/* 价格徽章 */
.tool-price-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.3px;
}
.tool-price-free {
  background: color-mix(in srgb, var(--accent-green) 12%, var(--bg-base));
  color: var(--accent-green);
  border: 1px solid color-mix(in srgb, var(--accent-green) 25%, transparent);
}
.tool-price-freemium {
  background: color-mix(in srgb, var(--accent-amber) 10%, var(--bg-base));
  color: #d97706;
  border: 1px solid color-mix(in srgb, var(--accent-amber) 25%, transparent);
}
.tool-price-paid {
  background: color-mix(in srgb, var(--accent-rose) 10%, var(--bg-base));
  color: var(--accent-rose);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 25%, transparent);
}

/* 人群标签 */
.tool-list-crowd {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 6px;
}

/* 工具卡片 footer chips */
.tool-list-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tool-list-footer-info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tool-info-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px; font-weight: 500;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-base));
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tool-access-ok {
  background: color-mix(in srgb, var(--accent-green) 8%, var(--bg-base));
  color: var(--accent-green);
  border-color: color-mix(in srgb, var(--accent-green) 20%, transparent);
}
.tool-access-warn {
  background: color-mix(in srgb, var(--accent-amber) 8%, var(--bg-base));
  color: #d97706;
  border-color: color-mix(in srgb, var(--accent-amber) 20%, transparent);
}
.btn-visit-tool { white-space: nowrap; flex-shrink: 0; }

/* ── 40-L. 文章页 article ── */
.article-header { margin-bottom: 28px; }
.article-header-labels {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.article-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800; line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0 0 18px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--primary) 4%, var(--card-bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.article-author-info { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.article-author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}
.article-author-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.article-author-role { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.article-meta-divider {
  width: 1px; height: 36px;
  background: var(--border);
  flex-shrink: 0;
}
.article-meta-items {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px 14px;
}
.article-meta-item { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }

/* 文章内联目录 */
.article-toc-toggle {
  padding: 14px 18px;
  background: color-mix(in srgb, var(--accent) 5%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px;
}
.article-toc-toggle > span { display: block; margin-bottom: 10px; }
.article-toc-inline {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.article-toc-inline a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-base));
  color: var(--primary);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.article-toc-inline a:hover {
  background: var(--primary);
  color: #fff;
}

/* 文章评分 */
.article-rating-box {
  margin: 32px 0;
  padding: 24px;
  text-align: center;
  background: color-mix(in srgb, var(--primary) 4%, var(--card-bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.article-rating-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.article-rating-stars {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 8px;
}
.article-star {
  font-size: 28px; color: var(--border);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.article-star:hover, .article-star.active { color: #f59e0b; transform: scale(1.15); }
.article-rating-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.article-rating-current { font-size: 12px; color: var(--text-secondary); }

/* 分享栏 */
.article-share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 20px 0;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--accent-green) 4%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--accent-green) 12%, transparent);
  border-radius: var(--radius-md);
}
.article-share-label { font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.article-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.article-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.article-share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* 文章 CTA 框 */
.article-cta-box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px;
  margin: 20px 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 6%, var(--card-bg)),
    color-mix(in srgb, var(--secondary) 4%, var(--card-bg)));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius-lg);
}
.article-cta-icon { font-size: 32px; flex-shrink: 0; }
.article-cta-body { flex: 1; min-width: 140px; }
.article-cta-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.article-cta-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* 侧边栏目录面板 */
.sidebar-toc-panel { position: sticky; top: 80px; }
.sidebar-toc {
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-toc-item {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
  border-left: 2px solid transparent;
}
.sidebar-toc-item:hover {
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-base));
  color: var(--primary);
  padding-left: 14px;
  border-left-color: var(--primary);
}
.sidebar-toc-item.active {
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-base));
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}

/* ── 40-M. 面包屑标准化 ── */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--text-muted); text-decoration: none;
  transition: color 0.18s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-active); }
.breadcrumb-current { color: var(--text-secondary); font-weight: 500; }

/* ── 40-N. 响应式适配 ── */
@media (max-width: 768px) {
  .inner-hero { padding: 28px 0 22px; }
  .inner-hero-title { font-size: 22px; }
  .inner-hero-meta { gap: 4px 2px; }
  .tools-page-header { grid-template-columns: 1fr; gap: 20px; }
  .tools-page-header-search { width: 100%; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .article-meta-divider { width: 40px; height: 1px; }
  .article-toc-inline { }
  .prompt-cta-box { flex-direction: column; text-align: center; }
  .article-cta-box { flex-direction: column; text-align: center; }
  .topic-hero-img-wrap { width: 80px !important; height: 80px !important; }
  .sidebar-toc-panel { position: static; }
  .tools-page-stats { gap: 0; }
  .article-share-bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   41. 验收修复 & 最终视觉精修
   ============================================================ */

/* ── 41-A. 关键 Bug 修复 ── */

/* topic-hero-img-wrap: 在 flex 布局内应为固定尺寸列，不能是 100% 宽 */
.topic-hero-img-wrap {
  width: 160px !important;
  height: 160px !important;
  min-height: unset !important;
  flex-shrink: 0 !important;
  position: relative;
}

/* topic-hero 内缺失的类 */
.topic-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 12px;
}
.topic-hero-category {
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-base));
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}
.topic-hero-actions { display: flex; align-items: center; gap: 8px; }
.topic-hero-platforms {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.topic-stat-icon { font-size: 18px; margin-bottom: 4px; }

/* tools-page-header 栏目分区 */
.tools-page-header-body { }
.tools-page-header-search { }

/* ── 41-B. 全局按钮高度与行高标准化 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  line-height: 1;
  white-space: nowrap;
}
.btn-sm { min-height: 32px; }
.btn-lg { min-height: 48px; }

/* ── 41-C. 卡片阴影和圆角标准化 ── */
.card,
.prompt-card,
.sidebar-panel,
.prompt-list-card,
.tool-list-card,
.rank-panel,
.related-card,
.sidebar-ad-card {
  border-radius: var(--radius-lg);
}
.topic-card { border-radius: var(--radius-xl); }

/* 统一 hover 卡片阴影值，避免各处不一致 */
.card:hover,
.topic-card:hover,
.platform-card:hover {
  box-shadow: var(--shadow-color);
}

/* ── 41-D. 内页顶部面包屑间距标准化 ── */
.detail-page > .inner-hero + .container,
.article-page > .container > .breadcrumb,
.topic-page > .container > .breadcrumb,
.tools-page > .container > .breadcrumb {
  margin-top: 24px;
}

/* ── 41-E. prompt-detail 效果图区增强 ── */
.effect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── 41-F. 侧边栏 sidebar-item 悬停一致性 ── */
.sidebar-item {
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.sidebar-item:hover {
  background: color-mix(in srgb, var(--primary) 5%, var(--bg-base));
  color: var(--primary);
  padding-left: 14px;
}
.sidebar-item-index:first-child ~ .sidebar-item-text { }

/* ── 41-G. 文章页宽度优化 ── */
.article-main { max-width: 780px; }
.article-page .layout-with-sidebar {
  grid-template-columns: minmax(0, 1fr) 280px;
}

/* ── 41-H. topic-page 提示词列表一列布局（移动端） ── */
@media (max-width: 640px) {
  .prompt-list-grid { grid-template-columns: 1fr; }
  .effect-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-page-header { padding: 20px 0 16px; }
  .topic-hero { flex-direction: column; padding: 24px; gap: 20px; }
  .topic-hero-img-wrap { width: 80px !important; height: 80px !important; }
}

/* ── 41-I. 导航栏搜索框在所有页面宽度一致 ── */
.nav-search {
  min-width: 160px;
}

/* ── 41-J. view-more 链接统一风格 ── */
.view-more {
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  opacity: 0.8;
  transition: opacity 0.18s, transform 0.18s;
  display: inline-flex; align-items: center; gap: 3px;
}
.view-more:hover { opacity: 1; transform: translateX(2px); }

/* ── 41-K. 空状态字体色一致 ── */
.tools-search-hot,
.load-more-hint,
.prompt-copy-tip {
  user-select: none;
}

/* ── 41-L. about/privacy/terms/disclaimer 页面优化 ── */
main.page-content { padding: 60px 0 80px; }

/* ── 41-M. 间距节律收尾 ── */
section + section { margin-top: 0; }
.section-header { margin-bottom: 40px; }
.section-header .section-tag { margin-bottom: 10px; }

/* ── 41-N. 暗色模式下 inner-hero 背景 ── */
[data-theme="dark"] .inner-hero {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 10%, var(--bg-base)) 0%,
    color-mix(in srgb, var(--secondary) 6%, var(--bg-base)) 100%);
}
[data-theme="dark"] .prompt-cta-box,
[data-theme="dark"] .article-cta-box {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 8%, var(--bg-base)),
    color-mix(in srgb, var(--secondary) 5%, var(--bg-base)));
}

/* ── 41-O. 图片加载占位（避免无图时布局跳动） ── */
.showcase-img-wrap,
.related-card-img-wrap,
.topic-card-cover,
.effect-img-wrap,
.topic-hero-img-wrap {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 5%, var(--bg-base)),
    color-mix(in srgb, var(--secondary) 3%, var(--bg-base)));
}

/* ── 41-P. footer-policy-link 间距 ── */
.footer-policy-link {
  display: inline-flex; align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.18s;
}
.footer-policy-link:hover { color: var(--primary); }

/* ── 41-Q. 工具场景标签（tool-scene）补丁 ── */
.tool-scene {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: color-mix(in srgb, var(--primary) 7%, var(--bg-base));
  color: var(--text-secondary);
  margin: 2px 2px 0 0;
}

/* ── 41-R. 最终间距收尾 ── */
.detail-page .container { padding-top: 32px; padding-bottom: 64px; }
.topic-page .container { padding-top: 28px; padding-bottom: 64px; }
.tools-page .container { padding-top: 0; padding-bottom: 64px; }
.article-page .container { padding-top: 24px; padding-bottom: 64px; }

/* ============================================================
   42. 商业级完善 — 内页导航栏 · 页脚 · 搜索 · 响应式
   ============================================================ */

/* ── 42-A. 内页导航栏：默认显示背景（非Hero页，透明Nav不合适） ── */
body.detail-page #navbar,
body.topic-page #navbar,
body.tools-page #navbar,
body.article-page #navbar,
body.about-page #navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

/* 内页 body 本身不需要 padding（因为 .X-page class 也被 body 继承到了，需重置） */
body.detail-page,
body.topic-page,
body.tools-page,
body.article-page,
body.about-page,
body.article-list-page {
  padding: 0 !important;
}

/* 内页 main 顶部撑开，避免被 fixed 导航遮挡 */
body.detail-page main,
body.topic-page main,
body.tools-page main,
body.article-page main {
  padding-top: var(--nav-h);
}

/* ── 42-B. 紧凑型内页页脚 ── */
.footer-compact {
  border-top: 1px solid var(--border-light);
  padding: 40px 0 24px;
  margin-top: 0;
}
.footer-compact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-compact-brand .nav-logo { margin-bottom: 12px; display: inline-flex; }
.footer-compact-brand p {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 16px;
  max-width: 260px;
}
.footer-compact-brand .footer-compact-social {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.footer-compact-social-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-muted);
  transition: border-color 0.18s, color 0.18s;
  text-decoration: none;
}
.footer-compact-social-btn:hover { border-color: var(--primary); color: var(--primary); }
.footer-compact-col h5,
.footer-compact-col-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.footer-compact-col a {
  display: block;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.18s, padding-left 0.18s;
}
.footer-compact-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-compact-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px; color: var(--text-muted);
}
.footer-compact-bottom a { color: var(--text-muted); margin-left: 12px; transition: color 0.18s; }
.footer-compact-bottom a:hover { color: var(--primary); }

/* ── 42-C. 工具页搜索框实时反馈 ── */
.tool-list-card.search-hidden { display: none !important; }
.tool-list-card.search-highlight .tool-list-name { color: var(--primary); }
.tools-no-result {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}
.tools-no-result.visible { display: block; }

/* ── 42-D. 导航搜索建议面板 ── */
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  display: none;
}
.nav-search-dropdown.open { display: block; }
.nav-search-suggestion {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}
.nav-search-suggestion:hover { background: var(--bg-primary-soft); color: var(--primary); }
.nav-search-suggestion .suggest-icon { font-size: 14px; flex-shrink: 0; }

/* ── 42-E. 参数预览文字场景感 ── */
.params-preview-scene-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.7;
}

/* ── 42-F. Tablet 布局（769px-1024px）补丁 ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .layout-with-sidebar { grid-template-columns: 1fr 260px; gap: 24px; }
  .article-page .layout-with-sidebar { grid-template-columns: 1fr 240px; }
  .tools-page-header { grid-template-columns: 1fr; }
  .footer-compact-grid { grid-template-columns: 1fr 1fr; }
  .footer-compact-brand { grid-column: 1 / -1; }
  .footer-compact-brand p { max-width: 100%; }
}

/* ── 42-G. 移动端完善 ── */
@media (max-width: 768px) {
  .footer-compact-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-compact-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-compact-bottom a { margin-left: 0; margin-right: 12px; }
  .nav-search { display: none; } /* 移动端导航栏隐藏搜索框，在Overlay中搜索 */
  .detail-page, .topic-page, .tools-page, .article-page { padding-top: var(--nav-h); }
}

/* ── 42-H. 加载状态 — 骨架屏占位 ── */
@keyframes shimmerLoad {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.img-skeleton {
  background: linear-gradient(90deg,
    var(--bg-base) 25%,
    color-mix(in srgb, var(--primary) 5%, var(--bg-base)) 50%,
    var(--bg-base) 75%);
  background-size: 200% 100%;
  animation: shimmerLoad 1.5s infinite;
}

/* ── 42-I. 工具卡片访问按钮 hover 状态增强 ── */
.btn-visit-tool {
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-visit-tool:hover {
  transform: translateY(-1px) scale(1.02);
}

/* ── 42-J. 文章页图片响应式 ── */
.article-cover { width: 100%; max-height: 480px; }

/* ── 42-K. Prompt 卡片内 CTA 和 action row 对齐 ── */
.prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ── 42-L. 页脚 policy 链接间距统一 ── */
.footer-bottom-right a + a { margin-left: 16px; }
.footer-compact-bottom .policy-links { display: flex; flex-wrap: wrap; }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-policy-links a { color: var(--text-muted); font-size: 12px; transition: color 0.18s; }
.footer-policy-links a:hover { color: var(--primary); }
.footer-policy-links a + a::before { content: '·'; margin-right: 4px; opacity: 0.4; }

/* ══════════════════════════════════════════
   Section 43 — Homepage Navbar & Layout
══════════════════════════════════════════ */

/* 43-A. 首页透明导航栏 — 白色文字（覆盖在紫色Hero上）*/
body.home-page #navbar:not(.scrolled) .nav-item {
  color: rgba(255,255,255,0.82);
  border-color: transparent;
}
body.home-page #navbar:not(.scrolled) .nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}
body.home-page #navbar:not(.scrolled) .nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  font-weight: 700;
}
body.home-page #navbar:not(.scrolled) .nav-logo-text {
  color: #fff;
}
body.home-page #navbar:not(.scrolled) .nav-logo-text span {
  color: rgba(255,255,255,0.75);
}
body.home-page #navbar:not(.scrolled) .nav-search {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}
body.home-page #navbar:not(.scrolled) .nav-search input {
  color: #fff;
}
body.home-page #navbar:not(.scrolled) .nav-search input::placeholder {
  color: rgba(255,255,255,0.5);
}
body.home-page #navbar:not(.scrolled) .nav-search-icon {
  color: rgba(255,255,255,0.65);
}
body.home-page #navbar:not(.scrolled) .theme-toggle {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
}
body.home-page #navbar:not(.scrolled) .theme-toggle:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}
body.home-page #navbar:not(.scrolled) .btn-login {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
}
body.home-page #navbar:not(.scrolled) .btn-login:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
body.home-page #navbar:not(.scrolled) .nav-mobile-toggle span {
  background: rgba(255,255,255,0.9);
}

/* 43-B. 导航右侧防换行 */
.nav-right { flex-wrap: nowrap; }
.btn-login, .btn-register { white-space: nowrap; flex-shrink: 0; }
.nav-search { min-width: 160px; flex-shrink: 1; }

/* 43-C. 导航栏文字缩短后的间距微调 */
.nav-menu { gap: 0; }
.nav-item { padding: 7px 11px; font-size: 13.5px; }

/* 43-C2. 通用提示词标签 */
.prompt-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 500;
  background: var(--bg-primary-soft); color: var(--primary);
  border: 1px solid rgba(99,102,241,0.15);
}
.prompt-list-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 43-D. 提示词库 列表页样式 */
.prompts-page-hero {
  padding: 48px 0 36px;
  text-align: center;
}
.prompts-page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.prompts-page-hero p { font-size: 15px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 24px; }
.prompts-category-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.prompts-cat-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: var(--transition);
}
.prompts-cat-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-primary-soft); }
.prompts-cat-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.prompts-cat-tab .tab-count {
  background: rgba(255,255,255,0.25); color: inherit;
  font-size: 11px; padding: 1px 7px; border-radius: var(--radius-full);
}
.prompts-cat-tab:not(.active) .tab-count {
  background: var(--bg-primary-soft); color: var(--primary);
}

/* 43-E. 专题卡片 */
.topic-collection-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 48px;
}
.topic-collection-card {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden; cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.topic-collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-active);
}
.topic-card-cover {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden;
}
.topic-card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.25) 100%);
}
.topic-card-body { padding: 16px 18px 18px; }
.topic-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.topic-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card-footer { display: flex; align-items: center; justify-content: space-between; }
.topic-card-count { font-size: 12px; color: var(--text-muted); }
.topic-card-count strong { color: var(--primary); font-weight: 700; }
.topic-card-btn {
  font-size: 12px; font-weight: 600; color: var(--primary);
  padding: 5px 12px; border-radius: var(--radius-sm);
  background: var(--bg-primary-soft);
  transition: var(--transition);
}
.topic-collection-card:hover .topic-card-btn { background: var(--primary); color: #fff; }

/* 43-F. 文章列表页 */
main.article-list-page { padding: calc(var(--nav-h) + 16px) 0 88px; }
body.article-list-page #navbar {
  background: var(--bg-glass); backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.article-list-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.article-list-card {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); overflow: hidden;
  transition: var(--transition); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.article-list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--border-active); }
.article-list-card-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; flex-shrink: 0;
}
.article-list-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.article-list-card-labels { display: flex; gap: 8px; margin-bottom: 10px; }
.article-list-card-label {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-full); letter-spacing: 0.5px;
}
.label-tutorial { background: rgba(99,102,241,0.1); color: var(--primary); }
.label-news { background: rgba(16,185,129,0.1); color: #059669; }
.label-review { background: rgba(245,158,11,0.1); color: #d97706; }
.label-tips { background: rgba(244,63,94,0.1); color: #e11d48; }
.article-list-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.45; }
.article-list-card-title:hover { color: var(--primary); }
.article-list-card-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-list-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.article-list-card-author { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.article-list-card-author-avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; flex-shrink: 0; }
.article-list-card-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }
.article-read-btn { font-size: 13px; font-weight: 600; color: var(--primary); padding: 7px 16px; border-radius: var(--radius-sm); background: var(--bg-primary-soft); transition: var(--transition); display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; width: fit-content; }
.article-read-btn:hover { background: var(--primary); color: #fff; }

/* 43-G. 资讯列表页搜索栏 */
.article-list-header { padding: 36px 0 32px; }
.article-list-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.article-list-header p { font-size: 15px; color: var(--text-secondary); }
.article-cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.article-cat-tab {
  padding: 8px 20px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface); color: var(--text-secondary);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: var(--transition);
}
.article-cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.article-cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

/* 43-H. 响应式 */
@media (max-width: 1024px) {
  .topic-collection-grid { grid-template-columns: repeat(2,1fr); }
  .article-list-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topic-collection-grid { grid-template-columns: 1fr; }
  .prompts-page-hero h1 { font-size: 26px; }
  .prompts-category-tabs { gap: 8px; }
  .prompts-cat-tab { padding: 8px 16px; font-size: 13px; }
}

/* ══════════════════════════════════════════
   Section 44 — Final Polish & Bug Fixes
══════════════════════════════════════════ */

/* 44-A. Hero文字颜色修正（深色变量在紫色背景上不可见）*/
.hero-title-em {
  color: #fff !important;
  font-weight: 900;
}
.hero-title-sub {
  color: rgba(255,255,255,0.82) !important;
}
.hero-title-sub em {
  color: #fff !important;
  -webkit-text-fill-color: unset !important;
  background: none !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 3px;
  font-style: normal;
}
.hero-search-assurance {
  color: rgba(255,255,255,0.72) !important;
}
.assurance-sep { color: rgba(255,255,255,0.35) !important; }

/* 44-B. topic-collection-card 作为 <a> 链接的样式修正 */
a.topic-collection-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.topic-collection-card .topic-card-title { color: var(--text-primary); }
a.topic-collection-card:hover .topic-card-title { color: var(--primary); }

/* 44-C. prompt-list-item hover 状态补全 */
.prompt-list-item:hover .prompt-list-index { background: var(--primary); color: #fff; border-color: var(--primary); }
.prompt-list-card:hover .prompt-list-index,
.prompt-list-item:hover .prompt-list-index { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 44-D. article-list-card-title 链接样式 */
a.article-list-card-title {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.18s;
}
a.article-list-card-title:hover { color: var(--primary); }

/* 44-E. 生成按钮加载状态 */
.btn-generate.loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn-generate.loading .icon { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 44-F. 首页 footer AI资讯栏目标题 */
/* 无需CSS改动，在HTML修复 */

/* 44-G. hero-search-card 焦点边框修正（不能用 border-color，因为 textarea 没有 border）*/
.hero-input:focus { outline: none; }

/* 44-H. sidebar-item 在文章列表页作为 flex 行 */
.article-list-page .sidebar-item { display: flex; align-items: center; gap: 8px; }

/* 44-I. 参数预览区场景标签 */
.params-preview-scene-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-base); border: 1px solid var(--border-light);
  padding: 3px 10px; border-radius: var(--radius-full);
  margin-left: auto;
}

/* 44-J. topic-collection-grid 卡片过渡统一 */
.topic-collection-card { transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }

/* 44-K. article-list-card-cover 作为 div 的 aspect-ratio */
.article-list-card-cover {
  aspect-ratio: 16/9;
  min-height: 140px;
  font-size: 52px;
}

/* 44-L. 移动端首页 hero 修正 */
@media (max-width: 600px) {
  .hero-title { letter-spacing: -1px; }
  .hero-search-bottom { flex-wrap: wrap; gap: 10px; }
  .btn-generate { width: 100%; justify-content: center; font-size: 15px; padding: 13px 24px; }
  .hero-search-hint { display: none; }
  .hero-tags { gap: 6px; }
  .hero-tag { font-size: 12px; padding: 5px 12px; }
}

/* 44-M. 工具导航 cat-tab 移动端 */
@media (max-width: 768px) {
  .tools-category-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .tools-category-nav::-webkit-scrollbar { height: 3px; }
  .tools-category-nav::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 2px; }
  .cat-tab { flex-shrink: 0; padding: 8px 14px; font-size: 13px; }
}

/* 44-N. 提示词库列表页移动端 */
@media (max-width: 768px) {
  .prompts-page-hero h1 { font-size: 24px; }
  .prompts-page-hero p { font-size: 13px; }
  .article-list-header h1 { font-size: 24px; }
  .article-list-grid { gap: 16px; }
  .article-cat-tabs { gap: 6px; }
  .article-cat-tab { padding: 6px 14px; font-size: 12.5px; }
}

/* 44-O. 搜索框生成中遮罩 */
.hero-search-card.generating::after {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.5);
  pointer-events: none;
  animation: shimmerLoad 1.2s ease infinite;
}
.hero-search-card { position: relative; }

/* 44-P. 记录进度条动画优化 */
.record-bar-fill {
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1) !important;
}

/* 44-Q. 文章资讯卡片 - 悬停边框动效 */
.article-list-card { transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }

/* 44-R. footer col 链接 hover padding 动效 */
.footer-links a { transition: color 0.18s, padding-left 0.18s; }
.footer-links a:hover { padding-left: 4px; }

/* 44-S. back-top 按钮移动端适配 */
@media (max-width: 768px) {
  #back-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 16px; }
}

/* ============================================================
   SECTION 45 — 侧边栏 sidebar-card 组件 + 补全缺失样式
   ============================================================ */

/* 45-A. sidebar-card 容器卡片 */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* 45-B. sidebar-item 内部内容区 (热门文章等使用) */
.sidebar-item-content {
  flex: 1;
  min-width: 0;
}

.sidebar-item-title {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
}

.sidebar-item:hover .sidebar-item-title { color: var(--primary); }

.sidebar-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 45-C. sidebar-item 作为 <a> 的基础样式 (防止 a 的默认样式污染) */
a.sidebar-item {
  text-decoration: none;
  color: inherit;
}

/* 45-D. aside 容器 sticky 定位 */
aside { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 1024px) { aside { position: static; } }

/* 45-E. 文章列表页右侧 sidebar-ad-card 覆写  */
.article-list-page .sidebar-ad-card {
  background: linear-gradient(135deg, var(--primary-soft), rgba(139,92,246,0.06));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 20px;
  overflow: hidden;
}

.sidebar-ad-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* 45-F. load-more-wrap 统一样式 */
.load-more-wrap {
  text-align: center;
  padding: 32px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.load-more-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* 45-I. 文章阅读进度条 */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1100;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* 45-H. 侧边栏订阅表单 */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s;
}

.newsletter-input:focus { border-color: var(--primary); }
.newsletter-input::placeholder { color: var(--text-muted); }

/* 45-G. 文章列表页响应式 sidebar */
@media (max-width: 1024px) {
  .article-list-page .layout-with-sidebar { grid-template-columns: 1fr; }
  .article-list-page aside { display: none; }
}
@media (max-width: 768px) {
  .sidebar-card { padding: 16px; }
  .article-list-grid { grid-template-columns: 1fr; }
}
