/* ===== 全局重置 ===== */
* {
    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: #0a0a1a;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== 粒子背景 ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.8), transparent);
    border-radius: 50%;
    animation: particleFloat 5s ease-in-out infinite alternate;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-80px) translateX(30px) scale(1.5);
        opacity: 0.1;
    }
}

/* ===== 主容器 ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, 
        #0a0a1a 0%, 
        #1a0a2e 20%, 
        #0d0d2b 50%, 
        #0a0a1a 100%
    );
}

/* ===== 顶部光效 ===== */
.top-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    animation: topGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes topGlowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* ===== 主图片区域 ===== */
.hero-section {
    padding: 20px 15px 10px;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.4),
        0 0 60px rgba(138, 43, 226, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.5);
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: 
            0 0 30px rgba(138, 43, 226, 0.4),
            0 0 60px rgba(138, 43, 226, 0.2),
            0 20px 40px rgba(0, 0, 0, 0.5);
    }
    50% { 
        transform: translateY(-8px) scale(1.01); 
        box-shadow: 
            0 0 40px rgba(138, 43, 226, 0.6),
            0 0 80px rgba(138, 43, 226, 0.3),
            0 30px 50px rgba(0, 0, 0, 0.6);
    }
}

.hero-image {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* ===== 光环效果 ===== */
.glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(138, 43, 226, 0.3);
    pointer-events: none;
    z-index: 2;
}

.ring1 {
    width: 120px;
    height: 120px;
    top: -30px;
    right: -30px;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: -20px;
    animation: ringPulse 4s ease-in-out infinite 1s;
    border-color: rgba(255, 105, 180, 0.3);
}

.ring3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: -15px;
    animation: ringPulse 3.5s ease-in-out infinite 0.5s;
    border-color: rgba(0, 195, 255, 0.3);
}

@keyframes ringPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.3) rotate(180deg); 
        opacity: 0.7; 
    }
}

/* ===== 扫光效果 ===== */
.shine-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 100%
    );
    animation: shineMove 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes shineMove {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ===== 安全认证 ===== */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 8px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.shield-icon {
    display: flex;
    align-items: center;
    animation: shieldPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.5));
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(0, 230, 118, 0.8)); }
}

.security-badge span {
    font-size: 14px;
    color: #00e676;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== 图片上叠加的下载按钮（玻璃质感） ===== */
.download-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 14px 28px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(180, 140, 255, 0.35) 0%,
        rgba(120, 80, 220, 0.5) 30%,
        rgba(200, 170, 255, 0.3) 50%,
        rgba(130, 90, 230, 0.5) 70%,
        rgba(180, 140, 255, 0.35) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.15s ease;
    box-shadow:
        0 0 25px rgba(160, 120, 255, 0.5),
        0 0 60px rgba(130, 80, 230, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    animation: impactPulse 1.8s ease-in-out infinite;
    white-space: nowrap;
}

.download-btn-overlay:active {
    transform: translate(-50%, -50%) scale(0.92);
    background: rgba(130, 80, 230, 0.7);
}

/* 冲击感缩放动画 - 快速放大再回弹 */
@keyframes impactPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 25px rgba(160, 120, 255, 0.5),
            0 0 60px rgba(130, 80, 230, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    }
    15% {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow:
            0 0 45px rgba(160, 120, 255, 0.8),
            0 0 100px rgba(130, 80, 230, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    }
    30% {
        transform: translate(-50%, -50%) scale(0.97);
    }
    45% {
        transform: translate(-50%, -50%) scale(1.08);
        box-shadow:
            0 0 35px rgba(160, 120, 255, 0.6),
            0 0 80px rgba(130, 80, 230, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    }
    60% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 25px rgba(160, 120, 255, 0.5),
            0 0 60px rgba(130, 80, 230, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* 边角装饰 */
.btn-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(255, 255, 255, 0.8);
    border-style: solid;
    z-index: 3;
}
.corner-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.corner-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

/* 按钮内容 */
.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

/* 系统图标 */
.btn-os-icon {
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.apple-icon {
    animation: iconFloat 2s ease-in-out infinite;
}

.android-icon {
    animation: iconFloat 2s ease-in-out infinite 0.3s;
}

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

/* 双行文字 */
.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.btn-text-main {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #fff 0%, #d4c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-text-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 8px rgba(200, 170, 255, 0.5);
}

/* 按钮闪光 */
.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: btnShimmer 2.5s ease-in-out infinite;
    pointer-events: none;
    border-radius: 12px;
}

@keyframes btnShimmer {
    0% { left: -100%; }
    100% { left: 250%; }
}

/* ===== 提示区域 ===== */
.download-tips-section {
    padding: 5px 25px 10px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* ===== 安装提示 ===== */
.download-tips {
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.tip-main {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.tip-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 2;
}

.tip-num {
    color: #8b5cf6;
    font-weight: 700;
    margin-right: 4px;
}

/* ===== 底部 ===== */
.footer {
    padding: 30px 25px 40px;
    text-align: center;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    margin: 0 auto 15px;
}

.footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

/* ===== 动画工具 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 响应式 ===== */
@media (max-width: 375px) {
    .download-btn {
        font-size: 18px;
        padding: 16px 25px;
    }
    .hero-section {
        padding: 15px 10px 10px;
    }
    .ios-guide-card {
        padding: 18px 14px;
    }
    .ios-step-title {
        font-size: 13px;
    }
}

@media (min-width: 481px) {
    .container {
        border-left: 1px solid rgba(139, 92, 246, 0.1);
        border-right: 1px solid rgba(139, 92, 246, 0.1);
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.1);
    }
    body {
        background: #050510;
    }
}

/* ===== 悬浮二维码按钮 ===== */
.qr-float-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatBtnBounce 2s ease-in-out infinite;
}

.qr-float-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

.qr-float-btn svg {
    width: 52px;
    height: 52px;
    padding: 13px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    border-radius: 50%;
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 2;
}

.qr-float-pulse {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.4);
    animation: qrPulseRing 2s ease-out infinite;
    z-index: 1;
}

@keyframes qrPulseRing {
    0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(2); opacity: 0; }
}

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

.qr-float-label {
    font-size: 11px;
    color: #8b5cf6;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* ===== 二维码弹窗遮罩 ===== */
.qr-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qr-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== 二维码弹窗 ===== */
.qr-popup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 1001;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #1a0a2e 0%, #0d0d2b 100%);
    border-radius: 24px 24px 0 0;
    padding: 24px 24px 36px;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow:
        0 -10px 40px rgba(139, 92, 246, 0.2),
        0 -2px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.qr-popup.active {
    transform: translateX(-50%) translateY(0);
}

.qr-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.qr-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.qr-popup-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qr-popup-close:active {
    background: rgba(255, 255, 255, 0.15);
}

.qr-popup-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.qr-container {
    position: relative;
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.25),
        0 0 40px rgba(139, 92, 246, 0.1);
    margin-bottom: 18px;
    overflow: hidden;
}

.qr-code {
    display: inline-block;
    line-height: 0;
}

.qr-code img {
    border-radius: 4px;
}

/* 二维码扫描动画线 */
.qr-scan-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
    animation: qrScan 2.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

@keyframes qrScan {
    0% { top: 10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 10px); opacity: 0; }
}

/* 二维码边角装饰 */
.qr-border-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #8b5cf6;
    border-style: solid;
}

.qr-tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.qr-tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.qr-bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.qr-br { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }

/* ===== 复制链接 ===== */
.copy-link-area {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.link-display {
    flex: 1;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

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

.copy-btn.copy-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ===== iOS 免签安装指南 ===== */
.ios-guide-section {
    padding: 10px 25px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.ios-guide-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 149, 0, 0.06) 0%, rgba(255, 59, 48, 0.04) 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 149, 0, 0.2);
    padding: 24px 20px;
    overflow: hidden;
}

.ios-guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9500, #ff3b30, #ff9500);
    animation: iosGradientMove 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes iosGradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.ios-guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 16px;
}

.ios-guide-badge span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.ios-guide-header {
    margin-bottom: 20px;
}

.ios-guide-flash {
    display: inline-block;
    background: linear-gradient(135deg, #ff9500, #ff3b30);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: flashPulse 2s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 149, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 149, 0, 0.6), 0 0 40px rgba(255, 59, 48, 0.3); }
}

.ios-guide-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.ios-guide-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.ios-guide-desc strong {
    color: #ff9500;
}

/* iOS 步骤 */
.ios-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ios-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.ios-step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 149, 0, 0.2);
}

.ios-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff9500, #ff3b30);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 149, 0, 0.3);
}

.ios-step-content {
    flex: 1;
}

.ios-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.ios-step-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.ios-step-hint strong {
    color: #ff9500;
}

/* iOS 注意事项 */
.ios-guide-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(251, 191, 36, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.15);
}

.ios-guide-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.ios-guide-note span {
    font-size: 12px;
    color: #fbbf24;
    line-height: 1.6;
    font-weight: 500;
}

