/* ==========================================================================
   原版界面样式表 (基于 y14-2 原版视觉规范)
   ========================================================================== */

*, *::before, *::after {
    -webkit-tap-highlight-color: transparent !important;
}

html, body {
    -webkit-tap-highlight-color: transparent !important;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

button:focus, button:active, button:focus-visible, a:focus, a:active, a:focus-visible {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

:root {
    --primary-gradient: linear-gradient(135deg, #4B0082 0%, #3a7afe 100%);
    --primary-color: #3a7afe;
    --secondary-color: #4B0082;
    --bg-color: #ffffff;
    --bg-light: #f8f9fc;
    --text-main: #1a1a24;
    --text-muted: #666677;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 30px rgba(58, 122, 254, 0.15);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: #111115;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* 页面整体弹性容器 (手机端 1 屏自适应，PC端居中) */
.page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
    background: var(--primary-gradient);
}

/* ==========================================================================
   顶部导航栏 (原版风格)
   ========================================================================== */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--white);
}

/* ==========================================================================
   Hero 主视觉区域 (纯文字·原版渐变背景·简单整洁)
   ========================================================================== */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    text-align: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 原版按钮样式 */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ==========================================================================
   PC端屏蔽下载按钮与文案，仅移动终端(安卓/苹果/iPad)展示
   ========================================================================== */
html.not-mobile-client .mobile-only-download,
html.not-mobile-client .pc-hide-download,
.pc-hide-download {
    display: none !important;
}

@media (min-width: 992px) {
    .mobile-only-download,
    .pc-hide-download {
        display: none !important;
    }
}

html.is-mobile-client .mobile-only-download {
    display: flex !important;
}

/* ==========================================================================
   页脚 Footer (原版暗色风格)
   ========================================================================== */
.footer {
    background: #111115;
    color: #a0a0b0;
    padding: 18px 0;
    flex-shrink: 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    color: #a0a0b0;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: #71717a;
}

/* ==========================================================================
   原版模态框 Modal (二级下载弹窗与条款协议)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

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

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    max-height: 80vh;
    border-radius: 16px;
    padding: 28px 24px;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    color: var(--text-main);
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.dl-modal-logo {
    text-align: center;
    margin-bottom: 12px;
}

.dl-modal-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.dl-modal-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 18px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.dl-modal-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(58, 122, 254, 0.3);
    transition: transform 0.15s ease;
}

.modal-btn:active {
    transform: scale(0.98);
}

.modal-body h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
    color: var(--text-main);
}

.modal-body p, .modal-body li {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   移动端响应式 (严格手机 1 屏适配)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 0 10px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 14px;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
        letter-spacing: 0.8px;
        padding: 0 10px;
    }

    .btn-pill {
        padding: 12px 32px;
        font-size: 0.95rem;
    }

    .footer {
        padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .modal-content {
        padding: 24px 20px;
    }
}
