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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 80px;
}

.logo-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 80px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-name {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.app-tagline {
    font-size: 18px;
    color: #ffffff;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.invite-code-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: fadeIn 0.5s ease-in;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.badge-label {
    font-weight: 600;
    font-size: 16px;
}

.badge-value {
    font-weight: 700;
    /* background: rgba(255, 255, 255, 0.3); */
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 18px;
    letter-spacing: 2px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: white;
    white-space: nowrap;
}

.copy-btn::before {
    content: '复制';
}

.copy-btn.copied::before {
    content: '已复制';
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: rgba(76, 175, 80, 0.6);
}

.download-section {
    margin-bottom: 70px;
    animation: fadeInUp 1s ease-out;
    display: flex;
    justify-content: center;
}

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

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.download-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 240px;
    flex-shrink: 0;
}

.download-btn.main {
    background: #bc945f;
    color: #ffffff;
    border-radius: 18px;
    padding: 18px 48px;
    width: auto;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 12px 30px rgba(175, 0, 45, 0.35);
}

.download-btn.main .btn-label {
    pointer-events: none;
}

.download-btn.main:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(175, 0, 45, 0.45);
}

.download-btn.main:active {
    transform: translateY(-2px) scale(0.99);
}

/* .download-btn:hover {
    transform: translateY(-8px) scale(1.05);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

.download-btn:active {
    transform: translateY(-4px) scale(1.02);
} */

.btn-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* 提示弹窗样式 */
.instructions-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

.instructions-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.3s ease-out;
}

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

#instructionsTitle {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

#instructionsText {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 24px;
    white-space: pre-line;
}

.instructions-btn {
    background: #bc945f;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.instructions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .content {
        padding: 20px 15px;
        padding-bottom: 60px;
    }

    .logo-icon {
        font-size: 60px;
    }

    .app-name {
        font-size: 36px;
    }

    .app-tagline {
        font-size: 16px;
    }

    .download-btn.main {
        width: 100%;
        padding: 16px 24px;
        font-size: 18px;
        border-radius: 16px;
    }

    .invite-code-badge {
        padding: 12px 20px;
    }

    .badge-label {
        font-size: 14px;
    }

    .badge-value {
        font-size: 16px;
    }

    .instructions-card {
        padding: 24px;
        margin: 0 10px;
    }

    #instructionsTitle {
        font-size: 20px;
    }

    #instructionsText {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .app-name {
        font-size: 32px;
    }

    .app-tagline {
        font-size: 14px;
    }

    .logo-icon {
        font-size: 50px;
    }
}
