* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #22d3ee;        /* cyan */
    --primary-hover: #06b6d4;
    --secondary-color: #a855f7;      /* violet */
    --success-color: #4ade80;        /* soft green */
    --background: #020617;
    --card-background: #020617;
    --text-primary: #e5f4ff;
    --text-secondary: #c7d2fe;
    --border-color: rgba(129, 140, 248, 0.55);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.9);
    --shadow-lg: 0 34px 90px rgba(15, 23, 42, 0.96);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Cookie 提示 */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-background);
    padding: 1.5rem;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.cookie-notice.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* 容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 英雄区 */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 24%, #a855f7 65%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 输入区域 */
.input-section {
    background: var(--card-background);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.robot-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 24%, #a855f7 65%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.robot-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stock-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.stock-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.analyze-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 24%, #a855f7 65%, #f97316 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 24px;
    height: 24px;
}

/* 统计数据 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* 免责声明 */
.disclaimer {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.disclaimer p {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-link:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 按钮样式 */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease-out;
}

.modal-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.modal-body {
    margin-bottom: 2rem;
}

.stock-info {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.code-display {
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22d3ee 0%, #0ea5e9 40%, #a855f7 85%, #f97316 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#progressPercent {
    font-weight: 700;
    color: var(--primary-color);
}

.analyzing-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--background);
    border-radius: 8px;
    font-size: 0.95rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    background: #dbeafe;
    color: var(--primary-color);
}

.step.completed {
    opacity: 1;
}

.step-icon {
    font-size: 1.25rem;
}

.step.completed .step-icon::before {
    content: '✅';
}

.modal-footer {
    text-align: center;
}

.result-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: var(--success-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 18px 45px -12px rgba(15, 23, 42, 0.9);
}

.result-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 28px 70px -18px rgba(15, 23, 42, 0.96);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .input-section {
        padding: 2rem 1.5rem;
    }

    .robot-icon {
        width: 60px;
        height: 60px;
    }

    .robot-icon svg {
        width: 36px;
        height: 36px;
    }

    .stock-input,
    .analyze-btn {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        padding: 1.5rem;
    }
}



/* ===== LUXURY VARIANT STYLES ===== */

.page-shell--lux {
    position: relative;
    padding: 4rem 0 5rem;
    isolation: isolate;
}

.page-shell--lux::before,
.page-shell--lux::after {
    content: "";
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(circle at 5% -10%, rgba(56, 189, 248, 0.16), transparent 55%),
        radial-gradient(circle at 105% 110%, rgba(236, 72, 153, 0.16), transparent 55%);
    opacity: 0.85;
    pointer-events: none;
    z-index: -2;
}

.container-lux {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 2.5rem 3.5rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.20), transparent 58%),
        radial-gradient(circle at 120% 120%, rgba(168, 85, 247, 0.30), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 255, 0.4);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(26px);
}

.header-lux {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
    padding-bottom: 1.25rem;
}

.header-lux .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    text-align: center;
}

.logo-icon {
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.58);
    background: radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.24), rgba(15, 23, 42, 1));
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 1), 0 18px 35px rgba(15, 23, 42, 0.9);
}

.header-lux h1 {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero.hero-lux {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-lux .main-title {
    text-align: center;
}

.hero-lux .subtitle {
    max-width: 800px;
    margin: 1.25rem auto 0;
    color: rgba(209, 213, 219, 0.95);
    text-align: center;
}

.input-section-lux {
    margin-bottom: 3rem;
    padding: 1.75rem 1.75rem 2rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(12, 10, 24, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
}

.input-section-lux .stock-input {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.98));
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--text-primary);
}

.input-section-lux .stock-input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.analyze-btn {
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats.stats-lux {
    margin-top: 1.5rem;
}

.stat-card-lux {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 52%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.stat-value {
    font-variant-numeric: tabular-nums;
}

.disclaimer.disclaimer-lux {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.55);
    color: rgba(156, 163, 175, 0.96);
}

.footer.footer-lux {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.98);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(156, 163, 175, 0.9);
    text-align: center;
}

.footer.footer-lux .footer-link {
    color: rgba(191, 219, 254, 0.95);
}

.footer.footer-lux .footer-link:hover {
    color: #eab308;
}

.modal .modal-content {
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.30), transparent 60%),
        radial-gradient(circle at 120% 120%, rgba(15, 23, 42, 1), rgba(15, 23, 42, 1));
    border-radius: 28px;
    border: 1px solid rgba(250, 204, 21, 0.55);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.98);
}

.modal-header h3 {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: rgba(209, 213, 219, 0.95);
}

.modal-header h3::before {
    content: "PREMIUM AI ANALYSIS";
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.6rem;
}

.stock-info {
    background: radial-gradient(circle at 10% -20%, rgba(251, 191, 36, 0.18), transparent 55%),
                rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.75);
}

.progress-bar {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.45);
}

.progress-fill {
    background: linear-gradient(90deg, #22c55e, #a3e635, #facc15);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.6);
}

.result-btn {
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, #facc15 0%, #eab308 35%, #4c1d95 100%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 1);
}

.cookie-notice {
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid rgba(148, 163, 184, 0.65);
    backdrop-filter: blur(18px);
}

/* Responsive tweaks for luxury shell */
@media (max-width: 768px) {
    .container-lux {
        padding: 2.25rem 1.5rem 2.75rem;
        border-radius: 24px;
    }

    .header-lux {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero.hero-lux {
        text-align: left;
    }
}


.footer.footer-lux .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.footer.footer-lux .footer-separator {
    opacity: 0.85;
}
