:root {
    --primary-color: #00f260;
    --secondary-color: #0575e6;
    --accent-purple: #b92b27;
    --accent-blue: #1565c0;
    --bg-dark: #0f0c29;
    --text-main: #ffffff;
    --text-sub: #b2bec3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --btn-android-start: #11998e;
    --btn-android-end: #38ef7d;
    --btn-ios-start: #2980b9;
    --btn-ios-end: #6dd5fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
}

/* 背景装饰 - 霓虹光斑 */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #00f260;
    top: -50px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #0575e6;
    bottom: -100px;
    right: -100px;
    animation-delay: -2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #8e44ad;
    top: 30%;
    left: 70%;
    animation-delay: -5s;
    opacity: 0.4;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 40px); }
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    min-height: 100vh;
    background: rgba(15, 12, 41, 0.7);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 30px 0;
    margin-bottom: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    object-fit: cover;
}

.title-group {
    text-align: left;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.badge {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 10px rgba(255, 65, 108, 0.4);
}

.subtitle {
    font-size: 12px;
    color: var(--text-sub);
    letter-spacing: 0.5px;
}

/* Hero Actions - 核心功能区 */
.hero-actions {
    margin-bottom: 30px;
}

.main-downloads {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-lg {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-lg:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--btn-android-start), var(--btn-android-end));
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--btn-ios-start), var(--btn-ios-end));
    box-shadow: 0 8px 25px rgba(41, 128, 185, 0.4);
}

.btn-icon {
    font-size: 28px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
}

.btn-desc {
    font-size: 11px;
    opacity: 0.9;
}

.btn-arrow {
    font-size: 18px;
    opacity: 0.7;
}

.sub-actions {
    display: flex;
    gap: 15px;
}

.btn-glass {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.btn-glass:active {
    background: rgba(255,255,255,0.2);
}

/* 邀请码 */
.invite-section {
    margin-bottom: 30px;
}

.invite-header {
    text-align: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #ffd700;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.invite-box {
    background: rgba(0,0,0,0.3);
    border: 1px dashed var(--primary-color);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.invite-box:active {
    background: rgba(0, 242, 96, 0.1);
}

.code-label {
    font-size: 12px;
    color: var(--text-sub);
}

.code-value {
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.copy-btn {
    font-size: 12px;
    background: var(--primary-color);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-val {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
}

.stat-key {
    font-size: 10px;
    color: var(--text-sub);
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.1);
}

/* Features */
.section-title {
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.section-title h3 {
    font-size: 16px;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid transparent;
    transition: border 0.3s;
}

.feature-item:hover {
    border-color: rgba(255,255,255,0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
}

.color-1 { color: #ff9f43; background: rgba(255, 159, 67, 0.2); }
.color-2 { color: #54a0ff; background: rgba(84, 160, 255, 0.2); }
.color-3 { color: #00d2d3; background: rgba(0, 210, 211, 0.2); }
.color-4 { color: #ff6b6b; background: rgba(255, 107, 107, 0.2); }

.feature-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 10px;
    color: var(--text-sub);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    color: var(--text-sub);
}

.footer-note {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 5px;
}

/* Toast */
.toast {
    visibility: hidden;
    min-width: 200px;
    background: #fff;
    color: #333;
    text-align: center;
    border-radius: 50px;
    padding: 12px 20px;
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 小屏幕适配优化 */
@media (max-width: 360px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 22px;
    }

    .btn-lg {
        padding: 12px 15px;
    }

    .btn-title {
        font-size: 16px;
    }

    .invite-box {
        padding: 10px;
    }

    .code-value {
        font-size: 16px;
    }

    .stats-bar {
        padding: 12px;
    }

    .stat-val {
        font-size: 14px;
    }
}
