﻿/* 安全智汇 - 全局样式（优化版） */

/* 重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    line-height: 1.8;
    color: #2c3e50;
    background: #f5f7fa;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a73e8;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: #5a6c7d;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: #1a73e8;
}

.btn-login {
    padding: 10px 24px;
    border: 2px solid #1a73e8;
    border-radius: 24px;
    color: #1a73e8 !important;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #1a73e8;
    color: white !important;
}

.btn-register {
    padding: 10px 24px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d9488 100%);
    color: white !important;
    border-radius: 24px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.35);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d9488 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    margin-top: 12px;
    opacity: 0.85 !important;
}

.hero-buttons {
    margin-top: 36px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    padding: 14px 36px;
    background: white;
    color: #1a73e8;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    padding: 14px 36px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: #1a73e8;
}

/* 分类区域 */
.categories {
    padding: 70px 0;
}

.section-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 16px;
    color: #1a1a2e;
    font-weight: 700;
}

.section-desc {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.category-card {
    background: white;
    padding: 40px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #eef2f7;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.category-card h3 {
    color: #1a1a2e;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.category-card p {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.7;
}

/* 自救知识区域 */
.emergency-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #f5f7fa 100%);
}

/* 案例警示区域 */
.cases-section {
    padding: 60px 0;
    background: #f8fafc;
}

.cases-section .section-title {
    color: #1a73e8;
}

.cases-section .section-desc {
    color: #64748b;
    margin-bottom: 8px;
}

.cases-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border-radius: 14px;
    border: 1.5px solid #e0e7ff;
    margin-bottom: 20px;
}

.case-count-badge {
    font-size: 14px;
    color: #4f46e5;
    font-weight: 600;
}

.case-search-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.case-search-bar input[type="text"] {
    padding: 8px 16px;
    border: 2px solid #c7d2fe;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    width: 240px;
    transition: border-color 0.3s;
}

.case-search-bar input[type="text"]:focus {
    border-color: #667eea;
}

.type-filter-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: #e2e8f0;
    color: #4a5568;
    transition: all 0.25s;
}

.type-filter-btn:hover {
    background: #cbd5e1;
}

.type-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.case-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1.5px solid #f1f5f9;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.case-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.case-item-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.case-item:hover .case-item-header {
    background: #f8fafc;
}

.case-num {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 28px;
}

.case-type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-fire { background: #f97316; }
.dot-water { background: #3b82f6; }
.dot-elec { background: #eab308; }
.dot-car  { background: #6366f1; }
.dot-fall { background: #8b5cf6; }
.dot-bomb { background: #ef4444; }
.dot-coal { background: #1a73e8; }
.dot-other{ background: #94a3b8; }

/* Case tags - injury & industry */
.case-tags {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
.case-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.7;
    letter-spacing: 0.3px;
}
.injury-tag {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
    border-left: 3px solid #ef4444;
}
.industry-tag {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-left: 3px solid #3b82f6;
}

.case-item-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.case-item-date {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

.case-expand-icon {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.case-item.open .case-expand-icon {
    transform: rotate(180deg);
}

.case-item-detail {
    display: none;
    padding: 0 20px 20px 72px;
    border-top: 1px solid #f1f5f9;
}

.case-item.open .case-item-detail {
    display: block;
}

.case-detail-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin: 16px 0;
}

.case-detail-lesson {
    font-size: 13.5px;
    color: #64748b;
    background: #f8fafc;
    border-left: 3px solid #667eea;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
}

.case-detail-lesson strong {
    color: #4f46e5;
}

.case-detail-source {
    margin-top: 12px;
    font-size: 12.5px;
    color: #94a3b8;
}

.case-detail-source a {
    color: #667eea;
}

.case-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 15px;
}

.case-show-more-btn {
    text-align: center;
    margin-top: 20px;
}

.case-show-more-btn button {
    padding: 11px 36px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.case-show-more-btn button:hover {
    background: #667eea;
    color: white;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.emergency-card {
    background: white;
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-top: 4px solid;
}

.emergency-card.fire { border-color: #ef4444; }
.emergency-card.earthquake { border-color: #8b5cf6; }
.emergency-card.drowning { border-color: #0ea5e9; }
.emergency-card.electric { border-color: #f59e0b; }

.emergency-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.emergency-icon {
    font-size: 3rem;
    margin-bottom: 18px;
}

.emergency-card h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

.emergency-card p {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.7;
}

/* 特色区域 */
.features {
    padding: 70px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature-card {
    background: white;
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    color: #1a1a2e;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 600;
}

.feature-card p {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.7;
}

/* 热门文章 */
.hot-articles {
    padding: 70px 0;
    background: #f5f7fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.article-card {
    background: white;
    padding: 28px;
    border-radius: 20px;
    display: flex;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #eef2f7;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.article-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.article-info h4 {
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 1.1rem;
    font-weight: 600;
}

.article-info p {
    color: #5a6c7d;
    font-size: 1rem;
    margin-bottom: 14px;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
    color: #8896a6;
}

.article-category {
    background: #e8f4fd;
    color: #1a73e8;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.more-link {
    text-align: center;
    margin-top: 48px;
}

.btn-more {
    padding: 14px 36px;
    background: white;
    border: 2px solid #1a73e8;
    color: #1a73e8;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-more:hover {
    background: #1a73e8;
    color: white;
}

/* CTA区域 */
.cta-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d9488 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.9rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-section p {
    opacity: 0.95;
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 24px 32px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p, .footer-section a {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 2.2;
    display: block;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #2d3748;
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
}

/* 知识中心页面样式 */
.knowledge-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d9488 100%);
    padding: 60px 24px;
    text-align: center;
    color: white;
}

.knowledge-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.knowledge-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-section {
    max-width: 700px;
    margin: -30px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 32px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 18px 28px;
    border: none;
    font-size: 1.05rem;
    outline: none;
}

.search-box button {
    padding: 18px 32px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d9488 100%);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    opacity: 0.9;
}

.filter-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 0 24px;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e8f4fd;
    border-radius: 28px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    color: #5a6c7d;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, #1a73e8 0%, #0d9488 100%);
    color: white;
    border-color: transparent;
}

/* 文章卡片优化 */
.article-card-vertical {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #eef2f7;
}

.article-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.article-card-header {
    padding: 28px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    display: flex;
    align-items: center;
    gap: 18px;
}

.article-card-icon {
    font-size: 2.8rem;
}

.article-card-title {
    font-size: 1.15rem;
    color: #1a1a2e;
    line-height: 1.5;
    font-weight: 600;
}

.article-card-body {
    padding: 24px 28px;
}

.article-card-desc {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    color: #8896a6;
    font-size: 0.95rem;
}

.article-card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.article-card-tag {
    padding: 5px 14px;
    background: #f0f7ff;
    color: #1a73e8;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== 移动端友好适配 ========== */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    body {
        font-size: 16px;
        line-height: 1.7;
    }

    .container {
        padding: 0 16px;
    }

    /* 导航栏 - 移动端优化 */
    .nav-container {
        padding: 10px 12px;
        flex-wrap: nowrap;
        gap: 8px;
        overflow: hidden;
    }

    .logo {
        font-size: 1.1rem;
        gap: 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 4px;
        font-size: 0.8rem;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex: 1;
        min-width: 0;
        padding-left: 4px;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 12px;
        padding: 4px 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .btn-login, .btn-register {
        padding: 5px 10px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .btn-nav-share {
        padding: 5px 10px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 20px;
        cursor: pointer;
    }

    /* 首页横幅 */
    .hero {
        padding: 60px 16px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* 案例区域 */
    .cases-section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-desc {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    /* 搜索和筛选 */
    .case-search-bar input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .case-filter-bar {
        flex-direction: column;
        gap: 10px;
    }

    .filter-select {
        width: 100%;
        padding: 12px 14px;
        font-size: 16px;
    }

    .filter-tip {
        font-size: 12px;
    }

    /* 案例卡片 */
    .case-item {
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .case-item-header {
        padding: 14px 16px;
    }

    .case-item-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .case-item-detail {
        padding: 16px;
    }

    .case-section-title {
        font-size: 1rem;
    }

    .case-section-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .case-desc {
        font-size: 0.95rem;
    }

    .case-ol li {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .case-casualty-bar {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .case-tag {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .case-share-bar {
        padding-top: 16px;
    }

    .btn-share {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    /* 更多案例折叠 */
    #moreCasesToggle {
        padding: 12px 16px;
    }

    /* 知识分类 */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .category-card p {
        font-size: 0.85rem;
    }

    /* 自救知识 */
    .self-help-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .self-help-card {
        padding: 20px;
    }

    /* 文章网格 */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-card {
        padding: 20px;
    }

    .article-card h3 {
        font-size: 1.05rem;
    }

    .article-card p {
        font-size: 0.9rem;
    }

    /* CTA区域 */
    .cta-section {
        padding: 40px 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 280px;
    }

    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section a {
        font-size: 0.95rem;
        padding: 6px 0;
    }

    /* 搜索框 */
    .search-box {
        flex-direction: column;
    }

    .search-box input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .search-box button {
        padding: 14px;
        font-size: 1rem;
    }

    /* 广告位 */
    .ad-container {
        padding: 0 12px;
    }

    .ad-placeholder {
        max-width: 100%;
        min-height: 60px;
        padding: 12px;
    }

    /* 平台特色 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 20px 12px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* 统计数字 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* 热门文章 */
    .hot-articles-list {
        grid-template-columns: 1fr;
    }

    .hot-article-item {
        padding: 14px;
    }

    /* 分享按钮 */
    .btn-nav-share {
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        font-size: 11px;
        padding: 3px 4px;
    }

    .btn-nav-share, .btn-login, .btn-register {
        padding: 4px 8px;
        font-size: 11px;
    }

    .logo {
        font-size: 0.95rem;
    }

    .logo-icon {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .case-item-header {
        flex-direction: column;
        gap: 8px;
    }

    .case-header-right {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ========== 广告位样式 ========== */

/* 顶部横幅广告 */
.ad-banner-top {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 12px 0;
    position: relative;
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-placeholder {
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    min-height: 90px;
    width: 100%;
    max-width: 728px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.ad-content {
    text-align: center;
    width: 100%;
}

.ad-demo p {
    margin: 5px 0;
    color: #495057;
}

.ad-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e9ecef;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ad-close:hover {
    background: #dc3545;
    color: white;
}

/* 响应式广告 */
@media (max-width: 768px) {
    .ad-placeholder {
        max-width: 100%;
        min-height: 60px;
        padding: 15px;
    }
    
    .ad-demo p:first-child {
        font-size: 14px;
    }
    
    .ad-close {
        right: 5px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* 广告动画效果 */
@keyframes adPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.ad-placeholder {
    animation: adPulse 3s ease-in-out infinite;
}