/* ============================================
   Professional News Website - Crystal Lavender Theme
   Clean, modern news appearance with crystal lavender palette
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== Base Styles ========== */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background: linear-gradient(135deg, #f8f4ff 0%, #f0e8ff 30%, #f5f0ff 70%, #f8f4ff 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(168, 139, 255, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 85% 70%, rgba(195, 177, 255, 0.06) 0%, transparent 20%);
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
    animation: crystalShift 20s ease-in-out infinite alternate;
}

@keyframes crystalShift {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* ========== Links ========== */
a {
    text-decoration: none;
    color: #7b5eea; /* 紫色系链接 */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

a:hover {
    color: #5a43c7;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #7b5eea;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header with Dropdown Menu ========== */
.header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(123, 94, 234, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(195, 177, 255, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #7b5eea;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(123, 94, 234, 0.1);
}

.logo span {
    background: linear-gradient(90deg, #7b5eea, #9d8af1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== Dropdown Navigation ========== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: linear-gradient(135deg, #7b5eea, #9d8af1);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(123, 94, 234, 0.2);
}

.nav-dropdown-btn:hover {
    background: linear-gradient(135deg, #6a4fd9, #8b77e6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 94, 234, 0.3);
}

.nav-dropdown-btn::after {
    content: "▼";
    font-size: 12px;
    margin-left: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(123, 94, 234, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(195, 177, 255, 0.3);
    z-index: 1;
    overflow: hidden;
    margin-top: 8px;
}

.dropdown-content a {
    color: #5a4a9e;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(195, 177, 255, 0.2);
    transition: all 0.2s;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: rgba(123, 94, 234, 0.08);
    color: #7b5eea;
    padding-left: 24px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Main Content ========== */
.main-content {
    padding: 35px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 45px;
}

/* ========== Featured Section ========== */
.featured-section {
    margin-bottom: 45px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ========== Article Cards ========== */
.article-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(123, 94, 234, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(195, 177, 255, 0.2);
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(123, 94, 234, 0.15);
    border-color: rgba(123, 94, 234, 0.4);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7b5eea, #9d8af1);
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover::before {
    opacity: 1;
}

.article-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-card-content {
    padding: 24px;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(123, 94, 234, 0.15), rgba(157, 138, 241, 0.15));
    color: #7b5eea;
    border-radius: 20px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(123, 94, 234, 0.2);
    letter-spacing: 0.5px;
}

.article-card-title {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #4a3a8c;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card-excerpt {
    font-size: 15px;
    color: #6a5a9e;
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8a7ab8;
}

/* ========== Section Styles ========== */
.section {
    margin-bottom: 55px;
}

.section-title {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #4a3a8c;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 3px solid #7b5eea;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #7b5eea, #9d8af1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ========== Sidebar ========== */
.sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.widget {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(123, 94, 234, 0.08);
    border: 1px solid rgba(195, 177, 255, 0.2);
}

.widget-title {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #4a3a8c;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(123, 94, 234, 0.3);
}

/* ========== Categories ========== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.category-item {
    padding: 14px 20px;
    background-color: rgba(248, 244, 255, 0.8);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #5a4a9e;
    transition: all 0.3s ease;
    border: 1px solid rgba(195, 177, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-item:hover {
    background: linear-gradient(135deg, rgba(123, 94, 234, 0.1), rgba(157, 138, 241, 0.1));
    color: #7b5eea;
    border-color: rgba(123, 94, 234, 0.4);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(123, 94, 234, 0.1);
}

.category-item::after {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    color: #7b5eea;
}

.category-item:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

/* ========== Popular Posts ========== */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.popular-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: rgba(248, 244, 255, 0.8);
    border: 1px solid rgba(195, 177, 255, 0.3);
}

.popular-item:hover {
    background-color: rgba(123, 94, 234, 0.08);
    border-color: rgba(123, 94, 234, 0.4);
    transform: translateY(-2px);
}

.popular-item-image {
    width: 85px;
    height: 85px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(195, 177, 255, 0.3);
}

.popular-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-item:hover .popular-item-image img {
    transform: scale(1.1);
}

.popular-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-item-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #4a3a8c;
    line-height: 1.4;
    margin-bottom: 6px;
}

.popular-item-date {
    font-size: 13px;
    color: #8a7ab8;
}

/* ========== Load More Button ========== */
.load-more-wrapper {
    text-align: center;
    margin: 45px 0;
}

.load-more-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #7b5eea, #9d8af1);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(123, 94, 234, 0.25);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #6a4fd9, #8b77e6);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(123, 94, 234, 0.35);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

/* ========== Footer ========== */
.footer {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #6a5a9e;
    padding: 45px 0;
    text-align: center;
    margin-top: 70px;
    border-top: 1px solid rgba(195, 177, 255, 0.3);
}

.footer a {
    color: #7b5eea;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: #5a43c7;
    text-decoration: underline;
}

/* ========== Article Detail Page ========== */
.article-detail {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 45px;
    box-shadow: 0 10px 30px rgba(123, 94, 234, 0.1);
    border: 1px solid rgba(195, 177, 255, 0.3);
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7b5eea, #9d8af1, #7b5eea);
    border-radius: 14px 14px 0 0;
}

.breadcrumb {
    font-size: 14px;
    color: #8a7ab8;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #7b5eea;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #b5a8e8;
}

.article-title {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #4a3a8c;
    line-height: 1.3;
    margin: 20px 0;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #8a7ab8;
    margin-bottom: 25px;
}

.article-meta .separator {
    margin: 0 6px;
    color: #b5a8e8;
}

.article-image {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
    border: 1px solid rgba(195, 177, 255, 0.3);
    box-shadow: 0 8px 25px rgba(123, 94, 234, 0.1);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-image:hover img {
    transform: scale(1.05);
}

.article-summary {
    font-size: 19px;
    color: #5a4a9e;
    line-height: 1.8;
    padding: 24px;
    background: linear-gradient(135deg, rgba(248, 244, 255, 0.8), rgba(240, 232, 255, 0.8));
    border-left: 5px solid #7b5eea;
    border-radius: 8px;
    margin-bottom: 35px;
    font-weight: 500;
}

.article-body {
    font-size: 18px;
    color: #4a3a8c;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #7b5eea;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(123, 94, 234, 0.3);
}

.article-body h3 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #8b77e6;
    margin: 32px 0 16px;
}

.article-body ul, .article-body ol {
    margin: 20px 0 20px 28px;
}

.article-body li {
    margin-bottom: 10px;
    color: #5a4a9e;
    position: relative;
}

.article-body ul li::before {
    content: '•';
    color: #7b5eea;
    font-weight: bold;
    position: absolute;
    left: -18px;
}

.article-footer {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 2px solid rgba(195, 177, 255, 0.3);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag {
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(123, 94, 234, 0.1), rgba(157, 138, 241, 0.1));
    color: #7b5eea;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(123, 94, 234, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
}

.article-tag:hover {
    background: linear-gradient(135deg, rgba(123, 94, 234, 0.2), rgba(157, 138, 241, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(123, 94, 234, 0.2);
}

/* ========== Related Articles ========== */
.related-articles {
    margin-top: 55px;
    padding-top: 35px;
    border-top: 2px solid rgba(195, 177, 255, 0.3);
}

/* ========== Category Page ========== */
.category-header {
    text-align: center;
    margin-bottom: 45px;
}

.category-title {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #7b5eea;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #7b5eea, #9d8af1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(123, 94, 234, 0.1);
}

.category-description {
    font-size: 19px;
    color: #6a5a9e;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Ad Styles ========== */
.ad-space {
    margin: 25px 0;
}

.ad-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 244, 255, 0.9));
    border: 2px dashed rgba(123, 94, 234, 0.3);
    border-radius: 10px;
    padding: 45px 25px;
    text-align: center;
    color: #8a7ab8;
    font-size: 15px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.ad-placeholder:hover {
    border: 2px solid rgba(123, 94, 234, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 255, 0.95));
    box-shadow: 0 8px 25px rgba(123, 94, 234, 0.1);
}

.ad-top .ad-placeholder {
    min-height: 100px;
}

.ad-mid .ad-placeholder {
    min-height: 100px;
}

.ad-sidebar .ad-placeholder {
    min-height: 280px;
}

.ad-article .ad-placeholder {
    min-height: 100px;
    margin: 35px 0;
}

/* ========== Sticky Ad ========== */
.ad-sticky-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 255, 0.98));
    backdrop-filter: blur(15px);
    box-shadow: 0 -4px 20px rgba(123, 94, 234, 0.12);
    border-top: 1px solid rgba(195, 177, 255, 0.4);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px 0;
}

.ad-sticky-bottom.show {
    transform: translateY(0);
}

.ad-sticky-container {
    position: relative;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.ad-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #8a7ab8;
    z-index: 1;
    transition: color 0.3s;
}

.ad-close-btn:hover {
    color: #7b5eea;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        position: static;
    }

    .featured-grid, .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-dropdown {
        margin-top: 10px;
    }
    
    .featured-grid, .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .article-detail {
        padding: 30px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-image {
        height: 280px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 26px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-image {
        height: 220px;
    }
    
    .category-title {
        font-size: 32px;
    }
}