:root {
    /* 股票风格主配色 - 专业交易平台 */
    --primary-color: #00d4ff;        /* 青色 - 主强调色 */
    --secondary-color: #0088ff;      /* 深青蓝 - 次要色 */
    --accent-color: #00ffcc;         /* 亮青色 - 高亮 */
    --bg-dark: #0a1628;              /* 深蓝黑 - 主背景 */
    --bg-darker: #050b14;            /* 更深蓝黑 */
    --bg-card: rgba(10, 22, 40, 0.95); /* 卡片背景 */
    --text-primary: #ffffff;         /* 主文字 */
    --text-secondary: #8b9bb8;       /* 次要文字 */
    --success-color: #00ff88;        /* 涨 - 绿色 */
    --danger-color: #ff3366;         /* 跌 - 红色 */
    --warning-color: #ffaa00;        /* 警告 - 橙色 */
    --grid-color: rgba(0, 212, 255, 0.12); /* 青色网格 */
    --glow-color: rgba(0, 212, 255, 0.5);  /* 青色光晕 */
    --chart-line: #00d4ff;           /* K线图线条色 */
}

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

body {
    font-family: 'Roboto Mono', 'Consolas', 'Monaco', monospace, 'Segoe UI', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid Background - 股票K线图风格 */
.stBgGrid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    background-image:
        /* 主网格 - 模拟K线图背景 */
        linear-gradient(var(--grid-color) 1.5px, transparent 1.5px),
        linear-gradient(90deg, var(--grid-color) 1.5px, transparent 1.5px),
        /* 次级网格 */
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        /* 渐变叠加 - 增加深度感 */
        radial-gradient(ellipse at top, rgba(0, 136, 255, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 212, 255, 0.1), transparent 50%);
    background-size: 
        80px 80px, 
        80px 80px, 
        20px 20px, 
        20px 20px,
        100% 100%,
        100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    z-index: -1;
    animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 80px 80px, 80px 80px, 20px 20px, 20px 20px, 0 0, 0 0;
    }
}

/* Navigation */
nav {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 0 20px var(--glow-color);
}

.stNavWrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stNavBrand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--glow-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stNavBrand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
    animation: logoSpin 3s ease-in-out infinite;
}

@keyframes logoSpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(360deg);
    }
}

.stNavMenu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.stNavMenu a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.stNavMenu a:hover {
    color: var(--primary-color);
}

.stNavMenu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.stNavMenu a:hover::after {
    width: 100%;
}

/* Container */
.stContainer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.stHero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

.stHeroAvatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 40px var(--glow-color), 0 0 80px var(--glow-color);
    animation: float 3s ease-in-out infinite;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.stHero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px var(--glow-color);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px var(--glow-color));
    }

    to {
        filter: drop-shadow(0 0 20px var(--glow-color));
    }
}

.stHero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Search Box */
.stSearch {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.stSearchInput {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--glow-color);
}

.stSearchInput:focus {
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-2px);
}

.stSearchBtn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.stSearchBtn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 20px var(--glow-color);
}

/* Features Grid */
.stFeatures {
    padding: 4rem 0;
}

.stFeaturesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stFeatureItem {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.stFeatureItem::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
    transition: left 0.5s;
}

.stFeatureItem:hover::before {
    left: 100%;
}

.stFeatureItem:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px var(--glow-color);
    border-color: var(--primary-color);
}

.stFeatureIcon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stFeatureItem h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stFeatureItem p {
    color: var(--text-secondary);
}

/* Stats Section */
.stStats {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.08), rgba(0, 212, 255, 0.08));
}

.stSectionTitle {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stSectionDesc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.stStatsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .stStatsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .stStatsGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) {
    .stStatsGrid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.stStatItem {
    background: var(--bg-card);
    padding: 1.8rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.08);
}

.stStatItem::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
    transition: left 0.6s;
}

.stStatItem:hover::before {
    left: 100%;
}

.stStatItem:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px var(--glow-color);
    border-color: var(--primary-color);
}

.stStatNum {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
    line-height: 1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.stStatText {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stStatItem:hover .stStatNum {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.stStatItem:hover .stStatText {
    color: #ffffff;
}

/* Market Data Tables */
.stMarket {
    padding: 4rem 0;
}

.stMarketGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stMarketTable {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.stMarketTitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(0, 212, 255, 0.12);
    padding: 1rem;
    text-align: left;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    font-family: 'Roboto Mono', monospace;
}

tr:hover {
    background: rgba(0, 212, 255, 0.08);
    transform: translateX(2px);
    transition: all 0.2s ease;
}

.stRank {
    font-weight: bold;
    color: var(--secondary-color);
}

.stSymbol {
    font-weight: bold;
    color: var(--primary-color);
}

.stScore {
    font-weight: bold;
    color: var(--success-color);
}

/* Insights Section */
.stInsights {
    padding: 4rem 0;
}

.stInsightsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stInsightItem {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.stInsightItem::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--glow-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stInsightItem:hover::after {
    opacity: 1;
}

.stInsightImg {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.2), rgba(0, 212, 255, 0.25));
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.stInsightImg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 212, 255, 0.12) 10px,
            rgba(0, 212, 255, 0.12) 20px);
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50%, 50%);
    }
}

.stInsightImg img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    z-index: 1;
    box-shadow: 0 0 20px var(--glow-color);
}

.stInsightItem h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.stInsightItem p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA Section */
.stCta {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.12), rgba(0, 212, 255, 0.12));
}

.stCta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stCta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.stCtaBtn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px var(--glow-color);
}

.stCtaBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--glow-color);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--primary-color);
}

.stFooterWrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stFooterWrap > div {
    flex: 1;
    min-width: 250px;
}

.stFooterMenu {
    list-style: none;
}

.stFooterMenu li {
    margin-bottom: 0.5rem;
}

.stFooterMenu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.stFooterMenu a:hover {
    color: var(--primary-color);
}

.stFooterCopy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .stHero h1 {
        font-size: 2rem;
    }

    .stHero p {
        font-size: 1rem;
    }

    .stNavMenu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .stMarketGrid,
    .stFeaturesGrid,
    .stInsightsGrid {
        grid-template-columns: 1fr;
    }

    .stSearchBtn {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stFadeIn {
    animation: fadeIn 0.6s ease-out;
}

/* Ticker Animation - 股票滚动条 */
.stTicker {
    background: rgba(0, 136, 255, 0.08);
    padding: 1rem 0;
    overflow: hidden;
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.stTickerWrap {
    display: flex;
    animation: ticker 30s linear infinite;
}

.stTickerItem {
    padding: 0 3rem;
    white-space: nowrap;
    color: var(--text-secondary);
}

.stPriceUp {
    color: var(--success-color);
}

.stPriceDown {
    color: var(--danger-color);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Modal Styles */
.stModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

.stModalActive {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.stModalBox {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px var(--glow-color), 0 0 100px var(--glow-color);
    animation: modalSlideIn 0.4s ease-out;
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stModalClose {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
    line-height: 1;
}

.stModalClose:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.stModalAvatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px var(--glow-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--glow-color);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px var(--glow-color);
    }
}

.stModalTitle {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stModalText {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stModalNotice {
    color: var(--warning-color);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.stModalBtn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px var(--glow-color);
}

.stModalBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--glow-color);
}

/* Cookie Banner */
.stCookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-color);
    padding: 1.5rem;
    z-index: 9998;
    box-shadow: 0 -5px 30px var(--glow-color);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.stCookieShow {
    transform: translateY(0);
}

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

.stCookieText {
    flex: 1;
    min-width: 300px;
}

.stCookieText h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.stCookieText p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stCookieText a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.stCookieText a:hover {
    color: var(--primary-color);
}

.stCookieActions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stCookieBtn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.stCookieBtnAccept {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    box-shadow: 0 3px 15px var(--glow-color);
}

.stCookieBtnAccept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px var(--glow-color);
}

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

.stCookieBtnDecline:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .stCookieWrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .stCookieActions {
        width: 100%;
    }

    .stCookieBtn {
        flex: 1;
    }
}

