* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    background: #0f0c29;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    color: #333;
}

.page-wrapper {
    max-width: 414px;
    width: 100%;
    background: #f5f5f7;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ====== 动态背景 ====== */
.bg-effects { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-gradient { position: absolute; top: 0; left: 0; right: 0; height: 280px; background: linear-gradient(180deg, rgba(147,51,234,0.15) 0%, transparent 100%); }
.bg-particles { position: absolute; top: 0; left: 0; right: 0; height: 400px; }
.bg-glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; filter: blur(60px); opacity: 0.3; }
.glow-1 { top: -40px; right: -40px; background: #ec4899; }
.glow-2 { top: 160px; left: -60px; background: #8b5cf6; }

/* ====== 实时赚钱通知 ====== */
.live-notifications { position: fixed; top: 80px; right: 12px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.notification-item { background: rgba(0,0,0,0.85); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-out 3s forwards; opacity: 0; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ====== 顶部横幅 ====== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 16px 24px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* 核心数据 */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 16px 12px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.stat-card { text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: #fbbf24; line-height: 1.2; }
.stat-label { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* 限时福利 */
.limited-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.15);
}

.offer-icon { font-size: 22px; }
.offer-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.offer-desc { font-size: 12px; opacity: 0.8; }
.offer-urgent { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.urgent-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s infinite; }

/* 浮动金币 */
.floating-coins { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; pointer-events: none; }
.coin {
    position: absolute;
    font-size: 24px;
    animation: floatUp 4s ease-in infinite;
    opacity: 0.5;
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    100% { transform: translateY(-60px) rotate(360deg); opacity: 0; }
}

/* ====== 正在浏览人数滑动效果 ====== */
.viewing-counter {
    margin: 0 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-top: -10px;
    z-index: 2;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.viewing-scroll-wrapper {
    display: flex;
    width: max-content;
    animation: scrollRight 5s linear infinite;
}

.viewing-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 50px;
    flex-shrink: 0;
}

.viewing-dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.viewing-text { color: #fff; font-size: 14px; white-space: nowrap; }
.viewing-text strong { color: #fbbf24; font-weight: bold; font-size: 16px; }

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.viewing-counter:hover .viewing-scroll-wrapper { animation-play-state: paused; }

/* ====== 实时提现 ====== */
.live-feed { margin: 12px; padding: 12px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.feed-header { margin-bottom: 8px; }
.feed-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #dc2626; }
.pulse-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s infinite; }
.feed-scroll { overflow: hidden; height: 28px; }
.feed-track { display: flex; animation: feedScroll 20s linear infinite; }
.feed-item { display: flex; align-items: center; gap: 6px; padding: 0 16px; flex-shrink: 0; font-size: 13px; }
.feed-avatar { font-size: 16px; }
.feed-name { color: #333; font-weight: 500; }
.feed-action { color: #999; }
.feed-money { color: #10b981; font-weight: 600; font-size: 14px; }
@keyframes feedScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ====== 任务列表 ====== */
.tasks-section, .reviews-section, .advantages-section, .faq-section, .about-section {
    margin: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.section-title i { color: #667eea; }

.task-count {
    font-size: 12px;
    color: #667eea;
    background: rgba(102,126,234,0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.tasks-list { display: flex; flex-direction: column; gap: 12px; }

/* 任务卡片 */
.task-item {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.task-item:active { transform: scale(0.98); }

.task-item.featured {
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 16px rgba(251,191,36,0.15);
}

.task-ribbon {
    position: absolute;
    top: 12px;
    right: -28px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    padding: 4px 36px;
    font-size: 11px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.task-rank {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 8px;
}

.task-rank.gold { background: #fef3c7; color: #d97706; }

.task-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.task-tag.hot { background: #fee2e2; color: #dc2626; }

.task-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.task-icon-wrap { flex-shrink: 0; }

.task-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.task-icon.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.task-icon.orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.task-icon.green { background: linear-gradient(135deg, #4ade80, #22c55e); }
.task-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.task-icon.cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.task-icon.pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.task-icon.indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.task-icon.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.task-info { flex: 1; min-width: 0; }
.task-name { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.task-desc { font-size: 12px; color: #6b7280; line-height: 1.5; margin-bottom: 8px; }

.task-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-item { font-size: 11px; color: #999; }
.meta-item i { margin-right: 2px; }
.meta-item.highlight { color: #10b981; }

.task-reward { text-align: center; flex-shrink: 0; }

.reward-amount { margin-bottom: 4px; }
.reward-amount .currency { font-size: 14px; font-weight: 700; color: #dc2626; vertical-align: super; }
.reward-amount .number { font-size: 28px; font-weight: 800; color: #dc2626; }
.reward-amount .decimal { font-size: 14px; font-weight: 600; color: #dc2626; }

.reward-label {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
}

.task-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.task-btn:active { opacity: 0.8; }

.pulse-btn { animation: btnPulse 2s ease-in-out infinite; }

@keyframes btnPulse {
    0%,100% { box-shadow: 0 4px 16px rgba(102,126,234,0.3); }
    50% { box-shadow: 0 4px 24px rgba(102,126,234,0.6); }
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0 4px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: linear-gradient(90deg, #f97316, #ef4444);
    border-radius: 3px;
    transition: width 0.3s;
}

.task-progress span {
    font-size: 11px;
    color: #ef4444;
    flex-shrink: 0;
    font-weight: 500;
}

/* ====== 用户评价 ====== */
.reviews-grid { display: flex; flex-direction: column; gap: 12px; }
.review-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { font-size: 32px; }
.review-info { display: flex; flex-direction: column; }
.review-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.review-stars { font-size: 12px; }
.review-text { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 10px; }
.review-earnings { display: inline-block; background: #fee2e2; color: #dc2626; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; }

/* ====== 平台优势 ====== */
.advantages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.advantage-card { background: #fff; border-radius: 12px; padding: 16px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.advantage-icon { width: 44px; height: 44px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: #fff; font-size: 20px; }
.advantage-card h3 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.advantage-card p { font-size: 12px; color: #9ca3af; line-height: 1.5; }

/* ====== FAQ ====== */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.faq-question { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 14px; font-weight: 500; color: #1a1a1a; }
.faq-answer { padding: 0 16px 14px; font-size: 13px; color: #6b7280; line-height: 1.6; display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .fa-chevron-down { transform: rotate(180deg); }
.fa-chevron-down { transition: transform 0.3s; color: #999; }

/* ====== 关于我们 ====== */
.about-content { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.about-content p { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 12px; }
.about-content ul { list-style: none; }
.about-content li { font-size: 13px; color: #6b7280; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.about-content li i { color: #10b981; }

/* ====== 底部 ====== */
.footer { padding: 20px 16px; text-align: center; }
.footer-info p { font-size: 12px; color: #9ca3af; line-height: 1.8; }

/* ====== Toast提示 ====== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
