:root {
    --cosmic-primary: #0D1B2A;
    --cosmic-secondary: #1B263B;
    --cosmic-accent: #415A77;
    --neon-cyan: #00F5FF;
    --neon-purple: #8A2BE2;
    --neon-gold: #FFD700;
    --warning-yellow: #FFFF00;
    --matrix-green: #00FF41;
    --quantum-blue: #4169E1;
    --success-emerald: #50C878;
    --text-primary: #E0E1DD;
    --text-secondary: #778DA9;
    --overlay-dark: rgba(13, 27, 42, 0.9);
    --grid-opacity: 0.15;
}

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

body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cosmic-viewport {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cosmic-primary) 0%, var(--cosmic-secondary) 50%, var(--cosmic-accent) 100%);
    position: relative;
    overflow-x: hidden;
}

.quantum-grid-backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(90deg, rgba(65, 169, 255, var(--grid-opacity)) 1px, transparent 1px),
            linear-gradient(rgba(65, 169, 255, var(--grid-opacity)) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 3s ease-in-out infinite;
    z-index: 1;
}

.stock-chart-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.9) 0%, rgba(27, 38, 59, 0.7) 100%);
    z-index: 2;
}

.stock-chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image:
            linear-gradient(to right, rgba(65, 105, 225, 0.1) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(65, 105, 225, 0.1) 1px, transparent 1px);
    z-index: 3;
}

.live-chart-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 4;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: var(--matrix-green);
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
}

.chart-candles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 5%;
}

.candle {
    width: 6px;
    background: linear-gradient(to top, var(--success-emerald), var(--matrix-green));
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.candle::before,
.candle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--neon-gold);
}

.candle::before {
    top: -8px;
    height: 8px;
}

.candle::after {
    bottom: -8px;
    height: 12px;
}

.neural-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.ai-avatar-module {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    padding: 3px;
    margin-bottom: 1.2rem;
    animation: avatarGlow 2s ease-in-out infinite alternate;
}

.avatar-inner-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--cosmic-primary), var(--cosmic-secondary));
    border: 2px solid var(--cosmic-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 4rem;
}

.quantum-title-block {
    text-align: center;
    max-width: 800px;
    padding: 0 15px;
    margin-bottom: 2rem;
}

.primary-quantum-headline {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-gold), var(--neon-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.secondary-quantum-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--matrix-green);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.neural-description-text {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-primary);
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.featured-image-section {
    width: 100%;
    max-width: 800px;
    margin: 2rem 0;
}

.image-container {
    background: rgba(27, 38, 59, 0.7);
    border-radius: 14px;
    border: 1px solid var(--cosmic-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    margin: 0 auto;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-performance-metrics {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}

.metrics-section-title {
    color: var(--neon-cyan);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.8);
    letter-spacing: 0.8px;
}

.performance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.stat-module {
    background: var(--cosmic-secondary);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--cosmic-accent);
    transition: all 0.3s ease;
    position: relative;
}

.stat-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-module:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.3);
}

.stat-module:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
    color: var(--neon-cyan);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-gold);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

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

.partners-section {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}

.partners-title {
    color: var(--success-emerald);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px rgba(80, 200, 120, 0.5);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: rgba(27, 38, 59, 0.6);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--cosmic-accent);
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.3);
}

.partner-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--neon-cyan);
}

.partner-name {
    font-size: 1.2rem;
    color: var(--neon-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.partner-desc {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.join-us-section {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(27, 38, 59, 0.6);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--cosmic-accent);
}

.join-us-title {
    color: var(--neon-gold);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.join-us-text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-section {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.contact-title {
    color: var(--neon-cyan);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.8);
}

.quantum-action-trigger {
    padding: 1.1rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(45deg, var(--quantum-blue), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.3);
}

.quantum-action-trigger::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;
}

.quantum-action-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.5);
}

.quantum-action-trigger:hover::before {
    left: 100%;
}

.quantum-action-trigger:active {
    transform: translateY(-1px);
}

/* 悬浮按钮样式 */
.rect-floating-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 56px;
    background: linear-gradient(45deg, var(--quantum-blue), var(--neon-purple));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.5);
    z-index: 1000;
    animation: floatPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.rect-floating-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;
}

.rect-floating-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.8);
}

.rect-floating-button:hover::before {
    left: 100%;
}

.rect-floating-button span {
    position: relative;
    z-index: 2;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow: 0 6px 20px rgba(65, 105, 225, 0.5);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
        box-shadow: 0 12px 30px rgba(65, 105, 225, 0.7);
    }
}

.risk-disclosure-section {
    margin-top: 0.5rem;
    max-width: 800px;
    text-align: left;
    background: rgba(27, 38, 59, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--cosmic-accent);
}

.warning-title-block {
    color: var(--warning-yellow);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.disclosure-content-list {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.2;
}

.disclosure-content-list li {
    margin-bottom: 0.7rem;
    list-style: none;
    position: relative;
    padding-left: 1.3rem;
}

.disclosure-content-list li::before {
    content: '•';
    color: var(--neon-cyan);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-legal-navigation {
    margin-top: 1.2rem;
    text-align: center;
}

.legal-link-element {
    color: var(--neon-cyan);
    text-decoration: none;
    margin: 0 0.8rem;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-link-element:hover {
    color: var(--neon-gold);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .neural-container {
        padding: 0.8rem 0.5rem;
    }
    .ai-avatar-module {
        width: 180px;
        height: 180px;
        margin-bottom: 1rem;
    }
    .performance-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .stat-module {
        padding: 1rem 0.5rem;
    }
    .stat-icon {
        font-size: 1.8rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .rect-floating-button {
        width: 90%;
        max-width: 280px;
        height: 50px;
        font-size: 1rem;
    }
}

@keyframes gridPulse {
    0%,
    100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

@keyframes avatarGlow {
    0% {
        box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 35px rgba(138, 43, 226, 0.8);
    }
}

@keyframes titleShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
