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

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 视频背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bgc.mp4') center/cover no-repeat;
    z-index: -2;
    opacity: 0.8;
}

/* 视频元素 */
#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.8;
}

/* 页面切换 */
.page {
    display: none !important;
    min-height: 100vh;
    position: relative;
}

.page.active {
    display: block !important;
}

/* 背景效果 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.floating-numbers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-numbers .number {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.3;
    color: #00d4ff;
    animation: float 20s infinite linear;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.floating-numbers .number:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-numbers .number:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.floating-numbers .number:nth-child(3) { top: 40%; left: 5%; animation-delay: 4s; }
.floating-numbers .number:nth-child(4) { top: 60%; right: 10%; animation-delay: 6s; }
.floating-numbers .number:nth-child(5) { top: 80%; left: 20%; animation-delay: 8s; }
.floating-numbers .number:nth-child(6) { top: 30%; left: 80%; animation-delay: 10s; }
.floating-numbers .number:nth-child(7) { top: 70%; right: 30%; animation-delay: 12s; }
.floating-numbers .number:nth-child(8) { top: 50%; left: 70%; animation-delay: 14s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.1; }
}

.chart-patterns {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chart-line {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    opacity: 0.3;
    animation: slide 15s infinite linear;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.chart-line:nth-child(1) { top: 25%; left: -200px; animation-delay: 0s; }
.chart-line:nth-child(2) { top: 50%; left: -200px; animation-delay: 5s; }
.chart-line:nth-child(3) { top: 75%; left: -200px; animation-delay: 10s; }

@keyframes slide {
    0% { left: -200px; }
    100% { left: 100%; }
}

/* 首页样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.logo-icon {
    font-size: 2rem;
    color: #00d4ff;
}

.main-content {
    text-align: center;
    margin-bottom: 4rem;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0.9;
    min-height: 1.5em;
    transition: all 0.3s ease;
}

/* 打字机效果 */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2rem;
    background-color: #00d4ff;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.main-title.typing-up {
    transform: translateY(-20px);
    opacity: 0.7;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.description {
    font-size: 1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.input-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.input-container {
    position: relative;
}

.stock-input {
    width: 400px;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.stock-input::placeholder {
    color: #bbb;
    font-weight: 500;
}

.stock-input:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.18);
}

.stock-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.input-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00d4ff;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.analyze-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.feature-text {
    font-size: 1rem;
    color: white;
}

/* 分析过程页面 */
#analysisPage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.analysis-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.analysis-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    width: 0%;
    transition: width 2s ease;
    border-radius: 4px;
}

.analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.step-item.active {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.step-icon {
    font-size: 1.5rem;
    color: #00d4ff;
    min-width: 30px;
}

.step-text {
    flex: 1;
    color: white;
    font-size: 1rem;
}

.step-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.step-status.completed {
    background: #00ff88;
    color: white;
}

.step-status:not(.completed) {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.3);
}

/* 结果页面 */
#resultPage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    position: relative;
    padding-top: 3vh;
}

.result-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    padding-top: 3vh;
}

.result-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 1.8rem;
    color: #00ff88;
    margin-bottom: 0.8rem;
}

.result-header h2 {
    color: white;
    font-size: 1.3rem;
}

.result-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.report-icon {
    font-size: 3.5rem;
    color: #00ff88;
    margin-bottom: 0.8rem;
}

.result-text p {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.result-text p:first-child span {
    color: #00d4ff;
    font-weight: bold;
}

.result-description {
    font-size: 0.85rem !important;
    color: #ccc !important;
    line-height: 1.4;
}

.free-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.free-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.gift-icon {
    font-size: 1.3rem;
    color: #ff4444;
}

.free-text {
    color: #ff4444;
    font-weight: bold;
    font-size: 1.1rem;
}

.download-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
}

.arrow-icon {
    color: #ff4444;
    font-size: 1.2rem;
}

.whatsapp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.features-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: #999;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-icon {
    font-size: 1rem;
}

.footer-separator {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .input-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stock-input {
        width: 100%;
        max-width: 400px;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        min-width: 250px;
    }
    
    .analysis-modal,
    .result-modal {
        margin: 1rem;
        padding: 2rem;
    }
    
    .features-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
}
