
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* 背景视频 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* 头部区域 */
.header {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.ai-highlight {
    color: #4CAF50;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.ai-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { 
        box-shadow: 0 0 5px #4CAF50;
        opacity: 0.7;
    }
    to { 
        box-shadow: 0 0 20px #4CAF50, 0 0 30px #4CAF50;
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-50%) scale(1.2);
        opacity: 0.6;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    position: relative;
}

.subtitle::before {
    content: '🤖';
    margin-right: 8px;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 诊股表单区域 */
.diagnosis-container {
    max-width: 500px;
    margin: 0 auto 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: containerFloat 6s ease-in-out infinite, slideInUp 1s ease 0.8s both;
}

.diagnosis-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(76, 175, 80, 0.3), 
        transparent, 
        rgba(33, 150, 243, 0.3), 
        transparent);
    border-radius: 15px;
    z-index: -1;
    animation: borderFlow 4s linear infinite;
}

@keyframes containerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes borderFlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
    position: relative;
}

.form-label::before {
    content: '📊';
    margin-right: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
}

.form-input:focus + .input-effect {
    opacity: 1;
    transform: scale(1);
}

.input-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.diagnosis-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.diagnosis-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.diagnosis-btn:hover::before {
    left: 100%;
}

.diagnosis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.diagnosis-btn:active {
    transform: translateY(0px);
    animation: buttonPulse 0.3s ease;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* 弹窗样式 */
.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 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.95);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #cccccc;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ffffff;
}

/* 诊断过程动画 */
.diagnosis-process {
    margin: 30px 0;
}

.process-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}

.process-steps {
    list-style: none;
}

.process-step {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.process-step.active {
    color: #4CAF50;
    font-weight: 600;
}

.process-step.completed {
    color: #66BB6A;
}

/* 结果显示 */
.result-container {
    text-align: center;
    padding: 30px 0;
}

.result-score {
    font-size: 4rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.result-text {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.6;
}

.line-btn {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #00C851, #00A041);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    animation: bounce 2s infinite;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

.line-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 200, 81, 0.5);
    animation: none;
}

.line-btn::before {
    content: '📱';
    margin-right: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .diagnosis-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 股票数据流动背景动画 */
.stock-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.stock-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    animation: stockFlow 8s linear infinite;
}

.stock-line:nth-child(2) {
    top: 20%;
    animation-delay: -2s;
    background: linear-gradient(90deg, transparent, #2196F3, transparent);
}

.stock-line:nth-child(3) {
    top: 40%;
    animation-delay: -4s;
    background: linear-gradient(90deg, transparent, #FF9800, transparent);
}

.stock-line:nth-child(4) {
    top: 60%;
    animation-delay: -6s;
    background: linear-gradient(90deg, transparent, #E91E63, transparent);
}

.stock-line:nth-child(5) {
    top: 80%;
    animation-delay: -1s;
    background: linear-gradient(90deg, transparent, #9C27B0, transparent);
}

@keyframes stockFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.data-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-point {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #4CAF50;
    border-radius: 50%;
    animation: dataFloat 6s linear infinite;
}

.data-point:nth-child(even) {
    background: #2196F3;
    animation-duration: 8s;
}

.data-point:nth-child(3n) {
    background: #FF9800;
    animation-duration: 7s;
}

@keyframes dataFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* 浮动装饰元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatIcon 8s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.floating-icon:nth-child(3) {
    top: 60%;
    left: 5%;
    animation-delay: -4s;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: -6s;
}

.floating-icon:nth-child(5) {
    bottom: 10%;
    left: 20%;
    animation-delay: -1s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
        opacity: 0.25;
    }
}

/* 鼠标跟随效果 */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.3), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
}

/* 成功动画 */
.success-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
}

.success-animation.show {
    animation: successPop 1s ease;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 页面加载进度条 */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A, #4CAF50);
    z-index: 10001;
    transition: width 0.3s ease;
}

.loading-bar.complete {
    width: 100%;
}
