/* 移动菜单按钮 */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    /* 导航栏适配 */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .nav-links a {
        margin: 0.8rem 0;
        font-size: 1.1rem;
    }

    .mobile-menu {
        display: flex;
    }

    /* Logo适配 */
    .logo img {
        height: 40px;
    }

    /* 轮播图适配 */
    .slide-content {
        top:40%;
    }

    .slide-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .banner-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .slider-controls {
        bottom: 1rem;
        gap: 1rem;
    }

    .prev-slide, .next-slide {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* 页面标题适配 */
    .page-header {
        height: 40vh;
        margin-top: 60px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    /* 文化遗产页面适配 */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        height: 250px;
    }

    .category-content h2 {
        font-size: 1.5rem;
    }

    .heritage-showcase h2 {
        font-size: 1.8rem;
    }

    /* 科技创新页面适配 */
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .innovation-card {
        padding: 1.5rem;
    }

    .innovation-card i {
        font-size: 2.5rem;
    }

    /* 时间线适配 */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 8px;
        width: 20px;
        height: 20px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    /* 民间故事页面适配 */
    .story-image {
        height: 180px;
    }
    .story-image img {
        width: 100%;
    }

    .story-brief {
        padding: 1rem;
    }

    .story-brief h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .story-brief p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .book {
        width: 280px;
        height: 380px;
    }

    .book-content {
        padding: 1.5rem;
    }

    .book-title h3 {
        font-size: 1.3rem;
    }

    .category-tabs {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* 通用内容适配 */
    /* section {
        padding: 2rem 1rem;
    } */

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .story-grid,
    .showcase-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 页脚适配 */
    footer {
        padding: 1.5rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .footer-links {
        margin-top: 0.8rem;
    }

    .footer-links a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }

    /* 交互按钮适配 */
    .read-more,
    .learn-more,
    .read-story {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .share-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .site-title {
        font-size: 20px;
    }

    /* 在非常小的屏幕上可以隐藏标题 */
    @media screen and (max-width: 360px) {
        .site-title {
            display: none;
        }
    }
}
