/* ==========================================================================
   小岛凪直播 - 响应式样式表
   断点：桌面优先 / 平板 1024 / 平板 768 / 移动 480
   ========================================================================== */

/* ==================== 大桌面 (<= 1440px) ==================== */
@media (max-width: 1440px) {
    :root {
        --container-max: 1200px;
    }

    .hero-title {
        font-size: 64px;
    }

    .section-title {
        font-size: 38px;
    }
}

/* ==================== 中桌面 (<= 1280px) ==================== */
@media (max-width: 1280px) {
    :root {
        --container-max: 1100px;
        --section-padding: 80px 0;
    }

    .hero-title {
        font-size: 56px;
    }

    .section-title {
        font-size: 34px;
    }

    .hero-stats {
        gap: 28px;
        padding: 20px 28px;
    }

    .hero-stat-num {
        font-size: 34px;
    }

    .stat-value {
        font-size: 40px;
    }

    .price-amount {
        font-size: 48px;
    }
}

/* ==================== 平板横屏 (<= 1024px) ==================== */
@media (max-width: 1024px) {
    :root {
        --container-max: 900px;
        --section-padding: 70px 0;
    }

    /* 导航栏 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }

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

    .nav-link {
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
        text-align: center;
    }

    .nav-cta {
        margin-top: 12px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    /* 英雄区 */
    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .title-line {
        margin: 0 4px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
        padding: 18px 22px;
    }

    .hero-stat-num {
        font-size: 28px;
    }

    .hero-stat-plus {
        font-size: 20px;
    }

    .hero-stat-label {
        font-size: 11px;
    }

    /* 数据展示区 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 28px 20px;
    }

    .stat-value {
        font-size: 36px;
    }

    /* 核心服务区 */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .service-card {
        padding: 32px 28px;
    }

    /* 价格套餐区 */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-card-popular {
        transform: none;
    }

    .pricing-card-popular:hover {
        transform: translateY(-8px);
    }

    /* 案例展示区 */
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 视频教程区 */
    .tutorial-wrapper {
        grid-template-columns: 1fr;
    }

    .tutorial-list {
        max-height: 400px;
        overflow-y: auto;
    }

    /* 关于我们区 */
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-values {
        gap: 12px;
    }

    .value-item {
        padding: 18px 12px;
    }

    /* 联系咨询区 */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* 页脚 */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* 区块标题 */
    .section-title {
        font-size: 30px;
    }

    .section-header {
        margin-bottom: 48px;
    }
}

/* ==================== 平板竖屏 / 大手机 (<= 768px) ==================== */
@media (max-width: 768px) {
    :root {
        --container-max: 100%;
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* 英雄区 */
    .hero {
        min-height: 90vh;
        padding: 90px 0 40px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 0;
    }

    .title-line {
        display: block;
        margin: 4px 0;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-desc br {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 40px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
        width: 100%;
    }

    .hero-stat-divider {
        width: 60%;
        height: 1px;
    }

    .hero-stat-num {
        font-size: 32px;
    }

    /* 数据展示区 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 24px 20px;
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        flex-shrink: 0;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 32px;
        justify-content: flex-start;
    }

    .stat-unit {
        font-size: 18px;
    }

    /* 核心服务区 */
    .service-card {
        padding: 28px 24px;
    }

    .service-number {
        font-size: 48px;
        top: 16px;
        right: 20px;
    }

    .service-title {
        font-size: 20px;
    }

    /* 价格套餐区 */
    .pricing-card {
        padding: 32px 24px;
    }

    .price-amount {
        font-size: 42px;
    }

    /* 案例展示区 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .case-item {
        aspect-ratio: 16 / 10;
    }

    .case-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 26, 0.95) 100%);
    }

    /* 视频教程区 */
    .tutorial-cover {
        padding: 20px;
    }

    .play-button {
        width: 64px;
        height: 64px;
    }

    .play-button svg {
        width: 26px;
        height: 26px;
    }

    .cover-info {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .cover-title {
        font-size: 18px;
    }

    /* 关于我们区 */
    .about-headline {
        font-size: 22px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-timeline {
        padding: 28px 24px;
    }

    /* 联系咨询区 */
    .contact-form-wrapper {
        padding: 28px 24px;
    }

    .contact-info-card {
        padding: 28px 24px;
    }

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

    /* 页脚 */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-top {
        gap: 28px;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* 区块标题 */
    .section-title {
        font-size: 26px;
    }

    .section-tag {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .section-desc {
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    /* Lightbox */
    .lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

/* ==================== 小手机 (<= 480px) ==================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* 英雄区 */
    .hero-title {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .hero-stat-num {
        font-size: 26px;
    }

    .hero-stat-plus {
        font-size: 16px;
    }

    /* 区块标题 */
    .section-title {
        font-size: 22px;
    }

    .section-tag {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* 价格 */
    .price-amount {
        font-size: 36px;
    }

    .price-currency {
        font-size: 18px;
    }

    /* 服务卡片 */
    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    /* 按钮 */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Logo */
    .logo-text {
        font-size: 15px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    /* 表单 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* Toast */
    .toast {
        bottom: 24px;
        padding: 14px 20px;
        font-size: 13px;
        width: calc(100% - 32px);
    }
}

/* ==================== 触摸设备优化 ==================== */
@media (hover: none) and (pointer: coarse) {
    /* 取消所有悬停效果 */
    .stat-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .case-item:hover,
    .value-item:hover,
    .tutorial-item:hover {
        transform: none;
    }

    .case-item:hover img {
        transform: none;
    }

    .case-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 26, 0.9) 100%);
    }

    /* 增大点击区域 */
    .nav-link,
    .btn,
    .service-link,
    .tutorial-item {
        min-height: 44px;
    }
}

/* ==================== 高分辨率屏幕优化 ==================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .bg-grid {
        background-size: 25px 25px;
    }
}

/* ==================== 打印优化 ==================== */
@media print {
    .navbar,
    .scroll-indicator,
    #particleCanvas,
    .bg-grid,
    .bg-glow,
    .lightbox,
    .toast {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    section {
        padding: 20px 0;
    }
}
