/* 响应式设计样式 */

/* 平板端样式 (768px - 1199px) */
@media (max-width: 1199px) {
    .container {
        min-width: auto;
        max-width: 960px;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .value-props {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dual-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-info {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 小平板端样式 (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-brand {
        flex: 1;
    }

    .nav-menu {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .hero-section {
        padding: 3rem 0;
    }

    .section-main-title {
        font-size: 2rem;
    }

    .pricing-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动端样式 (320px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    /* 导航栏移动端适配 */
    .navbar .container {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 10px;
    }

    .nav-brand {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .logo {
        height: 35px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .nav-menu {
        justify-content: space-around;
        gap: 1rem;
        margin-bottom: 1rem;
        border-top: none;
        padding-top: 0;
    }

    .nav-link {
        font-size: 14px;
    }

    .nav-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-actions .btn {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* 英雄区域移动端适配 */
    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .value-props {
        gap: 0.8rem;
    }

    .prop-item {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem;
    }

    .prop-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .prop-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* 内容区域移动端适配 */
    .dual-section,
    .demo-section,
    .pricing-section {
        padding: 2rem 0;
    }

    .section-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .section-main-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* 演示卡片移动端适配 */
    .demo-card {
        padding: 1.5rem;
    }

    .demo-title {
        font-size: 1.2rem;
        text-align: center;
    }

    /* 表单移动端适配 */
    .form-control {
        font-size: 16px; /* 防止iOS缩放 */
    }

    .action-buttons {
        text-align: center;
    }

    .action-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 0.5rem 0;
    }

    /* 支付区域移动端适配 */
    .payment-actions {
        flex-direction: column;
    }

    .payment-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .payment-note {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        font-size: 11px;
        white-space: normal;
    }

    /* 分配列表移动端适配 */
    .allocation-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* 订单统计移动端适配 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 价格表移动端适配 */
    .pricing-table {
        overflow-x: auto;
    }

    .pricing-row {
        min-width: 300px;
        grid-template-columns: 2fr 1fr 1fr;
        padding: 0.8rem;
    }

    .game-name {
        font-size: 14px;
    }

    .price-range,
    .commission {
        font-size: 13px;
    }

    /* 底部信息移动端适配 */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content h3 {
        font-size: 1.3rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0.8rem;
    }

    .info-label {
        min-width: auto;
        font-size: 13px;
        color: #ccc;
    }

    .info-value {
        font-size: 14px;
    }

    .legal-info p {
        font-size: 13px;
        line-height: 1.5;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        font-size: 14px;
    }

    /* 登录注册展示区移动端适配 */
    .auth-display-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 商家入驻展示区移动端适配 */
    .merchant-display-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .merchant-qr-image {
        width: 150px;
        height: 150px;
    }

    /* 通知组件移动端适配 */
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* 超小屏幕适配 (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-main-title {
        font-size: 1.6rem;
    }

    .demo-card,
    .section-card {
        padding: 1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .form-control {
        padding: 8px 10px;
    }

    .allocation-item,
    .order-item {
        padding: 0.8rem;
    }

    .stat-item {
        padding: 0.4rem;
    }

    .pricing-row {
        padding: 0.6rem;
        font-size: 13px;
    }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .value-props {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .prop-item {
        padding: 0.5rem;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .nav-actions,
    .action-buttons,
    .payment-actions {
        display: none !important;
    }

    .container {
        max-width: none !important;
        min-width: auto !important;
    }

    .hero-section {
        background: none !important;
        color: black !important;
    }

    .demo-card,
    .section-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .footer {
        background: none !important;
        color: black !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff !important;
    }

    .form-control {
        border: 2px solid #000 !important;
    }

    .demo-card,
    .section-card {
        border: 2px solid #000 !important;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn:hover {
        transform: none !important;
    }

    .card-hover:hover {
        transform: none !important;
    }
}

/* 新增元素的响应式样式 */
@media (max-width: 768px) {
    /* 顶部导航响应式 */
    .nav-menu {
        display: none; /* 在移动端可能需要隐藏或使用汉堡菜单 */
    }
    
    /* 底部导航响应式 */
    .footer-nav {
        font-size: 12px;
    }
    
    .footer-nav .separator {
        margin: 0 8px;
    }
    
    /* 接单按钮响应式 */
    .order-hall-action .btn {
        width: 100%;
        font-size: 16px;
        padding: 12px 20px;
    }
    
    /* 接单大厅响应式 */
    .order-hall-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* 底部导航换行显示 */
    .footer-nav {
        line-height: 2;
    }
    
    .footer-nav .separator {
        margin: 0 5px;
    }
} 