
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: #000;
}

/* 视频背景 */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 50, 0.6);
    z-index: 0;
}

/* 背景动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite, twinkle 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Logo 区域优化对齐 */
.logo-section {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}

/* Logo图片对齐优化 */
.logo img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 标题区域 */
.title-section {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.8), 0 0 60px rgba(79, 172, 254, 0.6);
    background: linear-gradient(45deg, #4facfe, #00f2fe, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 30px rgba(79, 172, 254, 0.8), 0 0 60px rgba(79, 172, 254, 0.6); }
    to { text-shadow: 0 0 40px rgba(0, 242, 254, 0.9), 0 0 80px rgba(0, 242, 254, 0.7); }
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 输入区域 */
.input-section {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.input-container {
    position: relative;
    max-width: 450px;
    margin: 0 auto 40px;
}

.stock-input {
    width: 100%;
    padding: 20px 30px;
    font-size: 1.2rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    border: 2px solid rgba(79, 172, 254, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 50px rgba(79, 172, 254, 0.2);
    transition: all 0.4s ease;
    text-align: center;
    color: #333;
    letter-spacing: 0.5px;
}

.stock-input:focus {
    outline: none;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 70px rgba(79, 172, 254, 0.4);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(79, 172, 254, 0.8);
}

.stock-input::placeholder {
    color: #666;
    font-weight: 500;
}

/* 分析按钮优化 */
.analyze-btn {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analyze-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.6);
}

.analyze-btn.loading {
    background: linear-gradient(45deg, #666, #888);
    pointer-events: none;
    opacity: 0.7;
}

/* 特色功能区域 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 80px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Kakao按钮图片文本对齐优化 */
.kakao-btn {
    background: linear-gradient(45deg, #FEE500, #FFD700);
    color: #3C1E1E;
    border: none;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(254, 229, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    vertical-align: middle;
}

/* Kakao按钮内图片对齐 */
.kakao-btn img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    margin: 0;
}

.kakao-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(254, 229, 0, 0.5);
}

/* 跳动按钮动画 */
.bounce-btn {
    animation: bounceButton 1.5s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes bounceButton {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.05); }
    50% { transform: translateY(-4px) scale(1.02); }
    75% { transform: translateY(-2px) scale(1.01); }
}

.bounce-btn:hover {
    animation: bounceHover 0.6s ease-in-out infinite;
}

@keyframes bounceHover {
    0%, 100% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-8px) scale(1.08); }
}

/* 加载过程样式 */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-title {
    font-family: 'Orbitron', monospace;
    color: #4facfe;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.loading-stages {
    margin: 30px 0;
    text-align: left;
}

.loading-stage {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
    opacity: 0.3;
    transition: all 0.5s ease;
    color: white;
}

.loading-stage.active {
    opacity: 1;
    color: #4facfe;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.8);
}

.loading-stage.completed {
    opacity: 0.8;
    color: #00f2fe;
}

.stage-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.loading-stage.active .stage-icon {
    border-color: #4facfe;
    background: #4facfe;
    animation: pulse-icon 1s ease-in-out infinite;
}

.loading-stage.completed .stage-icon {
    border-color: #00f2fe;
    background: #00f2fe;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(79, 172, 254, 0); }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.8);
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #4facfe;
    border-right: 4px solid #00f2fe;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 30px auto;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.result-content {
    color: white;
}

.result-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #4facfe;
}

.success-animation {
    margin: 20px auto 30px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    font-size: 4rem;
    animation: successBounce 1s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.main-message {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin: 8px 0;
}

.report-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.info-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.free-report-notice {
    background: linear-gradient(45deg, rgba(254, 229, 0, 0.2), rgba(255, 215, 0, 0.2));
    border: 2px solid rgba(254, 229, 0, 0.5);
    border-radius: 15px;
    padding: 15px;
    margin: 25px 0;
    text-align: center;
}

.free-report-notice p {
    margin: 0;
    font-size: 1.1rem;
    color: #FEE500;
}

.close-btn {
    color: rgba(255, 255, 255, 0.7);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

/* 动画效果 */
@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); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo {
        width: 150px;
        height: 150px;
    }

    .logo img {
        width: 150px !important;
        height: 150px !important;
    }

    .kakao-btn {
        padding: 16px 25px;
        font-size: 1.1rem;
        gap: 6px;
    }

    .kakao-btn img {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .logo img {
        width: 120px !important;
        height: 120px !important;
    }

    .kakao-btn img {
        width: 18px !important;
        height: 18px !important;
    }
}
