/* ============================================
   响应式设计
   断点：1200px, 992px, 768px, 576px
============================================ */

/* 大屏幕 (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 中等屏幕 (992px-1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-list {
        gap: 20px;
    }
}

/* 平板设备 (768px-991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* 英雄区域 */
    .hero-section .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* 导航 */
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin: 0;
        display: none;
        z-index: 999;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 15px;
        border-bottom: 1px solid #eee;
        display: block;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* 搜索框 */
    .search-box {
        display: none;
    }
    
    /* 钱包网格 */
    .wallets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 类型网格 */
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    /* 页脚 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机设备 (576px-767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    /* 文字大小调整 */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-description,
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* 统计信息 */
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* 按钮组 */
    .hero-actions,
    .cta-buttons,
    .wallet-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-actions .btn,
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* 钱包网格 */
    .wallets-grid {
        grid-template-columns: 1fr;
    }
    
    .wallet-card {
        padding: 20px;
    }
    
    /* 安全网格 */
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    /* 页脚 */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 返回顶部按钮 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 小手机设备 (575px以下) */
@media (max-width: 575px) {
    /* 更小的文字 */
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Logo调整 */
    .logo-text strong {
        font-size: 1.2rem;
    }
    
    .logo-text small {
        font-size: 0.75rem;
    }
    
    /* 钱包头部 */
    .wallet-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wallet-logo {
        margin: 0 auto;
    }
    
    .wallet-features {
        justify-content: center;
    }
    
    /* 面包屑导航 */
    .breadcrumb ol {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    /* 常见问题 */
    .faq-question {
        padding: 15px;
        padding-right: 40px;
    }
    
    .faq-question::after {
        right: 15px;
    }
    
    .faq-answer {
        padding: 15px;
    }
}

/* 打印样式 */
@media print {
    .top-notice,
    .header,
    .breadcrumb,
    .hero-image,
    .back-to-top,
    .footer,
    .wallet-actions .btn-primary,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .wallet-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
}