/**
 * Zeus Airdrop - 移动端UI升级优化 V2.0
 * 针对手机用户的全面界面优化
 * 2024-11-27
 */

/* ==================== 移动端变量覆盖 ==================== */
@media (max-width: 768px) {
    :root {
        /* 移动端专用间距 */
        --mobile-spacing-xs: 0.375rem;
        --mobile-spacing-sm: 0.625rem;
        --mobile-spacing-md: 1rem;
        --mobile-spacing-lg: 1.5rem;

        /* 移动端字体大小 */
        --mobile-font-xs: 0.6875rem;
        --mobile-font-sm: 0.8125rem;
        --mobile-font-md: 0.9375rem;
        --mobile-font-lg: 1.125rem;
        --mobile-font-xl: 1.375rem;

        /* 移动端圆角 */
        --mobile-radius-sm: 8px;
        --mobile-radius-md: 12px;
        --mobile-radius-lg: 16px;
        --mobile-radius-xl: 20px;

        /* 触摸目标最小尺寸 */
        --touch-target-min: 44px;
    }
}

/* ==================== 全局移动端优化 ==================== */
@media (max-width: 768px) {
    /* 优化滚动和触摸 */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    body {
        /* 防止橡皮筋效果 */
        position: relative;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* 安全区域适配 */
    .container {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ==================== 导航栏优化 ==================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.625rem 0.75rem;
        gap: 0.625rem;
        /* 毛玻璃效果增强 */
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    .navbar-top-row {
        gap: 0.5rem;
    }

    /* 汉堡菜单优化 */
    .hamburger-menu {
        width: 40px;
        height: 40px;
        padding: 8px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .hamburger-line {
        width: 18px;
        height: 2px;
    }

    /* Logo区域 */
    .logo-section {
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 1.125rem;
        display: none; /* 小屏隐藏文字 */
    }

    /* 导航按钮组优化 */
    .header-right {
        gap: 0.375rem;
        flex: 1;
        justify-content: flex-end;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .header-right::-webkit-scrollbar {
        display: none;
    }

    /* 网络/语言徽章 */
    .network-badge,
    .lang-selector {
        padding: 0.5rem 0.625rem;
        height: 36px;
        min-height: 36px;
        font-size: 0.6875rem;
        gap: 0.25rem;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .network-badge span:not(.nav-icon),
    .lang-selector span:not(.nav-icon) {
        max-width: 45px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-icon {
        width: 16px;
        height: 16px;
    }

    /* 钱包按钮 */
    .wallet-btn {
        padding: 0.5rem 0.75rem;
        height: 36px;
        min-height: 36px;
        font-size: 0.6875rem;
        gap: 0.25rem;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .wallet-btn .icon-wallet {
        width: 16px;
        height: 16px;
    }
}

/* 超小屏幕优化 (< 375px) */
@media (max-width: 374px) {
    .network-badge span:not(.nav-icon),
    .lang-selector span:not(.nav-icon) {
        display: none;
    }

    .network-badge,
    .lang-selector {
        padding: 0.5rem;
        width: 36px;
    }

    .wallet-btn span:last-child {
        display: none;
    }
}

/* ==================== 侧边栏菜单优化 ==================== */
@media (max-width: 768px) {
    .sidebar-menu {
        width: 280px;
        left: -290px;
    }

    .sidebar-menu.active {
        left: 0;
    }

    .sidebar-header {
        padding: 1rem;
        /* 适配刘海屏 */
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    .sidebar-nav-item {
        padding: 0.875rem 1rem;
        min-height: var(--touch-target-min);
        margin: 2px 8px;
        border-radius: 12px;
    }

    .sidebar-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .sidebar-nav-item span {
        font-size: 0.9375rem;
    }

    .sidebar-footer {
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .sidebar-social-link {
        width: 40px;
        height: 40px;
    }
}

/* ==================== 页面标题优化 ==================== */
@media (max-width: 768px) {
    .page-title-section {
        margin: 1.5rem 0 1.25rem;
        padding: 0 0.5rem;
    }

    .page-title {
        font-size: 1.625rem;
        line-height: 1.2;
        margin-bottom: 0.625rem;
        /* 减少动画耗能 */
        animation: none;
    }

    .page-subtitle {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* ==================== 统计卡片优化 ==================== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
        border-radius: var(--mobile-radius-lg);
        min-height: auto;
    }

    /* 禁用hover动画 */
    .stat-card::before {
        display: none;
    }

    .stat-card:hover {
        transform: none;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.625rem;
        /* 禁用浮动动画 */
        animation: none;
    }

    .stat-label {
        font-size: 0.6875rem;
        margin-top: 0.375rem;
        line-height: 1.3;
    }

    .stat-value {
        font-size: 1.375rem;
        margin-top: 0.25rem;
    }
}

/* ==================== 功能卡片优化 ==================== */
@media (max-width: 768px) {
    .feature-card,
    .user-center-card,
    .team-rewards-card {
        padding: 1.25rem 1rem;
        border-radius: var(--mobile-radius-xl);
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .title-icon {
        width: 24px;
        height: 24px;
    }

    /* 用户统计网格 */
    .user-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
        margin-bottom: 1rem;
    }

    .user-stat {
        padding: 0.875rem 0.625rem;
        border-radius: var(--mobile-radius-md);
        text-align: center;
    }

    .user-stat-label {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }

    .user-stat-value {
        font-size: 1.25rem;
    }
}

/* ==================== 按钮优化 ==================== */
@media (max-width: 768px) {
    /* 主要按钮 */
    .primary-btn {
        min-height: 50px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        border-radius: var(--mobile-radius-md);
        font-weight: 600;
        /* 触摸优化 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* 签到按钮特别强调 */
    #checkinBtn {
        min-height: 56px;
        font-size: 1.0625rem;
        padding: 1rem 1.5rem;
        border-radius: var(--mobile-radius-lg);
        /* 增强视觉效果 */
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    }

    /* 次要按钮 */
    .secondary-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: var(--mobile-radius-sm);
    }

    /* 按钮点击效果 */
    .primary-btn:active,
    .secondary-btn:active,
    #checkinBtn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    /* 禁用按钮 */
    .primary-btn:disabled,
    .secondary-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

/* ==================== 团队奖励区域优化 ==================== */
@media (max-width: 768px) {
    .team-rewards-card {
        padding: 1.25rem 1rem;
    }

    .reward-rules {
        gap: 0.625rem;
        margin-bottom: 1rem;
    }

    .reward-rule {
        padding: 0.75rem;
        font-size: 0.8125rem;
        border-radius: var(--mobile-radius-sm);
    }

    .reward-rule span:first-child {
        font-size: 1.25rem;
    }

    /* 团队人数显示框 */
    .team-count-box {
        padding: 1.25rem 1rem !important;
        margin: 1rem 0 !important;
        border-radius: var(--mobile-radius-lg) !important;
    }

    .team-count-box > div:first-child {
        font-size: 1.5rem !important;
        margin-bottom: 0.375rem !important;
    }

    #teamMemberCount {
        font-size: 1.75rem !important;
    }

    /* 可领取奖励框 */
    .claimable-box {
        padding: 1.25rem 1rem;
        border-radius: var(--mobile-radius-lg);
        margin: 1rem 0;
    }

    .claimable-label {
        font-size: 0.8125rem;
    }

    .claimable-value {
        font-size: 1.625rem;
    }

    /* 质押解锁进度 */
    .stake-unlock-box {
        padding: 1rem !important;
        border-radius: var(--mobile-radius-md) !important;
    }
}

/* ==================== 邀请分享区域优化 ==================== */
@media (max-width: 768px) {
    .invite-section {
        flex-direction: column;
        gap: 0.75rem;
    }

    .invite-link-display,
    .invite-link {
        padding: 1rem;
        font-size: 0.8125rem;
        border-radius: var(--mobile-radius-md);
        word-break: break-all;
        line-height: 1.5;
        /* 便于选择复制 */
        user-select: all;
        -webkit-user-select: all;
    }

    .copy-btn {
        min-width: 100%;
        min-height: 48px;
        justify-content: center;
    }
}

/* ==================== 社交任务优化 ==================== */
@media (max-width: 768px) {
    .social-tasks-grid {
        gap: 0.625rem;
    }

    .social-task-btn {
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        border-radius: var(--mobile-radius-md);
        gap: 0.625rem;
    }

    .social-task-btn span:first-child {
        font-size: 1.25rem;
    }
}

/* ==================== 模态框优化 ==================== */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.75rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        align-items: flex-end; /* 底部对齐，类似底部抽屉 */
    }

    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--mobile-radius-xl) var(--mobile-radius-xl) 0 0;
        padding: 1.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 添加拖拽指示条 */
    .modal::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .modal-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }

    .modal-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    /* 钱包列表 */
    .wallet-list {
        gap: 0.625rem;
    }

    .wallet-item {
        padding: 1rem;
        border-radius: var(--mobile-radius-md);
        min-height: 60px;
    }

    .wallet-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .wallet-name {
        font-size: 0.9375rem;
    }

    .wallet-desc {
        font-size: 0.75rem;
    }

    /* 确认/警告模态框 */
    .custom-modal-overlay .modal {
        max-width: 100%;
        padding: 1.5rem 1.25rem;
    }

    .confirm-icon,
    .alert-icon {
        font-size: 48px;
        margin-bottom: 0.875rem;
    }

    .confirm-title,
    .alert-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .confirm-message,
    .alert-message {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .confirm-buttons {
        flex-direction: column;
        gap: 0.625rem;
    }

    .btn-cancel,
    .btn-confirm,
    .btn-alert-ok {
        width: 100%;
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        border-radius: var(--mobile-radius-md);
    }
}

/* ==================== Toast通知优化 ==================== */
@media (max-width: 768px) {
    .toast {
        position: fixed;
        bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 85%;
        min-width: 200px;
        width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        line-height: 1.4;
        border-radius: var(--mobile-radius-md);
        text-align: center;
        white-space: normal;
        word-break: break-word;
        height: auto;
        max-height: 100px;
        z-index: 10001;
    }
}

/* ==================== 闪兑视图优化 ==================== */
@media (max-width: 768px) {
    #swapView {
        padding: 0.75rem;
    }

    #swapView .page-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    #swapView .page-subtitle {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }

    #swapView .feature-card {
        padding: 1.25rem 1rem;
    }

    .token-input-container {
        padding: 1rem;
        border-radius: var(--mobile-radius-lg);
        margin-bottom: 0.625rem;
    }

    #swapFromAmount,
    #swapToAmount {
        font-size: 1.5rem;
        min-height: 48px;
        padding: 0.625rem 0;
    }

    /* 交换方向按钮 */
    .swap-direction-btn {
        width: 44px;
        height: 44px;
        margin: -10px auto;
    }
}

/* ==================== Footer优化 ==================== */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .footer .container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-logo-img {
        width: 180px;
        margin: 0 auto;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.75rem;
    }
}

/* ==================== 加载动画优化 ==================== */
@media (max-width: 768px) {
    .loader {
        width: 80px;
        height: 80px;
    }

    .loader-text {
        font-size: 0.875rem;
        bottom: -32px;
    }
}

/* ==================== 性能优化 ==================== */
@media (max-width: 768px) {
    /* 禁用耗能动画 */
    .stat-card:hover::before,
    .cyber-grid {
        animation: none;
    }

    /* 降低背景效果强度 */
    .cyber-grid {
        opacity: 0.15;
    }

    .stars-canvas {
        opacity: 0.25;
    }

    #particle-canvas {
        display: none;
    }

    /* 优化图层 */
    .stat-card,
    .feature-card,
    .primary-btn,
    .modal {
        transform: translateZ(0);
        will-change: transform;
    }

    /* 减少box-shadow渲染 */
    .stat-card:not(:hover),
    .feature-card:not(:hover) {
        box-shadow: none;
    }
}

/* ==================== 横屏优化 ==================== */
@media (max-width: 768px) and (orientation: landscape) {
    .modal {
        max-height: 95vh;
        border-radius: var(--mobile-radius-lg);
    }

    .modal-overlay {
        align-items: center;
    }

    .page-title-section {
        margin: 1rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== 深色模式增强 (已是深色主题) ==================== */
@media (max-width: 768px) {
    /* 增强对比度 */
    .stat-card,
    .feature-card,
    .user-center-card,
    .team-rewards-card {
        border-color: rgba(99, 102, 241, 0.25);
    }

    /* 文字可读性 */
    .user-stat-label,
    .stat-label {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* ==================== 团队详情弹窗移动端优化 ==================== */
@media (max-width: 768px) {
    #teamDetailModal .team-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--mobile-radius-xl) var(--mobile-radius-xl) 0 0;
        margin: 0;
    }

    #teamDetailModal .team-modal-header h2 {
        font-size: 1.125rem;
    }

    #teamDetailModal .team-tabs {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    #teamDetailModal .team-tab {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        flex: 1 1 45%;
        min-height: 40px;
    }

    #teamDetailModal .stat-card {
        padding: 0.875rem;
    }

    #teamDetailModal .stat-card h3 {
        font-size: 0.6875rem;
    }

    #teamDetailModal .stat-card p {
        font-size: 1.25rem;
    }

    #teamDetailModal .member-item {
        padding: 0.75rem;
    }

    #teamDetailModal .member-stats {
        font-size: 0.6875rem;
    }
}

/* ==================== 无障碍优化 ==================== */
@media (max-width: 768px) {
    /* 焦点状态 */
    button:focus-visible,
    a:focus-visible,
    input:focus-visible {
        outline: 2px solid var(--primary-accent);
        outline-offset: 2px;
    }

    /* 减少动画（尊重用户偏好）*/
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* 任务说明框移动端溢出修复 */
@media (max-width: 768px) {
    /* 任务说明容器 */
    .social-tasks-card > div:last-child,
    div[style*="rgba(245, 158, 11"] {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* 任务说明文字 */
    div[style*="rgba(245, 158, 11"] > div {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    /* 任务说明标题 */
    div[style*="rgba(245, 158, 11"] div[style*="font-weight: 600"] {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* 任务说明每行 */
    div[data-i18n^="tasks.instruction"] {
        font-size: 0.75rem !important;
        padding: 0.15rem 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}

@media (max-width: 380px) {
    div[style*="rgba(245, 158, 11"] {
        padding: 0.5rem !important;
    }
    
    div[style*="rgba(245, 158, 11"] > div {
        font-size: 0.7rem !important;
    }
}

/* ========== 任务说明框修复 - 完整显示+居中 ========== */
@media (max-width: 768px) {
    /* 任务说明容器 - 完整显示 */
    .social-tasks-card > div:last-child,
    div[style*="rgba(245, 158, 11"] {
        padding: 12px !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        overflow: visible !important;
        display: block !important;
    }
    
    /* 任务说明内容区 */
    div[style*="rgba(245, 158, 11"] > div {
        font-size: 12px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
    }
    
    /* 任务说明标题 */
    div[data-i18n="tasks.taskInstructions"] {
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    
    /* 任务说明每行 - 完整显示 */
    div[data-i18n^="tasks.instruction"] {
        font-size: 11px !important;
        padding: 3px 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
    }
}

/* 超小屏幕 */
@media (max-width: 380px) {
    div[style*="rgba(245, 158, 11"] {
        padding: 10px !important;
        margin: 8px 5px !important;
    }
    
    div[data-i18n="tasks.taskInstructions"] {
        font-size: 12px !important;
    }
    
    div[data-i18n^="tasks.instruction"] {
        font-size: 10px !important;
        line-height: 1.5 !important;
    }
}

/* ========== 任务区域紧凑布局优化 ========== */
@media (max-width: 768px) {
    /* 任务卡片容器 */
    .social-tasks-card {
        padding: 0.75rem !important;
        margin: 0.75rem auto !important;
        border-radius: 12px !important;
    }
    
    /* 任务标题 */
    .social-tasks-card > h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .social-tasks-card > h3 span:first-child {
        font-size: 1.1rem !important;
        margin-right: 0.3rem !important;
    }
    
    /* 任务列表间距 */
    .social-tasks-card > div[style*="display: grid"] {
        gap: 0.5rem !important;
    }
    
    /* 单个任务项 */
    .social-task-item {
        padding: 0.6rem 0.75rem !important;
        border-radius: 8px !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
    }
    
    /* 任务图标 */
    .social-task-item > div:first-child {
        width: 28px !important;
        height: 28px !important;
    }
    
    .social-task-item > div:first-child svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* 任务内容区 */
    .social-task-item > div:nth-child(2) {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* 任务标题文字 */
    .social-task-item > div:nth-child(2) > div:first-child {
        font-size: 0.8rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    /* 任务描述 */
    .social-task-item > div:nth-child(2) > div:nth-child(2) {
        font-size: 0.7rem !important;
        margin-bottom: 0.2rem !important;
        display: none !important;
    }
    
    /* 奖励文字 */
    .social-task-item > div:nth-child(2) > div:last-child {
        font-size: 0.75rem !important;
    }
    
    .social-task-item > div:nth-child(2) > div:last-child span:first-child {
        font-size: 0.7rem !important;
    }
    
    /* 任务按钮 */
    .social-task-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
    
    /* 任务说明框 */
    div[style*="rgba(245, 158, 11"] {
        padding: 0.5rem 0.6rem !important;
        margin-top: 0.4rem !important;
        border-radius: 6px !important;
    }
    
    div[style*="rgba(245, 158, 11"] > div {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }
    
    div[data-i18n="tasks.taskInstructions"] {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    div[data-i18n^="tasks.instruction"] {
        font-size: 0.65rem !important;
        padding: 0.1rem 0 !important;
    }
}

/* 超小屏幕进一步压缩 */
@media (max-width: 380px) {
    .social-tasks-card {
        padding: 0.5rem !important;
        margin: 0.5rem auto !important;
    }
    
    .social-task-item {
        padding: 0.5rem !important;
    }
    
    .social-task-item > div:first-child {
        width: 24px !important;
        height: 24px !important;
    }
    
    .social-task-btn {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
}

/* ========== 空投代币信息卡片移动端优化 ========== */
@media (max-width: 768px) {
    .airdrop-token-info {
        padding: 0.75rem !important;
        margin: 0.75rem auto !important;
        border-radius: 12px !important;
    }
    
    .airdrop-token-info > h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .airdrop-token-info > h3 span:first-child {
        font-size: 1rem !important;
    }
    
    /* 4格统计网格 */
    .airdrop-token-info > div[style*="grid"] {
        gap: 0.5rem !important;
    }
    
    /* 每个统计格子 */
    .airdrop-token-info > div[style*="grid"] > div {
        padding: 0.5rem !important;
        border-radius: 8px !important;
    }
    
    /* 统计标签 */
    .airdrop-token-info > div[style*="grid"] > div > div:first-child {
        font-size: 0.65rem !important;
    }
    
    /* 统计数值 */
    .airdrop-token-info > div[style*="grid"] > div > div:nth-child(2) {
        font-size: 0.9rem !important;
    }
    
    /* 单位文字 */
    .airdrop-token-info > div[style*="grid"] > div > div:last-child {
        font-size: 0.55rem !important;
    }
    
    /* 底部价格条 */
    .airdrop-token-info > div[style*="margin-top"] {
        margin-top: 0.5rem !important;
        padding: 0.4rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 380px) {
    .airdrop-token-info {
        padding: 0.5rem !important;
    }
    
    .airdrop-token-info > div[style*="grid"] > div > div:nth-child(2) {
        font-size: 0.8rem !important;
    }
}
