:root {
    --primary-color: #00ff9d;
    --secondary-color: #00cc7e;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --accent-color: #00ff9d;
    --dark-bg: #121212;
    --card-bg: #202020;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.ai-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.brain-icon {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
    z-index: 2;
    position: relative;
}

.pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.1rem;
    color: #666;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature p {
    font-size: 1rem;
    color: #666;
}

.cta {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.cta h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta p {
    margin-bottom: 30px;
    color: #666;
}

.line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00B900;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    width: 100%;
    transition: all 0.3s ease;
    border: none;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.line-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: buttonShine 2s infinite;
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.line-button:hover {
    background: #009900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 185, 0, 0.3);
}

.line-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

/* 添加诊股弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: var(--dark-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    position: relative;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active {
    transform: translateY(0);
    opacity: 1;
}

.analysis-progress {
    text-align: center;
}

/* 改进进度条样式 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 3px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 改进分析步骤样式 */
.analysis-steps {
    margin-top: 30px;
}

.analysis-step {
    margin: 20px 0;
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.analysis-step.active {
    opacity: 1;
}

.step-icon {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.step-icon.completed {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.step-text {
    font-size: 1.1em;
    font-weight: 500;
}

.analysis-result {
    display: none;
    text-align: center;
}

.result-chart {
    width: 100%;
    height: 200px;
    margin: 20px 0;
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 157, 0.05);
}

.result-summary {
    background: rgba(0, 255, 157, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid rgba(0, 255, 157, 0.1);
    position: relative;
    overflow: hidden;
}

.summary-icon {
    font-size: 2em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.summary-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    white-space: nowrap;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.stat-item {
    padding: 20px;
    background: rgba(0, 255, 157, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 157, 0.3);
}

.stat-value {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.percent {
    font-size: 0.5em;
    margin-left: 2px;
    opacity: 0.8;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
}

.cta-message {
    text-align: left;
    margin: 30px 0;
    padding: 0 10px;
}

.primary-message {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.secondary-message {
    font-size: 0.95em;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    opacity: 1;
    color: var(--primary-color);
}

.analyze-button {
    width: 100%;
    opacity: 0.5;
    cursor: not-allowed;
    margin-top: 10px;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.analyze-button:not([disabled]) {
    opacity: 1;
    cursor: pointer;
    background: var(--primary-color);
}

.analyze-button:not([disabled]):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
    background: var(--secondary-color);
}

.stock-input-container {
    margin: 30px auto;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stock-input-wrapper {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.stock-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 255, 157, 0.3);
    background: rgba(32, 32, 32, 0.9);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.4em;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 2px;
    -webkit-appearance: none;
    appearance: none;
}

.stock-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    background: rgba(32, 32, 32, 1);
}

.stock-input::placeholder {
    color: rgba(0, 255, 157, 0.3);
    font-weight: normal;
    letter-spacing: 0;
}

.stock-input-hint {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.9em;
    color: rgba(0, 255, 157, 0.5);
}

.error-message {
    color: #ff4d4d;
    font-size: 0.9em;
    text-align: center;
    margin-top: 10px;
    min-height: 20px;
    font-weight: 500;
}

/* 改进股票信息显示 */
.stock-info {
    margin: 20px 0 30px;
    padding: 20px;
    background: rgba(0, 255, 157, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.1);
    text-align: center;
}

.stock-code {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.stock-name {
    color: var(--text-color);
    font-size: 1.2em;
    opacity: 0.9;
}

/* 输入框动画效果 */
@keyframes inputPulse {
    0% {
        border-color: rgba(0, 255, 157, 0.2);
        box-shadow: 0 0 5px rgba(0, 255, 157, 0.1);
    }
    50% {
        border-color: rgba(0, 255, 157, 0.5);
        box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
    }
    100% {
        border-color: rgba(0, 255, 157, 0.2);
        box-shadow: 0 0 5px rgba(0, 255, 157, 0.1);
    }
}

.stock-input.pulse {
    animation: inputPulse 2s infinite;
} 