:root {
    /* 暗色主题 */
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #00b4d8;
    --accent-color-2: #ff4d4d;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --particle-color: #ffffff;
    --header-bg: rgba(45, 45, 45, 0.85);
    --header-bg-collapsed: rgba(45, 45, 45, 0.95);
    --category-bg: #1a1a1a;
    --transition-speed: 0.3s;
    --header-height: 70px;
}

/* 亮色主题 */
[data-theme="light"] {
    --primary-color: #ffffff;
    --secondary-color: #f5f5f5;
    --accent-color: #00b4d8;
    --accent-color-2: #ff4d4d;
    --text-color: #333333;
    --text-secondary: #666666;
    --particle-color: #000000;
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-bg-collapsed: rgba(255, 255, 255, 0.95);
    --category-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    padding: 0;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    height: var(--header-height);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 80vw;
    min-width: 700px;
    overflow: visible;
}

/* 添加收缩状态样式 */
header.collapsed {
    width: var(--header-height);
    min-width: var(--header-height);
    cursor: pointer;
    left: 20px;
    transform: translateX(0);
    border-radius: 50%;
    height: var(--header-height);
    background-color: var(--header-bg-collapsed);
}

header.collapsed .header-content {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

header.collapsed .logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

header.collapsed .logo {
    margin: 0;
    width: 32px;
    height: 32px;
    font-size: 16px;
    background-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.3);
}

header.collapsed .site-title {
    display: none;
}

/* 添加展开状态样式 */
header.expanded {
    width: 70vw;
    min-width: 600px;
    left: 50%;
    transform: translateX(-50%);
}

header.expanded .header-content {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 180, 216, 0.2) 0%,
        rgba(255, 77, 77, 0.1) 30%,
        transparent 70%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

header:hover::before {
    opacity: 1;
}

/* 添加边缘光效果 */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 180, 216, 0.3) 0%,
        rgba(255, 77, 77, 0.2) 50%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

header:hover::after {
    opacity: 1;
}

/* 添加边缘发光效果 */
header .glow-effect {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 180, 216, 0.1) 20%,
        rgba(255, 77, 77, 0.2) 50%,
        rgba(0, 180, 216, 0.1) 80%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

header:hover .glow-effect {
    opacity: 1;
}

/* 添加过渡动画 */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 5px 0;
    margin-left: 10px;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
    font-weight: 700;
}

.site-title {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: visible;
    transform: translateY(-2px);
    margin-left: -10px;
}

nav {
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all var(--transition-speed);
    font-size: 14px;
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    opacity: 1;
    transform: translateX(0);
}

/* 当搜索框激活时隐藏导航链接 */
.search-container.active ~ a,
.search-box.active ~ a {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    visibility: hidden;
}

.search-container.active ~ a:nth-child(2),
.search-box.active ~ a:nth-child(2) { transition-delay: 0.05s; }
.search-container.active ~ a:nth-child(3),
.search-box.active ~ a:nth-child(3) { transition-delay: 0.1s; }
.search-container.active ~ a:nth-child(4),
.search-box.active ~ a:nth-child(4) { transition-delay: 0.15s; }

/* 搜索框展开时的样式 */
.search-box.active {
    opacity: 1;
    visibility: visible;
    width: 300px;
}

nav a::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 12px;
    background: linear-gradient(45deg, 
        rgba(0, 180, 216, 0.2),
        rgba(255, 77, 77, 0.3),
        rgba(0, 180, 216, 0.2)
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    transform: translateY(-2px);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

nav a:hover::before {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.hero-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    max-width: 600px;
}

.hero-description {
    font-size: 1.1em;
    max-width: 500px;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed);
}

.slider-button:hover {
    background-color: var(--accent-color);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.dot.active {
    background-color: var(--accent-color);
}

/* Main Content */
main {
    padding: 0;
    margin: 0;
    position: relative;
    background: var(--primary-color);
    margin-bottom: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

main h2 {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    margin-top: 40px;
}

main h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00b4d8, #ff4d4d);
}

/* Article Grid */
.article-section {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: visible;
    background-color: var(--primary-color);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    z-index: 1;
}

/* 移除或注释掉这个伪元素
.article-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to bottom,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    opacity: 0.5;
    pointer-events: none;
}
*/

.article-section h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: var(--text-color);
    text-align: center;
    position: relative;
    z-index: 1;
}

.article-grid {
    display: flex;
    padding: 0;
    width: 100%;
    overflow: hidden;
    max-width: 100%;
    height: 420px;
    min-height: 420px;
    justify-content: flex-start;
    margin: 0;
    position: relative;
    background-color: var(--primary-color);
    z-index: 2;
}

.article-row {
    display: flex;
    gap: 30px;
    padding: 0 50px;
    animation: rowFloat 60s linear infinite;
    will-change: transform;
    align-items: center;
    height: 420px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: max-content;
}

@keyframes rowFloat {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 30px));
    }
}

/* Article Card Styles */
.article-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0.9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    width: 340px;
    height: 420px;
    margin: 0;
    transform: translateY(0);
    z-index: 3;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(45deg, transparent, rgba(0, 180, 216, 0.1), rgba(255, 77, 77, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(0, 180, 216, 0.1);
    z-index: 2;
}

.article-card:hover::before {
    opacity: 1;
}

.article-card:hover .article-title {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-image {
    width: 100%;
    height: 45%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        to bottom,
        var(--secondary-color) 0%,
        rgba(45, 45, 45, 0.95) 100%
    );
}

.article-header {
    margin-bottom: 8px;
}

.article-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-color);
    transition: color var(--transition-speed);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    flex-wrap: wrap;
}

.article-category {
    background: linear-gradient(45deg, rgba(0, 180, 216, 0.1), rgba(255, 77, 77, 0.1));
    color: var(--accent-color);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 10px;
    display: inline-block;
    transition: all var(--transition-speed);
}

.article-card:hover .article-category {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    color: white;
}

.article-excerpt {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-date {
    color: var(--text-secondary);
    font-size: 11px;
}

.article-read-more {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-speed);
}

.article-read-more:hover {
    transform: translateX(5px);
}

.article-read-more svg {
    transition: transform var(--transition-speed);
}

.article-read-more:hover svg {
    transform: translateX(3px);
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

/* 添加鼠标跟随光效果 */
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 180, 216, 0.2) 0%,
        rgba(255, 77, 77, 0.1) 60%,
        transparent 140%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

footer:hover::before {
    opacity: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.cgrids-text {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* 学校logo样式 */
.school-logo {
    position: absolute;
    bottom: 60px; /* 调整位置避开版权信息 */
    right: 20px;
    width: 200px;
    height: 60px;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.school-svg {
    position: relative;
    width: 60px;
    height: 60px;
    transition: all 0.5s ease;
    opacity: 0.5; /* 增加默认透明度 */
    object-fit: contain;
    margin-left: -15px; /* 创建重叠效果 */
}

/* 调整SVG的堆叠顺序 */
.school-logo object:nth-child(1) {
    z-index: 4;
    margin-left: 0;
}

.school-logo object:nth-child(2) {
    z-index: 3;
}

.school-logo object:nth-child(3) {
    z-index: 2;
}

.school-logo object:nth-child(4) {
    z-index: 1;
}

/* 单独SVG悬停效果 */
.school-svg:hover {
    transform: translateY(-10px);
    opacity: 1;
}

/* 链接悬停效果 */
.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
}

/* 分类标签悬停效果 */
.footer-category {
    padding: 4px 12px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-category:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-category:hover::before {
    opacity: 0.2;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    z-index: 5; /* 确保在SVG上层 */
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 20px;
    }

    .footer-categories {
        justify-content: center;
    }

    .school-logo {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        width: 180px;
    }
}

/* 添加滚动条样式 */
.article-grid::-webkit-scrollbar {
    display: none;
}

/* Article Stats */
.article-stats {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin: 1rem 0 1.5rem;
    position: relative;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(74, 158, 255, 0.2) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
    z-index: 2;
}

.search-container.active .search-toggle {
    transform: translateX(300px);
    color: #fff;
}

.search-container.active .search-toggle svg {
    transform: scale(0);
    opacity: 0;
}

.search-container.active .search-toggle::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-width: 2px 0 0 2px;
    transform: rotate(-45deg);
    transition: all var(--transition-speed);
}

.search-toggle:hover {
    background-color: rgba(74, 158, 255, 0.1);
    color: var(--accent-color);
}

.search-box {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 0;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    width: 300px;
}

.search-input {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 6px 12px;
    width: 100%;
    font-size: 14px;
    outline: none;
    flex-grow: 1;
}

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

.search-submit {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.search-submit:hover {
    background-color: rgba(74, 158, 255, 0.1);
    color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        width: 90vw;
        min-width: auto;
        top: 10px;
        height: 60px;
    }

    header.collapsed {
        width: 50px;
        min-width: 50px;
        height: 50px;
        left: 10px;
    }

    header.expanded {
        width: 90vw;
        min-width: auto;
        left: 50%;
    }

    header.collapsed .logo {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .header-content {
        padding: 0 20px;
    }

    .site-title {
        font-size: 16px;
    }

    nav {
        gap: 8px;
    }

    nav a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-description {
        font-size: 1em;
    }

    .slider-controls {
        bottom: 20px;
        right: 20px;
    }

    .article-section {
        padding: 20px 0;
    }
    
    .article-grid {
        height: 380px;
        min-height: 380px;
    }
    
    .article-row {
        gap: 20px;
        height: 380px;
    }
    
    .article-card {
        width: 300px;
        height: 380px;
    }
    
    .article-title {
        font-size: 15px;
    }
    
    .article-excerpt {
        font-size: 12px;
    }

    .article-meta {
        font-size: 10px;
    }

    .article-category {
        font-size: 9px;
        padding: 2px 4px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }

    .school-logo {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
    }

    .article-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 1rem);
        min-width: 120px;
    }

    .search-container.active .search-toggle {
        transform: translateX(90vw);
    }
    
    .search-box.active {
        width: 90vw;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Category Section */
.category-section {
    width: 100%;
    background-color: var(--category-bg);
    margin: 60px 0;
    padding: 40px 0;
    transition: background-color var(--transition-speed);
    position: relative;
    overflow: hidden;
}

/* 添加鼠标跟随渐变效果 */
.category-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 180, 216, 0.2) 0%,
        rgba(255, 77, 77, 0.1) 60%,
        transparent 140%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-section:hover::before {
    opacity: 1;
}

/* 添加边缘光效果 */
.category-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 180, 216, 0.3) 0%,
        rgba(255, 77, 77, 0.2) 100%,
        transparent 140%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.category-section:hover::after {
    opacity: 1;
}

/* 确保内容在渐变效果之上 */
.category-section h2,
.particles-container,
.category-list {
    position: relative;
    z-index: 1;
}

.category-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
}

.category-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00b4d8, #ff4d4d);
}

.particles-container {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 210px;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.category-list {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    gap: 60px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-item {
    font-size: 24px;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(255, 77, 77, 0.2));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

@media (max-width: 768px) {
    .category-section {
        margin: 40px 0;
        padding: 20px 0;
    }

    .category-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .particles-container {
        height: 300px;
    }

    .category-list {
        gap: 20px;
    }

    .category-item {
        font-size: 18px;
        padding: 10px 20px;
    }
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.theme-toggle:hover {
    background-color: rgba(74, 158, 255, 0.1);
    color: var(--accent-color);
}

/* 线条动画容器 */
.lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.line {
    position: absolute;
    background: var(--particle-color);
    height: 1px;
    transform-origin: left center;
    opacity: 0;
    animation: lineAppear 0.3s ease forwards;
}

@keyframes lineAppear {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 0.8;
        transform: scaleX(1);
    }
}

/* Course Section */
.course-section {
    width: 100%;
    background-color: var(--category-bg);
    margin: 0 0;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.course-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.course-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00b4d8, #ff4d4d);
}

.course-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin: 0;
    width: 100vw;
    padding: 0 20px;
    left: 50%;
    transform: translateX(-50%);
}

.course-danmaku {
    position: absolute;
    white-space: nowrap;
    font-size: 18px;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: danmakuFloat 25s linear;
    opacity: 0.8;
    z-index: 1;
    left: 100%;
}

.course-danmaku:hover {
    transform: scale(1.1);
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(255, 77, 77, 0.2));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation-play-state: paused;
}

@keyframes danmakuFloat {
    0% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

@media (max-width: 768px) {
    .course-section {
        height: 400px;
        margin: 40px 0;
        padding: 20px 0;
    }

    .course-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .course-container {
        height: 300px;
    }

    .course-danmaku {
        font-size: 16px;
        padding: 6px 12px;
    }
} 