/* 移动端适配 */
@media (max-width: 768px) {
    /* 导航栏适配 */
    .main-nav {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1000;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--secondary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero区域适配 */
    .hero-content h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    /* 内容区域适配 */
    .preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .preview-text h3 {
        font-size: 1.8rem;
    }

    /* 卡片网格适配 */
    .news-grid,
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    /* 图片适配 */
    .image-wrapper {
        margin: 0 1rem;
    }

    /* 页脚适配 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .preview-text h3 {
        font-size: 1.5rem;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .preview-content {
        gap: 2rem;
    }

    .news-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 横屏手机适配 */
@media (max-height: 480px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .scroll-indicator {
        display: none;
    }
} 