/* ==================== Responsive Design ==================== */

/* 超大屏幕 */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* 大屏幕 (桌面) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* 中等屏幕 (平板横屏) */
@media screen and (max-width: 992px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl) var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: var(--spacing-sm);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-link {
        width: 100%;
        padding: var(--spacing-sm);
    }
    
    .lang-toggle {
        margin-top: var(--spacing-md);
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Grids */
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏幕 (平板竖屏) */
@media screen and (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Navigation */
    .navbar .container {
        padding: var(--spacing-sm) var(--spacing-sm);
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .nav-menu {
        width: 80%;
        max-width: 100%;
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .zen-circle {
        width: 80px;
        height: 80px;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .scroll-indicator {
        bottom: var(--spacing-md);
        font-size: 0.75rem;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About */
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    /* Positioning */
    .positioning-card {
        padding: var(--spacing-md);
    }
    
    .positioning-title {
        font-size: 1.5rem;
    }
    
    .positioning-text {
        font-size: 1rem;
    }
    
    /* Mission */
    .mission-card {
        padding: var(--spacing-md);
    }
    
    .mission-icon {
        font-size: 2.5rem;
    }
    
    .mission-card-title {
        font-size: 1.3rem;
    }
    
    .mission-motto {
        font-size: 1.1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ethics */
    .ethics-list {
        grid-template-columns: 1fr;
    }
    
    .ethics-list li {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-quote {
        font-size: 1.1rem;
    }
    
    .cta-motto {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-logo {
        width: 40px;
        height: 40px;
    }
}

/* 超小屏幕 (手机) */
@media screen and (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .nav-menu {
        width: 85%;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 0.02em;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .zen-circle {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-sm);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .mission-card,
    .service-card,
    .why-card,
    .positioning-card {
        padding: var(--spacing-md);
    }
    
    .mission-icon,
    .service-icon {
        font-size: 2rem;
    }
    
    .why-icon {
        font-size: 2rem;
    }
    
    /* Text sizes */
    .mission-card-title,
    .service-title,
    .positioning-title {
        font-size: 1.2rem;
    }
    
    .mission-motto {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-text,
    .cta-quote,
    .cta-motto {
        font-size: 0.95rem;
    }
    
    .cta-actions .btn-primary {
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* Footer */
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section li {
        font-size: 0.85rem;
    }
}

/* 极小屏幕 */
@media screen and (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        width: 90%;
    }
}

/* 横屏模式优化 */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }
    
    .zen-circle {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-sm);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .nav-toggle,
    .lang-toggle,
    .scroll-indicator,
    .hero-actions,
    .cta-actions {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --color-ink-dark: #000000;
        --color-ink-light: #333333;
        --color-accent: #006666;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .nav-link:hover {
        border-bottom: 2px solid currentColor;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --color-ink-dark: #eceff1;
        --color-ink-light: #b0bec5;
        --color-paper: #1a1a1a;
        --color-white: #2c2c2c;
        --color-mist: #3a3a3a;
    }
    
    body {
        background-color: var(--color-paper);
        color: var(--color-ink-dark);
    }
    
    .navbar {
        background: rgba(42, 42, 42, 0.95);
    }
    
    .hero {
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    }
    
    .about-section,
    .team-section,
    .services-section,
    .ethics-section {
        background: var(--color-white);
    }
    
    .mission-card,
    .service-card,
    .why-card,
    .positioning-card {
        background: var(--color-mist);
    }
}
