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

:root {
    --primary-color: #2D6AF6;
    --primary-dark: #1E4FD0;
    --primary-light: #5B8DEF;
    --secondary-color: #58A6FF;
    --danger-color: #F85149;
    --text-primary: #E6EDF3;
    --text-secondary: #B1BAC4;
    --text-light: #7D8590;
    --bg-primary: #0A0E14;
    --bg-secondary: #121821;
    --bg-tertiary: #1A222E;
    --bg-light: #1A222E;
    --bg-white: #121821;
    --border-color: #243042;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow: 0 0 24px rgba(45, 106, 246, 0.45);
    --gradient-primary: linear-gradient(135deg, #2D6AF6 0%, #1E4FD0 100%);
    --gradient-secondary: linear-gradient(135deg, #5B8DEF 0%, #2D6AF6 100%);
    --gradient-hero: linear-gradient(135deg, #1B3B7A 0%, #2D6AF6 55%, #1E4FD0 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(1200px 600px at 50% -8%, rgba(45, 106, 246, 0.20), transparent 60%),
        radial-gradient(900px 500px at 100% 8%, rgba(88, 166, 255, 0.10), transparent 55%),
        radial-gradient(700px 500px at 0% 20%, rgba(45, 106, 246, 0.08), transparent 55%),
        var(--bg-primary);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 语言切换按钮 */
.language-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    max-width: 320px;
    justify-content: center;
    margin: 0 auto 30px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(45, 106, 246, 0.15);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* 主容器 */
.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

/* 头部区域 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 48px 24px 40px;
    border-radius: 28px;
    background: var(--gradient-hero);
    box-shadow: 0 20px 50px rgba(45, 106, 246, 0.35);
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s ease;
}

.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.header > * {
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.logo-placeholder {
    font-size: 48px;
    animation: bounce 2s infinite;
}

.app-name {
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* APP信息区域 */
.app-info {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.app-icon-wrapper {
    margin-bottom: 24px;
}

.app-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 36px rgba(45, 106, 246, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: iconGlow 2.4s ease-in-out infinite;
}

.icon-text {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.app-title {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.version {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 下载按钮区域 */
.download-section {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.4s both;
    border: 1px solid var(--border-color);
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ios-btn:hover {
    border-color: #2D6AF6;
    background: linear-gradient(135deg, #1C2128 0%, #0D1117 100%);
}

.ios-btn:hover .btn-icon,
.ios-btn:hover .btn-content {
    color: white;
}

.android-btn:hover {
    border-color: #2D6AF6;
    background: linear-gradient(135deg, #1C2128 0%, #0D1117 100%);
}

.android-btn:hover .btn-icon,
.android-btn:hover .btn-content {
    color: white;
}

.btn-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s ease;
}

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

.btn-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
}

.device-hint {
    text-align: center;
    padding: 16px;
    background: rgba(45, 106, 246, 0.08);
    border-radius: 12px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid rgba(45, 106, 246, 0.15);
}

/* 功能特点区域 */
.features {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.6s both;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-card {
    text-align: center;
    padding: 16px 14px;
    border-radius: 14px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: rgba(45, 106, 246, 0.08);
    border: 1px solid rgba(45, 106, 246, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* 常用工具下载区 */
.tools-section {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 1.1s both;
    border: 1px solid var(--border-color);
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.tool-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(45, 106, 246, 0.2);
    transform: translateX(4px);
    background: rgba(45, 106, 246, 0.05);
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.tool-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.tool-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.tool-arrow {
    color: var(--text-light);
    flex-shrink: 0;
    transition: color 0.3s;
}

.tool-item:hover .tool-arrow {
    color: var(--primary-color);
}

/* 底部信息 */
.footer {
    text-align: center;
    padding: 32px 0;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 0.8s ease 1.2s both;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.5);
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* 动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes iconGlow {
    0%, 100% {
        box-shadow: 0 12px 36px rgba(45, 106, 246, 0.45);
    }
    50% {
        box-shadow: 0 12px 50px rgba(45, 106, 246, 0.85);
    }
}

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

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

    .tagline {
        font-size: 16px;
    }

    .app-title {
        font-size: 24px;
    }

    .download-section,
    .features,
    .tools-section {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }

    .language-switch {
        max-width: 260px;
        padding: 3px;
        margin-bottom: 20px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-divider {
        display: none;
    }
}

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

    .logo-placeholder {
        font-size: 36px;
    }

    .app-icon {
        width: 100px;
        height: 100px;
    }

    .icon-text {
        font-size: 28px;
    }

    .download-btn {
        padding: 16px 20px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .btn-label {
        font-size: 16px;
    }
}

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

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

.ios-install-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.ios-install-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-install-close:hover {
    background: rgba(45, 106, 246, 0.2);
    transform: rotate(90deg);
}

.ios-install-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    padding-right: 30px;
}

.ios-install-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.ios-install-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ios-install-step:hover {
    background: rgba(45, 106, 246, 0.1);
    transform: translateX(4px);
}

.ios-step-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.ios-install-step p {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    padding-top: 2px;
}

.ios-install-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ios-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 106, 246, 0.4);
}

.ios-install-btn:active {
    transform: translateY(0);
}

/* Android安装引导弹窗 */
.android-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.android-install-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

.android-install-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.android-install-close:hover {
    background: rgba(45, 106, 246, 0.2);
    transform: rotate(90deg);
}

.android-install-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    padding-right: 30px;
}

.android-notice-box {
    background: rgba(45, 106, 246, 0.08);
    border-left: 4px solid #2D6AF6;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.android-notice-title {
    font-size: 16px;
    font-weight: 600;
    color: #2D6AF6;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.android-notice-text {
    font-size: 14px;
    line-height: 1.6;
    color: #5B8DEF;
    margin: 0;
}

.android-install-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.android-step-item {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.android-step-item:hover {
    background: rgba(45, 106, 246, 0.1);
    transform: translateX(4px);
}

.android-install-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.android-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 106, 246, 0.4);
}

.android-install-btn:active {
    transform: translateY(0);
}

/* 邀请码提示 */
.invite-code-hint {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.invite-code-hint.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.invite-code-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 90vw;
    border: 2px solid var(--primary-color);
}

.invite-code-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

.invite-code-text {
    flex: 1;
}

.invite-code-main {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.invite-code-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .invite-code-hint {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: translateY(-100px);
    }
    
    .invite-code-hint.show {
        transform: translateY(0);
    }
    
    .invite-code-content {
        padding: 12px 16px;
        min-width: auto;
    }
    
    .invite-code-icon {
        font-size: 28px;
    }
    
    .invite-code-main {
        font-size: 14px;
    }
    
    .invite-code-sub {
        font-size: 12px;
    }
}

/* 卡片科技质感增强 */
.download-section,
.features,
.tools-section {
    background: linear-gradient(180deg, rgba(26, 34, 46, 0.92) 0%, rgba(18, 24, 33, 0.92) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.download-section::before,
.features::before,
.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(45, 106, 246, 0.85), transparent);
}

.download-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 28px rgba(45, 106, 246, 0.35);
}

/* 打印样式 */
@media print {
    body {
        background: #0D1117;
    }

    .language-switch,
    .download-buttons,
    .ios-install-modal,
    .android-install-modal,
    .invite-code-hint,
    .floating-contact {
        display: none;
    }
}

/* 悬浮联系客服按钮 */
.floating-contact {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #2D6AF6 0%, #1E4FD0 100%);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(45, 106, 246, 0.5);
    text-decoration: none;
    cursor: pointer;
    animation: floatingBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both, floatingPulse 2s ease-in-out 0.6s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(45, 106, 246, 0.7);
    animation: floatingBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.floating-contact-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.floating-contact-text {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

@keyframes floatingBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatingPulse {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(45, 106, 246, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 36px rgba(45, 106, 246, 0.8);
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .floating-contact {
        right: 12px;
        bottom: 60px;
        padding: 14px 22px;
    }

    .floating-contact-icon {
        width: 26px;
        height: 26px;
    }

    .floating-contact-text {
        font-size: 15px;
    }
}

/* ==========================================================
   全新布局 v2 — 交易所科技风改版
   ========================================================== */
.container {
    max-width: 1080px;
    padding: 16px 20px 60px;
}

/* 顶部导航 */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 28px;
    border-radius: 18px;
    background: rgba(18, 24, 33, 0.7);
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 12px;
    z-index: 100;
    animation: fadeInDown 0.7s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 6px 18px rgba(45, 106, 246, 0.5);
    flex-shrink: 0;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 语言切换（置于导航内，覆盖旧居中样式） */
.language-switch {
    margin: 0;
    max-width: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.lang-btn {
    border: 1px solid transparent;
}

.lang-btn.active {
    box-shadow: 0 4px 14px rgba(45, 106, 246, 0.45);
}

/* HERO 主视觉 */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 32px;
    padding: 24px 0 48px;
}

.hero-content {
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(45, 106, 246, 0.12);
    border: 1px solid rgba(45, 106, 246, 0.3);
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(45, 106, 246, 0.7);
    animation: pulseDot 1.8s infinite;
}

.hero-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(120deg, #ffffff 0%, #9DC0FF 60%, #2D6AF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 460px;
}

/* 下载按钮（覆盖旧网格，改左对齐弹性） */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.download-btn {
    flex: 1 1 220px;
    border-radius: 16px;
    padding: 16px 22px;
}

.ios-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.android-btn {
    background: var(--gradient-primary);
    border: 1px solid transparent;
    box-shadow: 0 10px 28px rgba(45, 106, 246, 0.45);
}

.android-btn .btn-label,
.android-btn .btn-subtitle,
.android-btn .btn-icon {
    color: #fff;
}

.android-btn .btn-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.android-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 14px 36px rgba(45, 106, 246, 0.6);
}

.btn-icon {
    width: 40px;
    height: 40px;
}

/* 设备提示（hero 内左对齐胶囊） */
.device-hint {
    display: inline-block;
    margin-bottom: 28px;
}

/* 信任标 */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-stat-ic {
    font-size: 16px;
}

.hero-stat-v {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* 手机模型 */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.phone {
    position: relative;
    width: 260px;
    height: 520px;
    border-radius: 42px;
    padding: 14px;
    background: linear-gradient(160deg, #1b2430, #0c1118);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.03);
    animation: phoneFloat 5s ease-in-out infinite;
}

.phone::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #05080d;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.phone-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(closest-side, rgba(45, 106, 246, 0.45), transparent 70%);
    filter: blur(20px);
    z-index: 0;
}

.phone-screen {
    position: relative;
    z-index: 1;
    height: 100%;
    border-radius: 30px;
    background:
        radial-gradient(420px 260px at 50% -10%, rgba(45, 106, 246, 0.35), transparent 60%),
        linear-gradient(180deg, #0e1521, #0a0e14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 64px 22px 30px;
    overflow: hidden;
}

.phone-screen .app-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    margin-bottom: 18px;
}

.phone-screen .icon-text {
    font-size: 24px;
}

.phone-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.phone-tag {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 6px;
    margin-bottom: 26px;
}

.phone-rows {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pr-ic {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.pr-mid {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.pr-mid b {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.pr-mid i {
    font-size: 10px;
    color: var(--text-secondary);
    font-style: normal;
}

.pr-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.pr-right b {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.pr-right i {
    font-size: 10px;
    font-style: normal;
}

.pr-right .up { color: #16c784; }
.pr-right .down { color: #ea3943; }

.phone-rows .legacy-shimmer {
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.phone-rows .legacy-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(45, 106, 246, 0.18), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.4s infinite;
}


/* 区块标题改左对齐 + 侧边强调 */
.section-title {
    text-align: left;
    padding-bottom: 0;
    padding-left: 16px;
    margin-bottom: 28px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.2;
}

.section-title::after {
    display: none;
}

/* 功能卡：横向一行布局 */
.feature-card {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
}

.feature-card:hover {
    transform: translateX(4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    background: rgba(45, 106, 246, 0.14);
    border: 1px solid rgba(45, 106, 246, 0.25);
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.features-grid .feature-title {
    grid-column: 2;
    margin-bottom: 2px;
}

.features-grid .feature-desc {
    grid-column: 2;
}

/* 工具项 hover 强化 */
.tool-item {
    background: rgba(255, 255, 255, 0.03);
}

/* 底部 */
.footer {
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-link,
.footer-divider,
.copyright {
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--primary-color);
}

/* 动画 */
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(45, 106, 246, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(45, 106, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 106, 246, 0); }
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

/* 响应式 */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
        padding-bottom: 24px;
    }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .download-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; margin-bottom: 24px; }
    .hero-title { font-size: 42px; }
}

@media (max-width: 560px) {
    .topbar {
        flex-direction: column;
        gap: 12px;
        position: static;
    }
    .hero-title { font-size: 34px; }
    .hero-desc { font-size: 16px; }
    .download-btn { flex: 1 1 100%; }
    .phone { width: 220px; height: 440px; }
    .phone-screen { padding: 56px 18px 24px; }
}
