/* ===== CSS 变量定义 ===== */
:root {
    --bg: #08080c;
    --bg-secondary: #0a0a10;
    --card: rgba(255,255,255,0.03);
    --card-hover: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #e8e8ed;
    --text-secondary: #6b6b7a;
    --text-muted: #4a4a5a;
    --accent: #00f0ff;
    --accent2: #ff00e5;
    --accent-glow: rgba(0,240,255,0.15);
    --success: #10b981;
}

/* 浅色主题覆盖 */
[data-theme="light"] {
    --bg: #f5f5f7;
    --bg-secondary: #ffffff;
    --card: rgba(0,0,0,0.03);
    --card-hover: rgba(0,0,0,0.05);
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.15);
    --text: #1a1a1f;
    --text-secondary: #6b6b7a;
    --text-muted: #8a8a9a;
    --accent: #0088ff;
    --accent2: #ff0066;
    --accent-glow: rgba(0,136,255,0.15);
}

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== 背景装饰 ===== */
.bg-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(139,92,246,0.12), transparent),
        radial-gradient(ellipse 500px 350px at 80% 70%, rgba(0,240,255,0.08), transparent),
        radial-gradient(ellipse 400px 300px at 50% 90%, rgba(255,0,229,0.05), transparent);
    animation: bgFloat 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgFloat {
    0% { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(-30px,-20px) rotate(2deg); }
}

.grid-lines {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
    pointer-events: none;
    z-index: 0;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(8,8,12,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.8);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    border-color: var(--border);
    background: var(--card);
}

.nav-link.active {
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--card-hover);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* ===== Hero区域 ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 40%, var(--accent) 80%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== 主内容区 ===== */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

/* ===== 搜索栏 ===== */
.search-container {
    position: relative;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 16px 56px 16px 24px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 1rem;
    background: var(--card);
    color: var(--text);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ===== 区块标题 ===== */
.section {
    margin-bottom: 80px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

/* ===== 筛选按钮 ===== */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--card-hover);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg);
    border-color: transparent;
}

/* ===== 卡片网格 ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* ===== 风格卡片 ===== */
.styles-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.style-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    backdrop-filter: blur(10px);
}

.style-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
}

.style-preview {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-preview-inner {
    width: 140px;
    height: 90px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s;
}

.style-card:hover .style-preview-inner {
    transform: scale(1.05);
}

.style-body {
    padding: 28px;
}

.style-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.style-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.style-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.style-tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.style-prompts {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.prompt-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.prompt-text:last-child {
    margin-bottom: 0;
}

.prompt-label {
    font-weight: 600;
    color: var(--text);
}

.copy-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg);
    border-color: transparent;
}

.copy-btn.copied {
    background: var(--success);
    color: var(--bg);
    border-color: transparent;
}

/* ===== 风格卡片预览 - 每个风格独特设计 ===== */

/* 1. 极简主义 - 大量留白，干净线条 */
.style-card[data-id="minimalism"] .style-preview {
    background: #f8f9fa;
}
.style-card[data-id="minimalism"] .style-preview-inner {
    width: 80px;
    height: 80px;
    border: 2px solid #1a1a1f;
    background: transparent;
    color: #1a1a1f;
    font-size: 10px;
    border-radius: 0;
}

/* 2. 新粗野主义 - 粗犷字体，高对比，不对称 */
.style-card[data-id="neo-brutalism"] .style-preview {
    background: #ff6b35;
}
.style-card[data-id="neo-brutalism"] .style-preview-inner {
    width: 100px;
    height: 60px;
    background: #1a1a1f;
    color: #fff;
    font-family: 'Impact', sans-serif;
    font-size: 24px;
    font-weight: 900;
    border-radius: 0;
    transform: rotate(-5deg);
    box-shadow: 8px 8px 0 #000;
}

/* 3. 毛玻璃 - 半透明磨砂 */
.style-card[data-id="glassmorphism"] .style-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.style-card[data-id="glassmorphism"] .style-preview-inner {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: #fff;
}

/* 4. 拟物化 - 真实材质，立体感 */
.style-card[data-id="skeuomorphism"] .style-preview {
    background: linear-gradient(180deg, #e8e8e8 0%, #c0c0c0 100%);
}
.style-card[data-id="skeuomorphism"] .style-preview-inner {
    background: linear-gradient(180deg, #f5f5f5 0%, #d0d0d0 50%, #a0a0a0 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.3);
    color: #666;
}

/* 5. 新拟态 - 柔和凸起凹陷 */
.style-card[data-id="neumorphism"] .style-preview {
    background: #e0e5ec;
}
.style-card[data-id="neumorphism"] .style-preview-inner {
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: 
        8px 8px 16px #a3b1c6,
        -8px -8px 16px #ffffff;
    color: #6b7280;
}

/* 6. 卡片式布局 - 圆角卡片，阴影 */
.style-card[data-id="card-based"] .style-preview {
    background: #f3f4f6;
}
.style-card[data-id="card-based"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
/* 左上卡片 */
.style-card[data-id="card-based"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 54px;
    height: 36px;
    background: #e5e7eb;
    border-radius: 8px;
}
/* 右下卡片 */
.style-card[data-id="card-based"] .style-preview-inner::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 54px;
    height: 36px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 8px;
}

/* 7. 全屏滚动 - 单屏全幅 */
.style-card[data-id="full-screen-scroll"] .style-preview {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.style-card[data-id="full-screen-scroll"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}
/* 三层全屏页面叠加，带上下滚动动画 */
.style-card[data-id="full-screen-scroll"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 250px;
    background:
        /* 第一屏：Hero区 */
        linear-gradient(180deg, #667eea 0%, #764ba2 100%) 0 0 / 100% 90px no-repeat,
        /* 第二屏：内容区 */
        linear-gradient(180deg, #0f3460 0%, #16213e 100%) 0 90px / 100% 90px no-repeat,
        /* 第三屏：底部区 */
        linear-gradient(180deg, #1a1a2e 0%, #0f0c29 100%) 0 180px / 100% 70px no-repeat;
    animation: fullpage-scroll 4s ease-in-out infinite;
}
/* 右侧滚动条指示器 */
.style-card[data-id="full-screen-scroll"] .style-preview-inner::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 8px;
    width: 3px;
    height: 74px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    box-shadow: inset 0 0 0 0 transparent;
    animation: scroll-indicator 4s ease-in-out infinite;
}
@keyframes fullpage-scroll {
    0%, 15% { transform: translateY(0); }
    33%, 50% { transform: translateY(-90px); }
    66%, 85% { transform: translateY(-180px); }
    100% { transform: translateY(0); }
}
@keyframes scroll-indicator {
    0%, 15% { box-shadow: inset 0 0 0 0 transparent; }
    10% { box-shadow: inset 0 0 0 0 transparent; }
    25% { box-shadow: 0 4px 0 0 rgba(255,255,255,0.9); }
    33%, 50% { box-shadow: inset 0 20px 0 0 rgba(255,255,255,0.9); }
    58% { box-shadow: inset 0 46px 0 0 rgba(255,255,255,0.9); }
    66%, 85% { box-shadow: inset 0 70px 0 0 rgba(255,255,255,0.9); }
    100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* 8. 深色模式 - 深色背景 */
.style-card[data-id="dark-mode"] .style-preview {
    background: #0a0a0f;
}
.style-card[data-id="dark-mode"] .style-preview-inner {
    background: #1a1a1f;
    color: #e8e8ed;
    border: 1px solid #2a2a35;
}

/* 9. 渐变色彩 - 柔和渐变 */
.style-card[data-id="gradient"] .style-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}
.style-card[data-id="gradient"] .style-preview-inner {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    color: #fff;
}

/* 10. 复古波浪 - 80年代霓虹 */
.style-card[data-id="retro-wave"] .style-preview {
    background: #0d0221;
}
.style-card[data-id="retro-wave"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
    overflow: hidden;
}
/* 天空+霓虹太阳+透视网格地面 */
.style-card[data-id="retro-wave"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        /* 霓虹太阳 - 半圆形，底部被横线切断 */
        radial-gradient(circle at 50% 55%, #ff2a6d 0%, #ff2a6d 20px, transparent 20px),
        /* 太阳水平条纹切割效果 */
        linear-gradient(180deg, transparent 0%, transparent 28px, #0d0221 28px, #0d0221 33px, transparent 33px, transparent 38px, #0d0221 38px, #0d0221 40px, transparent 40px, transparent 42px, #0d0221 42px, #0d0221 43px, transparent 43px),
        /* 山脉轮廓 - 三角形 */
        linear-gradient(155deg, #0d0221 0%, #0d0221 25%, #1a0533 25%, #1a0533 28%, #0d0221 28%, #0d0221 35%, #150445 35%, #150445 38%, #0d0221 38%, #0d0221 48%, #200558 48%, #200558 52%, #0d0221 52%) 0 35px / 100% 25px no-repeat,
        /* 地平线发光 */
        linear-gradient(180deg, transparent 58%, #ff2a6d44 60%, #d105a044 62%, transparent 65%) 0 0 / 100% 100% no-repeat,
        /* 透视网格地面 */
        repeating-linear-gradient(0deg, transparent, transparent 4px, #ff2a6d33 4px, #ff2a6d33 5px) 0 55px / 100% 35px no-repeat,
        /* 透视纵向线条 */
        repeating-linear-gradient(90deg, transparent 0px, transparent 12px, #ff2a6d33 12px, #ff2a6d33 13px) 0 55px / 100% 35px no-repeat,
        /* 顶部天空渐变 */
        linear-gradient(180deg, #0d0221 0%, #150445 40%, #2d1b69 60%, #0d0221 100%) 0 0 / 100% 100% no-repeat;
    background-size: 130px 90px, 130px 90px, 130px 90px, 130px 90px, 130px 35px, 130px 35px, 130px 90px;
}
/* 地平线高亮线 */
.style-card[data-id="retro-wave"] .style-preview-inner::after {
    content: '';
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff2a6d, #ff2a6d, transparent);
    box-shadow: 0 0 8px #ff2a6d, 0 0 16px #ff2a6d88;
}

/* 11. 手绘风格 - 不规则线条 */
.style-card[data-id="hand-drawn"] .style-preview {
    background: #fef3c7;
}
.style-card[data-id="hand-drawn"] .style-preview-inner {
    width: 100px;
    height: 100px;
    border: 3px solid #92400e;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    background: transparent;
    color: #92400e;
    font-family: 'Comic Sans MS', cursive;
    transform: rotate(-3deg);
}

/* 12. 等距投影 - 2.5D视角 */
.style-card[data-id="isometric"] .style-preview {
    background: #0f172a;
}
.style-card[data-id="isometric"] .style-preview-inner {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transform: rotateX(60deg) rotateZ(-45deg);
    box-shadow: 
        -20px 20px 0 #1e40af,
        -40px 40px 0 #1e3a8a;
}

/* 扁平化设计 - 纯色填充无阴影 */
.style-card[data-id="flat-design"] .style-preview {
    background: #f3f4f6;
}
.style-card[data-id="flat-design"] .style-preview-inner {
    position: relative;
    width: 110px;
    height: 70px;
    background: transparent;
}
.style-card[data-id="flat-design"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #ef4444;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}
.style-card[data-id="flat-design"] .style-preview-inner::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 35px;
    background: #3b82f6;
    border-radius: 8px;
    bottom: 10px;
    right: 10px;
}

/* 材质设计 - 纸张质感+层级阴影 */
.style-card[data-id="material-design"] .style-preview {
    background: #fafafa;
}
.style-card[data-id="material-design"] .style-preview-inner {
    width: 100px;
    height: 65px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.12),
        0 3px 6px rgba(0,0,0,0.08);
}
.style-card[data-id="material-design"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 8px;
    background: #3b82f6;
    border-radius: 4px;
    top: 15px;
    left: 35px;
}
.style-card[data-id="material-design"] .style-preview-inner::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    top: 30px;
    left: 35px;
}

/* 13. 分屏布局 - 左右分割，强对比 */
.style-card[data-id="split-screen"] .style-preview {
    background: #f0f0f3;
    border: 1px solid #ddd;
}
.style-card[data-id="split-screen"] .style-preview-inner {
    position: relative;
    width: 140px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}
/* 左半屏 */
.style-card[data-id="split-screen"] .style-preview-inner::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 50%; height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
/* 右半屏 */
.style-card[data-id="split-screen"] .style-preview-inner::after {
    content: '';
    position: absolute;
    right: 0; top: 0;
    width: 50%; height: 100%;
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* 14. 瀑布流 - 错落排列 */
.style-card[data-id="masonry"] .style-preview {
    background: #f3f4f6;
}
.style-card[data-id="masonry"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
}
/* 左列：两块错落卡片 */
.style-card[data-id="masonry"] .style-preview-inner::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    width: 56px;
    height: 78px;
    background:
        linear-gradient(#d1d5db, #d1d5db) 0 0 / 56px 40px no-repeat,
        linear-gradient(#9ca3af, #9ca3af) 0 44px / 56px 34px no-repeat;
    border-radius: 4px;
}
/* 右列：三块错落卡片 */
.style-card[data-id="masonry"] .style-preview-inner::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 6px;
    width: 56px;
    height: 78px;
    background:
        linear-gradient(#bfdbfe, #bfdbfe) 0 0 / 56px 28px no-repeat,
        linear-gradient(#93c5fd, #93c5fd) 0 32px / 56px 26px no-repeat,
        linear-gradient(#60a5fa, #60a5fa) 0 60px / 56px 18px no-repeat;
    border-radius: 4px;
}

/* 15. 杂志风 - 大标题图文混排 */
.style-card[data-id="editorial"] .style-preview,
/* 15. 杂志排版 - 大图+文字混排+多栏布局 */
.style-card[data-id="magazine"] .style-preview {
    background: #fff;
    border: 1px solid #e0d8c8;
}
.style-card[data-id="magazine"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 85px;
    overflow: hidden;
}
/* 左侧大图 - 横版风景照 */
.style-card[data-id="magazine"] .style-preview-inner::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    width: 60px;
    height: 50px;
    background: linear-gradient(180deg, #87CEEB 0%, #c9b896 30%, #6b8e6b 70%, #4a6741 100%);
    border-radius: 2px;
}
/* 右上小图 - 人像/静物 */
.style-card[data-id="magazine"] .style-preview-inner::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 4px;
    width: 55px;
    height: 38px;
    background: linear-gradient(135deg, #d4c4a8 0%, #c9a88c 40%, #8b7355 100%);
    border-radius: 2px;
}

/* 16. 瑞士风 - 网格系统 */
.style-card[data-id="swiss"] .style-preview {
    background: #dc2626;
}
.style-card[data-id="swiss"] .style-preview-inner {
    position: relative;
    width: 120px;
    height: 90px;
    background: #fff;
    border-radius: 0;
}
/* 左上大色块 */
.style-card[data-id="swiss"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 56px;
    height: 42px;
    background: #1a1a1f;
}
/* 右下文字行+装饰线 */
.style-card[data-id="swiss"] .style-preview-inner::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 56px;
    height: 84px;
    background:
        linear-gradient(#dc2626, #dc2626) 0 0 / 56px 3px no-repeat,
        linear-gradient(#1a1a1f, #1a1a1f) 0 8px / 40px 3px no-repeat,
        linear-gradient(#1a1a1f, #1a1a1f) 0 14px / 50px 2px no-repeat,
        linear-gradient(#1a1a1f, #1a1a1f) 0 20px / 48px 2px no-repeat,
        linear-gradient(#1a1a1f, #1a1a1f) 0 26px / 45px 2px no-repeat,
        linear-gradient(#1a1a1f, #1a1a1f) 0 32px / 50px 2px no-repeat,
        linear-gradient(#e5e5e5, #e5e5e5) 0 42px / 56px 40px no-repeat;
}

/* 17. 包豪斯 - 几何图形 */
.style-card[data-id="bauhaus"] .style-preview {
    background: #f3f4f6;
}
.style-card[data-id="bauhaus"] .style-preview-inner {
    position: relative;
    background: transparent;
}
.style-card[data-id="bauhaus"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #fbbf24;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}
.style-card[data-id="bauhaus"] .style-preview-inner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    bottom: 10px;
    right: 10px;
}

/* 18. 赛博朋克 - 霓虹故障 */
/* 赛博朋克 - 霓虹紫蓝底+青色/粉色发光块 */
.style-card[data-id="cyberpunk"] .style-preview {
    background: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 40%, #6b21a8 70%, #a855f7 100%);
}
.style-card[data-id="cyberpunk"] .style-preview-inner {
    position: relative;
    width: 120px;
    height: 80px;
    background: transparent;
}
.style-card[data-id="cyberpunk"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 28px;
    background: #00f0ff;
    border-radius: 14px;
    bottom: 8px;
    left: 10px;
    box-shadow: 
        0 0 15px rgba(0,240,255,0.6),
        0 0 30px rgba(0,240,255,0.4),
        inset 0 0 8px rgba(255,255,255,0.3);
}
.style-card[data-id="cyberpunk"] .style-preview-inner::after {
    content: '';
    position: absolute;
    width: 75px;
    height: 22px;
    background: #ff00e5;
    border-radius: 11px;
    top: 12px;
    right: 10px;
    box-shadow: 
        0 0 12px rgba(255,0,229,0.5),
        0 0 24px rgba(255,0,229,0.3),
        inset 0 0 6px rgba(255,255,255,0.25);
}
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
}

/* 19. 蒸汽波 - 复古未来 */
.style-card[data-id="vaporwave"] .style-preview {
    background: linear-gradient(180deg, #ff00ff 0%, #00ffff 100%);
}
.style-card[data-id="vaporwave"] .style-preview-inner {
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 24px;
}

/* 20. 液态渐变 - 流动效果 */
.style-card[data-id="liquid-gradient"] .style-preview {
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
    background-size: 400% 400%;
    animation: liquidFlow 8s ease infinite;
}
@keyframes liquidFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.style-card[data-id="liquid-gradient"] .style-preview-inner {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 50%;
}

/* 21. 3D立体 - 深度感 */
.style-card[data-id="3d-depth"] .style-preview {
    background: #1a1a1f;
    perspective: 500px;
}
.style-card[data-id="3d-depth"] .style-preview-inner {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: rotateY(25deg) rotateX(10deg);
    box-shadow: 
        -20px 20px 40px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(255,255,255,0.2);
}

/* 22. 微交互 - 细腻动效 */
.style-card[data-id="micro-interaction"] .style-preview {
    background: #f3f4f6;
}
.style-card[data-id="micro-interaction"] .style-preview-inner {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulseScale 2s ease-in-out infinite;
}
@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 23. 有机形态 - 自然曲线 */
.style-card[data-id="organic"] .style-preview {
    background: #ecfdf5;
}
.style-card[data-id="organic"] .style-preview-inner {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* 24. 几何抽象 - 点线面 */
.style-card[data-id="geometric"] .style-preview {
    background: #fff;
}
.style-card[data-id="geometric"] .style-preview-inner {
    position: relative;
    background: transparent;
}
.style-card[data-id="geometric"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid #1a1a1f;
    top: 10px;
}
.style-card[data-id="geometric"] .style-preview-inner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ef4444;
    bottom: 15px;
    border-radius: 50%;
}

/* 25. 像素风 - 8-bit */
.style-card[data-id="pixel-art"] .style-preview {
    background: #1a1a1f;
    image-rendering: pixelated;
}
.style-card[data-id="pixel-art"] .style-preview-inner {
    width: 80px;
    height: 80px;
    background: 
        linear-gradient(90deg, #ff0000 25%, transparent 25%),
        linear-gradient(180deg, #00ff00 25%, transparent 25%),
        linear-gradient(270deg, #0000ff 25%, transparent 25%),
        linear-gradient(0deg, #ffff00 25%, transparent 25%);
    background-size: 20px 20px;
    border-radius: 0;
    box-shadow: 
        0 0 0 4px #1a1a1f,
        0 0 0 8px #ff0000;
}

/* 26. 剪纸风 - 层叠阴影 */
.style-card[data-id="paper-cut"] .style-preview {
    background: #fef3c7;
}
.style-card[data-id="paper-cut"] .style-preview-inner {
    position: relative;
    background: #f59e0b;
    box-shadow: 
        4px 4px 0 #d97706,
        8px 8px 0 #b45309;
}

/* 27. 悬浮卡片 - 悬浮效果 */
.style-card[data-id="floating-cards"] .style-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.style-card[data-id="floating-cards"] .style-preview-inner {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 28. 重叠层 - 层次感 */
.style-card[data-id="overlapping-layers"] .style-preview {
    background: #f3f4f6;
}
.style-card[data-id="overlapping-layers"] .style-preview-inner {
    position: relative;
    background: #3b82f6;
}
.style-card[data-id="overlapping-layers"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ef4444;
    top: 15px;
    left: 15px;
    z-index: -1;
}
.style-card[data-id="overlapping-layers"] .style-preview-inner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fbbf24;
    top: 30px;
    left: 30px;
    z-index: -2;
}

/* 赛博朋克 - 保留旧版带故障动画的定义，此处不重复 */

/* 莫兰迪色 - 低饱和高级灰 */
.style-card[data-id="morandi"] .style-preview {
    background: #e8e0d8;
}
.style-card[data-id="morandi"] .style-preview-inner {
    display: flex;
    gap: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.style-card[data-id="morandi"] .style-preview-inner::before {
    content: '';
    width: 70px;
    height: 70px;
    background: #b8a9a0;
}
.style-card[data-id="morandi"] .style-preview-inner::after {
    content: '';
    width: 70px;
    height: 70px;
    background: #c4b7a6;
}

/* 野蛮主义 - 原始粗犷 */
.style-card[data-id="brutalism"] .style-preview {
    background: #1a1a1f;
}
.style-card[data-id="brutalism"] .style-preview-inner {
    width: 120px;
    height: 60px;
    background: #fbbf24;
    color: #1a1a1f;
    font-size: 16px;
    font-weight: 900;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: 4px solid #1a1a1f;
    box-shadow: 6px 6px 0 #1a1a1f;
    border-radius: 0;
}

/* 孟菲斯风格 - 几何+波普色彩 */
.style-card[data-id="memphis"] .style-preview {
    background: #fffbe6;
}
.style-card[data-id="memphis"] .style-preview-inner {
    position: relative;
    width: 100px;
    height: 80px;
    background: transparent;
}
.style-card[data-id="memphis"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 45px;
    height: 45px;
    background: #ff6b9d;
    border-radius: 50%;
    top: 8px;
    left: 10px;
}
.style-card[data-id="memphis"] .style-preview-inner::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 44px solid #40c4ff;
    bottom: 8px;
    right: 10px;
}

/* 装饰艺术 Art Deco - 金色几何奢华 */
.style-card[data-id="art-deco"] .style-preview {
    background: linear-gradient(180deg, #0c0c1e 0%, #1a1a3e 100%);
}
.style-card[data-id="art-deco"] .style-preview-inner {
    width: 70px;
    height: 70px;
    border: 3px solid #d4af37;
    background: transparent;
    position: relative;
}
.style-card[data-id="art-deco"] .style-preview-inner::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid rgba(212,175,55,0.4);
    border-radius: 0;
}
.style-card[data-id="art-deco"] .style-preview-inner::after {
    content: '';
    position: absolute;
    inset: 16px;
    background: linear-gradient(135deg, #d4af37, #f5e6a3, #d4af37);
}

/* 日式极简 - 留白+自然+禅意 */
.style-card[data-id="japanese-minimalism"] .style-preview {
    background: #f5f0eb;
}
.style-card[data-id="japanese-minimalism"] .style-preview-inner {
    width: 4px;
    height: 80px;
    background: #2c2c2c;
    border-radius: 2px;
}

/* 北欧风格 - 浅色调+自然光 */
.style-card[data-id="scandinavian"] .style-preview {
    background: #f7f4f0;
}
.style-card[data-id="scandinavian"] .style-preview-inner {
    width: 80px;
    height: 60px;
    background: #e8ddd0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.style-card[data-id="scandinavian"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #7ba787;
    border-radius: 50%;
    bottom: 15px;
    right: 20px;
}

/* 工业风 - 金属+裸露管线 */
.style-card[data-id="industrial"] .style-preview {
    background: linear-gradient(180deg, #2a2520 0%, #1a1815 100%);
}
.style-card[data-id="industrial"] .style-preview-inner {
    width: 100px;
    height: 70px;
    background: linear-gradient(180deg, #5a504a, #3d3835);
    border-radius: 0;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.5);
}

/* 波西米亚 - 浓郁色彩+民族 */
.style-card[data-id="bohemian"] .style-preview {
    background: linear-gradient(135deg, #d4a373 0%, #ccd5ae 100%);
}
.style-card[data-id="bohemian"] .style-preview-inner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #e9c46a;
    background: transparent;
}
.style-card[data-id="bohemian"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #e76f51;
    border-radius: 50%;
}

/* 复古怀旧 - 泛黄做旧 */
.style-card[data-id="vintage"] .style-preview {
    background: linear-gradient(180deg, #f5e6c8 0%, #e8d5a8 100%);
}
.style-card[data-id="vintage"] .style-preview-inner {
    width: 90px;
    height: 65px;
    background: rgba(139,109,63,0.15);
    border: 2px solid #8b6d3f;
    border-radius: 4px;
}
.style-card[data-id="vintage"] .style-preview-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
}

/* 热带风情 - 鲜亮+植物 */
.style-card[data-id="tropical"] .style-preview {
    background: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
}
.style-card[data-id="tropical"] .style-preview-inner {
    width: 60px;
    height: 60px;
    background: #ffd166;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 马卡龙色 - 柔和粉彩 */
.style-card[data-id="pastel"] .style-preview {
    background: linear-gradient(135deg, #ffc8dd 0%, #bde0fe 50%, #cdb4db 100%);
}
.style-card[data-id="pastel"] .style-preview-inner {
    width: 65px;
    height: 65px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
}

/* 单色系 - 深浅明暗变化 */
.style-card[data-id="monochrome"] .style-preview {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}
.style-card[data-id="monochrome"] .style-preview-inner {
    display: flex;
    gap: 0;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
}
.style-card[data-id="monochrome"] .style-preview-inner::before {
    content: '';
    width: 50px;
    height: 60px;
    background: #333;
}
.style-card[data-id="monochrome"] .style-preview-inner::after {
    content: '';
    width: 50px;
    height: 60px;
    background: #888;
}

/* 29. 网格布局 - 3x3等分网格 */
.style-card[data-id="grid-layout"] .style-preview {
    background: #f8f9fa;
}
.style-card[data-id="grid-layout"] .style-preview-inner {
    position: relative;
    width: 120px;
    height: 90px;
    background: transparent;
}
/* 网格背景线（横线+竖线+9个色块） */
.style-card[data-id="grid-layout"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(#1a1a1f 0%, #1a1a1f 100%) 0 29px / 100% 1px no-repeat,
        linear-gradient(#1a1a1f 0%, #1a1a1f 100%) 0 59px / 100% 1px no-repeat,
        linear-gradient(#1a1a1f 0%, #1a1a1f 100%) 39px 0 / 1px 100% no-repeat,
        linear-gradient(#1a1a1f 0%, #1a1a1f 100%) 79px 0 / 1px 100% no-repeat;
}
.style-card[data-id="grid-layout"] .style-preview-inner::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 114px;
    height: 84px;
    background:
        linear-gradient(#3b82f6, #3b82f6) 0 0 / 35px 25px no-repeat,
        linear-gradient(#10b981, #10b981) 40px 0 / 35px 25px no-repeat,
        linear-gradient(#f59e0b, #f59e0b) 80px 0 / 34px 25px no-repeat,
        linear-gradient(#ef4444, #ef4444) 0 31px / 35px 25px no-repeat,
        linear-gradient(#8b5cf6, #8b5cf6) 40px 31px / 35px 25px no-repeat,
        linear-gradient(#ec4899, #ec4899) 80px 31px / 34px 25px no-repeat,
        linear-gradient(#14b8a6, #14b8a6) 0 62px / 35px 22px no-repeat,
        linear-gradient(#f97316, #f97316) 40px 62px / 35px 22px no-repeat,
        linear-gradient(#6366f1, #6366f1) 80px 62px / 34px 22px no-repeat;
    border-radius: 4px;
}

/* 不对称布局 - 左上大块+右下小块 */
.style-card[data-id="asymmetric"] .style-preview {
    background: #f8f9fa;
}
.style-card[data-id="asymmetric"] .style-preview-inner {
    position: relative;
    width: 140px;
    height: 90px;
    background: transparent;
}
.style-card[data-id="asymmetric"] .style-preview-inner::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 50px;
    background: #1a1a1f;
    top: 15px;
    left: 15px;
    border-radius: 8px;
}
.style-card[data-id="asymmetric"] .style-preview-inner::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 35px;
    background: #3b82f6;
    bottom: 15px;
    right: 25px;
    border-radius: 8px;
}

/* 30. 沉浸式全屏 - 沉浸体验 */
.style-card[data-id="immersive"] .style-preview {
    background: linear-gradient(180deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}
.style-card[data-id="immersive"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
    border-radius: 0;
    background: transparent;
}
/* 居中圆圈 */
.style-card[data-id="immersive"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}
/* 中心播放按钮 */
.style-card[data-id="immersive"] .style-preview-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-48%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent rgba(255,255,255,0.8);
}

/* ===== 新增布局结构风格预览 ===== */

/* 31. 网格布局 - （已在上方#29中定义，此处删除重复） */

/* 32. 便当盒布局 - 大小不一的卡片拼合 */
.style-card[data-id="bento-grid"] .style-preview {
    background: #f0f0f3;
    border: 1px solid #ddd;
}
.style-card[data-id="bento-grid"] .style-preview-inner {
    position: relative;
    width: 150px;
    height: 95px;
}
/* 左侧大区域：2x2网格卡片 */
.style-card[data-id="bento-grid"] .style-preview-inner::before {
    content: '';
    position: absolute;
    left: 5px; top: 5px;
    width: 95px; height: 85px;
    background:
        linear-gradient(135deg, #c4b5fd, #a78bfa),
        linear-gradient(135deg, #93c5fd, #60a5fa),
        linear-gradient(135deg, #fcd34d, #f59e0b),
        linear-gradient(135deg, #6ee7b7, #34d399);
    background-size: 46px 40px;
    background-position: 0 0, 47px 0, 0 41px, 47px 41px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
/* 右侧：操作面板（标题条+内容区+按钮）*/
.style-card[data-id="bento-grid"] .style-preview-inner::after {
    content: '';
    position: absolute;
    right: 5px; top: 5px;
    width: 42px; height: 85px;
    background:
        /* 顶部紫蓝标题栏 */
        linear-gradient(135deg, #6366f1, #8b5cf6) 0 0 / 100% 22px no-repeat,
        /* 中间浅灰内容区 */
        #eee 22px / 100% 38px no-repeat,
        /* 底部绿色按钮 */
        linear-gradient(135deg, #10b981, #34d399) 62px 0 / 100% 23px no-repeat;
    border-radius: 6px;
}

/* 33. 大留白布局 - 呼吸感强 */
.style-card[data-id="big-whitespace"] .style-preview {
    background: #ffffff;
}
.style-card[data-id="big-whitespace"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
}
/* 居中小卡片 */
.style-card[data-id="big-whitespace"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #1a1a1f;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
/* 小卡片内的文字行模拟 */
.style-card[data-id="big-whitespace"] .style-preview-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 4px;
    background: #555;
    border-radius: 2px;
}

/* 34. 信息密集布局 - 数据仪表盘 */
.style-card[data-id="dense-info"] .style-preview {
    background: #0f1117;
}
.style-card[data-id="dense-info"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
    background: #161822;
    border-radius: 6px;
    overflow: hidden;
}
/* 左侧小面板：指标条 */
.style-card[data-id="dense-info"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 32px;
    height: 78px;
    background:
        linear-gradient(#3b82f6 0%, #3b82f6 100%) 0 0 / 32px 16px no-repeat,
        linear-gradient(#10b981 0%, #10b981 100%) 0 20px / 32px 16px no-repeat,
        linear-gradient(#f59e0b 0%, #f59e0b 100%) 0 40px / 32px 16px no-repeat,
        linear-gradient(#ef4444 0%, #ef4444 100%) 0 60px / 32px 16px no-repeat;
    border-radius: 4px;
}
/* 右侧数据网格 */
.style-card[data-id="dense-info"] .style-preview-inner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 42px;
    right: 6px;
    height: 78px;
    background:
        /* 表头 */
        linear-gradient(#3b82f6 0%, #3b82f6 100%) 0 0 / 100% 10px no-repeat,
        /* 数据行 - 密集排列 */
        linear-gradient(#1e2030 0%, #1e2030 100%) 0 12px / 100% 7px no-repeat,
        linear-gradient(#252840 0%, #252840 100%) 0 21px / 100% 7px no-repeat,
        linear-gradient(#1e2030 0%, #1e2030 100%) 0 30px / 100% 7px no-repeat,
        linear-gradient(#252840 0%, #252840 100%) 0 39px / 100% 7px no-repeat,
        linear-gradient(#1e2030 0%, #1e2030 100%) 0 48px / 100% 7px no-repeat,
        linear-gradient(#252840 0%, #252840 100%) 0 57px / 100% 7px no-repeat,
        linear-gradient(#1e2030 0%, #1e2030 100%) 0 66px / 100% 7px no-repeat;
    border-radius: 4px;
}

/* 35. F型布局 - 顶部导航+左侧内容 */
.style-card[data-id="f-pattern"] .style-preview {
    background: #f0f2f5;
}
.style-card[data-id="f-pattern"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}
/* 左侧导航栏 */
.style-card[data-id="f-pattern"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 100%;
    background: #1e1e2d;
}
/* 右侧内容区 - 用多层渐变模拟：顶栏+卡片+列表 */
.style-card[data-id="f-pattern"] .style-preview-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 0;
    bottom: 0;
    background:
        /* 顶部标题栏 */
        linear-gradient(to right, #fff 0%, #fff 100%) 0 0 / 100% 14px no-repeat,
        /* 标题栏分隔线 */
        linear-gradient(to right, #e5e7eb 0%, #e5e7eb 100%) 0 14px / 100% 1px no-repeat,
        /* 第一行数据卡片 */
        linear-gradient(#4f6ef7 0%, #4f6ef7 100%) 5px 19px / 24px 18px no-repeat,
        linear-gradient(#6c8cff 0%, #6c8cff 100%) 33px 19px / 24px 18px no-repeat,
        linear-gradient(#36b37e 0%, #36b37e 100%) 61px 19px / 24px 18px no-repeat,
        linear-gradient(#ffab00 0%, #ffab00 100%) 89px 19px / 24px 18px no-repeat,
        /* 列表区域标题 */
        linear-gradient(#1a1a2e 0%, #1a1a2e 100%) 5px 43px / 50px 5px no-repeat,
        /* 列表行 */
        linear-gradient(#f0f0f0 0%, #f0f0f0 100%) 5px 51px / 108px 6px no-repeat,
        linear-gradient(#f8f8f8 0%, #f8f8f8 100%) 5px 59px / 108px 6px no-repeat,
        linear-gradient(#f0f0f0 0%, #f0f0f0 100%) 5px 67px / 108px 6px no-repeat,
        linear-gradient(#f8f8f8 0%, #f8f8f8 100%) 5px 75px / 108px 6px no-repeat;
}

/* 36. Z型布局 - 对角线视觉动线 */
.style-card[data-id="z-pattern"] .style-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e5e7eb 100%);
}
.style-card[data-id="z-pattern"] .style-preview-inner {
    position: relative;
    width: 130px;
    height: 90px;
    background: transparent;
}
.style-card[data-id="z-pattern"] .style-preview-inner::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 20px;
    background: #1a1a1f;
    border-radius: 4px;
}
.style-card[data-id="z-pattern"] .style-preview-inner::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 20px;
    background: #ef4444;
    border-radius: 4px;
}

/* 37. 瀑布流布局 - 错落排列（已在上方#14中定义） */

/* ===== 配色卡片 ===== */
.colors-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.color-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}

.color-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}

.color-header {
    padding: 24px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.color-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.color-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.color-category {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.color-colors {
    display: flex;
    height: 120px;
    margin-top: 20px;
}

.color-block {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    position: relative;
    transition: flex 0.3s;
    cursor: pointer;
}

.color-block:hover {
    flex: 1.5;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.color-hex {
    position: absolute;
    bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Outfit', monospace;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.55);
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.color-block:active .color-hex {
    color: var(--success);
    transform: scale(1.1);
    transition: all 0.15s;
}

.color-footer {
    padding: 20px 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-tag {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.copy-colors-btn {
    margin: 0 28px 24px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.copy-colors-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg);
    border-color: transparent;
}

.copy-colors-btn.copied {
    background: var(--success);
    color: var(--bg);
    border-color: transparent;
}

/* ===== 字体卡片 ===== */
.fonts-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.font-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}

.font-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
}

.font-preview {
    padding: 40px 24px;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.font-example {
    font-size: 2.5rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text);
    transition: all 0.3s;
}

.font-card:hover .font-example {
    transform: scale(1.05);
}

/* 字体预览独特样式 */
.font-card[data-id="inter"] .font-example {
    font-weight: 500;
    letter-spacing: -0.02em;
}

.font-card[data-id="playfair-display"] .font-example {
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
}

.font-card[data-id="noto-sans-sc"] .font-example {
    font-weight: 500;
    letter-spacing: 0.05em;
}

.font-card[data-id="zcool-kuai-le"] .font-example {
    font-size: 2.8rem;
    transform: rotate(-2deg);
}

.font-card[data-id="roboto"] .font-example {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.font-card[data-id="open-sans"] .font-example {
    font-weight: 600;
}

.font-card[data-id="montserrat"] .font-example {
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.font-card[data-id="lato"] .font-example {
    font-weight: 400;
    letter-spacing: 0.03em;
}

.font-card[data-id="poppins"] .font-example {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.font-card[data-id="source-code-pro"] .font-example,
.font-card[data-id="fira-code"] .font-example,
.font-card[data-id="jetbrains-mono"] .font-example {
    font-family: 'Source Code Pro', 'Fira Code', 'JetBrains Mono', monospace;
    background: rgba(0,0,0,0.3);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.8rem;
}

.font-card[data-id="merriweather"] .font-example {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.font-card[data-id="raleway"] .font-example {
    font-weight: 200;
    letter-spacing: 0.1em;
}

.font-card[data-id="dm-sans"] .font-example {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.font-card[data-id="space-grotesk"] .font-example {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.font-card[data-id="nunito"] .font-example {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.font-card[data-id="work-sans"] .font-example {
    font-weight: 600;
}

.font-card[data-id="archivo"] .font-example {
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.font-card[data-id="noto-serif-sc"] .font-example {
    font-weight: 600;
    letter-spacing: 0.08em;
}

.font-body {
    padding: 24px;
}

.font-name {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.font-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.font-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.font-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.font-prompt {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===== 复制成功提示 ===== */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--success);
    color: var(--bg);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    z-index: 1001;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer span {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ===== 滚动动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(8,8,12,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    [data-theme="light"] .nav-links {
        background: rgba(255,255,255,0.95);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu-btn {
        display: flex;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .stat-num {
        font-size: 36px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .styles-grid {
        grid-template-columns: 1fr;
    }
    
    .color-colors {
        height: 80px;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 16px 60px;
    }
    
    .hero {
        padding: 100px 16px 40px;
    }
    
    .style-body,
    .font-body {
        padding: 20px;
    }
    
    .color-header,
    .color-footer {
        padding: 20px 20px 0;
    }
    
    .copy-colors-btn {
        margin: 0 20px 20px;
    }
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-animate {
    animation: fadeIn 0.5s ease-out;
}
