/* 悦享欲知识库 - 主样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 导航栏 */
.navbar {
        background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.logo img { height: 40px; width: 40px; border-radius: 8px; }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: #555; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #11998e; }

/* 主横幅 */
.hero {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 { font-size: 42px; margin-bottom: 15px; }
.hero p { font-size: 18px; opacity: 0.95; margin-bottom: 30px; }

/* 搜索框 */
.search-box {
    max-width: 650px;
    margin: 35px auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 16px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.search-btn {
    padding: 16px 35px;
        background: #2c3e50;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.search-btn:hover { background: #1a252f; }

/* 统计数据 */
.stats-bar {
        background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-number { display: block; font-size: 32px; font-weight: bold; color: #11998e; margin-bottom: 5px; }
.stat-label { color: #666; font-size: 14px; }

/* 分类区域 */
.categories-section { padding: 70px 0; }
.categories-section h2 { text-align: center; font-size: 32px; color: #2c3e50; margin-bottom: 50px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
        background: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: #11998e;
}

.category-icon { font-size: 52px; margin-bottom: 15px; }
.category-title { font-size: 18px; font-weight: 600; color: #2c3e50; margin-bottom: 8px; }
.category-count { color: #11998e; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.category-desc { color: #999; font-size: 13px; line-height: 1.5; }

/* 文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0;
}

.article-card {
        background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.article-card:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.12); }
.article-category { display: inline-block; padding: 4px 12px; background: #e8f5e9; color: #11998e; border-radius: 12px; font-size: 12px; margin-bottom: 10px; }
.article-title { font-size: 16px; font-weight: 600; color: #2c3e50; margin-bottom: 10px; line-height: 1.4; }
.article-excerpt { color: #666; font-size: 14px; margin-bottom: 15px; }
.article-meta { display: flex; justify-content: space-between; color: #999; font-size: 12px; }

/* 页脚 */
.footer {
        background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 { font-size: 18px; margin-bottom: 20px; color: white; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 10px; }
.footer-section a { color: #bdc3c7; text-decoration: none; }
.footer-section a:hover { color: white; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-bottom .warning { color: #e74c3c; font-weight: 600; margin-top: 10px; }

/* 年龄验证弹窗 */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.hidden { display: none; }
.modal-content { background: white; padding: 40px; border-radius: 15px; max-width: 500px; text-align: center; }
.modal-content h2 { font-size: 28px; margin-bottom: 20px; color: #2c3e50; }
.modal-content p { margin-bottom: 15px; color: #555; }
.modal-content .warning { color: #e74c3c; font-weight: 600; font-size: 18px; }
.btn-group { display: flex; gap: 20px; justify-content: center; margin: 30px 0; }
.btn-primary, .btn-secondary { padding: 12px 30px; border-radius: 25px; border: none; cursor: pointer; font-weight: 600; }
.btn-primary { background: #11998e; color: white; }
.btn-secondary { background: #95a5a6; color: white; }

/* 响应式 */
@media (max-width: 992px) {
    .category-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 32px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .category-grid, .article-grid, .stats-grid, .footer-content { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; }
}

/* ===== 增强响应式设计 - 全设备适配 ===== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container { max-width: 960px; padding: 0 15px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 36px; }
    .categories-section h2 { font-size: 28px; }
}

/* 平板竖屏/小平板 (577px - 768px) */
@media (max-width: 768px) {
    .container { max-width: 100%; padding: 0 15px; }
    
    /* 导航栏 */
    .navbar .container { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { gap: 20px; font-size: 14px; }
    
    /* 主横幅 */
    .hero { padding: 40px 15px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    
    /* 搜索框 */
    .search-box { flex-direction: column; gap: 10px; max-width: 100%; }
    .search-input, .search-btn { width: 100%; border-radius: 25px; }
    
    /* 统计数据 */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-number { font-size: 28px; }
    .stat-label { font-size: 13px; }
    
    /* 分类 */
    .categories-section { padding: 50px 0; }
    .categories-section h2 { font-size: 24px; margin-bottom: 35px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 25px 15px; }
    .category-icon { font-size: 42px; }
    .category-title { font-size: 16px; }
    .category-count { font-size: 13px; }
    .category-desc { font-size: 12px; display: none; }
    
    /* 文章 */
    .article-grid { grid-template-columns: 1fr; gap: 15px; padding: 30px 0; }
    .article-card { padding: 20px; }
    
    /* 页脚 */
    .footer { padding: 40px 0 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .footer-section ul { padding: 0; }
    .footer-section li { margin-bottom: 8px; }
}

/* 手机设备 (320px - 576px) */
@media (max-width: 576px) {
    .container { padding: 0 12px; }
    
    /* 导航栏 */
    .navbar .container { padding: 12px; }
    .logo { font-size: 18px; }
    .logo img { height: 32px; width: 32px; }
    .nav-links { gap: 15px; font-size: 13px; }
    
    /* 主横幅 */
    .hero { padding: 30px 12px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; }
    
    /* 搜索框 */
    .search-input { padding: 14px 18px; font-size: 15px; }
    .search-btn { padding: 14px 25px; font-size: 15px; }
    
    /* 统计数据 */
    .stats-bar { padding: 20px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-number { font-size: 24px; }
    .stat-label { font-size: 12px; }
    
    /* 分类 */
    .categories-section { padding: 40px 0; }
    .categories-section h2 { font-size: 22px; margin-bottom: 25px; }
    .category-grid { grid-template-columns: 1fr; gap: 12px; }
    .category-card { padding: 20px 15px; border-radius: 10px; }
    .category-icon { font-size: 38px; margin-bottom: 12px; }
    .category-title { font-size: 16px; }
    .category-count { font-size: 13px; }
    
    /* 文章 */
    .article-grid { padding: 20px 0; }
    .article-card { padding: 18px; border-radius: 8px; }
    .article-title { font-size: 15px; }
    .article-excerpt { font-size: 13px; }
    
    /* 页脚 */
    .footer { padding: 30px 0 15px; }
    .footer-content { gap: 20px; }
    .footer-section h4 { font-size: 16px; }
    .footer-section a { font-size: 13px; }
    .footer-bottom { font-size: 12px; }
    .footer-bottom p { margin: 5px 0; }
}

/* 小手机 (320px - 375px) */
@media (max-width: 375px) {
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13px; }
    .category-icon { font-size: 34px; }
    .category-title { font-size: 15px; }
    .btn-group { flex-direction: column; gap: 10px; }
    .btn-primary, .btn-secondary { width: 100%; }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 30px 0; }
    .categories-section { padding: 30px 0; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .modal-content { max-width: 400px; padding: 25px; }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover { transform: none; }
    .article-card:hover { transform: none; }
    .search-btn:hover { background: #2c3e50; }
    .nav-links a:hover { color: #555; }
    .category-card:active { transform: scale(0.98); }
    .article-card:active { transform: scale(0.98); }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a2e; color: #eee; }
    .navbar, .article-card, .category-card, .modal-content { background: #16213e; }
    .article-title, .category-title { color: #eee; }
    .article-excerpt, .category-desc { color: #aaa; }
    .footer { background: #0f3460; }
}

/* 打印样式 */
@media print {
    .navbar, .search-box, .footer, .modal { display: none; }
    .article-container { box-shadow: none; padding: 0; }
    body {
        background: white; color: black; }
}

/* ===== 文章页面响应式 ===== */
.article-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
        background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.article-header { border-bottom: 2px solid #f0f0f0; padding-bottom: 20px; margin-bottom: 30px; }
.article-category { display: inline-block; padding: 6px 15px; background: #e8f5e9; color: #11998e; border-radius: 20px; font-size: 14px; margin-bottom: 15px; }
.article-title { font-size: 28px; color: #2c3e50; line-height: 1.4; margin-bottom: 15px; }
.article-meta { color: #999; font-size: 14px; }
.article-content { line-height: 1.8; color: #333; }
.article-content h2 { color: #2c3e50; margin: 30px 0 15px; font-size: 20px; }
.article-content h3 { color: #34495e; margin: 25px 0 12px; font-size: 17px; }
.article-content p { margin-bottom: 20px; }
.article-content ul { margin-bottom: 20px; padding-left: 25px; }
.article-content li { margin-bottom: 10px; }
.tips { background: #fff3cd; padding: 15px 20px; border-radius: 8px; border-left: 4px solid #ffc107; margin: 25px 0; }
.back-link { display: inline-block; margin-top: 30px; color: #11998e; text-decoration: none; font-weight: 500; }
.back-link:hover { text-decoration: underline; }

/* 文章页面 - 平板 */
@media (max-width: 768px) {
    .article-container { margin: 25px auto; padding: 25px; }
    .article-title { font-size: 24px; }
    .article-category { font-size: 13px; padding: 5px 12px; }
    .article-content h2 { font-size: 18px; }
    .article-content h3 { font-size: 16px; }
    .tips { padding: 12px 15px; font-size: 14px; }
}

/* 文章页面 - 手机 */
@media (max-width: 576px) {
    .article-container { margin: 15px auto; padding: 20px 15px; border-radius: 8px; }
    .article-header { padding-bottom: 15px; margin-bottom: 20px; }
    .article-title { font-size: 20px; }
    .article-meta { font-size: 12px; flex-wrap: wrap; }
    .article-meta span { display: inline-block; margin: 3px 5px 0 0; }
    .article-category { font-size: 12px; padding: 4px 10px; }
    .article-content { font-size: 15px; line-height: 1.7; }
    .article-content h2 { font-size: 17px; margin: 25px 0 12px; }
    .article-content h3 { font-size: 15px; margin: 20px 0 10px; }
    .article-content p { margin-bottom: 15px; font-size: 15px; }
    .article-content ul { padding-left: 20px; }
    .article-content li { margin-bottom: 8px; font-size: 15px; }
    .tips { padding: 12px; font-size: 13px; margin: 20px 0; }
    .back-link { margin-top: 20px; font-size: 14px; }
}

/* 文章页面 - 小手机 */
@media (max-width: 375px) {
    .article-title { font-size: 18px; }
    .article-content { font-size: 14px; }
    .article-content h2 { font-size: 16px; }
}

/* ===== 搜索页面响应式 ===== */
.search-header { padding: 50px 0; }
.search-header h1 { font-size: 32px; margin-bottom: 10px; }
.search-header p { font-size: 16px; opacity: 0.95; }
.search-box-large { max-width: 700px; margin: 25px auto; display: flex; gap: 10px; }
.search-input-large { flex: 1; padding: 16px 25px; border: none; border-radius: 30px; font-size: 16px; outline: none; box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.search-btn-large { padding: 16px 35px; background: #2c3e50; color: white; border: none; border-radius: 30px; cursor: pointer; font-size: 16px; font-weight: 600; }
.search-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 15px 20px; background: #f8f9fa; border-radius: 8px; flex-wrap: wrap; gap: 10px; }
.quick-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.filter-chip { padding: 8px 16px; background: white; border: 1px solid #ddd; border-radius: 20px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.filter-chip:hover, .filter-chip.active { background: #11998e; color: white; border-color: #11998e; }

/* 搜索页面 - 平板 */
@media (max-width: 768px) {
    .search-header { padding: 40px 0; }
    .search-header h1 { font-size: 28px; }
    .search-header p { font-size: 15px; }
    .search-box-large { flex-direction: column; max-width: 100%; padding: 0 15px; }
    .search-input-large, .search-btn-large { width: 100%; border-radius: 25px; }
    .search-info { flex-direction: column; align-items: flex-start; font-size: 14px; }
    .quick-filters { justify-content: flex-start; }
    .filter-chip { font-size: 13px; padding: 6px 12px; }
}

/* 搜索页面 - 手机 */
@media (max-width: 576px) {
    .search-header { padding: 30px 0; }
    .search-header h1 { font-size: 24px; }
    .search-header p { font-size: 14px; }
    .search-input-large { padding: 14px 18px; font-size: 15px; }
    .search-btn-large { padding: 14px 25px; font-size: 15px; }
    .search-info { padding: 12px 15px; font-size: 13px; }
    .filter-chip { font-size: 12px; padding: 5px 10px; margin: 3px; }
}

/* ===== 年龄验证弹窗响应式 ===== */
.modal-content { background: white; padding: 40px; border-radius: 15px; max-width: 500px; text-align: center; margin: 20px; }
.modal-content h2 { font-size: 28px; margin-bottom: 20px; color: #2c3e50; }
.modal-content p { margin-bottom: 15px; color: #555; font-size: 16px; }
.modal-content .warning { color: #e74c3c; font-weight: 600; font-size: 18px; }
.btn-group { display: flex; gap: 20px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 12px 30px; border-radius: 25px; border: none; cursor: pointer; font-weight: 600; font-size: 15px; transition: all 0.3s; }
.btn-primary { background: #11998e; color: white; }
.btn-secondary { background: #95a5a6; color: white; }
.btn-primary:hover, .btn-secondary:hover { opacity: 0.9; transform: scale(1.05); }

/* 年龄验证 - 手机 */
@media (max-width: 576px) {
    .modal-content { padding: 30px 20px; max-width: 90%; }
    .modal-content h2 { font-size: 24px; }
    .modal-content p { font-size: 14px; }
    .modal-content .warning { font-size: 16px; }
    .btn-group { flex-direction: column; gap: 12px; margin: 25px 0; }
    .btn-primary, .btn-secondary { width: 100%; padding: 14px 25px; }
}

/* ===== 加载动画 ===== */
.loading { display: inline-block; width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #11998e; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ===== 无障碍优化 ===== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .category-card, .article-card { border: 2px solid #000; }
    .btn-primary, .btn-secondary { border: 2px solid #000; }
}

/* ===== 广告位样式 ===== */
.ad-container {
    max-width: 300px;
    margin: 20px auto;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.ad-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章页面广告位 */
.article-ad-top, .article-ad-bottom {
    max-width: 728px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
}

/* 侧边广告位（桌面端） */
@media (min-width: 1200px) {
    .main-content-wrapper {
        display: flex;
        max-width: 1400px;
        margin: 0 auto;
        gap: 30px;
    }
    .article-container {
        flex: 1;
        max-width: 900px;
    }
    .sidebar-ads {
        width: 300px;
        flex-shrink: 0;
    }
}

/* 移动端隐藏侧边广告 */
@media (max-width: 1199px) {
    .sidebar-ads { display: none; }
}

/* ===== 文章页面新样式 - 居中布局，两侧留白 ===== */
body.article-page {
    background: #ffffff;
    max-width: 100%;
    overflow-x: hidden;
}

.article-container {
    max-width: 800px !important;
    margin: 40px auto !important;
    padding: 60px 80px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.article-header {
    text-align: center;
    border-bottom: 3px solid #000;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.article-category {
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 0;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
}

.article-title {
    font-size: 32px;
    color: #000;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.article-meta {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.article-content {
    line-height: 2;
    color: #000;
    font-size: 18px;
    text-align: center;
}

.article-content h2 {
    color: #000;
    margin: 40px 0 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.article-content h3 {
    color: #000;
    margin: 30px 0 15px;
    font-size: 20px;
    font-weight: bold;
}

.article-content p {
    margin-bottom: 25px;
    text-indent: 0;
    text-align: center;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 40px;
}

.article-content li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-content strong {
    font-weight: bold;
    color: #000;
}

.tips {
    background: #fff9e6;
    padding: 20px 30px;
    border-radius: 0;
    border-left: 5px solid #f0ad4e;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.8;
}

.back-link {
    display: block;
    margin-top: 50px;
    text-align: center;
    color: #000;
    text-decoration: underline;
    font-size: 16px;
}

/* 两侧广告位容器 */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.left-ad, .right-ad {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.ad-space {
    background: linear-gradient(135deg, #f9f9f9 0%, #e8e8e8 100%);
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-space .ad-text {
    color: #999;
    font-size: 13px;
    margin-top: 10px;
}

.ad-space .ad-icon {
    font-size: 40px;
    opacity: 0.5;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .page-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .left-ad, .right-ad {
        width: 100%;
        max-width: 300px;
        position: static;
        margin: 20px 0;
    }
    .ad-space {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 40px 30px !important;
        margin: 20px auto !important;
    }
    .article-title {
        font-size: 24px;
    }
    .article-content {
        font-size: 16px;
    }
    .article-content h2 {
        font-size: 20px;
    }
    .left-ad, .right-ad {
        max-width: 100%;
    }
    .ad-space {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .article-container {
        padding: 30px 20px !important;
    }
    .article-title {
        font-size: 22px;
    }
    .article-content {
        font-size: 15px;
    }
    .article-content p {
        text-indent: 0;
    }
}

/* ===== 文章文字居中样式 ===== */
.article-page .article-content p {
    text-align: center !important;
    text-indent: 0 !important;
}

.article-page .article-content ul,
.article-page .article-content ol {
    text-align: left;
    display: inline-block;
}

.article-page .article-content h2,
.article-page .article-content h3 {
    text-align: center !important;
}

.article-page .article-content li {
    text-align: left;
}

.article-page .intro {
    text-align: center !important;
}

.article-page .tips {
    text-align: left !important;
}

/* ===== 强制文字居中 - 最高优先级 ===== */
body.article-page .article-container .article-content p,
body.article-page .article-container .article-content .intro,
body.article-page .article-container .article-content p.intro {
    text-align: center !important;
    text-indent: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

body.article-page .article-container .article-content h2,
body.article-page .article-container .article-content h3 {
    text-align: center !important;
}

/* 参考资料样式 */
.article-page .references {
    text-align: left !important;
    margin-top: 40px !important;
    color: #999 !important;
    font-size: 13px !important;
    line-height: 2 !important;
}
