/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 80px 0 2rem;
        padding-left: 2rem;
        z-index: 1000;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        position: relative;
        border-bottom: none !important;
        background: transparent !important;
        color: var(--text-primary) !important;
    }
    
    .nav-link:hover {
        background: transparent !important;
        color: var(--text-primary) !important;
        border-bottom: none !important;
    }
    
    /* 移除下划线效果 */
    .nav-link::after {
        display: none !important;
    }
    
    .nav-link:hover::after {
        display: none !important;
    }
    
    /* 下拉菜单指示器 - 仅当有下拉菜单时显示 */
    .nav-item.dropdown .nav-link::before {
        content: '';
        margin-right: 0;
        font-size: 1.2rem;
        font-weight: normal;
        display: none;
        transition: transform 0.3s ease;
    }
    
    /* 有下拉菜单的栏目显示+号 */
    .nav-item.dropdown:has(.dropdown-menu) .nav-link::before {
        content: '+';
        margin-right: 0.5rem;
        display: inline-block;
    }
    
    /* 下拉菜单展开时的指示器 */
    .nav-item.dropdown:has(.dropdown-menu) .nav-link.dropdown-active::before {
        content: '-';
        transform: rotate(0deg);
    }
    
    /* 移除下拉菜单项的下边框 */
    .dropdown-menu a {
        border-bottom: none;
    }
    
    /* 移动端下拉菜单样式 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-50);
        min-width: auto;
        /* margin: 0.5rem 2rem; */
        border-radius: var(--radius-md);
        display: none;
        /* padding: 0.5rem 0; */
        padding-left: 1.5rem;
        text-align: left !important;
    }
    
    .dropdown-menu.active {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        color: var(--text-primary);
    }
    
    .dropdown-menu a:hover {
        background: var(--primary-light);
        color: #ffffff;
    }
    
    .nav-item.dropdown:hover .dropdown-menu {
        transform: none;
    }
    
    .nav-link {
        color: var(--text-primary) !important;
    }
    
    .nav-link:hover {
        color: var(--primary-color) !important;
    }
    
    .nav-link::after {
        background: var(--primary-color) !important;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* 汉堡图标基础样式 */
    .hamburger .bar {
        background: white;
        z-index: 1001;
    }
    
    /* 激活状态下的汉堡图标颜色 */
    .hamburger.active .bar {
        background: #333 !important;
    }
    
    /* 滚动后汉堡图标颜色 */
    .navbar.scrolled .hamburger .bar {
        background: #333;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 20px;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .spots-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        padding: 0 15px;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .scenic-spots, .news-section {
        padding: 60px 0;
    }
}

/* 平板设备优化 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .spots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏设备优化 */
@media screen and (min-width: 1025px) {
    .spots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 高分辨率屏幕优化 */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* 横屏手机优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* 手机端产业布局板块样式调整 - 与PC端保持一致 */
@media screen and (max-width: 768px) {
    /* 取消所有a标签按下时的淡蓝色背景 */
    a, button {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
        outline: none;
    }
    
    .service-overlay {
        background: rgba(0,0,0,0.7) !important;
        color: var(--text-primary) !important;
    }
    .service-overlay h3 {
        color: #fff !important;
    }
    .service-overlay p {
        color: #d0d0d0 !important;
        height: 1.5em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 移动端滚动回顶部按钮样式 */
@media screen and (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .scroll-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 打印样式 */
@media print {
    .navbar, .footer, .cta-button, .scroll-to-top-btn {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}