/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #1a2a4a 50%, #0d1b2a 100%);
    color: #ffffff;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== 导航栏 ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00f5ff, #7b2cbf);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, #00f5ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: #00f5ff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f5ff, #7b2cbf);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-user {
    display: none;
    align-items: center;
    gap: 10px;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00f5ff, #7b2cbf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #0a1628;
}

.nav-user-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-logout-btn {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-logout-btn:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff5050;
}

.nav-lang-btn {
    padding: 4px 10px;
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.25);
    border-radius: 14px;
    color: #00f5ff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.nav-lang-btn:hover {
    background: rgba(0, 245, 255, 0.15);
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.2);
}

/* ==================== 英雄区域 ==================== */
.hero-section {
    padding: 80px 24px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(123, 44, 191, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out 1;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00f5ff 0%, #7b2cbf 50%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 245, 255, 0.3);
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00f5ff 0%, #7b2cbf 100%);
    color: #0a1628;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
    position: relative;
    z-index: 1;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.6);
}

/* ==================== 功能区 ==================== */
.features-section {
    padding: 30px 24px;
    position: relative;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #00f5ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 480px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f5ff, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(123, 44, 191, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.feature-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* ==================== 任务区 ==================== */
.tasks-section {
    padding: 30px 24px;
    background: rgba(0, 245, 255, 0.02);
}

.tasks-list {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.task-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateX(4px);
}

.task-card--ended {
    cursor: default;
    opacity: 0.65;
}

.task-card--ended:hover {
    transform: none;
    border-color: rgba(0, 245, 255, 0.1);
}

.task-header {
    padding: 16px;
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.1), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #00f5ff, #7b2cbf);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0a1628;
}

.task-body {
    padding: 16px;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.task-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.task-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-price {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #00f5ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.task-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #00f5ff, #7b2cbf);
    border: none;
    border-radius: 20px;
    color: #0a1628;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.task-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.task-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* ==================== 平台介绍 ==================== */
.video-section {
    padding: 30px 24px;
}

.video-container {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(123, 44, 191, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 245, 255, 0.2) 0%, transparent 70%);
}

.play-btn {
    width: 64px;
    height: 64px;
    background: rgba(0, 245, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.7);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 16px solid #0a1628;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

.video-info {
    padding: 20px;
    text-align: center;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.video-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 监管机构 ==================== */
.regulatory-section {
    padding: 20px 24px;
    background: rgba(0, 245, 255, 0.02);
}

.regulatory-section .section-title {
    font-size: 20px;
    margin-bottom: 6px;
}

.regulatory-section .section-subtitle {
    font-size: 12px;
    margin-bottom: 20px;
}

.regulatory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 340px;
    margin: 0 auto;
}

.regulatory-card {
    aspect-ratio: 3/2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.regulatory-card:hover {
    border-color: rgba(0, 245, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 245, 255, 0.12);
}

.regulatory-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.3s;
    border-radius: 6px;
}

.regulatory-card:hover .regulatory-image {
    opacity: 1;
}

.regulatory-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(123, 44, 191, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ==================== 页脚 ==================== */
.footer {
    padding: 40px 24px 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00f5ff, #7b2cbf);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.footer-logo-text {
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(90deg, #00f5ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00f5ff;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ==================== 加载状态 ==================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 245, 255, 0.2);
    border-top-color: #00f5ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 骨架屏 ==================== */
.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.skeleton-header {
    padding: 16px;
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.05), transparent);
    display: flex;
    justify-content: space-between;
}

.skeleton-body {
    padding: 16px;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-line:last-child {
    margin-bottom: 0;
    width: 60%;
}

.skeleton-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-badge {
    width: 60px;
    height: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 10px;
}

.skeleton-price {
    width: 50px;
    height: 18px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-btn {
    width: 70px;
    height: 28px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 14px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== 响应式 ==================== */
@media (max-width: 414px) {
    .hero-title {
        font-size: 26px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .feature-desc {
        font-size: 12px;
    }
    
    .regulatory-grid {
        gap: 8px;
        max-width: 300px;
    }
}

/* ==================== 减弱动画（无障碍 & 省电） ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg {
        animation: none;
        opacity: 0.6;
    }

    .hero-title {
        filter: none;
    }
}
