
/* ===== 全局变量与基础样式 ===== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #43e97b;
    --warning: #fee140;
    --danger: #f5576c;
    --info: #4facfe;
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1a2745;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0b0;
    --text-muted: #6c6c80;
    --border: #2a2a40;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    box-shadow: var(--shadow);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.nav-logo i {
    font-size: 1.8rem;
    animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-search, .btn-theme {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-search:hover, .btn-theme:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.btn-login {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

/* ===== 搜索弹窗 ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-overlay.active {
    display: flex;
}

.search-modal {
    width: 600px;
    max-width: 90vw;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.search-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.search-header input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font);
    outline: none;
}

.search-header input::placeholder {
    color: var(--text-muted);
}

.search-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.search-close:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
}

.search-suggestions {
    padding: 16px 0;
}

.search-tag-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-tag-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-tag {
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-tag:hover {
    background: rgba(102, 126, 234, 0.2);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.search-result-item i {
    color: var(--primary);
}

.search-result-item .result-title {
    font-weight: 500;
}

.search-result-item .result-category {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: auto;
}

/* ===== 登录弹窗 ===== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
}

.login-overlay.active {
    display: flex;
}

.login-modal {
    width: 400px;
    max-width: 90vw;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    position: relative;
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.login-close:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.login-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.login-tab.active {
    color: var(--primary);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.form-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    transition: var(--transition);
}

.form-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group i {
    color: var(--text-muted);
    font-size: 1rem;
}

.form-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-social {
    margin-top: 24px;
    text-align: center;
}

.login-social p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.social-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn.wechat:hover { color: #07c160; border-color: #07c160; background: rgba(7, 193, 96, 0.1); }
.social-btn.qq:hover { color: #12b7f5; border-color: #12b7f5; background: rgba(18, 183, 245, 0.1); }
.social-btn.github:hover { color: #fff; border-color: #333; background: rgba(51, 51, 51, 0.3); }

/* ===== Hero 区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

[data-theme="light"] .hero-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #dde3ea 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 60px;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.title-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline;
}

.stat-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* ===== 快速入口 ===== */
.quick-entry {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.entry-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.entry-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: white;
}

.entry-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.entry-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== 通用区块样式 ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== 分类标签 ===== */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cat-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.sub-tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.sub-tab:hover {
    color: var(--primary);
}

.sub-tab.active {
    background: var(--primary);
    color: white;
}

/* ===== 课程卡片 ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.course-cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.course-level {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.75rem;
}

.course-info {
    padding: 16px;
}

.course-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-source {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.course-source i {
    color: var(--primary);
    margin-right: 4px;
}

.course-meta {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.course-rating {
    color: #fbbf24;
}

.course-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.course-tags span {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
}

/* ===== 考公专区背景 ===== */
.civil-section {
    background: var(--bg-secondary);
}

/* ===== 计算机专区 ===== */
.computer-section {
    background: var(--bg-primary);
}

.comp-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.comp-cat-tab {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.comp-cat-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.comp-cat-tab.active {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border-color: transparent;
}

.comp-category-content {
    display: none;
}

.comp-category-content.active {
    display: block;
}

/* ===== 语言学习专区 ===== */
.language-section {
    background: var(--bg-secondary);
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.lang-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.lang-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--info);
}

.lang-card.selected {
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.lang-flag {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.lang-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.lang-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.lang-level {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
}

.lang-level-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.lang-level-dot.filled {
    background: var(--info);
}

.lang-detail-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.lang-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.lang-detail-flag {
    font-size: 3rem;
}

.lang-detail-title h3 {
    font-size: 1.5rem;
}

.lang-detail-title p {
    color: var(--text-secondary);
}

.lang-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.lang-module {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.lang-module:hover {
    border-color: var(--info);
    background: var(--bg-card-hover);
}

.lang-module-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 12px;
}

.lang-module h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.lang-module p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.lang-module .module-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== 资源中心 ===== */
.resources-section {
    background: var(--bg-primary);
}

.resource-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.resource-filter {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.resource-filter:hover {
    border-color: var(--success);
    color: var(--success);
}

.resource-filter.active {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
    border-color: transparent;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.resource-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--success);
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 12px;
}

.resource-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.resource-card .resource-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.resource-meta {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    align-items: center;
}

.resource-meta .resource-format {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(67, 233, 123, 0.1);
    color: var(--success);
    font-size: 0.75rem;
}

.resource-download {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.resource-download:hover {
    transform: scale(1.05);
}

/* ===== 学习社区 ===== */
.community-section {
    background: var(--bg-secondary);
}

.community-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.community-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.post-card:hover {
    border-color: var(--warning);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-user-info h5 {
    font-size: 0.95rem;
}

.post-user-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.post-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.post-badge.hot {
    background: rgba(245, 87, 108, 0.15);
    color: var(--danger);
}

.post-badge.top {
    background: rgba(254, 225, 64, 0.15);
    color: #d69e2e;
}

.post-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.post-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.post-action:hover {
    color: var(--primary);
}

.post-action.liked {
    color: var(--danger);
}

.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 i {
    color: var(--primary);
}

.hot-topic-list {
    list-style: none;
}

.hot-topic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: var(--transition);
}

.hot-topic-item:hover {
    color: var(--primary);
}

.hot-topic-rank {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.hot-topic-rank.top1 { background: var(--danger); color: white; }
.hot-topic-rank.top2 { background: #fbbf24; color: white; }
.hot-topic-rank.top3 { background: var(--success); color: white; }
.hot-topic-rank.normal { background: var(--border); color: var(--text-muted); }

.hot-topic-heat {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.study-group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.study-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.study-group:hover {
    background: var(--bg-card-hover);
}

.study-group-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.study-group-info h5 {
    font-size: 0.9rem;
}

.study-group-info span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.study-group-join {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.study-group-join:hover {
    background: var(--primary);
    color: white;
}

/* ===== 学习计划弹窗 ===== */
.plan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
}

.plan-overlay.active {
    display: flex;
}

.plan-modal {
    width: 700px;
    max-width: 90vw;
    max-height: 80vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    overflow-y: auto;
    position: relative;
}

.plan-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.plan-close:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
}

.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.plan-header p {
    color: var(--text-secondary);
}

.plan-calendar {
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calendar-header h4 {
    font-size: 1.1rem;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.1);
}

.calendar-day.today {
    border: 2px solid var(--primary);
    font-weight: 600;
}

.calendar-day.completed {
    background: rgba(67, 233, 123, 0.15);
    color: var(--success);
}

.calendar-day.empty {
    color: var(--text-muted);
    opacity: 0.3;
}

.plan-tasks {
    margin-bottom: 24px;
}

.plan-tasks h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.task-item:hover {
    border-color: var(--primary);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.task-info h5 {
    font-size: 0.95rem;
}

.task-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.task-time {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.plan-progress {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px;
}

.plan-progress h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.progress-bar-container {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 1s ease;
}

/* ===== 笔记弹窗 ===== */
.notes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
}

.notes-overlay.active {
    display: flex;
}

.notes-modal {
    width: 500px;
    max-width: 90vw;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    position: relative;
}

.notes-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.notes-close:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
}

.notes-header {
    margin-bottom: 20px;
}

.notes-header h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.notes-input-area {
    margin-bottom: 16px;
}

.notes-title-input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.notes-title-input:focus {
    border-color: var(--primary);
}

.notes-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    resize: vertical;
    transition: var(--transition);
}

.notes-textarea:focus {
    border-color: var(--primary);
}

.notes-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.notes-action-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.notes-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.notes-save-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.notes-save-btn:hover {
    background: var(--primary-dark);
}

.saved-notes-list {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.saved-note-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.saved-note-item:hover {
    border-color: var(--primary);
}

.saved-note-item i {
    color: var(--primary);
}

.saved-note-item h5 {
    font-size: 0.9rem;
}

.saved-note-item span {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: auto;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.footer-brand i {
    font-size: 1.8rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== 滚动到顶部按钮 ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 100;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== 动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Toast 通知 ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.toast.success { border-color: var(--success); }
.toast.success i { color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.error i { color: var(--danger); }
.toast.info { border-color: var(--info); }
.toast.info i { color: var(--info); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .entry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .community-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 20px;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .title-highlight {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .plan-modal {
        width: 95vw;
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .title-highlight {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .entry-grid {
        grid-template-columns: 1fr;
    }

    .lang-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        flex-direction: column;
    }
}

/* ===== 加载动画 ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== 粒子背景 ===== */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ===== 数据源标签 ===== */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.source-badge.bilibili { background: rgba(251, 114, 153, 0.15); color: #fb7299; }
.source-badge.xuexi { background: rgba(228, 58, 58, 0.15); color: #e43a3a; }
.source-badge.xiaohongshu { background: rgba(255, 67, 67, 0.15); color: #ff4343; }
.source-badge.zhihu { background: rgba(0, 132, 255, 0.15); color: #0084ff; }
.source-badge.csdn { background: rgba(207, 52, 46, 0.15); color: #cf3436; }
.source-badge.mooc { background: rgba(102, 126, 234, 0.15); color: #667eea; }

/* ===== 每日推荐 ===== */
.daily-pick {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.daily-pick-cover {
    width: 200px;
    height: 150px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
}

.daily-pick-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.daily-pick-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.daily-pick-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.daily-pick-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.daily-pick-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== 知识树 ===== */
.knowledge-tree {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.knowledge-tree h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.knowledge-tree h4 i {
    color: var(--primary);
}

.tree-nodes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tree-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.tree-node:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.tree-node-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}

.tree-node span {
    font-size: 0.9rem;
}

.tree-node .node-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== 题库练习 ===== */
.quiz-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.quiz-header h4 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-header h4 i {
    color: var(--primary);
}

.quiz-start-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.quiz-start-btn:hover {
    background: var(--primary-dark);
}

.quiz-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.quiz-cat {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-cat:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.quiz-cat i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.quiz-cat span {
    font-size: 0.85rem;
}

.quiz-cat .quiz-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: block;
    margin-top: 4px;
}

/* ===== 学习统计 ===== */
.study-stats {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.study-stats h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.study-stats h4 i {
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-name {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ===== 视频播放模态 ===== */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
}

.video-overlay.active {
    display: flex;
}

.video-modal {
    width: 800px;
    max-width: 90vw;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    position: relative;
}

.video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.video-close:hover {
    background: rgba(255,255,255,0.2);
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.video-player i {
    font-size: 4rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.video-player i:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
