
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(-45deg, #000000, #1a0000, #000066, #2d0000);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 背景动画效果 */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 3D股票图表背景 */
.chart-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(20deg) rotateY(-15deg);
    width: 600px;
    height: 300px;
    perspective: 1000px;
    animation: chartFloat 20s linear infinite;
}

@keyframes chartFloat {
    0% { transform: translate(-50%, -50%) rotateX(20deg) rotateY(-15deg); }
    50% { transform: translate(-50%, -50%) rotateX(25deg) rotateY(15deg); }
    100% { transform: translate(-50%, -50%) rotateX(20deg) rotateY(-15deg); }
}

.chart-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 68, 68, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 68, 68, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 3s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 上升趋势线 */
.trend-line {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #ff4444 0%, #ff6666 50%, #ff8888 100%);
    transform: perspective(500px) rotateX(45deg);
    animation: trendGlow 2s ease-in-out infinite alternate;
}

@keyframes trendGlow {
    0% { box-shadow: 0 0 10px #ff4444; }
    100% { box-shadow: 0 0 30px #ff4444, 0 0 50px #ff4444; }
}

/* 上升星形 */
.arrow-up {
    position: absolute;
    top: 20%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: #ff4444;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(255, 68, 68, 0.5));
}

@keyframes starFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

/* 装饰菱形 */
.diamond-shape {
    position: absolute;
    top: 30%;
    left: 15%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff4444, #ff6666);
    transform: rotate(45deg);
    animation: diamondPulse 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 5px 15px rgba(255, 68, 68, 0.3));
}

@keyframes diamondPulse {
    0% { 
        transform: rotate(45deg) scale(1);
        opacity: 0.6;
    }
    100% { 
        transform: rotate(45deg) scale(1.3);
        opacity: 1;
    }
}

/* 装饰圆形 */
.circle-shape {
    position: absolute;
    bottom: 25%;
    right: 25%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #ff4444, #ff6666, transparent);
    border-radius: 50%;
    animation: circleGlow 4s ease-in-out infinite;
    filter: blur(2px);
}

@keyframes circleGlow {
    0%, 100% { 
        transform: scale(0.8);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 数据点 */
.data-points {
    position: absolute;
    bottom: 15%;
    left: 10%;
    width: 80%;
    height: 60px;
}

.data-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 15px #ff4444;
    animation: pointPulse 2s ease-in-out infinite;
}

.data-point:nth-child(1) { left: 15%; bottom: 10px; animation-delay: 0s; }
.data-point:nth-child(2) { left: 30%; bottom: 25px; animation-delay: 0.5s; }
.data-point:nth-child(3) { left: 45%; bottom: 15px; animation-delay: 1s; }
.data-point:nth-child(4) { left: 60%; bottom: 35px; animation-delay: 1.5s; }
.data-point:nth-child(5) { left: 75%; bottom: 45px; animation-delay: 2s; }

@keyframes pointPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ff4444;
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(50px);
    }
}

/* 主容器 */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* 主标题 */
.main-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #fff, #ff4444, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 3s ease-in-out infinite, slideInDown 1s ease-out;
}

@keyframes titleShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 描述段落 */
.description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 输入框 */
.input-container {
    margin-bottom: 30px;
    animation: slideInLeft 1s ease-out 0.6s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stock-input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
}

.stock-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.stock-input:focus {
    border-color: #ff4444;
    box-shadow: 0 8px 32px rgba(255, 68, 68, 0.4);
    transform: translateY(-3px);
}

/* 分析按钮 */
.analyze-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(255, 68, 68, 0.4);
    transition: all 0.3s ease;
    animation: slideInRight 1s ease-out 0.9s both;
    position: relative;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.analyze-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.analyze-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 68, 68, 0.6);
}

.analyze-button:hover::before {
    width: 300px;
    height: 300px;
}

.analyze-button:active {
    transform: translateY(-2px);
}

.button-text {
    position: relative;
    z-index: 1;
}

/* 加载动画 */
.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 68, 68, 0.3);
    border-top: 4px solid #ff4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
    
    .chart-container {
        width: 400px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .chart-container {
        width: 300px;
        height: 150px;
    }
    
    .container {
        padding: 20px 15px;
    }
}

/* 震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* 弹窗样式 */
.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: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: white;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #ff4444, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 3s ease-in-out infinite;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ff4444;
}

/* 分析过程样式 */
.analysis-steps {
    text-align: left;
    margin: 20px 0;
}

.analysis-step {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 10px;
    border-left: 4px solid #ff4444;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.analysis-step.active {
    opacity: 1;
    background: rgba(255, 68, 68, 0.2);
    transform: translateX(10px);
}

.analysis-step.completed {
    opacity: 1;
    background: rgba(68, 255, 68, 0.1);
    border-left-color: #44ff44;
}

.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4444;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.step-icon.completed {
    background: #44ff44;
}

.step-text {
    flex: 1;
    font-size: 14px;
}

.analysis-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-top: 2px solid #ff4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

/* 结果弹窗样式 */
.result-content {
    padding: 20px 0;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: resultPulse 2s ease-in-out infinite;
}

@keyframes resultPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.result-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.line-button {
    background: linear-gradient(135deg, #00c300 0%, #00ff00 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.line-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 0, 0.5);
    animation: bounce 1s ease-in-out infinite;
}

.line-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.line-button:hover::before {
    width: 300px;
    height: 300px;
}

.line-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* 响应式弹窗 */
@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .result-icon {
        font-size: 3rem;
    }
    
    .line-button {
        padding: 15px 30px;
        font-size: 16px;
    }
}
