section.container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    transition: all 0.5s ease;
}

section.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.9;
}

.featured-article-img-container {
  border-radius: var(--img-radius);
  overflow: hidden;
}
.featured-article-img {
  object-position: center center;
  display: block;
  border-radius: var(--img-radius);
}
.featured-article-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.featured-article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.featured-article-tags .tag-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #eef2f7;
  color: #4a5568;
  font-size: 0.8rem;
  text-decoration: none;
}
.featured-article-tags .tag-badge:hover {
  background-color: #e2e8f0;
  color: #2d3748;
}


.featured-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.featured-article {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-article:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.featured-article-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-article-image {
    transform: scale(1.05);
}

.featured-article-content {
    padding: 30px;
}

.featured-article-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-article-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.featured-article:hover .featured-article-title {
    color: var(--primary-color);
}

.featured-article-excerpt {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.featured-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--light-text);
}

.featured-article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Loading Styles */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 20px;
}

.loading i {
    color: var(--primary-color);
    opacity: 0.8;
    animation: pulse 1.5s infinite;
}

.loading p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    gap: 0.5rem;
    padding: 20px 20px 10px;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--text-color);
    font-weight: 500;
}

/* About Section Styles */
.about-section, .privacy-section, .terms-section {
    padding: 80px 0;
    background: var(--card-bg);
    position: relative;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 20px 0;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.about-header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

.about-header h1 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-intro {
    background-color: rgba(93, 138, 168, 0.05);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.about-intro p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--light-text);
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-text {
    line-height: 1.8;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.about-text a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.about-feature {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 40px 30px;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.about-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-feature:hover::before {
    transform: scaleX(1);
}

.about-feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: all 0.4s ease;
    display: block;
}

.about-feature:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 4px 8px rgba(93, 138, 168, 0.3));
}

.about-feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.about-feature:hover h3 {
    color: var(--primary-color);
}

.about-feature p {
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Privacy and Terms Section Styles */
.privacy-header, .terms-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.privacy-header h1, .terms-header h1 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.privacy-header p, .terms-header p {
    color: var(--light-text);
    font-size: 1rem;
}

.privacy-content, .terms-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-intro, .terms-intro {
    background-color: rgba(93, 138, 168, 0.05);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.privacy-intro p, .terms-intro p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.privacy-intro p:last-child, .terms-intro p:last-child {
    margin-bottom: 0;
}

.privacy-grid, .terms-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.privacy-toc, .terms-toc {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 8px;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.privacy-toc h2, .terms-toc h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list li a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
}

.toc-list li a:hover {
    color: var(--primary-color);
    background-color: rgba(93, 138, 168, 0.1);
}

.privacy-text, .terms-text {
    line-height: 1.8;
}

.privacy-text h2, .terms-text h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.privacy-text h3, .terms-text h3 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.privacy-text p, .terms-text p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.privacy-text ul, .terms-text ul, .privacy-text ol, .terms-text ol {
    margin-bottom: 25px;
    padding-left: 25px;
    color: var(--light-text);
}

.privacy-text li, .terms-text li {
    margin-bottom: 10px;
}

.privacy-text li:last-child, .terms-text li:last-child {
    margin-bottom: 0;
}

/* Responsive styles for privacy and terms sections */
@media (max-width: 992px) {
    .privacy-grid, .terms-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .privacy-toc, .terms-toc {
        position: static;
        max-height: none;
    }
}

/* Responsive styles for about section */
@media (max-width: 768px) {
    .about-section, .privacy-section, .terms-section {
        padding: 2.5rem 0;
        margin: 1rem 0.5rem;
        border-radius: 16px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        background: linear-gradient(135deg, var(--card-bg) 0%, #f8f9fa 100%);
    }
    
    /* Enhanced breadcrumb for mobile */
    .breadcrumb {
        padding: 1rem 1rem 0.5rem;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        margin: 0 0.5rem 1rem;
        backdrop-filter: blur(10px);
    }
    
    .breadcrumb a {
        color: var(--primary-color);
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .breadcrumb a:hover {
        color: var(--secondary-color);
        transform: translateX(2px);
    }
    
    .breadcrumb span {
        color: var(--text-color);
        font-weight: 600;
    }
    
    /* Enhanced headers for static pages */
    .about-header, .privacy-header, .terms-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .about-header h1, .privacy-header h1, .terms-header h1 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
        display: inline-block;
    }
    
    .about-header h1::after, .privacy-header h1::after, .terms-header h1::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
    }
    
    .privacy-header p, .terms-header p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin-top: 1rem;
    }
    
    /* Enhanced content sections */
    .about-content, .privacy-content, .terms-content {
        padding: 0 1rem;
    }
    
    .about-intro, .privacy-intro, .terms-intro {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 12px;
        margin-bottom: 2rem;
        border-left: 4px solid var(--primary-color);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    
    .about-intro p, .privacy-intro p, .terms-intro p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 0;
        color: var(--text-color);
    }
    
    .about-section-item, .privacy-main-content section, .terms-main-content section {
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.03);
    }
    
    .about-section-item:hover, .privacy-main-content section:hover, .terms-main-content section:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .about-section-item h2, .privacy-main-content h2, .terms-main-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
        position: relative;
        padding-bottom: 0.5rem;
    }
    
    .about-section-item h2::after, .privacy-main-content h2::after, .terms-main-content h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 1px;
    }
    
    .about-text p, .privacy-main-content p, .terms-main-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
        color: var(--text-color);
        text-align: justify;
    }
    
    .about-text a, .privacy-main-content a, .terms-main-content a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .about-text a:hover, .privacy-main-content a:hover, .terms-main-content a:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }
    
    .about-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        margin-top: 2rem;
    }
    
    .about-feature {
        min-width: auto;
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .about-feature::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }
    
    .about-feature:hover::before {
        transform: scaleX(1);
    }
    
    .about-feature:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        transition: all 0.4s ease;
    }
    
    .about-feature:hover .feature-icon {
        transform: scale(1.15) rotate(8deg);
        filter: drop-shadow(0 4px 8px rgba(93, 138, 168, 0.3));
    }
    
    .about-feature h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        transition: color 0.3s ease;
    }
    
    .about-feature:hover h3 {
        color: var(--primary-color);
    }
    
    .about-feature p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0;
    }
    
    .privacy-header h1, .terms-header h1 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    
    .privacy-content, .terms-content {
        padding: 0 1rem;
    }
    
    .privacy-intro, .terms-intro {
        padding: 1.5rem;
        border-radius: 12px;
        margin-bottom: 2rem;
    }
    
    .privacy-toc, .terms-toc {
        padding: 1.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        margin-bottom: 2rem;
    }
    
    .privacy-toc h2, .terms-toc h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }
    
    .privacy-toc ul, .terms-toc ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .privacy-toc li, .terms-toc li {
        margin-bottom: 0.5rem;
    }
    
    .privacy-toc a, .terms-toc a {
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        display: block;
        padding: 0.25rem 0;
        border-left: 2px solid transparent;
        padding-left: 0.5rem;
    }
    
    .privacy-toc a:hover, .terms-toc a:hover {
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        transform: translateX(5px);
    }
    
    .privacy-main-content h2, .terms-main-content h2 {
        font-size: 1.5rem;
    }
    
    .privacy-main-content h3, .terms-main-content h3 {
        font-size: 1.2rem;
    }
}

/* Back to Top Button - 全局样式 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    text-align: center;
    padding: 0 15px;
    line-height: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.5s ease forwards;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Styles */
:root {
  /* 心理健康主题配色 - 柔和、温暖、舒适 */
  --primary-color: #5d8aa8; /* 柔和的蓝色，代表平静和信任 */
  --secondary-color: #87a96b; /* 温暖的绿色，代表成长和希望 */
  --accent-color: #ffbf00; /* 温暖的橙色，代表活力和积极 */
  --text-color: #2c3e50; /* 深灰色，提高可读性 */
  --light-text: #555555; /* 浅灰色，用于辅助文本 */
  --background-color: #f8f9fa; /* 柔和的米色背景，更舒适 */
  --card-bg: #ffffff; /* 白色卡片背景，保持清晰 */
  --border-color: #e8ecef; /* 柔和的边框色 */
  --header-height: 80px;
  --font-main: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑过渡曲线 */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* 快速过渡 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08); /* 小阴影 */
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12); /* 中阴影 */
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16); /* 大阴影 */
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.2); /* 悬停阴影 */
  --img-radius: 14px; /* 全局文章图片圆角 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局文章图片圆角统一 */
img.article-card-img,
img.article-grid-img,
img.article-list-img,
img.article-item-img,
img.featured-article-img {
  border-radius: var(--img-radius) !important;
}

/* 统一属性选择器，覆盖任何模块未加载的样式文件 */
img[data-article-img="true"] {
  border-radius: var(--img-radius) !important;
}

/* 全局平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 页面加载动画 */
body {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 元素进入视口动画 */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卡片和元素的悬停动画 */
.cards-container .card, .category-card, .article-item {
  transition: var(--transition);
}

.cards-container .card:hover, .category-card:hover, .article-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* 按钮动画 */
.btn {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

/* 链接动画 */
a {
  transition: var(--transition);
  position: relative;
}

/* 添加加载状态动画 */
.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #2980b9;
}

/* Header Styles */
.header {
  background-color: #2c3e50;
  background-image: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.header:hover {
  box-shadow: var(--shadow-lg);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.logo:hover {
  transform: scale(1.05) rotate(2deg);
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.logo:hover img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  position: relative;
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: inline-block;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 6px;
  left: 1.25rem;
  background-color: var(--accent-color);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: calc(100% - 2.5rem);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn i {
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover i {
  transform: scale(1.1);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  color: white;
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Card Styles */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 2.5rem 0 1rem 0;
  padding: 0.5rem 0;
}

/* 基础卡片样式 */
.card {
  background-color: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

/* 卡片图片 */
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
  border-radius: var(--img-radius);
}

.card:hover .card-img {
  transform: scale(1.08);
}

/* 卡片内容 */
.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 卡片分类 */
.card-category {
  display: inline-block;
  background-color: rgba(93, 138, 168, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.card:hover .card-category {
  background-color: var(--primary-color);
  color: white;
}

/* 卡片标题 */
.card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.card:hover .card-title {
  color: var(--primary-color);
}

/* 卡片摘要 */
.card-excerpt {
  color: var(--light-text);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
  flex: 1;
}

/* 卡片元数据 */
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--light-text);
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.card-meta i {
  margin-right: 5px;
  color: var(--primary-color);
  opacity: 0.8;
}

/* 列表样式 */
.list-article {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.list-article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.list-article:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.list-article:hover::before {
  transform: scaleY(1);
}

.list-article-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-color);
  transition: color 0.3s ease;
  font-weight: 700;
  line-height: 1.4;
}

.list-article:hover .list-article-title {
  color: var(--primary-color);
}

.list-article-excerpt {
  color: var(--light-text);
  margin-bottom: 18px;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0.9;
}

/* 网格样式 */
.grid-article {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.grid-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-article:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.grid-article:hover::before {
  opacity: 1;
}

.grid-article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
  border-radius: var(--img-radius);
}

.grid-article:hover .grid-article-img {
  transform: scale(1.08);
}

.grid-article-content {
  padding: 1.5rem;
}

.grid-article-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-color);
  transition: color 0.3s ease;
  font-weight: 700;
  line-height: 1.4;
}

.grid-article:hover .grid-article-title {
  color: var(--primary-color);
}

.grid-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--light-text);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.grid-article-meta i {
  margin-right: 5px;
  color: var(--primary-color);
  opacity: 0.8;
}

/* Section Header Styles */
 

.section-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.section-btn:hover {
  background-color: #2980b9;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.25);
}

/* Categories Section */
.categories-section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title-container {
  flex: 1;
  min-width: 250px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    color: var(--text-color);
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-text);
  margin: 0;
  font-weight: 400;
}

/* Category Cards */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

.category-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.4s ease;
}

.category-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: all 0.4s ease;
  display: block;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 4px 8px rgba(93, 138, 168, 0.3));
}

.category-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
  transition: color 0.3s ease;
  color: var(--text-color);
}

.category-card:hover h3 {
  color: var(--primary-color);
}

.category-card p {
  color: var(--light-text);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
  flex: 1;
}

.category-count {
  display: inline-block;
  background-color: rgba(93, 138, 168, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.category-card:hover .category-count {
  background-color: var(--primary-color);
  color: white;
}

.category-card a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px 0;
}

.category-card a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card a:hover::after {
  transform: scaleX(1);
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-column h3 {
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
  color: white;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 15px;
  font-size: 1rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-10px);
  color: var(--primary-color);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Partners Section Styles */
.partners-logos {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.partner-item {
  display: inline-block;
  transition: all 0.3s ease;
  background-color: transparent;
  padding: 0.8rem;
  border-radius: 4px;
  border: none;
  overflow: hidden;
  position: relative;
}

.partner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.partner-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.6s ease;
}

.partner-item:hover::after {
  left: 150%;
}

.partner-logo {
  max-width: 140px;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.partner-item:hover .partner-logo {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.6;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: white;
  text-decoration: underline;
}

/* Article List Styles */
.article-list {
  padding: 2rem 0;
}

.article-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.article-item:last-child {
  border-bottom: none;
}

.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--img-radius);
  transition: transform 0.5s ease, filter 0.3s ease;
}

.article-content {
  display: flex;
  flex-direction: column;
}

.article-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.article-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--light-text);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.article-excerpt {
  color: var(--light-text);
  line-height: 1.7;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.article-item:hover .article-img {
  transform: scale(1.03);
}

/* Article Detail Styles */
.article-detail {
  padding: 2rem 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-featured-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--img-radius);
  margin-bottom: 2rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Test Styles */
.test-content {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.test-question {
  margin-bottom: 2rem;
}

.test-options {
  margin-bottom: 2rem;
}

.test-option {
  margin-bottom: 1rem;
}

.test-option input[type="radio"] {
  margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Article Content Responsive */
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
    
    /* Related Articles Responsive */
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Article List Responsive */
    .article-list-wrapper {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    

    /* Section header responsive */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title-container {
        min-width: auto;
        width: 100%;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0;
        text-align: left;
    }
    
    .section-btn {
        align-self: flex-start;
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        box-shadow: 0 4px 15px rgba(93, 138, 168, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .section-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(93, 138, 168, 0.4);
    }
    
    /* Navigation Responsive */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--card-bg) 0%, #f8f9fa 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(-150%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        opacity: 0;
        pointer-events: none;
        backdrop-filter: blur(20px);
        border-radius: 0 0 20px 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        display: flex !important;
    }
    
    .nav-links.show a {
        color: var(--text-color);
        padding: 1rem 2rem;
        margin: 0.25rem 1.5rem;
        border-radius: 12px;
        text-align: center;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .nav-links.show a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-links.show a:hover::before {
        left: 100%;
    }
    
    .nav-links.show a:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        transform: translateX(8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        border: 2px solid rgba(255, 255, 255, 0.2);
        font-size: 1.3rem;
        cursor: pointer;
        color: white;
        padding: 0.75rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .mobile-menu-btn:hover::before {
        opacity: 0.8;
    }
    
    .mobile-menu-btn:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-btn.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border-color: transparent;
        transform: rotate(180deg);
    }
    
    .mobile-menu-btn.active i {
        transform: rotate(45deg);
    }
    
    /* Featured article mobile adjustments */
    .featured-container {
        gap: 1.5rem;
    }
    .featured-article-image {
        height: 220px;
    }
    .featured-article-content {
        padding: 1.25rem;
    }

    /* CTA Buttons Responsive */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Section Responsive */
    section.container {
        padding: 2.5rem 1rem;
        margin: 1rem 0.5rem;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }
    
    /* Grid Layouts Responsive */
    .article-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-img,
    .article-featured-img {
        height: 220px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0 0.5rem 0;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* About Section Responsive */
    .about-section {
        padding: 2rem 0;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .about-features {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .about-feature {
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        min-width: auto;
    }
    
    .about-feature::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }
    
    .about-feature:hover::before {
        transform: scaleX(1);
    }
    
    .about-feature:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        transition: all 0.4s ease;
    }
    
    .about-feature:hover .feature-icon {
        transform: scale(1.15) rotate(8deg);
        filter: drop-shadow(0 4px 8px rgba(93, 138, 168, 0.3));
    }
    
    .about-feature h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        transition: color 0.3s ease;
    }
    
    .about-feature:hover h3 {
        color: var(--primary-color);
    }
    
    .about-feature p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0;
    }
    
    /* Footer Responsive */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Article Content Responsive */
    .article-body {
        padding: 0 1rem;
    }
    
    .article-body p {
        font-size: 1rem;
    }
    
    /* Button Responsive */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Card responsive */
    .card-content {
        padding: 1.5rem;
    }
    
    .card-img {
        height: 200px;
    }
    
    /* Typography Responsive */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    /* Enhanced footer for mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }
    
    .footer-column p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .partners-logos {
        justify-content: center;
        gap: 1rem;
    }
    
    .partner-logo {
        width: 60px;
        height: auto;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    /* Enhanced about features for mobile */
    .about-features {
        gap: 1.5rem;
    }
    
    .about-feature {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .about-feature-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .about-feature h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .about-feature p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Enhanced contact section for mobile */
    .about-section-item:last-child {
        padding: 1.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
    }
    
    .about-section-item:last-child h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .about-section-item:last-child p {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.7;
    }
    
    .about-section-item:last-child a {
        color: var(--primary-color);
        font-weight: 500;
        text-decoration: none;
        display: inline-block;
        margin-top: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .about-section-item:last-child a:hover {
        color: var(--secondary-color);
        transform: translateY(-2px);
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    
    /* Main content responsive */
    main {
        min-height: calc(100vh - var(--header-height) - 200px);
    }
    
    /* Section spacing responsive */
    section.container {
        padding: 2rem 0.5rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    /* Section header mobile optimization */
    .section-header {
        margin-bottom: 1.5rem;
        gap: 0.8rem;
    }
    
    /* Featured article small-screen adjustments */
    .featured-article-image {
        height: 200px;
    }
    
    .section-title {
        font-size: clamp(1.3rem, 6vw, 1.6rem);
        margin-bottom: 0.8rem;
    }
    
    .section-title::after {
        width: 50px;
        height: 2px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    /* Category cards mobile optimization */
    .category-cards {
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .category-card .category-count {
        font-size: 0.8rem;
    }
    
    /* About section mobile optimization */
    .about-content {
        padding: 0 0.5rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .about-features {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .about-feature {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .about-feature h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .about-feature p {
        font-size: 0.9rem;
    }
    
    /* Typography Responsive */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    

    
    /* Grid Layouts Responsive */
    .cards-container,
    .footer-content,
    .category-cards,
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Section title responsive */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* Card responsive */
    .card-content {
        padding: 1.5rem 1rem;
    }
    
    .card-img {
        height: 180px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Category card responsive */
    .category-card {
        padding: 1.5rem;
        border-radius: 16px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }
    
    .category-card:hover::before {
        transform: scaleX(1);
    }
    
    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
    
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        transition: all 0.4s ease;
        display: block;
    }
    
    .category-card:hover .category-icon {
        transform: scale(1.15) rotate(8deg);
        filter: drop-shadow(0 4px 8px rgba(93, 138, 168, 0.3));
    }
    
    .category-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
        transition: color 0.3s ease;
    }
    
    .category-card:hover h3 {
        color: var(--primary-color);
    }
    
    .category-card .category-count {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-top: 0.5rem;
    }
    
    /* Button responsive */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .cta-buttons .btn {
        max-width: 100%;
    }
    
    /* Author info responsive */
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Enhanced footer for small mobile devices */
    .footer {
        padding: 35px 0 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        margin-bottom: 1.8rem;
        text-align: center;
    }
    
    .footer-column h3 {
        font-size: 1.15rem;
        margin-bottom: 0.9rem;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
    }
    
    .footer-column p {
        font-size: 0.88rem;
        margin-bottom: 0.9rem;
    }
    
    .partners-logos {
        justify-content: center;
        gap: 0.9rem;
    }
    
    .partner-logo {
        width: 55px;
        height: auto;
    }
    
    .footer-bottom {
        padding-top: 1.2rem;
        font-size: 0.78rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.9rem;
        margin-bottom: 0.9rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .footer-nav a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    /* Enhanced static page sections for small mobile devices */
    .about-section, .privacy-section, .terms-section {
        padding: 2rem 0;
        margin: 0.8rem 0.4rem;
        border-radius: 14px;
    }
    
    .about-header h1, .privacy-header h1, .terms-header h1 {
        font-size: clamp(1.6rem, 7vw, 2rem);
        margin-bottom: 0.4rem;
    }
    
    .about-intro, .privacy-intro, .terms-intro {
        padding: 1.2rem;
        border-radius: 10px;
        margin-bottom: 1.8rem;
        border-left: 3px solid var(--primary-color);
    }
    
    .about-intro p, .privacy-intro p, .terms-intro p {
        font-size: 0.88rem;
        line-height: 1.65;
    }
    
    .privacy-toc, .terms-toc {
        padding: 1.2rem;
        border-radius: 10px;
        margin-bottom: 1.8rem;
    }
    
    .privacy-toc h2, .terms-toc h2 {
        font-size: 1.15rem;
        margin-bottom: 0.9rem;
    }
    
    .privacy-toc ul, .terms-toc ul {
        gap: 0.5rem;
    }
    
    .privacy-toc a, .terms-toc a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
        padding-left: 0.6rem;
        border-left: 2px solid transparent;
    }
    
    .about-section-item, .privacy-section-item, .terms-section-item {
        margin-bottom: 1.8rem;
        padding-bottom: 1.2rem;
    }
    
    .about-section-item h2, .privacy-section-item h2, .terms-section-item h2 {
        font-size: clamp(1.15rem, 5.5vw, 1.35rem);
        margin-bottom: 0.9rem;
        padding-bottom: 0.6rem;
    }
    
    .about-section-item h3, .privacy-section-item h3, .terms-section-item h3 {
        font-size: 1.05rem;
        margin: 0.9rem 0 0.5rem;
    }
    
    .about-section-item p, .privacy-section-item p, .terms-section-item p {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 0.9rem;
    }
    
    .privacy-section-item ul, .terms-section-item ul {
        margin: 0.9rem 0;
        padding-left: 1.4rem;
    }
    
    .privacy-section-item li, .terms-section-item li {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 0.5rem;
    }
    
    /* Enhanced contact section for small mobile devices */
    .about-section-item:last-child {
        padding: 1.4rem;
        border-radius: 10px;
    }
    
    .about-section-item:last-child h2 {
        font-size: 1.15rem;
        margin-bottom: 0.9rem;
    }
    
    .about-section-item:last-child p {
        font-size: 0.88rem;
        line-height: 1.65;
    }
    
    .about-section-item:last-child a {
        margin-top: 0.4rem;
        font-size: 0.88rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 420px) {
    .container {
        padding: 0 0.5rem;
    }
    
    section.container {
        padding: 1.5rem 0.5rem;
        margin: 0.5rem 0.25rem;
        border-radius: 10px;
    }
    
    /* Section header extra small optimization */
    .section-header {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .section-title {
        font-size: clamp(1.2rem, 7vw, 1.4rem);
        margin-bottom: 0.6rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 2px;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .section-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 5px;
    }
    
    /* Category cards extra small optimization */
    .category-cards {
        gap: 0.8rem;
    }
    
    .category-card {
        padding: 1rem 0.8rem;
        border-radius: 10px;
    }
    
    .category-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .category-card .category-count {
        font-size: 0.75rem;
    }
    
    /* About section extra small optimization */
    .about-content {
        padding: 0 0.5rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .about-features {
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .about-feature {
        padding: 1.2rem 0.8rem;
        border-radius: 10px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .about-feature h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .about-feature p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Enhanced footer for extra small devices */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-column h3::after {
        width: 30px;
        height: 2px;
    }
    
    .footer-column p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .partners-logos {
        gap: 0.8rem;
    }
    
    .partner-logo {
        width: 50px;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.75rem;
    }
    
    .footer-links {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-nav {
        gap: 0.6rem;
    }
    
    .footer-nav a {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
    
    /* Enhanced static page sections for extra small devices */
    .about-section, .privacy-section, .terms-section {
        padding: 1.5rem 0;
        margin: 0.5rem 0.25rem;
        border-radius: 12px;
    }
    
    .about-header h1, .privacy-header h1, .terms-header h1 {
        font-size: clamp(1.5rem, 8vw, 1.8rem);
        margin-bottom: 0.3rem;
    }
    
    .about-intro, .privacy-intro, .terms-intro {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        border-left: 3px solid var(--primary-color);
    }
    
    .about-intro p, .privacy-intro p, .terms-intro p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .privacy-toc, .terms-toc {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    
    .privacy-toc h2, .terms-toc h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .privacy-toc ul, .terms-toc ul {
        gap: 0.4rem;
    }
    
    .privacy-toc a, .terms-toc a {
        font-size: 0.8rem;
        padding: 0.2rem 0;
        padding-left: 0.4rem;
        border-left: 2px solid transparent;
    }
    
    .about-section-item, .privacy-section-item, .terms-section-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .about-section-item h2, .privacy-section-item h2, .terms-section-item h2 {
        font-size: clamp(1.1rem, 6vw, 1.3rem);
        margin-bottom: 0.8rem;
        padding-bottom: 0.4rem;
    }
    
    .about-section-item h3, .privacy-section-item h3, .terms-section-item h3 {
        font-size: 1rem;
        margin: 0.8rem 0 0.4rem;
    }
    
    .about-section-item p, .privacy-section-item p, .terms-section-item p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }
    
    .privacy-section-item ul, .terms-section-item ul {
        margin: 0.8rem 0;
        padding-left: 1.2rem;
    }
    
    .privacy-section-item li, .terms-section-item li {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.4rem;
    }
    
    /* Enhanced contact section for extra small devices */
    .about-section-item:last-child {
        padding: 1.2rem;
        border-radius: 8px;
    }
    
    .about-section-item:last-child h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .about-section-item:last-child p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .about-section-item:last-child a {
        margin-top: 0.3rem;
        font-size: 0.85rem;
    }
}

/* Main content styling */
main {
    max-width: 1440px;
    margin: 0 auto;
}

/* Index page specific styles */
 .content-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0;
 }

.section-subtitle {
  color: var(--light-text);
  margin-bottom: 0;
  font-size: 1rem;
  max-width: 700px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Utility */
.is-hidden {
  display: none;
}

.performance-log {
  background: #f8f9fa;
  padding: 20px;
  margin: 20px;
}

.log-time {
  color: #3498db;
}

.status-green {
  color: #2ecc71;
}

.status-red {
  color: #e74c3c;
}

/* Staggered animation helpers */
.fade-in {
  animation: fadeUp 0.6s ease forwards;
}
.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }

/* Category colors palette (match JS colors) */
.category-color-0 { border-left-color: #FF6B6B; }
.category-color-0 .category-icon { color: #FF6B6B; }
.category-color-1 { border-left-color: #4ECDC4; }
.category-color-1 .category-icon { color: #4ECDC4; }
.category-color-2 { border-left-color: #45B7D1; }
.category-color-2 .category-icon { color: #45B7D1; }
.category-color-3 { border-left-color: #96CEB4; }
.category-color-3 .category-icon { color: #96CEB4; }
.category-color-4 { border-left-color: #FECA57; }
.category-color-4 .category-icon { color: #FECA57; }
.category-color-5 { border-left-color: #DDA0DD; }
.category-color-5 .category-icon { color: #DDA0DD; }
.category-color-6 { border-left-color: #98D8C8; }
.category-color-6 .category-icon { color: #98D8C8; }
.category-color-7 { border-left-color: #F7DC6F; }
.category-color-7 .category-icon { color: #F7DC6F; }

 

 
/* Mobile menu styles */
.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

 
/* 通用图片容器与图片样式 */
.kao-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--img-radius);
  display: block;
}

.kao-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
  border-radius: inherit;
}

.kao-img-sm { height: 160px; }
.kao-img-md { height: 220px; }
.kao-img-lg { height: 280px; }
.kao-img-xl { height: 320px; }

.hover-scale:hover .kao-img { transform: scale(1.05); }

.has-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 45%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  border-radius: inherit;
}
/* 模块统一尺寸规则 */
.article-list-item .kao-img-wrap {
  width: 200px;
  flex-shrink: 0;
}

.article-item .kao-img-wrap {
  width: 30%;
  min-width: 250px;
}

/* Mobile responsiveness for unified image wrappers */
@media (max-width: 992px) {
  .article-item .kao-img-wrap {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .article-list-item .kao-img-wrap {
    width: 100%;
  }
  .kao-img-sm { height: 140px; }
  .kao-img-md { height: 180px; }
  .kao-img-lg { height: 220px; }
  .kao-img-xl { height: 240px; }
}

/* Hot Articles 侧栏模块尺寸 */
.recent-article-item .kao-img-wrap {
  width: 90px;
  flex-shrink: 0;
}
