:root {
    --bg-color: #050511;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.2);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-color: #a855f7;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.ambient-light {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

.light-2 {
    top: auto;
    bottom: -100px;
    left: auto;
    right: -100px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: rgba(15, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-btn:hover {
    background: #fff;
    color: #000;
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 40px;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
}

.thunder-card {
    grid-column: span 2;
    grid-row: span 2;
}

.blackbox-card {
    grid-column: span 1;
}

.guide-card {
    grid-column: span 2;
}

.download-card {
    grid-column: span 1;
}

.community-card {
    grid-column: span 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-header-small h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.icon-box.purple {
    background: linear-gradient(135deg, #c084fc, #7e22ce);
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tag {
    margin-left: auto;
    background: #22c55e;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

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

.coupon-row {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.coupon-row:hover {
    background: rgba(255,255,255,0.05);
}

.code {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 1px;
    margin-right: 10px;
}

.meta {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.action-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.action-btn.copied {
    background: #22c55e;
    color: #fff;
}

.big-coupon {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.big-code {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #c084fc;
}

.full-width-btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.full-width-btn:hover {
    opacity: 0.9;
}

.note {
    font-size: 0.7rem !important;
    margin-top: 10px;
    opacity: 0.6;
}

.community-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(255,255,255,0.02) 100%);
}

.avatars {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.avatars span {
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2d3748;
    margin-left: -10px;
    font-size: 1.2rem;
}

.avatars span:first-child { margin-left: 0; }

.join-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.guide-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent-color);
    border: 1px solid rgba(255,255,255,0.1);
}

.step-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 15px;
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.thunder-dl {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.thunder-dl:hover {
    background: rgba(251, 191, 36, 0.2);
}

.blackbox-dl {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.blackbox-dl:hover {
    background: rgba(192, 132, 252, 0.2);
}

.footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    font-weight: 600;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .thunder-card, .blackbox-card, .community-card, .guide-card, .download-card {
        grid-column: span 1;
        grid-row: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .nav-links {
        display: none;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}