/* ===================================
   响应式设计 - Responsive Stylesheet
   =================================== */

/* ===================================
   Large Desktop (1200px+)
   =================================== */
/* 默认样式已经在 style.css 中定义，适用于大屏幕 */

/* ===================================
   Desktop / Small Laptop (992px - 1199px)
   =================================== */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* ===================================
   Tablet Landscape (768px - 991px)
   =================================== */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md);
        z-index: 999;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Curriculum */
    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Campus Gallery */
    .campus-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item.large {
        grid-row: auto;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Video Container */
    .video-container {
        max-width: 100%;
    }

    .video-container video {
        max-width: 100%;
        height: auto;
    }

    /* Page Header */
    .page-header {
        height: 40vh;
        min-height: 300px;
    }

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

    /* Intro Grid */
    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .intro-content {
        padding-right: 0;
    }

    .intro-image img {
        height: 300px;
    }

    /* About Intro Grid */
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Campus Overview Stats */
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Facility Showcase */
    .facility-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .facility-showcase:nth-child(odd) {
        direction: ltr;
    }

    .facility-image img {
        height: 280px;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 220px;
    }

    /* Forms Grid */
    .forms-grid {
        grid-template-columns: 1fr;
    }

    /* Brand Quote */
    .brand-quote-content blockquote p {
        font-size: 1.5rem;
    }

    /* Curriculum Preview Grid */
    .curriculum-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Faculty Preview Grid */
    .faculty-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero Stats */
    .hero-stats {
        gap: var(--spacing-md);
    }

    .hero-stat-number {
        font-size: 2rem;
    }
}

/* ===================================
   Tablet Portrait (576px - 767px)
   =================================== */
@media (max-width: 767.98px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Hero */
    .hero-section {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Curriculum */
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    
    /* Campus Gallery */
    .campus-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Video Container */
    .video-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .video-container video {
        width: 100%;
        height: auto;
        max-height: 70vh;
        border-radius: var(--border-radius-md);
    }

    /* Page Header */
    .page-header {
        height: 35vh;
        min-height: 250px;
    }

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

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

    /* Overview Stats */
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-highlight .number {
        font-size: 2rem;
    }

    /* Facility Image */
    .facility-image img {
        height: 220px;
    }

    .facility-text h2 {
        font-size: 1.6rem;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }

    /* Safety Grid */
    .safety-grid {
        grid-template-columns: 1fr;
    }

    /* Virtual Tour */
    .virtual-tour h2 {
        font-size: 2rem;
    }

    /* Curriculum Preview Grid */
    .curriculum-preview-grid {
        grid-template-columns: 1fr;
    }

    /* Faculty Preview Grid */
    .faculty-preview-grid {
        grid-template-columns: 1fr;
    }

    /* Brand Quote */
    .brand-quote-content blockquote p {
        font-size: 1.3rem;
    }

    .brand-quote-content blockquote .quote-en {
        font-size: 1rem;
    }

    /* Hero Stats */
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    /* About Intro */
    .about-intro-image img {
        height: auto;
        max-height: 300px;
    }

    /* Class Grid */
    .class-grid {
        grid-template-columns: 1fr;
    }

    /* Courses Grid */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* Achievements Grid */
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Campus Gallery Grid */
    .campus-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .campus-gallery-grid .gallery-item.large {
        grid-row: span 1;
    }
}

/* ===================================
   Mobile (575px and below)
   =================================== */
@media (max-width: 575.98px) {
    /* Header */
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.65rem;
    }

    .logo-img {
        width: 120px;
        height: 40px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .btn-apply {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Hero */
    .hero-section {
        min-height: 100vh;
        margin-top: 70px;
    }
    
    .hero-content {
        padding: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-item {
        padding: var(--spacing-sm);
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }

    /* Video Container */
    .video-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .video-container video {
        width: 100%;
        height: auto;
        max-height: 60vh;
        border-radius: var(--border-radius-sm);
    }
    
    /* Page Header */
    .page-header {
        height: 30vh;
        min-height: 200px;
        margin-top: 70px;
    }

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

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

    .breadcrumb {
        font-size: 0.8rem;
    }

    /* Overview Stats */
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-highlight {
        padding: var(--spacing-sm);
    }

    .stat-highlight .number {
        font-size: 1.5rem;
    }

    .stat-highlight p {
        font-size: 0.8rem;
    }

    /* Facility Showcase */
    .facility-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .facility-image img {
        height: 180px;
    }

    .facility-text h2 {
        font-size: 1.4rem;
    }

    .facility-text p {
        font-size: 0.95rem;
    }

    /* Gallery */
    .gallery-item {
        height: 160px;
    }

    /* Section Titles */
    .section-header h2,
    .section-title {
        font-size: 1.5rem;
    }

    .overview-text h2 {
        font-size: 1.5rem;
    }

    .overview-text p {
        font-size: 1rem;
    }

    /* Virtual Tour */
    .virtual-tour h2 {
        font-size: 1.5rem;
    }

    .virtual-tour p {
        font-size: 1rem;
    }

    /* Brand Quote */
    .brand-quote-content blockquote p {
        font-size: 1.1rem;
    }

    .brand-quote-content > i.fa-quote-left {
        font-size: 2rem;
    }

    /* Hero Stats */
    .hero-stats {
        gap: var(--spacing-sm);
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-about h3 {
        font-size: 1.2rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.5rem;
    }

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

    /* Achievements */
    .achievements-grid {
        grid-template-columns: 1fr 1fr;
    }

    .achievement-item .number {
        font-size: 2rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
    }

    /* Campus Gallery Grid */
    .campus-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
        gap: var(--spacing-sm);
    }

    /* Admissions Form */
    .form-container h2 {
        font-size: 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

/* ===================================
   Faculty Wall Responsive Styles
   =================================== */
/* Tablet */
@media (max-width: 991.98px) {
    .puzzle-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 120px;
    }
}

/* Mobile Landscape */
@media (max-width: 767.98px) {
    .puzzle-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 100px;
        gap: 8px;
    }
}

/* Mobile Portrait */
@media (max-width: 575.98px) {
    .puzzle-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 80px;
        gap: 6px;
    }
    
    .wall-header h2 {
        font-size: 2rem;
    }
    
    .wall-header p {
        font-size: 1rem;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .hero-section,
    .cta-section,
    .footer,
    .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: var(--primary-color);
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: var(--text-light);
    }
}
