* {
    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: #e0e0e0; /* 浅灰文字，提高深色背景可读性 */
    background: linear-gradient(135deg, #0a0e17 0%, #13182c 50%, #0c1120 100%); /* 深蓝渐变背景 */
    min-height: 100vh;
}

/* 科技感网格背景（可选） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* ========== 链接样式 ========== */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #00f2fe; /* 霓虹青色 */
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

/* ========== 容器与布局 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部 ========== */
.header {
    background: rgba(15, 23, 42, 0.85); /* 半透明深蓝 */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #00f2fe; /* 霓虹青色 */
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    letter-spacing: 1px;
}

.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: #00f2fe;
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* ========== 广告区域 ========== */
.ad-space {
    margin: 20px 0;
}

.ad-placeholder {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #60a5fa;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* 广告边框光效 */
.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 {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.9));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(14, 165, 233, 0.1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4f46e5, #00f2fe);
    opacity: 0;
    transition: opacity 0.3s;
}

.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 {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 70, 229, 0.15));
    color: #00f2fe;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.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 {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== 侧边栏 ========== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.9));
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #00f2fe;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
    text-shadow: 0 0 8px rgba(0, 242, 254, 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(0, 242, 254, 0.15), rgba(79, 70, 229, 0.15));
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

/* ========== 热门文章 ========== */
.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 {
    padding: 12px 32px;
    background: linear-gradient(135deg, #00f2fe, #4f46e5);
    color: #0f172a;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.6);
    color: #0f172a;
}

/* ========== 页脚 ========== */
.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 {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.9));
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.1);
    position: relative;
}

.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 {
    font-size: 24px;
    font-weight: 700;
    color: #00f2fe;
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 242, 254, 0.3);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #60a5fa;
    margin: 24px 0 12px;
}

.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;
    }
}