/* Tokenim钱包 - 响应式样式补充 */

/* 超大屏幕 */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* 平板横屏优化 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding-top: 120px;
        padding-bottom: var(--space-3xl);
    }
    
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-3xl);
    }
    
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 中等屏幕优化 */
@media (min-width: 1025px) and (max-width: 1366px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板竖屏优化 */
@media (max-width: 768px) and (orientation: portrait) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 小手机优化 */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-badge {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .download-platform {
        padding: var(--space-xl);
    }
}

/* 超小手机优化 */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .news-card {
        padding: var(--space-xl);
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-badge,
    .trust-badge,
    .feature-card,
    .news-card,
    .download-platform {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #F8FAFC;
        --dark-light: #E2E8F0;
        --light: #0F172A;
        --gray-100: #1E293B;
        --gray-200: #334155;
        --gray-300: #475569;
        --gray-400: #64748B;
        --gray-500: #94A3B8;
        --gray-600: #CBD5E1;
        --gray-700: #E2E8F0;
        --gray-800: #F1F5F9;
        --gray-900: #F8FAFC;
    }
    
    body {
        color: var(--gray-700);
    }
    
    .header {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: rgba(30, 41, 59, 0.2);
    }
    
    .header.scrolled {
        background: rgba(15, 23, 42, 0.98);
    }
    
    .logo-brand {
        color: white;
    }
    
    .logo-tagline {
        color: var(--gray-500);
    }
    
    .nav-link {
        color: var(--gray-600);
    }
    
    .mobile-toggle span {
        background: white;
    }
    
    .nav-menu {
        background: var(--gray-100);
    }
    
    .hero::before {
        background: radial-gradient(circle at center, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    }
    
    .hero-title,
    .section-title {
        background: linear-gradient(135deg, white 0%, var(--primary-light) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-subtitle,
    .section-subtitle,
    .feature-desc,
    .news-excerpt {
        color: var(--gray-600);
    }
    
    .feature-card,
    .news-card {
        background: var(--gray-100);
        border-color: var(--gray-200);
    }
    
    .feature-card:hover {
        border-color: var(--primary);
    }
    
    .partners {
        background: var(--gray-200);
    }
    
    .news {
        background: var(--gray-200);
    }
    
    .news-title a {
        color: white;
    }
    
    .trust-badge {
        background: var(--gray-200);
    }
    
    .trust-badge-title {
        color: white;
    }
    
    .trust-badge-desc {
        color: var(--gray-500);
    }
    
    .download {
        background: linear-gradient(135deg, #020617 0%, #0F172A 100%);
    }
    
    .footer {
        background: #020617;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .wallet-preview {
        animation: none;
    }
    
    .trust-badge {
        animation: none;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary: #0044CC;
        --secondary: #5D3FD3;
        --dark: #000000;
        --light: #FFFFFF;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* 悬停支持检测 */
@media (hover: hover) and (pointer: fine) {
    .btn:hover .btn-icon {
        transform: translateX(2px);
    }
    
    .download-platform:hover .platform-icon {
        transform: scale(1.1);
    }
    
    .social-link:hover .social-icon {
        transform: rotate(5deg);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 0;
    }
    
    .hero-actions .btn {
        margin-bottom: 8px;
    }
    
    .download-platform {
        padding: 20px;
    }
}

/* 宽屏优化 */
@media (min-aspect-ratio: 16/9) {
    .hero {
        min-height: 80vh;
        display: flex;
        align-items: center;
    }
    
    .hero-grid {
        align-items: center;
    }
}