* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   明黄色主题 - 浅黄色背景 + 深色内容区
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* 深灰色文字，提高浅色背景可读性 */
    background-color: #fffaf0; /* 浅明黄色背景，比纯白色更温暖 */
    min-height: 100vh;
}

/* 添加微妙的纹理背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 230, 150, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 200, 100, 0.05) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

/* ========== 链接样式 ========== */
a {
    text-decoration: none;
    color: #e67e22; /* 温暖的橙色作为链接色 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

a:hover {
    color: #d35400; /* 更深的橙色悬停色 */
    text-decoration: underline;
}

/* ========== 容器与布局 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部 ========== */
.header {
    background: rgba(255, 250, 240, 0.95); /* 半透明浅黄色 */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #e67e22; /* 温暖的橙色 */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo a {
    color: #e67e22;
    text-decoration: none;
}

.logo span {
    color: #f39c12; /* 更亮的黄色 */
}

/* ========== 导航 ========== */
.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #5d4037; /* 深棕色，在浅黄背景上清晰可见 */
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e67e22;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
    color: #e67e22;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* ========== 广告区域 ========== */
.ad-space {
    margin: 20px 0;
}

.ad-placeholder {
    background: linear-gradient(135deg, rgba(255, 241, 200, 0.9), rgba(255, 231, 150, 0.9));
    border: 2px dashed rgba(230, 126, 34, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #e67e22;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* 广告边框动画效果 */
.ad-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.8s;
}

.ad-placeholder:hover::before {
    left: 100%;
}

.ad-top .ad-placeholder {
    min-height: 90px;
    background: linear-gradient(135deg, #fff9e6, #ffecb3);
    font-size: 16px;
}

.ad-mid .ad-placeholder {
    min-height: 90px;
    background: linear-gradient(135deg, #fff9e6, #ffecb3);
}

.ad-sidebar .ad-placeholder {
    min-height: 250px;
    background: linear-gradient(135deg, #fff9e6, #ffecb3);
}

.ad-article .ad-placeholder {
    min-height: 90px;
    margin: 30px 0;
    background: linear-gradient(135deg, #fff9e6, #ffecb3);
}

/* ========== 主内容区 ========== */
.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, #1a1a2e 0%, #16213e 100%); /* 深蓝紫色背景 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e67e22, #f39c12, #e67e22);
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(230, 126, 34, 0.4);
}

.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: 6px 14px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(243, 156, 18, 0.2));
    color: #f39c12;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card-excerpt {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #8a8a8a;
}

.article-card-meta .author {
    color: #f39c12;
    font-weight: 500;
}

/* ========== 区块样式 ========== */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #5d4037; /* 深棕色，在浅黄背景上清晰 */
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e67e22;
    letter-spacing: 0.5px;
}

.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, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(243, 156, 18, 0.3);
    letter-spacing: 0.5px;
}

/* ========== 分类列表 ========== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #d0d0d0;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item:hover {
    background: rgba(230, 126, 34, 0.15);
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.2);
}

.category-count {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ========== 热门文章 ========== */
.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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-item:hover {
    background: rgba(230, 126, 34, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

.popular-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(243, 156, 18, 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: #ffffff;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-item-date {
    font-size: 12px;
    color: #8a8a8a;
}

/* ========== 加载更多按钮 ========== */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 14px 36px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #ffffff;
    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(230, 126, 34, 0.4);
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.6);
    color: #ffffff;
}

.load-more-btn:active {
    transform: translateY(-1px);
}

/* ========== 页脚 ========== */
.footer {
    background: rgba(255, 250, 240, 0.95);
    color: #5d4037;
    padding: 50px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #7f5539;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #7f5539;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #e67e22;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e67e22;
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #d35400;
    transform: translateY(-3px);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
    color: #7f5539;
    font-size: 14px;
}

/* ========== 文章详情页 - 保持深色背景 ========== */
.article-detail {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e67e22, #f39c12, #e67e22);
}

.breadcrumb {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumb a {
    color: #f39c12;
}

.breadcrumb .separator {
    color: #8a8a8a;
}

/* 文章标题 */
.article-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 16px 0 24px;
    letter-spacing: 0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 30px;
}

.article-meta .author {
    color: #f39c12;
    font-weight: 500;
}

.article-meta .separator {
    margin: 0 4px;
    color: #8a8a8a;
}

/* 文章图片 */
.article-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(243, 156, 18, 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: #d0d0d0;
    line-height: 1.8;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #e67e22;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* 文章正文 */
.article-body {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #f39c12;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(243, 156, 18, 0.3);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffb74d;
    margin: 30px 0 15px;
}

.article-body ul, .article-body ol {
    margin: 16px 0 16px 24px;
}

.article-body li {
    margin-bottom: 10px;
    color: #d0d0d0;
}

.article-body strong {
    color: #ffffff;
    font-weight: 600;
}

/* 文章标签 */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(243, 156, 18, 0.3);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag {
    padding: 8px 16px;
    background: rgba(230, 126, 34, 0.15);
    color: #f39c12;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(243, 156, 18, 0.3);
    transition: all 0.3s;
}

.article-tag:hover {
    background: rgba(230, 126, 34, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* ========== 相关文章 ========== */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(243, 156, 18, 0.3);
}

/* ========== 分类页面 ========== */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 36px;
    font-weight: 800;
    color: #e67e22;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.category-description {
    font-size: 18px;
    color: #7f5539;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .featured-grid, .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 15px;
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .featured-grid, .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-detail {
        padding: 24px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-image {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ========== 自定义滚动条 ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fffaf0;
}

::-webkit-scrollbar-thumb {
    background: #e67e22;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}