/* 响应式设计 */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 500px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .welcome-features,
    .links-grid,
    .news-grid,
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero {
        height: 400px;
        margin-top: 70px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .welcome,
    .quick-links,
    .news-preview,
    .rooms-preview {
        padding: 60px 0;
    }
    
    .welcome h2,
    .quick-links h2,
    .news-preview h2,
    .rooms-preview h2 {
        font-size: 2rem;
    }
    
    .welcome-features,
    .links-grid,
    .news-grid,
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item,
    .link-card {
        padding: 1.5rem;
    }
    
    .feature-icon,
    .link-icon {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .slider-controls {
        display: none;
    }
}

/* 小屏手机 (小于480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .welcome h2,
    .quick-links h2,
    .news-preview h2,
    .rooms-preview h2 {
        font-size: 1.8rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    .feature-item,
    .link-card {
        padding: 1rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
}

/* 超小屏手机 (小于320px) */
@media (max-width: 320px) {
    .hero {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 300px;
    }
    
    .nav-menu {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* 打印样式 */
@media print {
    .header,
    .slider-controls,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .hero {
        height: auto;
        margin-top: 0;
    }
    
    .slide-img {
        display: none;
    }
    
    .slide-content {
        position: static;
        transform: none;
        color: black;
        text-shadow: none;
    }
}