/* ========================================
   股票赢家 App 下载页面 - 样式表
   ======================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00D09C;
    --primary-dark: #00B388;
    --secondary-color: #0088FF;
    --secondary-dark: #0066CC;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    position: relative;
    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: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    filter: blur(60px);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.15; }
}

/* 主内容区 */
.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-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--shadow-xl);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 208, 156, 0.3);
}

.logo-text p {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 副标题 */
.subtitle-section {
    text-align: center;
    margin-bottom: 40px;
}

.subtitle-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.subtitle-section .desc {
    font-size: 15px;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* 功能特点 */
.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: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    font-size: 13px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 208, 156, 0.2);
}

.feature-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
}

/* 下载按钮区域 */
.download-section {
    width: 100%;
    margin-bottom: 40px;
}

.download-title {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:active {
    transform: translateY(-1px);
}

.android-btn {
    border-left: 4px solid #00D09C;
}

.ios-btn {
    border-left: 4px solid #0088FF;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.android-btn .btn-icon {
    background: linear-gradient(135deg, #00D09C, #00B388);
}

.ios-btn .btn-icon {
    background: linear-gradient(135deg, #0088FF, #0066CC);
}

.btn-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-sub {
    font-size: 13px;
    color: var(--text-gray);
}

.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-color);
}

/* 二维码区域 */
.qrcode-section {
    width: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-xl);
}

.qrcode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 12px;
}

.qrcode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.qrcode-tab svg {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.qrcode-tab.active {
    background: var(--bg-card);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.qrcode-tab.active svg {
    color: var(--primary-color);
}

.qrcode-tab:hover:not(.active) {
    color: var(--text-dark);
}

.qrcode-content {
    position: relative;
}

.qrcode-box {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.qrcode-box.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qrcode-placeholder {
    width: 180px;
    height: 180px;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.qrcode-placeholder svg {
    width: 100%;
    height: 100%;
}

.qrcode-tip {
    font-size: 13px;
    color: var(--text-gray);
}

/* 底部信息 */
.footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.7;
}

/* ========================================
   响应式设计
   ======================================== */

/* 手机竖屏 */
@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }

    .logo-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        padding: 12px;
    }

    .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 {
        padding: 14px 16px;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }

    .btn-icon svg {
        width: 24px;
        height: 24px;
    }

    .btn-label {
        font-size: 16px;
    }

    .qrcode-section {
        padding: 20px;
    }

    .qrcode-placeholder {
        width: 160px;
        height: 160px;
    }
}

/* 手机横屏 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 20px;
    }

    .logo-section {
        margin-bottom: 16px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        padding: 10px;
    }

    .logo-text h1 {
        font-size: 24px;
    }

    .subtitle-section {
        margin-bottom: 20px;
    }

    .subtitle-section h2 {
        font-size: 18px;
    }

    .features {
        margin-bottom: 24px;
    }

    .download-section {
        margin-bottom: 24px;
    }

    .footer {
        padding-top: 20px;
    }
}

/* 平板 */
@media (min-width: 768px) {
    .container {
        padding: 60px 40px;
    }

    .logo-icon {
        width: 80px;
        height: 80px;
        border-radius: 24px;
        padding: 16px;
    }

    .logo-text h1 {
        font-size: 36px;
    }

    .logo-text p {
        font-size: 16px;
    }

    .subtitle-section h2 {
        font-size: 28px;
    }

    .subtitle-section .desc {
        font-size: 16px;
    }

    .feature-item {
        padding: 12px 20px;
        font-size: 14px;
    }

    .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;
    }

    .qrcode-section {
        padding: 32px;
    }

    .qrcode-placeholder {
        width: 200px;
        height: 200px;
    }
}

/* PC端 */
@media (min-width: 1024px) {
    .container {
        padding: 80px;
    }

    .main-content {
        max-width: 500px;
    }

    .logo-icon {
        width: 88px;
        height: 88px;
        border-radius: 24px;
        padding: 18px;
    }

    .logo-text h1 {
        font-size: 40px;
    }

    .subtitle-section h2 {
        font-size: 32px;
    }

    .download-btn {
        padding: 28px 24px;
    }

    .btn-icon {
        width: 56px;
        height: 56px;
    }

    .btn-icon svg {
        width: 32px;
        height: 32px;
    }

    .btn-label {
        font-size: 20px;
    }

    .qrcode-section {
        padding: 36px;
    }

    .qrcode-placeholder {
        width: 220px;
        height: 220px;
    }
}

/* 暗色模式适配（如果系统偏好是暗色） */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0A0A0F 0%, #0F172A 50%, #0A0A0F 100%);
    }
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
