
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        :root {
            --primary-color: #4361ee;
            --secondary-color: #3a0ca3;
            --accent-color: #7209b7;
            --text-color: #333;
            --bg-color: #f8f9fa;
            --card-bg: #ffffff;
            --border-color: #e0e0e0;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --header-height: 70px;
        }
        
        body.dark-mode {
            --text-color: #f0f0f0;
            --bg-color: #121212;
            --card-bg: #1e1e1e;
            --border-color: #333;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }
        
        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            transition: background-color 0.3s, color 0.3s;
        }
        
        /* 顶部导航栏 */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--header-height);
            background-color: var(--card-bg);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            padding: 0 5%;
            z-index: 1000;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-color);
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-right: 10px;
        }
        
        nav {
            flex: 1;
            display: flex;
            justify-content: center;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin: 0 15px;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            transition: color 0.3s;
            padding: 8px 15px;
            border-radius: 20px;
        }
        
        nav ul li a:hover, nav ul li a.active {
            color: white;
            background-color: var(--primary-color);
        }
        
         .header-controls {
            display: flex;
            align-items: center;
        }
        
        .search-container {
            position: relative;
            margin-right: 20px;
            display: flex;
        }
        
        .search-container input {
            padding: 10px 15px 10px 40px;
            border-radius: 30px 0 0 30px;
            border: 1px solid var(--border-color);
            border-right: none;
            background-color: var(--bg-color);
            color: var(--text-color);
            width: 250px;
            transition: all 0.3s;
            font-size: 0.95rem;
        }
        
        .search-container input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
            width: 300px;
        }
        
        .search-container i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #777;
        }
        
        .search-btn {
            padding: 10px 20px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 0 30px 30px 0;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .search-btn:hover {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
        }
        
        .theme-toggle {
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1.3rem;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: background-color 0.3s;
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .theme-toggle:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }
        
        /* 主要内容区域 */
        .container {
            max-width: 1400px;
            margin: var(--header-height) auto 0;
            padding: 30px 20px;
        }
        
        /* 轮播广告图 */
        .banner-container {
            position: relative;
            height: 400px;
            margin-bottom: 40px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .banner-slides {
            width: 100%;
            height: 100%;
            position: relative;
        }
        
        .banner-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            padding: 0 60px;
        }
        
        .banner-slide.active {
            opacity: 1;
        }
        
        .banner-content {
            max-width: 600px;
            background: rgba(0, 0, 0, 0.6);
            padding: 30px;
            border-radius: 12px;
            color: white;
            backdrop-filter: blur(5px);
        }
        
        .banner-title {
            font-size: 2.2rem;
            margin-bottom: 15px;
            color: #fff;
        }
        
        .banner-desc {
            font-size: 1.1rem;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .banner-button {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 500;
            transition: background-color 0.3s;
        }
        
        .banner-button:hover {
            background-color: var(--secondary-color);
        }
        
        .banner-controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
        }
        
        .banner-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .banner-dot.active {
            background-color: white;
        }
        
        .banner-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .banner-nav:hover {
            background: rgba(0, 0, 0, 0.6);
        }
        
        .prev-banner {
            left: 20px;
        }
        
        .next-banner {
            right: 20px;
        }
        
        /* 内容区域布局 */
        .content-container {
            display: flex;
            gap: 30px;
        }
        
        .main-content {
            flex: 1;
        }
        
        .sidebar {
            width: 300px;
        }
        
        /* 分类导航 */
        .categories-section {
            margin-bottom: 40px;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 1.6rem;
            font-weight: 600;
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: 10px;
            color: var(--primary-color);
        }
        
        .view-all {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
        }
        
        .categories {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        
        .category-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 25px 15px;
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }
        
        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .category-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: white;
            font-size: 1.8rem;
        }
        
        .category-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 5px;
        }
        
        .category-count {
            color: #777;
            font-size: 0.9rem;
        }
        
        /* 故事列表 */
        .stories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .story-item {
            background-color: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .story-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }
        
        .story-cover {
            height: 180px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2.5rem;
            position: relative;
        }
        
        .story-cover .cover-label {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: rgba(255, 255, 255, 0.9);
            color: var(--primary-color);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .story-info {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .story-item-title {
            font-size: 1.3rem;
            margin-bottom: 10px;
            color: var(--primary-color);
        }
        
        .story-item-author {
            font-size: 0.9rem;
            color: #777;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        
        .story-item-author i {
            margin-right: 5px;
        }
        
        .story-item-desc {flex-grow: 1;margin-bottom: 20px;color: var(--text-color);font-size: 0.95rem;line-height: 1.6;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;height: 30px;}
        
        .story-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: #777;
            border-top: 1px solid var(--border-color);
            padding-top: 15px;
        }
        
        .story-meta span {
            display: flex;
            align-items: center;
        }
        
        .story-meta i {
            margin-right: 5px;
        }
        
        /* 侧边栏 */
        .sidebar-section {
            background-color: var(--card-bg);
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 25px;
            margin-bottom: 30px;
        }
        
        .sidebar-section h3 {
            font-size: 1.4rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
            display: flex;
            align-items: center;
        }
        
        .sidebar-section h3 i {
            margin-right: 10px;
            color: var(--primary-color);
        }
        
        .top-stories {
            list-style: none;
        }
        
        .top-story-item {
            display: flex;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .top-story-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .top-story-rank {
            min-width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 15px;
            font-size: 0.9rem;
        }
        
        .top-story-content {
            flex: 1;
        }
        
        .top-story-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 1.05rem;
        }
        
        .top-story-author {
            font-size: 0.85rem;
            color: #777;
            display: flex;
            align-items: center;
        }
        
        .top-story-author i {
            margin-right: 5px;
        }
        
        /* 页脚 */
        footer {
            background-color: var(--card-bg);
            padding: 50px 5% 30px;
            margin-top: 50px;
            border-top: 1px solid var(--border-color);
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .footer-column h4 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: var(--primary-color);
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            text-decoration: none;
            color: var(--text-color);
            transition: color 0.3s;
            font-size: 0.95rem;
        }
        
        .footer-links a:hover {
            color: var(--primary-color);
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: all 0.3s;
        }
        
        .social-links a:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            margin-top: 30px;
            border-top: 1px solid var(--border-color);
            color: #777;
            font-size: 0.9rem;
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .categories {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .stories-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 992px) {
            .content-container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            header {
                padding: 0 20px;
            }
            
            nav ul {
                display: none;
            }
            
            .search-container input {
                width: 180px;
            }
            
            .search-container input:focus {
                width: 200px;
            }
            
            .banner-container {
                height: 350px;
            }
            
            .banner-slide {
                padding: 0 30px;
            }
            
            .banner-content {
                padding: 20px;
            }
            
            .banner-title {
                font-size: 1.8rem;
            }
            
            .banner-desc {
                font-size: 1rem;
            }
            
            .categories {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .stories-grid {
                grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .logo {
                font-size: 1.5rem;
            }
            
            .search-container {
                margin-right: 10px;
            }
            
            .search-container input {
                width: 150px;
                padding: 8px 15px 8px 35px;
            }
            
            .search-container input:focus {
                width: 180px;
            }
            
            .theme-toggle {
                font-size: 1.1rem;
                width: 36px;
                height: 36px;
            }
            
            .banner-container {
                height: 300px;
            }
            
            .banner-title {
                font-size: 1.5rem;
            }
            
            .section-title {
                font-size: 1.4rem;
            }
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1.5rem;
            margin-right: 15px;
        }
        
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            
            .search-container {
                display: none;
            }
            
            .mobile-search {
                display: flex;
                width: 100%;
                margin: 15px 0;
            }
            
            .mobile-search .search-container {
                display: flex;
                width: 100%;
                margin-right: 0;
            }
            
            .mobile-search input {
                width: 100%;
            }
        }
        
        .mobile-nav {
            position: fixed;
            top: var(--header-height);
            left: 0;
            width: 100%;
            background-color: var(--card-bg);
            box-shadow: var(--shadow);
            padding: 20px;
            z-index: 999;
            display: none;
        }
        
        .mobile-nav.active {
            display: block;
        }
        
        .mobile-nav ul {
            list-style: none;
        }
        
        .mobile-nav ul li {
            margin-bottom: 15px;
        }
        
        .mobile-nav ul li a {
            display: block;
            padding: 12px;
            border-radius: 8px;
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            transition: background-color 0.3s;
        }
        
        .mobile-nav ul li a:hover, .mobile-nav ul li a.active {
            background-color: var(--primary-color);
            color: white;
        }
        a{ text-decoration: none;color:#6c6c73; }
