/* 响应式设计 */

/* 超大屏幕 (>= 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 大屏幕 (>= 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 中等屏幕 (>= 992px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板 (>= 768px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .nav-menu {
        gap: var(--spacing-lg);
    }
}

/* 手机 (>= 576px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .mic-button {
        width: 100px;
        height: 100px;
    }

    .mic-button i {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group input {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* 导航栏移动端样式 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: var(--spacing-2xl) var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        margin-top: var(--spacing-lg);
    }

    .mobile-menu-btn {
        display: block;
    }

    .language-switcher {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
}

/* 小手机 (< 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }

    .mic-button {
        width: 90px;
        height: 90px;
    }

    .mic-button i {
        font-size: 1.75rem;
    }

    .mic-button span {
        font-size: 0.75rem;
    }

    .voice-examples {
        padding: var(--spacing-md);
    }

    .example-text {
        font-size: 0.875rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group input {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 1.75rem;
    }

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

    .features-section {
        padding: var(--spacing-2xl) 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .feature-title {
        font-size: 1.125rem;
    }

    .cta-section {
        padding: var(--spacing-2xl) 0;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* 导航栏移动端样式 */
    .nav-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: var(--spacing-2xl) var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--gray-200);
        font-size: 1.125rem;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        margin-top: var(--spacing-lg);
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.25rem;
    }

    .language-switcher {
        top: var(--spacing-xs);
        right: var(--spacing-xs);
        padding: 0.25rem;
    }

    .lang-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* 超小手机 (< 375px) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .mic-button {
        width: 80px;
        height: 80px;
    }

    .mic-button i {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.875rem;
    }
}

/* 横屏模式 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-lg);
    }

    .mic-button {
        width: 80px;
        height: 80px;
    }

    .voice-examples {
        padding: var(--spacing-sm);
    }

    .example-text {
        font-size: 0.75rem;
        margin-bottom: var(--spacing-xs);
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #111827;
        --gray-100: #1f2937;
        --gray-200: #374151;
        --gray-300: #4b5563;
        --gray-400: #6b7280;
        --gray-500: #9ca3af;
        --gray-600: #d1d5db;
        --gray-700: #e5e7eb;
        --gray-800: #f3f4f6;
        --gray-900: #f9fafb;
    }

    body {
        background-color: #111827;
        color: var(--gray-800);
    }

    .navbar {
        background: var(--gray-100);
    }

    .logo {
        color: var(--gray-900);
    }

    .nav-link {
        color: var(--gray-600);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
    }

    .features-section {
        background: var(--gray-100);
    }

    .feature-card {
        background: var(--gray-200);
    }

    .feature-card:hover {
        background: var(--gray-300);
    }

    .feature-title {
        color: var(--gray-900);
    }

    .feature-desc {
        color: var(--gray-600);
    }

    .footer {
        background: #030712;
    }

    .language-switcher {
        background: var(--gray-200);
    }

    .lang-btn {
        color: var(--gray-600);
    }

    .lang-btn:hover {
        background: var(--gray-300);
        color: var(--gray-900);
    }

    .input-group input {
        background: rgba(255, 255, 255, 0.05);
        color: white;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .input-group input:focus {
        border-color: white;
        background: rgba(255, 255, 255, 0.1);
    }
}