/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --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);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗黑模式变量 */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* 添加滚动偏移量，为固定导航栏留出空间 */
    scroll-padding-top: 75px;
}

/* 主题切换过渡动画 */
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

/* 导航切换按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle:hover .bar {
    background: var(--accent-color);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

[data-theme="dark"] .nav-link.active::after {
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* 导航控制组 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle {
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* 主要内容区域 */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 锚点跳转优化 */
#home,
#sixty-seconds {
    scroll-margin-top: 75px;
}

.section {
    padding: 80px 0;
    /* 为锚点跳转添加滚动边距，确保不被导航栏遮挡 */
    scroll-margin-top: 75px;
}

.section:nth-child(even) {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .section:nth-child(even) {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* 移动端优化section-header间距 */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
}

/* 通用section标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.9;
}

/* ===== 今日要闻模块 - 现代化设计 ===== */

/* 头部区域 */
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.title-group {
    flex: 1;
    max-width: 800px;
}

/* 今日要闻模块专用标题样式 */
.header-content .section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    justify-content: center;
}

.title-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    -webkit-text-fill-color: initial;
    color: #667eea;
}

.title-text {
    position: relative;
    -webkit-text-fill-color: initial;
    color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.title-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    -webkit-text-fill-color: initial;
}



/* 智能分类标签 */
.smart-categories {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: fit-content;
}

[data-theme="dark"] .category-chip {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.category-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.category-chip:hover::before {
    left: 100%;
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.chip-icon {
    font-size: 1.1rem;
}

.chip-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.3);
}

/* 移动端智能分类优化 */
@media (max-width: 768px) {
    .smart-categories {
        margin-bottom: 30px;
        padding: 15px 0;
    }
    
    .category-scroll {
        gap: 8px;
        padding: 2px;
    }
    
    .category-chip {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 6px;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .chip-icon {
        font-size: 1rem;
    }
    
    .chip-count {
        padding: 1px 6px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .smart-categories {
        margin-bottom: 25px;
        padding: 12px 0;
    }
    
    .category-scroll {
        gap: 6px;
    }
    
    .category-chip {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 4px;
        border-radius: 20px;
    }
    
    .chip-icon {
        font-size: 0.9rem;
    }
    
    .chip-count {
        padding: 1px 4px;
        font-size: 0.65rem;
    }
    
    /* 在超小屏幕上，隐藏数字，保持图标+文字 */
    .category-chip .chip-count {
        display: none;
    }
    
    .category-chip {
        padding: 8px 12px;
        min-width: auto;
        justify-content: flex-start;
    }
}

/* 新闻内容区域 */
.news-content-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* 头条新闻 */
.hero-news {
    margin-bottom: 40px;
}

.hero-card {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover .hero-image img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.hero-content {
    padding: 32px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-time::before {
    content: '🕐';
    font-size: 0.8rem;
}

.meta-source {
    color: var(--primary-color);
    font-weight: 600;
}

.meta-category {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 头条新闻按钮样式 */
.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
}

.action-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 1rem;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* 新闻卡片 */
.news-card {
    background: var(--bg-primary) !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    min-height: 400px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .news-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.news-stats {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.news-content {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.news-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.news-content p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 加载更多 */
.load-more-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 热门标签 */
.trending-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

/* 统计项样式 */
.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Toast 通知样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    animation: slideInFromTop 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* 滚动条样式 */
.category-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

.category-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.category-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 60秒读懂世界样式 */
.sixty-seconds-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

/* 卡片导航 */
.template-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

[data-theme="dark"] .nav-btn {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-indicator {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
}

[data-theme="dark"] .card-indicator {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

/* 卡片容器 */
.template-cards-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    perspective: 1200px;
    min-height: 400px;
    margin-bottom: 40px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transform-style: preserve-3d;
}

.template-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    color: white;
    box-shadow: var(--shadow-xl);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100px) translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    height: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

[data-theme="dark"] .template-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: var(--shadow-xl);
}

.template-card:first-child {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.template-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.card-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* 卡片内容 */
.card-content {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.news-item {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.news-item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.item-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
    flex: 1;
}

.importance-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.importance-badge.high {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.importance-badge.medium {
    background: rgba(245, 158, 11, 0.8);
    color: white;
}

.importance-badge.low {
    background: rgba(34, 197, 94, 0.8);
    color: white;
}

.news-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 卡片底部 */
.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.8;
    text-align: center;
}

.controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 页脚样式 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0 20px;
    margin-top: 80px;
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 12px;
    color: white;
}

[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section h4 {
    color: var(--text-primary);
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

[data-theme="dark"] .footer-section p {
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .footer-section li {
    color: var(--text-secondary);
}

/* 快速链接样式 */
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

[data-theme="dark"] .footer-section a {
    color: var(--text-secondary);
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

[data-theme="dark"] .footer-section a:hover {
    color: var(--primary-color);
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

[data-theme="dark"] .social-links a {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .footer-bottom-content {
    color: var(--text-light);
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

.footer-left p,
.footer-right p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-right a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-right a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

[data-theme="dark"] .footer-right a:hover {
    color: var(--primary-color);
}

/* 响应式设计 - 在小屏幕上居中显示 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-section {
        flex: none;
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer-section li {
        margin-bottom: 4px;
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 12px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .loading-overlay {
    background: rgba(17, 24, 39, 0.95);
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 新闻详情页面样式 */
.news-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 10000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .news-detail-page {
    background: var(--bg-primary);
}

/* 详情页面头部 */
.detail-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    gap: 16px;
}

[data-theme="dark"] .detail-header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.back-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.detail-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    min-width: auto;
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-btn.bookmarked {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 详情页面内容 */
.detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 详情页面英雄区域 */
.detail-hero {
    margin-bottom: 40px;
}

.detail-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.trending-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.detail-info {
    text-align: center;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 详情页面主体 */
.detail-body {
    padding-bottom: 60px;
}

.detail-summary {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .detail-summary {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
}

.detail-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

.detail-content-text {
    margin-bottom: 32px;
}

.detail-content-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.detail-tags {
    margin-bottom: 40px;
}

.detail-tags h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tags-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 相关推荐 */
.detail-related {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.detail-related h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.related-news {
    display: grid;
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

[data-theme="dark"] .related-item {
    background: var(--bg-secondary);
}

.related-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.related-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.no-related {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 40px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-header {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .detail-actions {
        gap: 6px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .detail-content {
        padding: 0 16px;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
    
    .detail-meta {
        flex-direction: row;
        gap: 16px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .detail-image {
        height: 250px;
    }
    
    .related-item {
        flex-direction: column;
    }
    
    .related-image {
        width: 100%;
        height: 120px;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .header-actions {
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
        justify-content: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .hero-image {
        height: 300px;
    }

    .hero-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
        /* 移动端导航容器优化 */
        .nav-container {
            gap: 12px; /* 恢复正常的间距 */
            position: relative; /* 确保菜单可以相对于容器定位 */
        }
        
        .nav-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            transform: translateY(-100%) scaleY(0.8);
            transform-origin: top center;
            width: 100%;
            background: var(--bg-primary);
            border-radius: 0 0 20px 20px;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding: 20px 16px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            z-index: 999;
            border-top: 1px solid var(--border-color);
        }

        .nav-menu.active {
            transform: translateY(0) scaleY(1);
            opacity: 1;
            visibility: visible;
        }

        .nav-toggle {
            display: flex;
        }

        .nav-toggle.active .bar:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
        }

        .nav-toggle.active .bar:nth-child(2) {
            opacity: 0;
        }

        .nav-toggle.active .bar:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
        }

    .nav-item {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }

            .nav-link {
            width: 100%;
            padding: 16px 24px;
            text-align: center;
            color: var(--text-secondary);
            font-size: 1.1rem;
            font-weight: 500;
            border-radius: 0;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            margin: 0 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 56px;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
            transition: left 0.5s;
        }

        .nav-link:hover::before {
            left: 100%;
        }

        .nav-link:hover,
        .nav-link.active {
            background: rgba(37, 99, 235, 0.1);
            color: var(--primary-color);
            transform: translateX(4px);
        }

        .nav-link.active::after {
            display: none;
        }
}

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 8px;
    }

    .section-title i {
        font-size: 1.5rem;
    }

    .template-card {
        padding: 24px;
    }

    .template-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .template-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .news-content {
        padding: 16px;
    }

    .news-content h2 {
        font-size: 1.2rem;
    }

    .template-card {
        padding: 20px;
    }

    .day {
        font-size: 2rem;
    }

    .title-section h3 {
        font-size: 1.2rem;
    }

    .news-item {
        padding: 12px;
    }

    .news-item h4 {
        font-size: 0.9rem;
    }

    .news-item p {
        font-size: 0.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
        min-width: 100px;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
        --text-light: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-secondary: #ffffff;
        --text-light: #ffffff;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .controls,
    .footer,
    .loading-overlay,
    .qr-modal {
        display: none !important;
    }

    main {
        margin-top: 0;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .news-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* 微信二维码弹窗样式 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.show {
    display: flex;
    opacity: 1;
}

.qr-modal-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-modal.show .qr-modal-content {
    transform: scale(1);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.qr-modal-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.qr-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.qr-modal-body {
    padding: 24px;
}

.qr-code-container {
    text-align: center;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.qr-code-image:hover {
    transform: scale(1.05);
}

.qr-tip {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* 社交链接悬停效果 */
.social-link {
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* 60秒读懂世界卡片反弹动画 */
@keyframes bounce-left {
    0% {
        transform: translateX(0) translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    }
    25% {
        transform: translateX(20px) translateY(0) translateZ(0) rotateX(0deg) rotateY(5deg) scale(1.02);
    }
    50% {
        transform: translateX(-10px) translateY(0) translateZ(0) rotateX(0deg) rotateY(-3deg) scale(0.98);
    }
    75% {
        transform: translateX(5px) translateY(0) translateZ(0) rotateX(0deg) rotateY(2deg) scale(1.01);
    }
    100% {
        transform: translateX(0) translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    }
}

@keyframes bounce-right {
    0% {
        transform: translateX(0) translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    }
    25% {
        transform: translateX(-20px) translateY(0) translateZ(0) rotateX(0deg) rotateY(-5deg) scale(1.02);
    }
    50% {
        transform: translateX(10px) translateY(0) translateZ(0) rotateX(0deg) rotateY(3deg) scale(0.98);
    }
    75% {
        transform: translateX(-5px) translateY(0) translateZ(0) rotateX(0deg) rotateY(-2deg) scale(1.01);
    }
    100% {
        transform: translateX(0) translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    }
}

.template-card.bounce-left {
    animation: bounce-left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.template-card.bounce-right {
    animation: bounce-right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qr-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .qr-modal-header {
        padding: 20px 20px 12px;
    }
    
    .qr-modal-body {
        padding: 20px;
    }
    
    .qr-code-image {
        width: 180px;
        height: 180px;
    }
}

