/* 基础样式和变量 */
:root {
    --primary: #4A6FFF;
    --primary-dark: #3A5CE5;
    --primary-light: #6B8AFF;
    --secondary: #8B5CF6;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --background: #FFFFFF;
    --surface: #F8FAFC;
    --surface-dark: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-dark: #CBD5E1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

[data-theme="dark"] {
    --background: #0F172A;
    --surface: #1E293B;
    --surface-dark: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --border: #334155;
    --border-dark: #475569;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 布局 */
.app-container {
    display: flex;
    min-height: calc(100vh - 140px);
}

.main-content {
    flex: 1;
    padding: 30px 0;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 50px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.quick-tags {
    text-align: center;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 0.9rem;
    display: inline-block;
}

.tag-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    margin: 0 8px;
    transition: var(--transition);
}

.tag-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 分类区域 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 5px;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}