/* ============================================
   Professional News Website - Warm Eggshell Theme
   Clean, modern news appearance with warm color palette
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== Base Styles ========== */
body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #4a4a4a; /* 稍深的灰色文字，确保在淡黄背景上的可读性 */
    background: linear-gradient(135deg, #fdf6e3 0%, #f5e6ca 50%, #f9f0d9 100%); /* 蛋黄色渐变 */
    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, 228, 181, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(250, 235, 215, 0.1) 0%, transparent 20%);
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== Links ========== */
a {
    text-decoration: none;
    color: #8b5a2b; /* 温暖的棕色链接 */
    transition: all 0.2s ease;
}

a:hover {
    color: #d35400; /* 悬停时变为更深的橙色 */
    text-decoration: underline;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header with Dropdown Menu ========== */
.header {
    background-color: rgba(255, 253, 245, 0.95); /* 半透明白-蛋黄色 */
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(139, 90, 43, 0.08); /* 柔和的棕色阴影 */
    border-bottom: 1px solid rgba(255, 228, 181, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* 更现代的字体 */
    font-size: 28px;
    font-weight: 700;
    color: #8b5a2b;
    letter-spacing: -0.5px;
}

.logo span {
    color: #d35400; /* 温暖的橙色点缀 */
}

/* ========== Dropdown Navigation ========== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: linear-gradient(to bottom, #d35400, #b34700); /* 橙色渐变按钮 */
    color: #fff8f0;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(211, 84, 0, 0.2);
}

.nav-dropdown-btn:hover {
    background: linear-gradient(to bottom, #e67e22, #d35400);
    box-shadow: 0 3px 8px rgba(211, 84, 0, 0.3);
}

.nav-dropdown-btn::after {
    content: "▼";
    font-size: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fffef9; /* 非常淡的黄色背景 */
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(139, 90, 43, 0.12);
    border-radius: 6px;
    border: 1px solid #ffe4b5;
    z-index: 1;
    overflow: hidden;
}

.dropdown-content a {
    color: #8b5a2b;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f5e6ca;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #fdf6e3;
    color: #d35400;
    text-decoration: none;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* ========== Main Content ========== */
.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ========== Featured Section ========== */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== Article Cards ========== */
.article-card {
    background-color: #fffef9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f5e6ca;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(139, 90, 43, 0.12);
    border-color: #d35400;
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    padding: 5px 14px;
    background-color: #d35400;
    color: #fff8f0;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.article-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #5c3c1a; /* 深棕色标题 */
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-excerpt {
    font-size: 14px;
    color: #7d6b58; /* 中等棕色副文本 */
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a0907c;
}

/* ========== Section Styles ========== */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #5c3c1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #d35400;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== Sidebar ========== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background-color: #fffef9;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.06);
    border: 1px solid #f5e6ca;
}

.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #5c3c1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d35400;
}

/* ========== Categories ========== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    padding: 12px 16px;
    background-color: #fdf6e3;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #5c3c1a;
    transition: all 0.2s;
    border: 1px solid #f5e6ca;
}

.category-item:hover {
    background-color: #d35400;
    color: #fff8f0;
    border-color: #d35400;
    transform: translateX(5px);
}

/* ========== Popular Posts ========== */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s;
    background-color: #fdf6e3;
    border: 1px solid #f5e6ca;
}

.popular-item:hover {
    background-color: #f9f0d9;
    border-color: #d35400;
}

.popular-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f5e6ca;
}

.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.05);
}

.popular-item-content {
    flex: 1;
}

.popular-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #5c3c1a;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-item-date {
    font-size: 12px;
    color: #a0907c;
}

/* ========== Load More Button ========== */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 12px 36px;
    background: linear-gradient(to bottom, #d35400, #b34700);
    color: #fff8f0;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.25);
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background: linear-gradient(to bottom, #e67e22, #d35400);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(211, 84, 0, 0.35);
}

/* ========== Footer ========== */
.footer {
    background-color: rgba(255, 253, 245, 0.95);
    color: #7d6b58;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #f5e6ca;
}

.footer a {
    color: #d35400;
    text-decoration: underline;
}

.footer a:hover {
    color: #b34700;
}

/* ========== Article Detail Page ========== */
.article-detail {
    background-color: #fffef9;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(139, 90, 43, 0.08);
    border: 1px solid #f5e6ca;
    position: relative;
}

.breadcrumb {
    font-size: 14px;
    color: #a0907c;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #d35400;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #a0907c;
}

.article-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #5c3c1a;
    line-height: 1.3;
    margin: 16px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #a0907c;
}

.article-meta .separator {
    margin: 0 4px;
    color: #a0907c;
}

.article-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #f5e6ca;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.08);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.article-image:hover img {
    transform: scale(1.03);
}

.article-summary {
    font-size: 18px;
    color: #7d6b58;
    line-height: 1.8;
    padding: 20px;
    background-color: #fdf6e3;
    border-left: 4px solid #d35400;
    border-radius: 6px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 17px;
    color: #5c3c1a;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #5c3c1a;
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d35400;
}

.article-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #8b5a2b;
    margin: 24px 0 12px;
}

.article-body ul, .article-body ol {
    margin: 16px 0 16px 24px;
}

.article-body li {
    margin-bottom: 8px;
    color: #5c3c1a;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f5e6ca;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    padding: 6px 16px;
    background-color: #fdf6e3;
    color: #8b5a2b;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #f5e6ca;
    transition: all 0.2s;
}

.article-tag:hover {
    background-color: #d35400;
    color: #fff8f0;
    transform: translateY(-2px);
    border-color: #d35400;
}

/* ========== Related Articles ========== */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f5e6ca;
}

/* ========== Category Page ========== */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #5c3c1a;
    margin-bottom: 12px;
}

.category-description {
    font-size: 18px;
    color: #7d6b58;
}

/* ========== Ad Styles ========== */
.ad-space {
    margin: 20px 0;
}

.ad-placeholder {
    background-color: #fffef9;
    border: 1px dashed #d35400;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #a0907c;
    font-size: 14px;
    transition: all 0.3s;
}

.ad-placeholder:hover {
    border-style: solid;
    background-color: #fdf6e3;
}

.ad-top .ad-placeholder {
    min-height: 90px;
}

.ad-mid .ad-placeholder {
    min-height: 90px;
}

.ad-sidebar .ad-placeholder {
    min-height: 250px;
}

.ad-article .ad-placeholder {
    min-height: 90px;
    margin: 30px 0;
}

/* ========== Sticky Ad ========== */
.ad-sticky-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fffef9;
    box-shadow: 0 -2px 12px rgba(139, 90, 43, 0.1);
    border-top: 1px solid #f5e6ca;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.ad-sticky-bottom.show {
    transform: translateY(0);
}

.ad-sticky-container {
    position: relative;
    padding: 10px;
}

.ad-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #a0907c;
    z-index: 1;
}

/* ========== Responsive Design ========== */
@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;
    }

    .featured-grid, .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 24px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-image {
        height: 250px;
    }
}