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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

/* Hero Banner - 清新蓝紫渐变 */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: #fef08a;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btns {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #854d0e;
    box-shadow: 0 8px 24px rgba(254, 240, 138, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(254, 240, 138, 0.5);
}

.btn-secondarys {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondarys:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-visual {
    flex: 0 0 380px;
}

.coin-wrap {
    width: 340px;
    height: 340px;
    position: relative;
}

.coin {
    width: 280px;
    height: 280px;
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), inset 0 -10px 30px rgba(0, 0, 0, 0.1), inset 0 10px 30px rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
    border: 8px solid #f59e0b;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
}

.coin-icon {
    font-size: 72px;
    margin-bottom: 8px;
}

.coin-text {
    font-size: 56px;
    font-weight: 900;
    color: #92400e;
}

.coin-sub {
    font-size: 16px;
    color: #92400e;
    font-weight: 600;
}

.float-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.float-icon:nth-child(2) {
    top: 20px;
    right: 40px;
    animation: fi 3s ease-in-out infinite;
}

.float-icon:nth-child(3) {
    bottom: 60px;
    left: 0;
    animation: fi 3s ease-in-out infinite 0.5s;
}

.float-icon:nth-child(4) {
    top: 80px;
    left: -10px;
    animation: fi 3s ease-in-out infinite 1s;
}

@keyframes fi {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Section Styles */
.section {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 40px 24px; */
}

.card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

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

.title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

/* Activity Rules */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.rule-item {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    position: relative;
}

.rule-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 20px;
    font-weight: bold;
}

.rule-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 12px;
}

.rule-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.rule-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.warning-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.warning-text {
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
}

/* K Point Usage - 简化版 */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.usage-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.usage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.1);
}

.usage-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.usage-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.usage-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* Leaderboard */
.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
}

.tab {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.3s;
}

.tab.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 70px;
    height: 300px;
}

.podium-item {
    text-align: center;
    width: 220px;
    position: relative;
}

.podium-item.first {
    order: 2;
    margin-bottom: -35px;
}

.podium-item.second {
    order: 1;
    margin-bottom: -48px;
}

.podium-item.third {
    order: 3;
    margin-bottom: -60;
}

.podium-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.podium-item.first .podium-avatar {
    width: 104px;
    height: 104px;
    font-size: 48px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.podium-item.second .podium-avatar {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
}

.podium-item.third .podium-avatar {
    background: linear-gradient(135deg, #fdba74 0%, #f97316 100%);
}

.crown {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.rank-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.podium-item.first .rank-badge {
    background: #fbbf24;
}

.podium-item.second .rank-badge {
    background: #94a3b8;
}

.podium-item.third .rank-badge {
    background: #f97316;
}

.podium-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.podium-id {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.podium-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.podium-stat {
    text-align: center;
}

.podium-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #3b82f6;
}

.podium-stat-label {
    font-size: 11px;
    color: #64748b;
}

.podium-points {
    display: inline-block;
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #854d0e;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.podium-base {
    height: 60px;
    border-radius: 12px 12px 0 0;
    margin-top: 16px;
    position: relative;
}

.podium-item.first .podium-base {
    height: 80px;
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
}

.podium-item.second .podium-base {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.podium-item.third .podium-base {
    background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%);
}

.rank-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.15);
}

/* Table */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.leaderboard-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table td {
    padding: 16px;
    background: #f8fafc;
    font-size: 14px;
}

.leaderboard-table tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.leaderboard-table tr td:last-child {
    border-radius: 0 12px 12px 0;
}

.leaderboard-table tr:hover td {
    background: #f1f5f9;
}

.rank-cell {
    width: 50px;
    text-align: center;
    font-weight: 700;
    color: #94a3b8;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #0f172a;
}

.user-id {
    font-size: 12px;
    color: #94a3b8;
}

.clicks-cell {
    font-weight: 700;
    color: #3b82f6;
    font-size: 16px;
}

.points-cell {
    font-weight: 700;
    color: #f59e0b;
    font-size: 16px;
}

.view-my-rank {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 32px auto 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.view-my-rank:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.rank-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #94a3b8;
}

/* Footer CTA */
.footer-cta {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.footer-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.footer-cta .btn-primary {
    font-size: 18px;
    padding: 18px 40px;
    /* border: none;
            border-radius: 20px; */
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rule-item:not(:last-child)::after {
        display: none;
    }

    .usage-grid {
        grid-template-columns: 1fr;
    }

    .podium {
        flex-direction: column;
        height: auto;
        gap: 40px;
    }

    .podium-item,
    .podium-item.first,
    .podium-item.second,
    .podium-item.third {
        order: 0;
        margin-bottom: 0;
        width: 100%;
        max-width: 300px;
    }
}

