/* 基础样式与变量 */
:root {
    --primary: #6C63FF;
    --secondary: #FF6584;
    --accent: #00D4FF;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f5f5f5;
    --gray: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--darker);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* 导航栏 */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-actions button {
    background: transparent;
    color: var(--text);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

#menu-btn {
    display: none;
}

/* 主容器 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* 头部横幅 */
.hero-banner {
    
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}



.hero-content {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.cta-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    display: block;
    width: 100%;
    text-align: center;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.5);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-stats div {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    min-width: 100px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.hero-stats p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 通用部分样式 */
section {
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--light);
}

.filter-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--gray);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

/* 文章卡片 */
.news-card {
    background: var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(108, 99, 255, 0.3);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.news-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.category-tag.tech { background: rgba(108, 99, 255, 0.2); color: #a096ff; }
.category-tag.business { background: rgba(255, 101, 132, 0.2); color: #ff95ab; }
.category-tag.science { background: rgba(0, 212, 255, 0.2); color: #66e4ff; }
.category-tag.culture { background: rgba(255, 193, 7, 0.2); color: #ffd54f; }
.category-tag.world { background: rgba(0, 230, 118, 0.2); color: #6effa6; }

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--light);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 特色文章 */
.featured-section {
    margin-bottom: 1rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.featured-card {
    background: var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(108, 99, 255, 0.3);
}

.featured-card .card-image {
    height: 250px;
}

.featured-card .card-content {
    padding: 1.5rem;
}

.featured-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

/* 最新文章网格 */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card.highlight {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(108, 99, 255, 0.3);
    padding: 1.5rem;
    justify-content: center;
}

.news-card.highlight .card-content {
    padding: 0;
}

.news-card.highlight h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.news-card.highlight p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1rem;
}

/* 新闻通讯 */
.newsletter-section {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 212, 255, 0.1));
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--light);
}

.newsletter-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    padding: 0 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary);
}

.newsletter-content small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.newsletter-content small a {
    color: var(--accent);
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background: var(--dark);
    padding: 10px 0;

}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter form {
    display: flex;
    margin-top: 0.8rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--light);
}

.footer-newsletter button {
    background: var(--primary);
    color: white;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background: var(--secondary);
}

.footer-bottom {
    text-align: center;

    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.2rem;
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    #menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        padding: 0.8rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 1rem;
    }

    .hero-banner {
        padding: 5px .5rem 5px;
        margin-bottom: 0;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }
}
