
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #000;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* 视频背景样式 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.7) contrast(1.1);
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .video-background {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* 视频遮罩层 */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(26, 26, 46, 0.6) 50%, rgba(22, 33, 62, 0.7) 100%);
    z-index: -1;
    animation: overlayShift 15s ease-in-out infinite alternate;
}

@keyframes overlayShift {
    0% {
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(26, 26, 46, 0.6) 50%, rgba(22, 33, 62, 0.7) 100%);
    }
    100% {
        background: linear-gradient(135deg, rgba(22, 33, 62, 0.8) 0%, rgba(26, 26, 46, 0.5) 50%, rgba(10, 10, 10, 0.6) 100%);
    }
}

/* 动态背景粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00d4ff;
    border-radius: 50%;
    animation: float 20s infinite linear, pulse 3s infinite ease-in-out;
    box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff;
}

.particle:nth-child(odd) {
    background: #ff6b6b;
    box-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b;
    animation: float 25s infinite linear, pulse 2s infinite ease-in-out;
}

.particle:nth-child(3n) {
    background: #4ecdc4;
    box-shadow: 0 0 10px #4ecdc4, 0 0 20px #4ecdc4;
    animation: float 30s infinite linear, pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

/* Logo区域 */
.logo-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDown 1s ease-out;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #00d4ff, #0066cc);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.6);
    }
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    padding: 15px 0;
}

/* 信息区域容器 */
.info-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 1.5rem auto;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(0, 212, 255, 0.1);
    animation: infoBorderGlow 3s ease-in-out infinite;
}

@keyframes infoBorderGlow {
    0%, 100% {
        border-color: rgba(0, 212, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                    0 0 20px rgba(0, 212, 255, 0.1);
    }
    50% {
        border-color: rgba(0, 212, 255, 0.5);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                    0 0 30px rgba(0, 212, 255, 0.2);
    }
}

.subtitle {
    font-size: 1.3rem;
    color: #e6f3ff;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
                 0 0 10px rgba(0, 212, 255, 0.2);
    letter-spacing: 0.5px;
}

.description {
    font-size: 1.1rem;
    color: #c7d2fe;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 输入区域 */
.input-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    animation: slideUp 1s ease-out 0.3s both;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-label {
    font-size: 1.1rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.stock-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: inputGlow 4s ease-in-out infinite;
}

@keyframes inputGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.2), inset 0 0 15px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.4), inset 0 0 25px rgba(0, 212, 255, 0.2);
    }
}

.stock-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), inset 0 0 20px rgba(0, 212, 255, 0.2);
    transform: scale(1.02);
}

.stock-input::placeholder {
    color: #8892b0;
}

.analyze-button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00d4ff, #0066cc, #ff6b6b);
    background-size: 300% 300%;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.3);
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(0, 212, 255, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 35px rgba(0, 212, 255, 0.5);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.analyze-button:active {
    transform: translateY(0);
}

.analyze-button::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;
}

.analyze-button:hover::before {
    left: 100%;
}

/* 弹窗样式 */
.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%) scale(0.8);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 212, 255, 0.3);
    min-width: 400px;
    animation: modalAppear 0.5s ease-out forwards, modalGlow 2s infinite ease-in-out;
}

@keyframes modalAppear {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes modalGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 255, 0.6);
    }
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top: 4px solid #00d4ff;
    border-right: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite, colorChange 3s ease-in-out infinite;
    margin: 2rem auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    border: 2px solid transparent;
    border-top: 2px solid #4ecdc4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes colorChange {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
    33% {
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    }
    66% {
        box-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
    }
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ff6b6b, #4ecdc4);
    background-size: 200% 100%;
    animation: progressMove 2s linear infinite, progressFill 7.5s linear forwards;
    width: 0%;
    border-radius: 3px;
}

@keyframes progressMove {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    20% { width: 20%; }
    40% { width: 40%; }
    60% { width: 60%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

.progress-text {
    font-size: 1.1rem;
    color: #00d4ff;
    margin-top: 1rem;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

/* 结果弹窗样式 */
.result-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.result-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    border: 2px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 100px rgba(0, 212, 255, 0.3);
    min-width: 450px;
    max-width: 600px;
    animation: resultModalAppear 0.8s ease-out forwards;
}

@keyframes resultModalAppear {
    0% {
        transform: translate(-50%, -50%) scale(0.3) rotateY(180deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotateY(90deg);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
        opacity: 1;
    }
}

.result-modal h3 {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 212, 255, 1), 0 0 50px rgba(255, 107, 107, 0.5);
        transform: scale(1.05);
    }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: successBounce 1s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.line-cta-button {
    background: linear-gradient(45deg, #00d4ff, #ff6b6b, #4ecdc4);
    background-size: 300% 300%;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradientMove 3s ease-in-out infinite, buttonFloat 3s ease-in-out infinite;
    margin: 0.5rem;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.line-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.line-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.line-cta-button:hover::before {
    left: 100%;
}

/* 结果页面样式 */
.result-section {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.result-title {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-summary {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #00d4ff;
}

.line-contact {
    background: linear-gradient(135deg, #00c851, #00a843);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.line-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 200, 81, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 30px 0;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 1rem;
        min-width: auto;
        width: calc(100% - 2rem);
    }
}
