/* ============================================
   现代化AI量化主题样式 - 科技感炫酷设计
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 配色方案 - AI科技风 */
    --primary-color: #00d4ff;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --bg-dark: #0a0e27;
    --bg-darker: #050814;
    --bg-card: rgba(15, 23, 42, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(0, 212, 255, 0.2);
    --glow-color: rgba(0, 212, 255, 0.5);
    
    /* 动画时间 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* 阴影 */
    --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 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--glow-color);
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   背景效果
   ============================================ */

/* 粒子画布 */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* 网格背景 */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 引导图片样式 */
.browser-guide {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    background-color: var(--bg-darker);
}

.browser-guide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   电脑端扫码（当前页 URL）
   ============================================ */

.desktop-qr-panel {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 3rem;
    box-sizing: border-box;
}

.desktop-qr-inner {
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 2rem 1.5rem 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(12px);
}

.desktop-qr-hint {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
}

.desktop-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.desktop-qr-code img {
    display: block;
    width: 220px;
    height: 220px;
}

.desktop-qr-url {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.45;
}

/* 移动端强制展示下载页，隐藏扫码（需 body.layout-mobile，避免微信引导页被误显示） */
@media screen and (max-width: 768px) {
    .desktop-qr-panel {
        display: none !important;
    }

    body.layout-mobile #mainContent {
        display: block !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .desktop-qr-panel {
        display: none !important;
    }

    body.layout-mobile #mainContent {
        display: block !important;
    }
}

/* ============================================
   主容器
   ============================================ */

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 250px;
}

@media screen and (max-width: 768px) {
    html {
        font-size: 50px;
    }
    
    .container {
        padding: 0.8rem 0.4rem;
        padding-top: 2.5rem;
        min-height: 100vh;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .header-decoration {
        height: 100px;
    }
    
    .pulse-ring {
        top: 20px;
        width: 60px;
        height: 60px;
    }
    
    .data-flow {
        top: 30px;
    }
}

/* ============================================
   顶部装饰 - AI量化科技风
   ============================================ */

.header-decoration {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200px;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

#decorationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* 网格装饰 */
.decoration-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* 科技光球 */
.tech-orb {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color);
    animation: orbFloat 6s ease-in-out infinite;
}

.orb-1 {
    top: 40px;
    left: 20%;
    animation-delay: 0s;
}

.orb-2 {
    top: 80px;
    left: 50%;
    animation-delay: 2s;
}

.orb-3 {
    top: 60px;
    right: 20%;
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* 代码线条效果 */
.code-lines {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
}

.code-line {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    margin-bottom: 8px;
    opacity: 0.5;
    animation: codeFlow 3s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 100%;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 70%;
    margin-left: auto;
    animation-delay: 1s;
}

.code-line:nth-child(3) {
    width: 85%;
    animation-delay: 2s;
}

@keyframes codeFlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-10px);
    }
    50% {
        opacity: 0.8;
        transform: translateX(10px);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .header-decoration {
        height: 100px;
    }
    
    .orb-1 {
        top: 20px;
        left: 15%;
        width: 6px;
        height: 6px;
    }
    
    .orb-2 {
        top: 40px;
        left: 50%;
        width: 6px;
        height: 6px;
    }
    
    .orb-3 {
        top: 30px;
        right: 15%;
        width: 6px;
        height: 6px;
    }
    
    .code-lines {
        top: 60px;
        width: 90%;
    }
    
    .code-line {
        height: 1px;
        margin-bottom: 4px;
    }
    
    .decoration-grid {
        background-size: 20px 20px;
    }
}

/* ============================================
   APP卡片
   ============================================ */

.app-card {
    position: relative;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    animation: cardFadeIn 0.8s ease-out;
    z-index: 1;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   APP头部信息
   ============================================ */

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.app-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .app-icon-wrapper {
        width: 2.4rem;
        height: 2.4rem;
    }
}

.icon-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--glow-color);
    border-radius: 28px;
    filter: blur(20px);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.app-icon {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: contain;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.app-icon[src$=".svg"] {
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
}

.ai-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.5);
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .app-title {
        font-size: 0.56rem;
        gap: 0.24rem;
        margin-bottom: 0.16rem;
    }
}

.title-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-badge {
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .version-badge {
        font-size: 0.28rem;
        padding: 0.08rem 0.2rem;
        border-radius: 0.24rem;
    }
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
}

@media screen and (max-width: 768px) {
    .app-subtitle {
        font-size: 0.32rem;
        margin-bottom: 0.24rem;
    }
}

.rank-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .rank-tag {
        font-size: 0.28rem;
        gap: 0.12rem;
    }
}

.rank-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media screen and (max-width: 768px) {
    .rank-icon {
        width: 0.32rem;
        height: 0.32rem;
    }
}

.rank-number {
    color: var(--text-primary);
    font-weight: 700;
}

/* ============================================
   统计信息网格
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

@media screen and (max-width: 768px) {
    .stats-grid {
        gap: 0.32rem;
        margin-bottom: 0.64rem;
        padding: 0.48rem;
        border-radius: 0.32rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
    .stat-value {
        font-size: 0.48rem;
        gap: 0.08rem;
        margin-bottom: 0.16rem;
    }
}

.star-icon {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .star-icon {
        width: 0.4rem;
        height: 0.4rem;
    }
}

.stat-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

@media screen and (max-width: 768px) {
    .stat-label {
        font-size: 0.28rem;
        margin-bottom: 0.08rem;
    }
}

.stat-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

@media screen and (max-width: 768px) {
    .stat-desc {
        font-size: 0.24rem;
    }
}

/* 数字跳动动画 */
.counter {
    display: inline-block;
}

/* ============================================
   下载按钮区域
   ============================================ */

.download-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

@media screen and (max-width: 768px) {
    .download-section {
        gap: 0.32rem;
        margin-bottom: 0.48rem;
    }
}

.download-btn {
    flex: 1;
    position: relative;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 212, 255, 0.4);
}

@media screen and (max-width: 768px) {
    .download-btn {
        padding: 0.36rem 0.64rem;
        border-radius: 0.32rem;
        font-size: 0.36rem;
    }
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 212, 255, 0.6);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn.downloading {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md), 0 0 20px rgba(0, 212, 255, 0.4);
    }
    50% {
        transform: scale(0.98);
        box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 212, 255, 0.8);
    }
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

@media screen and (max-width: 768px) {
    .download-icon {
        width: 0.4rem;
        height: 0.4rem;
    }
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-btn:hover .btn-ripple {
    width: 300px;
    height: 300px;
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.help-btn {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .help-btn {
        padding: 0.2rem 0.4rem;
        border-radius: 0.24rem;
        font-size: 0.28rem;
    }
}

.help-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

/* ============================================
   特性标签
   ============================================ */

.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .features-tags {
        gap: 0.16rem;
    }
}

.feature-tag {
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-normal);
}

@media screen and (max-width: 768px) {
    .feature-tag {
        padding: 0.16rem 0.32rem;
        border-radius: 0.4rem;
        font-size: 0.24rem;
    }
}

.feature-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   数据可视化装饰
   ============================================ */

.data-visualization {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    opacity: 0.3;
    pointer-events: none;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--secondary-color) 50%,
        var(--primary-color) 80%,
        transparent 100%);
    animation: chartMove 4s ease-in-out infinite;
}

.chart-line:nth-child(1) {
    animation-delay: 0s;
}

.chart-line:nth-child(2) {
    bottom: 30px;
    animation-delay: 1s;
}

.chart-line:nth-child(3) {
    bottom: 60px;
    animation-delay: 2s;
}

@keyframes chartMove {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(0); opacity: 1; }
}

/* ============================================
   iOS安装引导弹窗
   ============================================ */

.install-guide-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.guide-content {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .guide-content {
        padding: 0.8rem 0.6rem;
        border-radius: 0.48rem;
        max-width: 90%;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

@media screen and (max-width: 768px) {
    .close-btn {
        top: 0.4rem;
        right: 0.4rem;
        width: 0.72rem;
        height: 0.72rem;
    }
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.close-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

@media screen and (max-width: 768px) {
    .close-btn svg {
        width: 0.4rem;
        height: 0.4rem;
    }
}

.guide-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .guide-title {
        font-size: 0.48rem;
        gap: 0.24rem;
        margin-bottom: 0.64rem;
    }
}

.title-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

@media screen and (max-width: 768px) {
    .title-icon {
        width: 0.56rem;
        height: 0.56rem;
    }
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media screen and (max-width: 768px) {
    .install-steps {
        gap: 0.4rem;
    }
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

@media screen and (max-width: 768px) {
    .step {
        gap: 0.32rem;
        padding: 0.32rem;
        border-radius: 0.24rem;
    }
}

.step:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 0 10px var(--glow-color);
}

@media screen and (max-width: 768px) {
    .step-number {
        width: 0.72rem;
        height: 0.72rem;
        font-size: 0.36rem;
    }
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-text {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
    .step-text {
        font-size: 0.32rem;
        margin-bottom: 0.16rem;
    }
}

.step-line {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
    animation: lineGrow 2s ease-out infinite;
}

@keyframes lineGrow {
    0% { width: 0%; }
    100% { width: 100%; }
}

.step:last-child .step-line {
    display: none;
}

/* ============================================
   响应式设计优化
   ============================================ */

/* 桌面端居中容器 */
@media screen and (min-width: 769px) {
    .container {
        max-width: 600px;
        margin: 0 auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        padding-top: 250px;
    }
    
    .app-card {
        box-shadow: var(--shadow-lg), var(--shadow-glow);
    }
}

/* 平板设备 */
@media screen and (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 40px;
    }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
    html {
        font-size: 45px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
