/* 
 * 困困兔 - 响应式设计
 * 移动端优先设计
 */

/* ========== 平板端 (768px - 1024px) ========== */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 2.5rem;
    }

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

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

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

    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

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

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

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

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

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

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

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

/* ========== 移动端 (320px - 767px) ========== */
@media (max-width: 767px) {
    /* 导航栏 */
    .navbar-container {
        flex-wrap: wrap;
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary-dark);
        border-bottom: 2px solid var(--primary-red);
        gap: 0;
        width: 100%;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .search-container {
        order: 2;
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Hero 区域 */
    .hero-section {
        height: 400px;
    }

    .hero-content {
        padding: 1.5rem;
        justify-content: flex-end;
    }

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

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

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }

    /* 主内容 */
    .main-content {
        padding: 0 1rem;
    }

    .section-divider {
        margin: 2rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .title-icon {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* 视频网格 */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-card {
        border-radius: 6px;
    }

    .video-title {
        font-size: 1rem;
    }

    .video-description {
        font-size: 0.85rem;
    }

    .video-stats {
        gap: 0.5rem;
    }

    .stat {
        font-size: 0.8rem;
    }

    /* AI功能 */
    .ai-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ai-feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

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

    .feature-description {
        font-size: 0.9rem;
    }

    /* 社区卡片 */
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .community-card {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    /* 专家卡片 */
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expert-card {
        padding: 1.5rem;
    }

    .expert-avatar {
        width: 100px;
        height: 100px;
    }

    .expert-actions {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
    }

    /* 合作品牌 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .partner-logo {
        height: 100px;
    }

    /* 步骤指南 */
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    /* FAQ */
    .faq-container {
        margin: 1rem auto;
    }

    .faq-item {
        margin-bottom: 0.8rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-text {
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* 评论 */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-text {
        font-size: 0.9rem;
        min-height: auto;
    }

    /* 联系我们 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .qr-codes {
        flex-direction: column;
        gap: 1rem;
    }

    /* 底部 */
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        padding-top: 1rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .update-time {
        font-size: 0.75rem;
    }
}

/* ========== 超小屏幕 (320px - 480px) ========== */
@media (max-width: 480px) {
    .navbar-logo {
        flex: 1;
        gap: 0.5rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .search-container {
        font-size: 0.85rem;
    }

    .search-input {
        font-size: 0.8rem;
    }

    .search-input::placeholder {
        font-size: 0.75rem;
    }

    .hero-section {
        height: 300px;
    }

    .hero-content {
        padding: 1rem;
    }

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

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

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

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

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

    .video-title {
        font-size: 0.95rem;
    }

    .video-description {
        font-size: 0.8rem;
    }

    .stat {
        font-size: 0.75rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .feature-icon {
        font-size: 1.8rem;
    }

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

    .feature-description {
        font-size: 0.85rem;
    }

    .card-icon {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .expert-name {
        font-size: 1.1rem;
    }

    .expert-title {
        font-size: 0.85rem;
    }

    .expert-bio {
        font-size: 0.8rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.85rem;
    }

    .faq-text {
        font-size: 0.9rem;
    }

    .faq-answer p {
        font-size: 0.85rem;
    }

    .review-text {
        font-size: 0.85rem;
    }

    .author-name {
        font-size: 0.9rem;
    }

    .author-role {
        font-size: 0.75rem;
    }

    .contact-title {
        font-size: 1.1rem;
    }

    .contact-label {
        font-size: 0.85rem;
    }

    .contact-value {
        font-size: 0.9rem;
    }

    .qr-placeholder {
        width: 100px;
        height: 100px;
    }

    .footer-title {
        font-size: 0.95rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}

/* ========== 横屏模式 ========== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: 300px;
    }

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

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

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

/* ========== 打印样式 ========== */
@media print {
    .header-wrapper,
    .hero-section,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section-divider {
        border-top: 2px solid black;
    }

    .video-card,
    .community-card,
    .expert-card {
        border: 1px solid black;
        page-break-inside: avoid;
    }
}

/* ========== 无障碍设计 ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-dark: #0F1419;
        --primary-red: #E63946;
        --primary-silver: #A8DADC;
        --text-white: #FFFFFF;
        --text-light: #E8E8E8;
        --border-color: #2A3038;
    }
}
