/**
 * 未登录宣传落地页样式：由站点根路径 /marketing-landing.css 同域提供。
 * 首屏关键样式仍内联在 HTML，避免审核爬虫不拉 CSS 时首屏空白。
 */
/* ===== 重置与基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  color-scheme: dark;
  background: #0d0d1a;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, sans-serif;
  background: #0d0d1a;
  color: #f1f5f9;
  width: 100%;
  min-width: 320px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
body::-webkit-scrollbar {
  display: none;
}

/* ===== 主题色与尺寸变量（默认暗色） ===== */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --secondary-light: #a78bfa;
  --accent: #c4b5fd;
  --text-primary: #f8fafc;
  --title-color: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border: #2a2a44;
  --border-light: #1e1e34;
  --bg-light: #141426;
  --bg-card: #1a1a2e;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-primary-light: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --gradient-text: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===== 浅色主题变量 ===== */
[data-landing-theme="light"] {
  color-scheme: light;
  --text-primary: #1a1a2e;
  --title-color: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --bg-light: #f8f9ff;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(99,102,241,0.08);
  --shadow-lg: 0 12px 40px rgba(99,102,241,0.10);
  --shadow-xl: 0 20px 60px rgba(99,102,241,0.14);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.20);
}
html[data-landing-theme="light"] {
  color-scheme: light;
  background: #ffffff;
}
html[data-landing-theme="light"] body {
  background: #ffffff;
  color: var(--text-primary);
}

/* ===== 暗色主题变量 ===== */
[data-landing-theme="dark"] {
  --text-primary: #f8fafc;
  --title-color: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border: #2a2a44;
  --border-light: #1e1e34;
  --bg-light: #141426;
  --bg-card: #1a1a2e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.15);
}
[data-landing-theme="dark"] body { background: #0d0d1a; color: var(--text-primary); }

/* 暗色：背景装饰 */
[data-landing-theme="dark"] .bg-orb-1 { background: rgba(99,102,241,0.08); }
[data-landing-theme="dark"] .bg-orb-2 { background: rgba(139,92,246,0.06); }
[data-landing-theme="dark"] .bg-orb-3 { background: rgba(168,85,247,0.05); }
[data-landing-theme="dark"] .bg-orb-4 { background: rgba(99,102,241,0.04); }
[data-landing-theme="dark"] .bg-grid {
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
}
[data-landing-theme="dark"] .bg-top-glow {
  background: linear-gradient(180deg, rgba(99,102,241,0.06), transparent);
}

/* 暗色：侧栏 */
[data-landing-theme="dark"] .sidebar {
  background: rgba(20,20,38,0.85);
  border-right-color: rgba(99,102,241,0.12);
  box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}
[data-landing-theme="dark"] .logo-text-sm { color: var(--text-primary); }
[data-landing-theme="dark"] .sidebar-divider {
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent);
}
[data-landing-theme="dark"] .sidebar-divider-thin {
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.12), transparent);
}
[data-landing-theme="dark"] .nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.08));
}

/* 暗色：顶栏 */
[data-landing-theme="dark"] .doc-entries {
  background: rgba(20,20,38,0.85);
  border-color: rgba(99,102,241,0.15);
}
[data-landing-theme="dark"] .doc-entry--primary {
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.10));
  border-color: rgba(99,102,241,0.25);
}
[data-landing-theme="dark"] .topbar-icon-btn {
  background: rgba(20,20,38,0.85);
  border-color: rgba(99,102,241,0.12);
}
[data-landing-theme="dark"] .topbar-divider {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.2), transparent);
}

/* 暗色：首屏标题区 */
[data-landing-theme="dark"] .hero-badge {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.25);
}

/* 暗色：成片卡片 */
[data-landing-theme="dark"] .showcase-panel {
  background: var(--bg-card);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.3),
    0 24px 48px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.04);
}
[data-landing-theme="dark"] .panel-info-bar {
  background: rgba(26,26,46,0.95);
  border-top-color: rgba(99,102,241,0.08);
}
[data-landing-theme="dark"] .carousel-arrow {
  background: rgba(26,26,46,0.92);
  border-color: rgba(99,102,241,0.15);
}

/* 暗色：对话输入框 */
[data-landing-theme="dark"] .dialogue-input-wrapper {
  background: rgba(20,20,38,0.85);
  border-color: rgba(99,102,241,0.25);
}
[data-landing-theme="dark"] .dialogue-upload-btn::after {
  background: rgba(241,245,249,0.90);
  color: #0d0d1a;
}

/* 暗色：建议词 */
[data-landing-theme="dark"] .suggestion-chip {
  background: var(--bg-light);
  border-color: var(--border);
}

/* 暗色：模板库标题区 */
[data-landing-theme="dark"] .filter-tabs { background: var(--bg-light); }
[data-landing-theme="dark"] .filter-tab.active {
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 暗色：瀑布流封面 */
[data-landing-theme="dark"] .masonry-thumbnail {
  background: var(--bg-light);
}

/* 暗色：登录门 */
[data-landing-theme="dark"] .login-gate {
  background: linear-gradient(
    to bottom,
    rgba(13,13,26,0) 0%,
    rgba(13,13,26,0.02) 15%,
    rgba(13,13,26,0.35) 35%,
    rgba(13,13,26,0.70) 55%,
    rgba(13,13,26,0.88) 75%,
    rgba(13,13,26,0.95) 100%
  );
}

/* 暗色：页脚 */
[data-landing-theme="dark"] .footer {
  border-top-color: var(--border-light);
  background: rgba(13,13,26,0.60);
}

/* ===== 全屏背景装饰 ===== */
.bg-decoration {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.bg-orb-1 {
  width: 900px; height: 900px;
  background: rgba(99,102,241,0.10);
  top: -300px; right: -250px;
}
.bg-orb-2 {
  width: 700px; height: 700px;
  background: rgba(139,92,246,0.08);
  top: 300px; left: -200px;
}
.bg-orb-3 {
  width: 600px; height: 600px;
  background: rgba(168,85,247,0.06);
  top: 1000px; right: 200px;
}
.bg-orb-4 {
  width: 650px; height: 650px;
  background: rgba(99,102,241,0.05);
  top: 1500px; left: 300px;
}
.bg-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
}
.bg-top-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 600px;
  background: linear-gradient(180deg, rgba(99,102,241,0.04), transparent);
  pointer-events: none;
}

/* ===== 侧栏 ===== */
.sidebar {
  width: 80px;
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 16px;
  border-right: 1px solid rgba(99,102,241,0.08);
  box-shadow: 4px 0 24px rgba(99,102,241,0.04);
}

/* 侧栏 Logo */
.sidebar-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.sidebar-logo::before {
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-text-sm {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

/* 侧栏分割线 */
.sidebar-divider {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.15), transparent);
  margin: 16px 0 12px;
}

/* 侧栏导航 */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.nav-item {
  width: 80px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  border-radius: 0;
}
.nav-item svg {
  width: 21px; height: 21px;
  color: var(--text-tertiary);
  transition: all 0.2s;
  stroke-width: 1.8;
}
.nav-item span {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
  transition: all 0.2s;
}
.nav-item:hover svg { color: var(--primary-light); }
.nav-item:hover span { color: var(--text-secondary); }

.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
}
.nav-item.active svg {
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(99,102,241,0.3));
}
.nav-item.active span { color: var(--primary); font-weight: 600; }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 14px rgba(99,102,241,0.4);
}

/* 侧栏底部 */
.sidebar-spacer { flex: 1; }
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.sidebar-divider-thin {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.10), transparent);
  margin: 4px 0;
}
/* 主题切换按钮 */
.theme-toggle {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: rgba(99,102,241,0.08);
  border: 1.5px solid rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}
.theme-toggle svg {
  position: absolute;
  width: 19px; height: 19px;
  stroke-width: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 浅色：显示月亮、隐藏太阳 */
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--primary);
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0);
  color: #fbbf24;
}
/* 暗色：显示太阳、隐藏月亮 */
[data-landing-theme="dark"] .theme-toggle {
  background: rgba(251,191,36,0.10);
  border-color: rgba(251,191,36,0.20);
}
[data-landing-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
[data-landing-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.20);
  border-color: var(--primary);
}
[data-landing-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 6px 20px rgba(251,191,36,0.20);
  border-color: #fbbf24;
}
/* 提示气泡 */
.theme-toggle::after {
  content: '切换主题';
  position: absolute;
  left: 52px; top: 50%;
  transform: translateY(-50%);
  padding: 5px 12px;
  background: rgba(26,26,46,0.90);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1001;
}
.theme-toggle:hover::after { opacity: 1; }
/* 顶栏提示气泡向上弹出 */
.topbar .theme-toggle::after {
  left: 50%; top: auto; bottom: 52px;
  transform: translateX(-50%);
}
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #f0abfc);
  border: 2px solid rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
}

/* ===== 主内容区 ===== */
.content {
  margin-left: 0;
  width: 100%;
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

/* ===== 顶栏 ===== */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 0;
  gap: 12px;
}
/* 顶栏品牌 */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99,102,241,0.30);
}
.brand-logo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 文档入口胶囊组 */
.doc-entries {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(99,102,241,0.06);
}
.doc-entry {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.doc-entry svg {
  width: 16px; height: 16px;
  color: var(--primary-light);
  stroke-width: 2;
  flex-shrink: 0;
}
.doc-entry:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  color: var(--primary);
}
.doc-entry--primary {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.06));
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgba(99,102,241,0.18);
  box-shadow: 0 2px 10px rgba(99,102,241,0.10);
}
.doc-entry--primary svg {
  color: var(--primary);
  filter: drop-shadow(0 0 4px rgba(99,102,241,0.3));
}

/* 顶栏分隔线 */
.topbar-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.15), transparent);
}

/* 图标按钮（消息、反馈） */
.topbar-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99,102,241,0.10);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(99,102,241,0.06);
  font-family: inherit;
}
.topbar-icon-btn svg {
  width: 17px; height: 17px;
  stroke-width: 2;
  flex-shrink: 0;
}
.topbar-icon-btn:hover {
  border-color: rgba(99,102,241,0.25);
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(99,102,241,0.14);
  transform: translateY(-1px);
}
.topbar-icon-btn:hover svg { color: var(--primary); }

/* ===== 首屏标题区 ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 28px 28px 40px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 18px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
.hero-title {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 0;
  line-height: 1.15;
  position: relative;
  color: var(--title-color);
}
.hero-title .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 16px auto 0;
  box-shadow: 0 0 16px rgba(99,102,241,0.40);
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 18px;
  margin-bottom: 36px;
  font-weight: 400;
}

/* ===== 成片轮播 ===== */
.video-carousel {
  --carousel-vis: 3;
  --carousel-gap: 20px;
  position: relative;
  margin: 0 auto 36px;
  max-width: 1784px;
  width: 100%;
}
.video-carousel--empty {
  display: none;
}

/* 不超过一屏 3 张时不展示左右切换 */
.video-carousel--no-arrows .carousel-arrow {
  display: none;
}

.video-carousel--no-arrows .carousel-viewport {
  margin-left: 0;
  margin-right: 0;
}

/* 轮播视口：左右用 margin 留白，overflow 只裁切卡片区，避免第四张从 padding 里漏出 */
.carousel-viewport {
  position: relative;
  overflow: hidden;
  padding: 24px 0 8px;
  margin: 0 28px;
}

/* 轮播轨道：横向单行滑动 */
.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  flex-wrap: nowrap;
  justify-content: flex-start;
  transition: transform 0.35s ease;
}

/* 轮播下方装饰线 */
.neural-link {
  position: absolute;
  bottom: 56px;
  left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99,102,241,0.12) 10%,
    rgba(139,92,246,0.25) 50%,
    rgba(99,102,241,0.12) 90%,
    transparent 100%);
  z-index: 0;
}
.neural-link::after {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 5px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
}

/* 成片卡片：响应式共用样式 */
.showcase-panel {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 560px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  z-index: 1;
  box-shadow:
    0 8px 24px rgba(15, 18, 45, 0.06),
    0 24px 48px rgba(15, 18, 45, 0.04),
    0 0 0 1px rgba(15, 18, 45, 0.04);
  transition: box-shadow 0.2s ease;
}
a.showcase-panel:hover,
.showcase-panel:hover {
  box-shadow: var(--shadow-lg);
}
.panel-thumbnail[data-preview-src],
.panel-thumbnail[data-preview-src] * {
  cursor: pointer;
}
a.panel-info-left {
  text-decoration: none;
  color: inherit;
}
a.panel-info-left:hover h3 {
  color: var(--primary);
}
a.panel-thumbnail {
  display: block;
  color: inherit;
  text-decoration: none;
}
.carousel-track .showcase-panel {
  flex: 0 0 calc((100% - (var(--carousel-vis) - 1) * var(--carousel-gap)) / var(--carousel-vis));
  min-width: 0;
  max-width: none;
}

/* 中间主卡片光晕 */
.showcase-panel--center .panel-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 40px rgba(99,102,241,0.10);
  pointer-events: none;
  z-index: 3;
}

/* 科技感边角括号 */
.showcase-panel .corner-bracket {
  position: absolute;
  width: 22px; height: 22px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.7;
}
.showcase-panel .corner-bracket.tl {
  top: 10px; left: 10px;
  border-top: 2px solid rgba(255,255,255,0.6);
  border-left: 2px solid rgba(255,255,255,0.6);
  border-radius: 6px 0 0 0;
}
.showcase-panel .corner-bracket.tr {
  top: 10px; right: 10px;
  border-top: 2px solid rgba(255,255,255,0.6);
  border-right: 2px solid rgba(255,255,255,0.6);
  border-radius: 0 6px 0 0;
}
.showcase-panel .corner-bracket.bl {
  bottom: 10px; left: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  border-left: 2px solid rgba(255,255,255,0.6);
  border-radius: 0 0 0 6px;
}
.showcase-panel .corner-bracket.br {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  border-right: 2px solid rgba(255,255,255,0.6);
  border-radius: 0 0 6px 0;
}

/* 扫描线 */
.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    rgba(129,140,248,0.7),
    rgba(196,181,253,0.5),
    transparent);
  z-index: 4;
  box-shadow: 0 0 12px rgba(129,140,248,0.4);
}

/* 成片封面区 */
.panel-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.panel-thumbnail .gradient-bg {
  position: absolute;
  inset: 0;
}
.panel-thumbnail .video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease;
}
.panel-thumbnail .video-bg.is-visible {
  opacity: 1;
}
.panel-thumbnail .overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(0,0,0,0.28) 100%);
}

/* 播放按钮 */
.play-btn {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.play-btn svg {
  width: 28px; height: 28px;
  color: white;
  margin-left: 3px;
}

/* AI 角标 */
.ai-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  background: rgba(99,102,241,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  z-index: 4;
  box-shadow: 0 2px 12px rgba(99,102,241,0.30);
}
.ai-badge svg { width: 12px; height: 12px; }

/* 分辨率角标 */
.res-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  z-index: 6;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0.5px;
}

/* 时长标签 */
.duration-tag {
  position: absolute;
  bottom: 12px; right: 12px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 4;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

/* 底部信息条 */
.panel-info-bar {
  position: relative;
  padding: 12px 16px 14px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  gap: 12px;
}
.panel-info-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.panel-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.panel-info-bar h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-info-meta,
button.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-tertiary);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.like-btn:hover { opacity: 0.82; }
.like-btn svg {
  width: 12px;
  height: 12px;
  color: #f472b6;
  fill: none;
  stroke: currentColor;
}
.like-btn .like-count {
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-tertiary);
}
.like-btn.is-liked svg {
  fill: #f472b6;
  stroke: #f472b6;
}
.content-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-tag-chip-logo {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  display: inline-flex;
}
.content-tag-chip-logo svg,
.content-tag-chip-logo img {
  width: 11px;
  height: 11px;
  display: block;
  object-fit: contain;
}
.masonry-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 2px;
}
.masonry-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.masonry-like svg { width: 13px; height: 13px; color: #f472b6; }
.category-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 精选标签 */
.featured-label {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-primary);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
  white-space: nowrap;
}

/* AI 生成中遮罩 */
.generating-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,12,35,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.generating-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.generating-spinner {
  width: 52px; height: 52px;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: var(--secondary-light);
  border-right-color: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(139,92,246,0.40);
  animation: genSpin 0.85s linear infinite;
}
@keyframes genSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .generating-spinner { animation: none; }
  .generating-dots span { animation: none; opacity: 1; }
}
.generating-text {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}
.generating-dots span { animation: dotPulse 1.4s infinite; }
.generating-dots span:nth-child(2) { animation-delay: 0.2s; }
.generating-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}
.progress-bar {
  width: 180px;
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #818cf8, #c084fc, #e879f9);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(139,92,246,0.50);
  transition: width 0.08s linear;
}
.generating-percent {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 500;
  margin-top: 7px;
  font-family: 'SF Mono', 'Consolas', monospace;
}

/* 技术参数标签 */
.tech-data-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  z-index: 4;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0.3px;
}
.tech-data-label .pulse-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* 轮播箭头 */
.carousel-arrow {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(99,102,241,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 6px 24px rgba(99,102,241,0.12);
  transition: all 0.2s;
}
.carousel-arrow svg {
  width: 22px; height: 22px;
  color: var(--text-secondary);
  stroke-width: 2;
}
.carousel-arrow:hover {
  border-color: var(--primary-light);
  box-shadow: 0 6px 28px rgba(99,102,241,0.20);
}
.carousel-arrow:hover svg { color: var(--primary); }
.carousel-arrow-left { left: 4px; }
.carousel-arrow-right { right: 4px; }

/* 轮播圆点 */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding: 0 28px;
}
.carousel-dot-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-dot-wrapper::-webkit-scrollbar {
  display: none;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(99,102,241,0.20);
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot.active {
  width: 32px;
  border-radius: 4px;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(99,102,241,0.30);
}

/* ===== 对话输入区 ===== */
.dialogue-entry {
  max-width: 880px;
  margin: 0 auto;
}
.dialogue-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(99,102,241,0.20);
  border-radius: var(--radius-xl);
  padding: 7px 7px 7px 22px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: all 0.2s;
}
.dialogue-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(99,102,241,0.10);
}
/* 上传参考图按钮 */
.dialogue-upload-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(99,102,241,0.06);
  border: 1.5px dashed rgba(99,102,241,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
  cursor: pointer;
  transition: all 0.25s;
}
.dialogue-upload-btn svg {
  width: 19px; height: 19px;
  color: var(--primary);
  stroke-width: 1.8;
  transition: all 0.25s;
}
.dialogue-upload-btn:hover {
  background: rgba(99,102,241,0.10);
  border-color: var(--primary);
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,102,241,0.15);
}
.dialogue-upload-btn:hover svg {
  color: var(--primary-dark);
  transform: scale(1.08);
}
/* 上传按钮加号角标 */
.dialogue-upload-btn .upload-plus {
  position: absolute;
  bottom: -3px; right: -3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(99,102,241,0.30);
}
.dialogue-upload-btn .upload-plus svg {
  width: 8px; height: 8px;
  color: white;
  stroke-width: 3;
}
/* 上传按钮提示 */
.dialogue-upload-btn::after {
  content: '上传参考图';
  position: absolute;
  bottom: -32px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(26,26,46,0.90);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}
.dialogue-upload-btn:hover::after { opacity: 1; }
.dialogue-input-wrapper input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  padding: 13px 0;
}
.dialogue-input-wrapper input::placeholder { color: var(--text-tertiary); }
.generate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(99,102,241,0.35);
  transition: all 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}
.generate-btn svg { width: 16px; height: 16px; }
.suggestion-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.suggestion-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.suggestion-chip:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.20);
  color: var(--primary);
}
.suggestion-chip .chip-icon { font-size: 14px; }

/* ===== 模板库 ===== */
.gallery {
  position: relative;
  z-index: 1;
  max-width: 1784px;
  margin: 0 auto;
  padding: 16px 28px 0;
  overflow: hidden;
}
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.gallery-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.gallery-title-row h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}
.gallery-title-row .count {
  font-size: 14px;
  color: var(--text-tertiary);
}
.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-light);
  padding: 4px;
  border-radius: 12px;
}
.filter-tab {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-tab:hover { color: var(--text-primary); }
.filter-tab.active {
  background: white;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ===== 瀑布流：列数与登录后首页对齐 ===== */
.masonry {
  column-count: 4;
  column-gap: 16px;
}

/* ===== 响应式断点 ===== */
@media (min-width: 1600px) {
  .masonry { column-count: 5; }
}
@media (min-width: 2560px) {
  .masonry { column-count: 6; }
}
@media (max-width: 1280px) {
  .hero-title { font-size: 42px; }
  .showcase-panel { max-width: 440px; }
  .video-carousel { --carousel-vis: 2; }
}
@media (max-width: 1100px) {
  .masonry { column-count: 3; }
}
@media (max-width: 960px) {
  .content { margin-left: 0; width: 100%; }
  .hero-title { font-size: 34px; }
  .hero-badge { font-size: 11px; padding: 5px 14px; }
  .showcase-panel { max-width: 100%; flex: 1 1 100%; }
  .carousel-track { gap: 16px; }
  .carousel-viewport { margin: 0 16px; }
  .carousel-dots { padding: 0 16px; }
  .video-carousel { --carousel-vis: 1; --carousel-gap: 16px; }
  .topbar { padding: 12px 16px 0; }
  .doc-entry { padding: 7px 12px; font-size: 12px; }
  .doc-entry span { display: none; }
  .doc-entry--primary span { display: inline; }
  .topbar-icon-btn span { display: none; }
  .topbar-icon-btn { padding: 8px 10px; }
  .gallery { padding: 16px 16px 0; }
  .login-gate { height: 300px; padding-bottom: 40px; }
  .gallery--empty .login-gate { height: auto; padding: 48px 16px 56px; }
  .dialogue-entry { max-width: 100%; padding: 0 16px; }
  .hero { padding: 20px 16px 30px; }
}
@media (max-width: 640px) {
  .content { margin-left: 0; width: 100%; }
  .hero-title { font-size: 26px; }
  .hero-badge { font-size: 10px; padding: 4px 12px; margin-bottom: 12px; }
  .masonry { column-count: 2; }
  .suggestion-chips { gap: 8px; }
  .suggestion-chip { padding: 6px 12px; font-size: 12px; }
  .dialogue-input-wrapper { padding: 5px 5px 5px 16px; }
  .dialogue-input-wrapper input { font-size: 13px; padding: 10px 0; }
  .generate-btn { padding: 10px 18px; font-size: 13px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow svg { width: 18px; height: 18px; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filter-tabs { flex-wrap: wrap; }
  .login-gate { height: 280px; padding-bottom: 32px; }
  .gallery--empty .login-gate { height: auto; padding: 40px 16px 48px; }
  .login-gate-title { font-size: 18px; }
  .login-gate-icon { width: 52px; height: 52px; }
}
.masonry-item {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 22px;
  min-width: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-card);
  border: none;
  border-radius: 14px;
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.07),
    0 2px 6px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease;
}
.masonry-item:hover {
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.10),
    0 4px 10px rgba(15, 23, 42, 0.05);
}
[data-landing-theme="dark"] .masonry-item {
  background: var(--bg-card);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}
[data-landing-theme="dark"] .masonry-item:hover {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}
.masonry-thumbnail {
  position: relative;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  border-radius: 0;
  border: none;
  background: var(--bg-light);
  transform: translateZ(0);
  isolation: isolate;
}
.masonry-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}
.masonry-video.is-visible {
  opacity: 1;
  visibility: visible;
}
.masonry-thumbnail .gradient-bg {
  position: absolute;
  inset: 0;
}
.masonry-thumbnail .overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}
.masonry-item .play-btn-sm {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}
.masonry-item:hover .play-btn-sm { opacity: 1; }
.masonry-item .play-btn-sm svg {
  width: 18px; height: 18px;
  color: white;
  margin-left: 2px;
}
.masonry-item .duration-tag {
  bottom: 10px; right: 10px;
}
.masonry-item .ai-badge {
  top: 10px; left: 10px;
  padding: 3px 8px;
  font-size: 10px;
}
.masonry-overlay-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.masonry-overlay-tags .content-tag-chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  max-width: none;
}
.masonry-overlay-tags .content-tag-chip-logo,
.masonry-overlay-tags .content-tag-chip-logo svg,
.masonry-overlay-tags .content-tag-chip-logo img {
  width: 14px;
  height: 14px;
}
.masonry-item .new-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 8px;
  background: rgba(16,185,129,0.85);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  z-index: 2;
}
.masonry-info {
  padding: 12px 14px 14px;
  background: var(--bg-card);
}
.masonry-author-row {
  margin-bottom: 6px;
}
.masonry-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.masonry-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.masonry-cat {
  font-size: 10px;
  color: var(--primary);
  font-weight: 500;
  padding: 2px 7px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.10);
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.masonry-views {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.masonry-views svg { width: 12px; height: 12px; color: #f472b6; }

/* 瀑布流卡片作者信息 */
.masonry-author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.author-id {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.author-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  overflow: hidden;
  background: var(--gradient-primary);
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.panel-info-left .author-avatar { width: 22px; height: 22px; font-size: 10px; }
.masonry-author .author-avatar { width: 20px; height: 20px; font-size: 9px; }
.author-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.author-level {
  --level-color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, var(--level-color) 45%, transparent);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 16px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--level-color);
  background: color-mix(in srgb, var(--level-color) 18%, transparent);
}
.author-level svg,
.author-level img {
  width: 10px;
  height: 10px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.author-super {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.08));
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #d97706;
  letter-spacing: 0.3px;
}
.author-super svg { width: 11px; height: 11px; color: #f59e0b; }
[data-landing-theme="dark"] .author-id { color: var(--text-secondary); }
[data-landing-theme="dark"] .author-super {
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(245,158,11,0.06));
  border-color: rgba(251,191,36,0.20);
  color: #fbbf24;
}
[data-landing-theme="dark"] .author-super svg { color: #fbbf24; }
[data-landing-theme="dark"] .author-avatar {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}


/* 暂时隐藏分类标签 */
.category-tag { display: none !important; }
.masonry-cat { display: none !important; }
.masonry-aspect-v { aspect-ratio: 9/16; }
.masonry-aspect-h { aspect-ratio: 16/9; }
.masonry-aspect-s { aspect-ratio: 1/1; }

/* 首页同款视线：封面叠 @作者 + 时长，下方标题 + 简介 */
.masonry-feed-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
}
.masonry-feed-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.masonry-feed-duration {
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.masonry-feed-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.masonry-feed-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.masonry-feed-desc:empty {
  display: none;
}

/* ===== 登录门：叠在瀑布流底部 ===== */
.login-gate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 52px;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.02) 15%,
    rgba(255,255,255,0.35) 35%,
    rgba(248,249,255,0.70) 55%,
    rgba(248,249,255,0.88) 75%,
    rgba(248,249,255,0.95) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: auto;
}
.login-gate-inner {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.login-gate-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99,102,241,0.25);
  position: relative;
}
.login-gate-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 2px solid rgba(99,102,241,0.15);
  animation: gateRing 2.5s ease infinite;
}
@keyframes gateRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.2; }
}
.login-gate-icon svg {
  width: 30px; height: 30px;
  color: white;
}
.login-gate-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.login-gate-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: -8px;
}
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: var(--gradient-primary);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(99,102,241,0.30);
  text-decoration: none;
  margin-top: 4px;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99,102,241,0.40);
}
.login-btn svg {
  width: 18px; height: 18px;
}
.login-gate-alt {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.login-gate-alt a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.login-gate-alt a:hover {
  text-decoration: underline;
}

/* 无推荐模板时登录门进入文档流，避免绝对定位被裁切后只剩注册字 */
.gallery--empty {
  overflow: visible;
}
.gallery--empty .gallery-header,
.gallery--empty .masonry {
  display: none;
}
.gallery--empty .login-gate {
  position: relative;
  height: auto;
  min-height: 340px;
  justify-content: center;
  padding: 56px 16px 72px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-landing-theme="dark"] .gallery--empty .login-gate {
  background: transparent;
}

/* ===== 页脚 ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 28px 28px;
  border-top: 1px solid var(--border-light);
  background: rgba(248,249,255,0.60);
  backdrop-filter: blur(10px);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-copyright {
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

/* ===== 渐变底色 ===== */
.grad-sunset { background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 40%, #ff99ac 100%); }
.grad-ocean { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.grad-night { background: linear-gradient(135deg, #0f0c29 0%, #6a3093 50%, #302b63 100%); }
.grad-forest { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.grad-creative { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.grad-aurora { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 60%, #7e57c2 100%); }
.grad-warm { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.grad-galaxy { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 80%, #533483 100%); }
.grad-pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.grad-cool { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.grad-purple { background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); }
.grad-neon { background: linear-gradient(135deg, #fc00ff 0%, #00dbde 100%); }
.grad-gold { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.grad-teal { background: linear-gradient(135deg, #13547a 0%, #80d0c7 100%); }
.grad-rose { background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%); }
.grad-mix { background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%); }
.grad-ice { background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 50%, #a5b4fc 100%); }

/* 封面装饰 */
.thumb-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}
.thumb-glow {
  position: absolute;
  top: 30%; left: 40%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
  border-radius: 50%;
  z-index: 1;
}
.panel-cover, .masonry-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.masonry-cover {
  z-index: 2;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.masonry-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.topbar-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.topbar-auth-btn--ghost {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(99,102,241,0.12);
}
.topbar-auth-btn--primary {
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}
a.masonry-item, a.showcase-panel {
  text-decoration: none;
  color: inherit;
}
a.masonry-item {
  display: inline-flex;
}
a.topbar-icon-btn {
  text-decoration: none;
}
a.sidebar-avatar {
  text-decoration: none;
}
.filter-tab { text-decoration: none; }
.suggestion-chip { text-decoration: none; color: inherit; }

/* 热门短剧全屏预览（有声） */
.drama-preview {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}
.drama-preview.is-open {
  display: flex !important;
}
.drama-preview-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drama-preview-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  outline: none;
}
.drama-preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drama-preview-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.drama-preview-close svg {
  width: 20px;
  height: 20px;
}
.drama-preview-title {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 68px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
