/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素变量定义 - Creative Fabrica风格 */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-sidebar: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1000px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    z-index: 2;
    margin: 0 auto;
}


/* Hero Title */
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Control Bar */
.control-bar {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.font-selector {
    position: relative;
}

.font-dropdown {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    min-width: 120px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.font-dropdown:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.text-input-container {
    flex: 1;
    min-width: 300px;
}

.hero-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.hero-text-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: white;
}

.hero-text-input::placeholder {
    color: #9ca3af;
}

.surprise-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.surprise-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.surprise-icon {
    font-size: 16px;
}

/* 导航栏 */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.nav-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.nav-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.nav-btn.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* 主容器 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    min-height: calc(100vh - 72px);
}

/* 侧边栏 */
.sidebar {
    background: var(--bg-sidebar);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 96px;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* 输入组 */
.input-group {
    margin-bottom: 0;
}

.text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
    background: var(--bg-primary);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 控制组 */
.control-group {
    margin-bottom: 20px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.control-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    transition: var(--transition);
}

.control-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 滑块 */
.control-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    transition: var(--transition);
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.control-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.control-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* 颜色选择器 */
.color-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.color-picker:hover {
    border-color: var(--border-hover);
}

.color-value {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', monospace;
}

/* 效果按钮网格 */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.artistic-preview-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.effect-btn {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.effect-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.effect-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.artistic-preview-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.artistic-preview-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.artistic-preview-content {
    margin-bottom: 12px;
}

.artistic-style-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.artistic-text-preview {
    font-size: 16px;
    line-height: 1.4;
    color: #1f2937;
    word-wrap: break-word;
    min-height: 24px;
}

.artistic-copy-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    width: 100%;
}

.artistic-copy-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.artistic-copy-btn.primary {
    background: #10b981;
    border-color: #10b981;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.artistic-copy-btn.primary:hover {
    background: #059669;
    border-color: #059669;
}

.copy-icon {
    font-size: 14px;
}

/* 内容区域 */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 主预览区域 */
.main-preview-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    flex: 1;
}


/* 艺术样式列表 */
.artistic-styles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.artistic-style-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.artistic-style-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.style-content {
    flex: 1;
    margin-right: 16px;
}

.style-name {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.style-preview {
    font-size: 18px;
    line-height: 1.4;
    color: #1f2937;
    word-wrap: break-word;
    min-height: 24px;
}

.style-copy-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

.style-copy-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}


/* 操作按钮 */
.action-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-btn.secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* 下拉菜单 */
.export-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.export-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* 预览容器 */
.preview-container {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.preview-container:hover {
    border-color: var(--border-hover);
}

.preview-box {
    width: 100%;
    text-align: center;
}

.preview-text {
    font-size: 60px;
    font-weight: 400;
    text-align: center;
    word-wrap: break-word;
    transition: var(--transition);
    display: inline-block;
}

/* 文字样式效果 */
.preview-text.normal {
    color: var(--text-primary);
}

.preview-text.bold {
    font-weight: 700;
    color: var(--text-primary);
}

.preview-text.shadow {
    color: var(--text-primary);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.preview-text.outline {
    color: transparent;
    -webkit-text-stroke: 3px var(--primary-color);
    text-stroke: 3px var(--primary-color);
}

.preview-text.neon {
    color: #fff;
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color),
        0 0 20px var(--primary-color);
    animation: neon-glow 2s ease-in-out infinite alternate;
}

.preview-text.gradient {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.preview-text.rainbow {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 2s ease infinite;
}

.preview-text.bubble {
    color: #fff;
    text-shadow: 
        0 0 10px rgba(99, 102, 241, 0.8),
        0 0 20px rgba(99, 102, 241, 0.6),
        0 0 30px rgba(99, 102, 241, 0.4);
    animation: bubble-float 2s ease-in-out infinite;
}

.preview-text.fire {
    color: #ff4500;
    text-shadow: 
        0 0 5px #ff4500,
        0 0 10px #ff6500,
        0 0 15px #ff8500,
        0 0 20px #ffa500;
    animation: fire-flicker 1.5s ease-in-out infinite alternate;
}

.preview-text.ice {
    color: #87ceeb;
    text-shadow: 
        0 0 5px #87ceeb,
        0 0 10px #b0e0e6,
        0 0 15px #e0ffff,
        0 0 20px #f0f8ff;
    animation: ice-shimmer 2s ease-in-out infinite;
}

/* 艺术文字效果 */
.preview-text.gothic-reverie {
    font-family: 'Playfair Display', serif;
    color: #6b46c1;
    font-weight: 400;
    text-shadow: 
        2px 2px 0px #4c1d95,
        4px 4px 8px rgba(107, 70, 193, 0.3);
    letter-spacing: 1px;
    transform: skew(-2deg);
}

.preview-text.gentle-calligraphy {
    font-family: 'Dancing Script', cursive;
    color: #7c3aed;
    font-weight: 400;
    text-shadow: 
        1px 1px 2px rgba(124, 58, 237, 0.5),
        2px 2px 4px rgba(124, 58, 237, 0.3);
    letter-spacing: 0.5px;
    transform: rotate(-1deg);
}

.preview-text.gothic-intrigue {
    font-family: 'Oswald', sans-serif;
    color: #1f2937;
    font-weight: 700;
    text-shadow: 
        3px 3px 0px #000,
        6px 6px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.preview-text.monospace-elegance {
    font-family: 'Courier New', monospace;
    color: #374151;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 
        1px 1px 2px rgba(55, 65, 81, 0.3);
}

.preview-text.modern-blockade {
    font-family: 'Impact', sans-serif;
    color: #000;
    font-weight: 900;
    text-shadow: 
        4px 4px 0px #fff,
        8px 8px 0px #000;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #000 25%, #333 25%, #333 50%, #000 50%, #000 75%, #333 75%);
    background-size: 20px 20px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-text.urban-square {
    font-family: 'Arial Black', sans-serif;
    color: transparent;
    font-weight: 900;
    -webkit-text-stroke: 3px #000;
    text-stroke: 3px #000;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        6px 6px 0px #fff,
        12px 12px 0px #000;
}

.preview-text.modern-clarity {
    font-family: 'Inter', sans-serif;
    color: #374151;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 
        1px 1px 2px rgba(55, 65, 81, 0.2);
    transform: skew(-1deg);
}

.preview-text.vintage-script {
    font-family: 'Brush Script MT', cursive;
    color: #92400e;
    font-weight: 400;
    text-shadow: 
        2px 2px 4px rgba(146, 64, 14, 0.4),
        4px 4px 8px rgba(146, 64, 14, 0.2);
    letter-spacing: 1px;
    transform: rotate(1deg);
}

/* 艺术文字预览样式 */
.artistic-text-preview.gothic-reverie {
    font-family: 'Playfair Display', serif;
    color: #6b46c1;
    font-weight: 400;
    text-shadow: 
        2px 2px 0px #4c1d95,
        4px 4px 8px rgba(107, 70, 193, 0.3);
    letter-spacing: 1px;
    transform: skew(-2deg);
}

.artistic-text-preview.gentle-calligraphy {
    font-family: 'Dancing Script', cursive;
    color: #059669;
    font-weight: 600;
    text-shadow: 
        1px 1px 2px rgba(5, 150, 105, 0.3),
        0 0 10px rgba(5, 150, 105, 0.2);
    letter-spacing: 0.5px;
}

.artistic-text-preview.gothic-intrigue {
    font-family: 'Playfair Display', serif;
    color: #dc2626;
    font-weight: 700;
    text-shadow: 
        3px 3px 0px #991b1b,
        6px 6px 12px rgba(220, 38, 38, 0.4);
    letter-spacing: 2px;
    transform: skew(1deg);
}

.artistic-text-preview.monospace-elegance {
    font-family: 'Courier New', monospace;
    color: #374151;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 
        1px 1px 0px #6b7280,
        2px 2px 4px rgba(55, 65, 81, 0.2);
}

.artistic-text-preview.modern-blockade {
    font-family: 'Impact', sans-serif;
    color: #1f2937;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 
        2px 2px 0px #ffffff,
        4px 4px 0px #6b7280;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.artistic-text-preview.urban-square {
    font-family: 'Arial Black', sans-serif;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        2px 2px 0px #1f2937,
        4px 4px 0px #374151;
    background: #1f2937;
    padding: 4px 8px;
    border-radius: 4px;
}

.artistic-text-preview.modern-clarity {
    font-family: 'Inter', sans-serif;
    color: #3b82f6;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 
        1px 1px 2px rgba(59, 130, 246, 0.3);
}

.artistic-text-preview.symbolic-essence {
    font-family: 'Arial', sans-serif;
    color: #1f2937;
    font-weight: 400;
    letter-spacing: 0px;
    font-size: 14px;
    line-height: 1.2;
}

/* 主预览区域艺术样式 */
.style-preview.gothic-reverie {
    font-family: 'Playfair Display', serif;
    color: #6b46c1;
    font-weight: 400;
    text-shadow: 
        2px 2px 0px #4c1d95,
        4px 4px 8px rgba(107, 70, 193, 0.3);
    letter-spacing: 1px;
    transform: skew(-2deg);
}

.style-preview.gentle-calligraphy {
    font-family: 'Dancing Script', cursive;
    color: #059669;
    font-weight: 600;
    text-shadow: 
        1px 1px 2px rgba(5, 150, 105, 0.3),
        0 0 10px rgba(5, 150, 105, 0.2);
    letter-spacing: 0.5px;
}

.style-preview.gothic-intrigue {
    font-family: 'Playfair Display', serif;
    color: #dc2626;
    font-weight: 700;
    text-shadow: 
        3px 3px 0px #991b1b,
        6px 6px 12px rgba(220, 38, 38, 0.4);
    letter-spacing: 2px;
    transform: skew(1deg);
}

.style-preview.monospace-elegance {
    font-family: 'Courier New', monospace;
    color: #374151;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 
        1px 1px 0px #6b7280,
        2px 2px 4px rgba(55, 65, 81, 0.2);
}

.style-preview.modern-blockade {
    font-family: 'Impact', sans-serif;
    color: #1f2937;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 
        2px 2px 0px #ffffff,
        4px 4px 0px #6b7280;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.style-preview.urban-square {
    font-family: 'Arial Black', sans-serif;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        2px 2px 0px #1f2937,
        4px 4px 0px #374151;
    background: #1f2937;
    padding: 4px 8px;
    border-radius: 4px;
}

.style-preview.modern-clarity {
    font-family: 'Inter', sans-serif;
    color: #3b82f6;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 
        1px 1px 2px rgba(59, 130, 246, 0.3);
}

.style-preview.symbolic-essence {
    font-family: 'Arial', sans-serif;
    color: #1f2937;
    font-weight: 400;
    letter-spacing: 0px;
    font-size: 16px;
    line-height: 1.2;
}

.style-preview.harmonic-essence {
    font-family: 'Brush Script MT', cursive;
    color: #374151;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 
        1px 1px 2px rgba(55, 65, 81, 0.3);
}

.style-preview.classic-reverie {
    font-family: 'Times New Roman', serif;
    color: #374151;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 
        1px 1px 2px rgba(55, 65, 81, 0.2);
}

/* 动画效果 */
.preview-text.animate-bounce {
    animation: bounce 1s infinite;
}

.preview-text.animate-pulse {
    animation: pulse 2s infinite;
}

.preview-text.animate-shake {
    animation: shake 0.5s infinite;
}

.preview-text.animate-wiggle {
    animation: wiggle 1s infinite;
}

.preview-text.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.preview-text.animate-float {
    animation: float 3s ease-in-out infinite;
}

.preview-text.animate-slide {
    animation: slide 2s ease-in-out infinite;
}

.preview-text.animate-zoom {
    animation: zoom 2s ease-in-out infinite;
}

.preview-text.animate-rotate {
    animation: rotate 2s linear infinite;
}

/* 动画关键帧 */
@keyframes neon-glow {
    from {
        text-shadow: 
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color),
            0 0 15px var(--primary-color),
            0 0 20px var(--primary-color);
    }
    to {
        text-shadow: 
            0 0 2px var(--primary-color),
            0 0 5px var(--primary-color),
            0 0 8px var(--primary-color),
            0 0 12px var(--primary-color);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bubble-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fire-flicker {
    0%, 100% { 
        text-shadow: 
            0 0 5px #ff4500,
            0 0 10px #ff6500,
            0 0 15px #ff8500,
            0 0 20px #ffa500;
    }
    50% { 
        text-shadow: 
            0 0 2px #ff4500,
            0 0 5px #ff6500,
            0 0 8px #ff8500,
            0 0 12px #ffa500;
    }
}

@keyframes ice-shimmer {
    0%, 100% { 
        text-shadow: 
            0 0 5px #87ceeb,
            0 0 10px #b0e0e6,
            0 0 15px #e0ffff,
            0 0 20px #f0f8ff;
    }
    50% { 
        text-shadow: 
            0 0 10px #87ceeb,
            0 0 20px #b0e0e6,
            0 0 30px #e0ffff,
            0 0 40px #f0f8ff;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px currentColor; }
    100% { text-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@keyframes zoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 导出选项 */
.export-options {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.export-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-option label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 偏好设置区域 */
.preferences-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.preferences-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.preferences-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.preferences-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pref-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.pref-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pref-btn.save {
    color: var(--success-color);
    border-color: var(--success-color);
}

.pref-btn.save:hover {
    background: var(--success-color);
    color: white;
}

.pref-btn.load {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.pref-btn.load:hover {
    background: var(--warning-color);
    color: white;
}

.pref-btn.reset {
    color: var(--error-color);
    border-color: var(--error-color);
}

.pref-btn.reset:hover {
    background: var(--error-color);
    color: white;
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    max-width: 300px;
    word-wrap: break-word;
    box-shadow: var(--shadow-lg);
}

.message-toast.message-success {
    background: var(--success-color);
}

.message-toast.message-error {
    background: var(--error-color);
}

.message-toast.message-warning {
    background: var(--warning-color);
}

.message-toast.message-info {
    background: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 280px 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .sidebar {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .content-area {
        order: 1;
    }
    
    .nav-container {
        padding: 0 16px;
        height: 64px;
    }
    
    .nav-brand h1 {
        font-size: 20px;
    }
    
    .nav-subtitle {
        font-size: 12px;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .preview-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .effects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .artistic-preview-list {
        gap: 12px;
    }
    
    .artistic-preview-item {
        padding: 12px;
    }
    
    .preferences-actions {
        justify-content: center;
    }
    
    .preview-text {
        font-size: 40px;
    }
    
    .preview-container {
        padding: 20px;
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 12px;
    }
    
    .sidebar {
        padding: 16px;
    }
    
    .main-preview-section {
        padding: 16px;
    }
    
    .artistic-style-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .style-content {
        margin-right: 0;
        width: 100%;
    }
    
    .style-copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .style-preview {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .control-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .text-input-container {
        min-width: 100%;
    }
    
    .font-dropdown {
        min-width: 100%;
    }
    
    .surprise-btn {
        width: 100%;
        justify-content: center;
    }
    
    .preferences-section {
        padding: 16px;
    }
    
    .effects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artistic-preview-list {
        gap: 12px;
    }
    
    .artistic-preview-item {
        padding: 12px;
    }
    
    .artistic-copy-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .artistic-text-preview {
        font-size: 14px;
    }
    
    .preview-text {
        font-size: 32px;
    }
    
    .preview-container {
        padding: 16px;
        min-height: 120px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1e293b;
        --bg-secondary: #0f172a;
        --bg-tertiary: #334155;
        --bg-sidebar: #1e293b;
        
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        
        --border-color: #334155;
        --border-hover: #475569;
    }
}

/* 性能优化 */
.preview-text {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 字体预加载优化 */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-display: swap;
}

/* 懒加载动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
}
