html {
  font-size: 14px;
}

/* ===============================
⭐ 顶部导航（玻璃）
=============================== */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-sizing: border-box;
}


.logo-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-title {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* ===============================
⭐ PC菜单
=============================== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    background-color: rgba(25, 25, 25, 0.06);
   
}

    .nav-menu .nav-link,
    .nav-menu a {
        font-size: 1.5em;
        font-weight: 800;
        color: white !important;
        text-decoration: none;
        white-space: nowrap;
    }

.nav-link {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}





.nav-menu form {
    display: inline;
}

.nav-menu button {
    background: none;
    border: none;
    color: white;
    padding: 0;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.account-nav { margin-left:auto; display:flex; align-items:center; gap:.75rem; color:#fff; }
.account-nav form { margin:0; }
.account-link { color:#fff; background:transparent; border:1px solid #8da5d5; border-radius:.5rem; padding:.45rem .8rem; text-decoration:none; }
.account-name { max-width:240px; overflow:hidden; text-overflow:ellipsis; }
.account-card { max-width:480px; margin:3rem auto; padding:2rem; border:1px solid #65769b; border-radius:1rem; background:rgba(20,34,63,.85); color:#fff; }
.account-card form { display:grid; gap:.65rem; }
.account-card input:not([type=checkbox]) { width:100%; padding:.75rem; border-radius:.5rem; border:1px solid #7485a9; }
.account-card button { padding:.75rem; border:0; border-radius:.5rem; background:#2864e8; color:#fff; font-weight:700; }
.account-start-actions { display:flex; justify-content:center; gap:.75rem; margin-top:1rem; }

:root {
    --bg: #07111f;
    --panel: #0d1b2d;
    --line: #1e3855;
    --text: #eff7ff;
    --muted: #91a9c0;
    --cyan: #2dd4bf;
    --blue: #4f8cff;
    --purple: #a78bfa;
    --red: #fb7185
}

html {
    font-size: 14px
}

body {
    margin: 0;
    background: radial-gradient(circle at 80% 0,#12315a 0,transparent 34%),var(--bg);
    color: var(--text);
    font-family: Inter,Segoe UI,Arial,sans-serif;
    min-height: 100vh
}

.container {
    max-width: 1180px
}

.navbar {
    background: rgba(7,17,31,.82) !important;
    border-bottom: 1px solid var(--line) !important;
    backdrop-filter: blur(16px)
}

.navbar-brand, .nav-link {
    color: var(--text) !important
}

.navbar-brand {
    font-weight: 800;
    font-size: 2rem
}

.mobile-menu-guide {
    display: none;
    align-items: center;
    margin-left: auto;
}

.menu-guide-arrow {
    display: none;
}

@media (max-width: 575.98px) {
    .mobile-menu-guide {
        display: flex;
        gap: 10px;
    }

    .navbar-toggler {
        border: 2px solid rgba(255,255,255,.95) !important;
        box-shadow: 0 0 14px rgba(255,255,255,.38);
    }

    .navbar-toggler-icon {
        filter: invert(1) grayscale(1) brightness(3);
        opacity: 1;
    }

    .show-first-visit-arrow .menu-guide-arrow {
        display: inline-block;
        color: #fff;
        font-size: 2rem;
        font-weight: 900;
        line-height: 1;
        text-shadow: 0 0 8px #fff, 0 0 18px rgba(56,189,248,.95);
        animation: point-to-menu .8s ease-in-out infinite alternate;
    }
}

@keyframes point-to-menu {
    from { transform: translateX(-8px) scale(1); }
    to { transform: translateX(3px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .show-first-visit-arrow .menu-guide-arrow {
        animation: none;
    }
}

.stock-hero {
    margin: 44px 0 26px;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg,rgba(16,37,61,.96),rgba(10,24,42,.86));
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 24px 80px rgba(0,0,0,.25)
}

.eyebrow {
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em
}

.stock-hero h1 {
    font-size: 2.6rem;
    margin: .55rem 0
}

.stock-hero p, .card-heading p, .ai-title p {
    color: var(--muted);
    margin: 0
}

.symbol-form {
    background: rgba(5,14,26,.7);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px
}

    .symbol-form label {
        display: block;
        color: var(--muted);
        font-weight: 600;
        margin-bottom: 8px
    }

.search-row {
    display: flex;
    gap: 9px
}

    .search-row input {
        min-width: 0;
        flex: 1;
        padding: 13px 14px;
        border: 1px solid #315273;
        border-radius: 10px;
        background: #071522;
        color: #fff;
        text-transform: uppercase;
        font-size: 1.1rem;
        font-weight: 700;
        outline: 0
    }

        .search-row input:focus {
            border-color: var(--cyan);
            box-shadow: 0 0 0 3px rgba(45,212,191,.12)
        }

    .search-row button {
        border: 0;
        border-radius: 10px;
        padding: 0 19px;
        background: linear-gradient(135deg,var(--cyan),#38bdf8);
        color: #04201c;
        font-weight: 800
    }

.field-error {
    color: var(--red);
    display: block;
    margin-top: 7px
}

.summary-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4,1fr);
    gap: 14px;
    margin: 20px 0
}

.metric, .chart-card, .ai-card, .empty-state {
    border: 1px solid var(--line);
    background: rgba(13,27,45,.86);
    border-radius: 18px
}

.metric {
    padding: 19px
}

    .metric span, .metric small {
        display: block;
        color: var(--muted)
    }

    .metric strong {
        display: block;
        font-size: 1.55rem;
        margin: 7px 0
    }

    .metric.main strong {
        font-size: 2rem
    }

.up {
    color: var(--cyan) !important
}

.down {
    color: var(--red) !important
}

.chart-card {
    padding: 22px;
    margin-bottom: 16px
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 18px
}

    .card-heading h2, .ai-card h2 {
        font-size: 1.15rem;
        margin: 0 0 4px
    }

    .card-heading > span {
        color: var(--muted)
    }

canvas {
    width: 100%;
    display: block
}

.ai-card {
    padding: 25px;
    margin-top: 4px
}

.ai-title {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px
}

.ai-orb {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 14px;
    background: linear-gradient(135deg,var(--purple),var(--blue));
    font-weight: 900
}

.analysis-text {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #dcecff
}

.notice {
    padding: 13px 16px;
    border: 1px solid #3d5470;
    background: #10243a;
    border-radius: 10px;
    color: #bcd0e4
}

    .notice.error {
        border-color: #7a3342;
        color: #ffd5dc;
        background: #321522;
        margin-bottom: 18px
    }

.disclaimer {
    text-align: center;
    color: #7189a0;
    font-size: .86rem;
    margin: 22px 0 32px
}

.empty-state {
    text-align: center;
    padding: 75px 25px;
    margin: 40px 0
}

    .empty-state p {
        color: var(--muted)
    }

.pulse-ring {
    width: 64px;
    height: 64px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    margin: 0 auto 22px;
    box-shadow: 0 0 0 12px rgba(45,212,191,.05),0 0 45px rgba(45,212,191,.3)
}

footer {
    color: var(--muted) !important;
    border-color: var(--line) !important
}

@media(max-width:900px) {
    .stock-hero {
        grid-template-columns: 1fr
    }

    .summary-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .chart-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .stock-hero {
        padding: 24px;
        margin-top: 24px
    }

        .stock-hero h1 {
            font-size: 2rem
        }

    .search-row {
        flex-direction: column
    }

        .search-row button {
            padding: 13px
        }

    .summary-grid {
        grid-template-columns: 1fr 1fr
    }

    .metric.main {
        grid-column: 1/-1
    }

    .metric {
        padding: 14px
    }
}
