/* ========================================
   创奇迹CM App 下载页面 - 黑金尊享版 样式表
   ======================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #D4A74A;
    --primary-dark-gold: #B88A35;
    --accent-gold: #EDC776;
    --bg-deep-black: #050814;
    --bg-navy-black: #0A1128;
    --bg-card: rgba(15, 27, 61, 0.6);
    --text-white: #FFFFFF;
    --text-light: #EAEAEA;
    --text-gray: #9DA5B4;
    --border-gold: rgba(212, 167, 74, 0.4);
    --border-dim: rgba(212, 167, 74, 0.15);
    
    --shadow-gold: 0 4px 20px rgba(212, 167, 74, 0.2);
    --shadow-gold-heavy: 0 8px 30px rgba(212, 167, 74, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, var(--bg-deep-black) 0%, var(--bg-navy-black) 100%);
    min-height: 100vh;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content:''; 
    position:absolute; 
    inset:0; 
    background-image:linear-gradient(rgba(212,167,74,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(212,167,74,.03) 1px,transparent 1px); 
    background-size:40px 40px; 
    pointer-events:none;
    z-index: 0;
}

/* 容器 */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

/* 背景光晕装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -150px;
    animation: float 10s ease-in-out infinite reverse;
}

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

/* 主内容区 */
.main-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo区域 */
.logo-section {
    margin-bottom: 32px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(212, 167, 74, 0.3);
}

.logo-text p {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* 副标题 */
.subtitle-section {
    text-align: center;
    margin-bottom: 40px;
}

.subtitle-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.subtitle-section .desc {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 2px;
}

/* 功能特点 */
.features {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dim);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 13px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold), inset 0 0 10px rgba(0,0,0,0.5);
}

.feature-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-gold);
}

/* 下载按钮区域 */
.download-section {
    width: 100%;
    margin-bottom: 20px;
}

.download-title {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

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

/* 安装指南区域 */
.install-guide {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dim);
    border-radius: 20px;
    padding: 24px;
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

.guide-title {
    font-size: 16px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--primary-gold);
    font-weight: bold;
    letter-spacing: 2px;
}

.step-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-dark-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #000;
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text-white);
}

.step-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.step-desc code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-gold);
}

.gold-highlight {
    color: var(--primary-gold);
    font-weight: 500;
}

/* 底部信息 */
.footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }

    .logo-text h1 {
        font-size: 28px;
    }

    .subtitle-section h2 {
        font-size: 20px;
    }

    .features {
        gap: 8px;
    }

    .feature-item {
        padding: 8px 12px;
        font-size: 12px;
    }
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-dim);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(212, 167, 74, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-heavy);
    border-color: var(--border-gold);
}

.download-btn:hover::before {
    opacity: 1;
}

.android-btn {
    background: linear-gradient(135deg, #0F172A, #1A2642);
    border: 2px solid var(--primary-gold);
}

.ios-btn {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.05);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bg-deep-black), var(--bg-navy-black));
    border: 1px solid var(--border-dim);
}

.android-btn .btn-icon {
    border-color: var(--primary-gold);
}

.btn-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-gold);
}

.ios-btn .btn-icon svg {
    color: var(--text-gray);
}

.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

.ios-btn .btn-label {
    color: var(--text-gray);
}

.btn-sub {
    font-size: 13px;
    color: var(--primary-gold);
}

.ios-btn .btn-sub {
    color: var(--text-gray);
    opacity: 0.7;
}

.btn-arrow {
    width: 24px;
    height: 24px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.download-btn:hover .btn-arrow {
    transform: translateX(4px);
    color: var(--primary-gold);
}

@media (min-width: 768px) {
    .download-buttons {
        flex-direction: row;
        gap: 20px;
    }
    .download-btn {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .btn-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    .btn-text {
        margin-bottom: 8px;
    }
    .btn-arrow {
        display: none;
    }
}
@media (min-width: 1024px) {
    .download-btn { padding: 28px 24px; }
    .btn-icon { width: 56px; height: 56px; }
    .btn-icon svg { width: 32px; height: 32px; }
    .btn-label { font-size: 20px; }
}


/* iOS 安装弹窗 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-navy-black), var(--bg-deep-black));
    border: 1px solid var(--primary-gold);
    border-radius: 24px;
    padding: 30px 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-gold-heavy), inset 0 0 20px rgba(212, 167, 74, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(212, 167, 74, 0.2);
    color: var(--primary-gold);
}

.modal-title {
    font-size: 18px;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.modal-step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}
.modal-step:last-child { margin-bottom: 0; }

.m-step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: #000;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.m-step-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.copy-box {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px dashed var(--primary-gold);
    color: var(--primary-gold);
    font-family: monospace;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    user-select: all;
    -webkit-user-select: all;
}

