* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   科技感主题 - 深色背景 + 霓虹色点缀
   ============================================ */
 body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e7ff; /* 更明亮的蓝白色文字 */
    background: linear-gradient(135deg, 
        #0c1220 0%,  /* 深邃太空蓝 */
        #16213e 30%, /* 过渡到紫罗兰深空 */
        #0f1b2d 70%, 
        #0a2e3f 100% /* 注入一丝深海蓝绿 */
    );
    min-height: 100vh;
}

/* 更具“空间感”的微光点背景（替换原有网格） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(72, 187, 233, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 85% 70%, rgba(110, 231, 183, 0.04) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 25%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    z-index: -1;
    pointer-events: none;
    animation: subtleShift 20s ease-in-out infinite alternate;
}
@keyframes subtleShift {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%; }
    100% { background-position: 2% 2%, -2% -2%, 1% -1%; }
}

:root {
    --color-primary: #38bdf8; /* 明亮的科技蓝 (取代 #00f2fe) */
    --color-secondary: #10b981; /* 活力的健康绿 */
    --color-accent: #8b5cf6; /* 未来感紫 */
}

/* ========== 链接样式 ========== */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--color-primary); /* 使用新的科技蓝 */
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* ========== 容器与布局 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部 ========== */
.header, 
.article-card,
.widget,
.article-detail {
    /* 统一组件背景：深空基底 + 微透光感 */
    background: linear-gradient(135deg, 
        rgba(21, 34, 56, 0.85), 
        rgba(30, 41, 59, 0.95)
    );
    border: 1px solid rgba(56, 189, 248, 0.15); /* 更细更精致的边框 */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    background: linear-gradient(90deg, #38bdf8, #10b981, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.logo a {
    color: #00f2fe;
}

/* ========== 导航 ========== */
.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* ========== 广告区域 ========== */
.ad-space {
    margin: 20px 0;
}

.ad-placeholder {
    background: linear-gradient(135deg, 
        rgba(21, 34, 56, 0.9), 
        rgba(30, 41, 59, 0.9)
    );
    border-color: rgba(56, 189, 248, 0.2);
    color: #7dd3fc; /* 更亮的提示色 */
}

/* 广告边框光效 */
.ad-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    transition: left 0.6s;
}

.ad-placeholder:hover::before {
    left: 100%;
}

.ad-top .ad-placeholder {
    min-height: 90px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.ad-mid .ad-placeholder {
    min-height: 90px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.ad-sidebar .ad-placeholder {
    min-height: 250px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.ad-article .ad-placeholder {
    min-height: 90px;
    margin: 30px 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* ========== 主内容区 ========== */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ========== 文章卡片 ========== */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}



.article-card::before {
    background: linear-gradient(90deg, 
        #38bdf8,  /* 科技蓝 */
        #10b981,  /* 健康绿 */
        #8b5cf6,  /* 未来紫 */
        #38bdf8
    );
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 242, 254, 0.2);
    border-color: rgba(14, 165, 233, 0.3);
}

.article-card:hover::before {
    opacity: 1;
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-card-content {
    padding: 20px;
}

.article-category {
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 0.15), 
        rgba(139, 92, 246, 0.15)
    );
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}


.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-excerpt {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

/* ========== 区块样式 ========== */
.section {
    margin-bottom: 50px;
}

.section-title {
    border-bottom-color: var(--color-primary);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== 侧边栏 ========== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}



.widget-title {
    color: var(--color-primary);
    border-bottom-color: rgba(56, 189, 248, 0.3);
}

/* ========== 分类列表 ========== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-item:hover {
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 0.12), 
        rgba(16, 185, 129, 0.12)
    );
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}


/* ========== 热门文章 ========== */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-item:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
}

.popular-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.popular-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-item:hover .popular-item-image img {
    transform: scale(1.1);
}

.popular-item-content {
    flex: 1;
}

.popular-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-item-date {
    font-size: 12px;
    color: #64748b;
}

/* ========== 加载更多按钮 ========== */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, 
        #38bdf8,  /* 科技 */
        #10b981   /* 健康 */
    );
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.4);
}

.load-more-btn:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

/* ========== 页脚 ========== */
.footer {
    background: rgba(15, 23, 42, 0.9);
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    margin-top: 60px;
}

/* ========== 文章详情页 ========== */


.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4f46e5, #00f2fe);
}

.breadcrumb {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #00f2fe;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #64748b;
}

/* 文章标题 */
.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
    margin: 16px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.article-meta .separator {
    margin: 0 4px;
    color: #64748b;
}

/* 文章图片 */
.article-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.article-image:hover img {
    transform: scale(1.05);
}

/* 文章摘要 */
.article-summary {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.8;
    padding: 20px;
    background: rgba(30, 41, 59, 0.6);
    border-left: 4px solid #00f2fe;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 文章正文 */
.article-body {
    font-size: 16px;
    color: #e2e8f0;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    color: var(--color-primary);
    border-bottom-color: rgba(56, 189, 248, 0.3);
}
.article-body h3 {
    color: #10b981; /* 使用健康绿作为三级标题 */
}

.article-body ul, .article-body ol {
    margin: 16px 0 16px 24px;
}

.article-body li {
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* 文章标签 */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(14, 165, 233, 0.3);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    padding: 6px 14px;
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    transition: all 0.3s;
}

.article-tag:hover {
    background: rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

/* ========== 相关文章 ========== */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(14, 165, 233, 0.3);
}

/* ========== 分类页面 ========== */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    color: #00f2fe;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.category-description {
    font-size: 18px;
    color: #94a3b8;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .featured-grid, .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav {
        gap: 16px;
        font-size: 14px;
    }
    
    .featured-grid, .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-detail {
        padding: 24px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-image {
        height: 250px;
    }
}