* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0d1117; color: #c9d1d9;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #161b22 0%, #1c2333 100%);
    border-bottom: 1px solid #30363d;
    padding: 14px 32px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
}
.nav-brand {
    display: flex; align-items: center; gap: 14px;
}
.nav-logo {
    height: 36px; width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(88, 166, 255, 0.3));
    transition: filter 0.3s;
}
.nav-logo:hover {
    filter: drop-shadow(0 0 12px rgba(88, 166, 255, 0.6));
}
.nav-subtitle { font-size: 13px; color: #8b949e; -webkit-text-fill-color: #8b949e; font-weight: 400; }
.nav-status { font-size: 12px; color: #8b949e; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Container */
.container { max-width: 1440px; margin: 0 auto; padding: 20px 24px; }

/* Banner */
.banner {
    background: linear-gradient(135deg, #1a2332 0%, #2d1b3d 50%, #1a2332 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 28px 20px;
    margin-bottom: 24px;
    text-align: center;
}
.banner-title {
    font-size: 24px;
    font-weight: 700;
    color: #f0e6d0;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.banner-subtitle {
    font-size: 13px;
    color: #8b949e;
    letter-spacing: 1px;
}
@media (max-width: 600px) {
    .banner-title { font-size: 18px; }
    .banner-subtitle { font-size: 11px; }
}
.banner-slogan {
    font-size: 20px; font-weight: 700;
    color: #58a6ff; margin-top: 16px;
    letter-spacing: 2px;
}

/* Indices Grid */
.indices-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.index-card {
    background: #161b22; border: 1px solid #30363d; border-radius: 10px;
    padding: 14px 16px; transition: all 0.2s; cursor: pointer;
}
.index-card:hover { border-color: #58a6ff; box-shadow: 0 4px 12px rgba(88,166,255,0.1); }
.index-name { font-size: 12px; color: #8b949e; margin-bottom: 4px; }
.index-price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.index-change { font-size: 13px; margin-top: 2px; font-weight: 500; font-variant-numeric: tabular-nums; }
.index-change.up { color: #3fb950; }
.index-change.down { color: #f85149; }

/* Skeleton loading */
.skeleton .index-price, .skeleton .index-change { background: #21262d; border-radius: 4px; color: transparent !important; }
.skeleton .index-price { min-height: 22px; margin-bottom: 4px; }
.skeleton .index-change { min-height: 16px; }
.skeleton-text { background: #21262d; border-radius: 4px; color: transparent !important; display: inline-block; }

/* Market Overview */
.market-overview { width: 100%; height: 280px; margin-bottom: 16px; }

/* Search Section */
.search-section {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin-bottom: 16px;
}
.search-box { flex: 1; min-width: 280px; position: relative; }
.search-box input {
    width: 100%; padding: 10px 14px; border: 1px solid #30363d; border-radius: 8px;
    background: #0d1117; color: #c9d1d9; font-size: 14px; outline: none; transition: border-color 0.2s;
}
.search-box input:focus { border-color: #58a6ff; }
.search-box input::placeholder { color: #484f58; }
.search-box button {
    position: absolute; right: 4px; top: 4px; padding: 6px 18px;
    background: #238636; color: #fff; border: none; border-radius: 6px;
    cursor: pointer; font-size: 13px; transition: background 0.2s;
}
.search-box button:hover { background: #2ea043; }
.search-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; background: #161b22;
    border: 1px solid #30363d; border-radius: 0 0 8px 8px; display: none;
    z-index: 50; max-height: 260px; overflow-y: auto;
}
.search-dropdown.show { display: block; }
.search-dropdown-item {
    padding: 8px 14px; cursor: pointer; font-size: 13px;
    border-bottom: 1px solid #21262d; transition: background 0.15s;
}
.search-dropdown-item:hover { background: #1c2333; }
.search-dropdown-item .sym { color: #58a6ff; font-weight: 600; }
.search-dropdown-item .name { color: #8b949e; margin-left: 8px; }

.period-selector { display: flex; gap: 4px; }
.period-btn {
    padding: 6px 14px; border: 1px solid #30363d; border-radius: 6px;
    background: transparent; color: #c9d1d9; cursor: pointer; font-size: 12px;
    transition: all 0.15s;
}
.period-btn:hover { border-color: #58a6ff; color: #58a6ff; }
.period-btn.active { background: #1f6feb; border-color: #1f6feb; color: #fff; }

/* Fibonacci tooltip */
.fib-help-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.fib-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border: 1px solid #484f58;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: #484f58;
    cursor: help;
    margin-left: 4px;
    transition: all 0.15s;
    user-select: none;
}
.fib-help-icon:hover {
    border-color: #8b949e;
    color: #8b949e;
}
.fib-help-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.7;
    color: #c9d1d9;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    white-space: normal;
    text-align: left;
}
.fib-help-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -5px;
    width: 10px; height: 10px;
    background: #1c2333;
    border-left: 1px solid #30363d;
    border-top: 1px solid #30363d;
    transform: translateX(-50%) rotate(45deg);
}
.fib-help-popup h4 {
    font-size: 13px;
    color: #f0883e;
    margin-bottom: 6px;
    font-weight: 600;
}
.fib-help-popup p { margin-bottom: 4px; }
.fib-help-popup .fib-desc { color: #8b949e; font-size: 11px; }
.fib-help-popup .fib-levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    margin: 6px 0;
}
.fib-help-popup .fib-levels span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #c9d1d9;
}
.fib-help-popup .fib-levels i {
    display: inline-block;
    width: 20px; height: 2px;
    border-radius: 1px;
    flex-shrink: 0;
}
.fib-help-icon:hover + .fib-help-popup,
.fib-help-icon + .fib-help-popup:hover {
    visibility: visible;
    opacity: 1;
}

/* Chart */
.main-panel {
    background: #161b22; border: 1px solid #30363d; border-radius: 12px;
    padding: 20px; margin-bottom: 20px;
}
.stock-info { margin-bottom: 16px; }
.stock-name { font-size: 14px; color: #8b949e; }
.stock-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.stock-price { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rt-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    color: #3fb950; border: 1px solid #3fb950; border-radius: 3px;
    padding: 0 4px; margin-left: 8px; line-height: 16px; vertical-align: middle;
}
.stock-change { font-size: 16px; font-weight: 500; }
.stock-change.up { color: #3fb950; }
.stock-change.down { color: #f85149; }
.stock-links { margin-top: 6px; }
.cninfo-link {
    font-size: 12px; color: #58a6ff; text-decoration: none;
    padding: 2px 10px; border: 1px solid #58a6ff; border-radius: 4px;
    display: inline-block; transition: all 0.15s;
}
.cninfo-link:hover { background: #58a6ff; color: #0d1117; }
#mainChart { width: 100%; height: 460px; }

/* Bottom Panel */
.bottom-panel {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px;
}
.panel-card {
    background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 20px;
}
.panel-title {
    font-size: 14px; font-weight: 600; color: #c9d1d9; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid #21262d;
}
.news-list { max-height: 320px; overflow-y: auto; }
.news-item {
    padding: 10px 0; border-bottom: 1px solid #21262d; font-size: 13px;
    color: #8b949e; cursor: pointer; transition: color 0.15s; line-height: 1.5;
}
.news-item:hover { color: #58a6ff; }
.news-item:last-child { border-bottom: none; }
.news-item .news-date { font-size: 11px; color: #484f58; display: block; margin-top: 4px; }
.news-link { color: #3fb950; text-decoration: none; display: block; }
.news-link:hover { color: #56d364; text-decoration: underline; }

.hot-stocks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hot-stock-item {
    padding: 8px 12px; background: #0d1117; border: 1px solid #21262d;
    border-radius: 6px; font-size: 12px; cursor: pointer; transition: all 0.15s;
    color: #c9d1d9;
}
.hot-stock-item:hover { border-color: #58a6ff; color: #58a6ff; }
.limit-up-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    color: #f85149; border: 1px solid #f85149; border-radius: 3px;
    padding: 0 4px; margin-left: 4px; line-height: 16px;
}

/* Footer */
.footer {
    text-align: center; padding: 24px; color: #484f58; font-size: 12px;
    border-top: 1px solid #21262d; margin-top: 20px;
}
.footer .update-time { margin-top: 4px; color: #30363d; font-size: 11px; }

/* Responsive */
@media (max-width: 768px) {
    .indices-grid { grid-template-columns: repeat(4, 1fr); }
    .market-overview { height: 200px; }
    .bottom-panel { grid-template-columns: 1fr; }
    .search-section { flex-direction: column; }
    .period-selector { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .indices-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar { flex-direction: column; gap: 8px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }


/* ─── Index Constituents Modal ─── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
.modal-overlay.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-container {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: slideUp 0.25s ease;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid #21262d;
    flex-shrink: 0;
}
.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #f0e6d0;
    letter-spacing: 1px;
}
.modal-close {
    font-size: 16px;
    color: #8b949e;
    cursor: pointer;
    line-height: 1;
    width: 32px; height: 32px;
    border: 1px solid #30363d;
    border-radius: 50%;
    background: #21262d;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.modal-close:hover { color: #f0e6d0; background: #30363d; border-color: #f85149; }

.modal-body {
    padding: 16px 28px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.modal-search {
    position: relative;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.modal-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.modal-search input:focus {
    border-color: #58a6ff;
}
.modal-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b949e;
    font-size: 16px;
}

.constituents-wrapper {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    border: 1px solid #21262d;
    border-radius: 8px;
}
.constituents-wrapper::-webkit-scrollbar {
    width: 6px;
}
.constituents-wrapper::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 4px;
}
.constituents-wrapper::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}
.constituents-wrapper::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.constituents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.constituents-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}
.constituents-table th {
    background: #1c2333;
    color: #8b949e;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #30363d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.constituents-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #21262d;
    color: #c9d1d9;
}
.constituents-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}
.constituents-table tbody tr:hover {
    background: #1c2333;
}
.constituents-table tbody tr:active {
    background: #21262d;
}

.col-code { width: 28%; }
.col-name { width: 32%; }
.col-price { width: 20%; text-align: right; }
.col-change { width: 20%; text-align: right; }
.constituents-table th.text-right { text-align: right; }
.constituents-table td.text-right { text-align: right; }

.constituents-table th.sortable { cursor: pointer; }
.constituents-table th.sortable:hover { color: #c9d1d9; }
.sort-arrow { font-size: 10px; margin-left: 2px; color: #f0883e; }

.constituents-table .change-up { color: #3fb950; font-weight: 600; }
.constituents-table .change-down { color: #f85149; font-weight: 600; }
.constituents-table .change-flat { color: #8b949e; }

.modal-hint {
    text-align: center;
    padding: 10px 0 0;
    font-size: 12px;
    color: #484f58;
    flex-shrink: 0;
}

/* Loading skeleton in modal */
.constituents-table .loading-row td {
    text-align: center;
    padding: 40px 14px;
    color: #8b949e;
}
.constituents-table .no-result td {
    text-align: center;
    padding: 40px 14px;
    color: #484f58;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-container {
        width: 96%;
        max-height: 90vh;
        border-radius: 12px;
    }
    .modal-header { padding: 16px 18px; }
    .modal-body { padding: 12px 18px 16px; }
    .constituents-table { font-size: 12px; }
    .constituents-table th,
    .constituents-table td { padding: 8px 10px; }
}


/* ─── Mysticism Section ─── */
/* --- Mysticism Section --- */
.mysticism-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.mysticism-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.mysticism-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mysticism-subtitle {
    font-size: 12px;
    color: #484f58;
    font-weight: 400;
    margin-left: 4px;
}
.mysticism-tabs {
    display: flex;
    gap: 2px;
    background: #0d1117;
    border-radius: 6px;
    padding: 2px;
}
.myst-tab {
    padding: 5px 14px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #8b949e;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.myst-tab:hover { color: #c9d1d9; background: #1c2333; }
.myst-tab.active {
    background: #58a6ff;
    color: #ffffff;
    font-weight: 600;
}
.myst-tab-content { display: none; }
.myst-tab-content.active { display: block; }

/* Almanac */
.almanac-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}
.almanac-date { flex: 1; }
.almanac-solar {
    font-size: 14px;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 4px;
}
.almanac-lunar {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 2px;
}
.almanac-ganzhi, .almanac-animal {
    font-size: 12px;
    color: #484f58;
    margin-bottom: 1px;
}
.almanac-star {
    text-align: right;
    flex-shrink: 0;
}
.almanac-sign {
    font-size: 14px;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 2px;
}
.almanac-luck {
    font-size: 12px;
    color: #8b949e;
    max-width: 260px;
    line-height: 1.5;
}
.almanac-yi-ji {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}
.yi-section, .ji-section { flex: 1; }
.yi-ji-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.yi-title { color: #3fb950; }
.ji-title { color: #f85149; }
.yi-ji-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    background: rgba(63, 185, 80, 0.1);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.2);
}
.ji-tag {
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.2);
}
.almanac-daily {
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    font-size: 12px;
    color: #8b949e;
    line-height: 1.6;
}

/* Zodiac & Animal Grids */
.zodiac-grid, .animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 6px;
    max-height: 380px;
    overflow-y: auto;
}
.zodiac-grid::-webkit-scrollbar, .animal-grid::-webkit-scrollbar {
    width: 4px;
}
.zodiac-grid::-webkit-scrollbar-thumb {
    background: #21262d;
    border-radius: 2px;
}
.zodiac-card, .animal-card {
    background: transparent;
    border: 1px solid #21262d;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.zodiac-card:hover, .animal-card:hover {
    border-color: #30363d;
    background: rgba(255,255,255,0.02);
}
.zodiac-card.today, .animal-card.today {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.04);
}
.zodiac-card .card-name, .animal-card .card-name {
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 3px;
}
.zodiac-card.today .card-name, .animal-card.today .card-name {
    color: #58a6ff;
}
.zodiac-card .card-badge, .animal-card .card-badge {
    display: inline-block;
    font-size: 9px;
    padding: 0 5px;
    border-radius: 2px;
    background: #58a6ff;
    color: #ffffff;
    margin-left: 3px;
    vertical-align: middle;
    font-weight: 500;
}
.zodiac-card .card-fortune, .animal-card .card-fortune {
    font-size: 11px;
    color: #484f58;
    line-height: 1.4;
}
.zodiac-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #484f58;
    font-size: 13px;
}

/* Hexagram Lines */
.hex-line {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 1px 0;
}
.hex-line .hex-bar { letter-spacing: 2px; }
.hex-line.hex-yang .hex-bar { color: #f0e6d0; }
.hex-line.hex-yin .hex-bar { color: #8b949e; }
.hex-line.hex-moving .hex-bar { color: #f0883e; }
.hex-line .hex-dot { color: #f0883e; font-size: 10px; }

/* Stars Tab */
.stars-intro {
    font-size: 11px;
    color: #484f58;
    margin-bottom: 10px;
}
.stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.star-card {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}
.star-card .star-name {
    font-size: 13px;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 3px;
}
.star-card .star-pos {
    font-size: 11px;
    color: #8b949e;
    margin-bottom: 4px;
}
.star-card .star-meaning {
    font-size: 11px;
    color: #484f58;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .mysticism-section { grid-template-columns: 1fr; }
    .mysticism-header { flex-direction: column; align-items: stretch; }
    .mysticism-tabs { justify-content: center; }
    .almanac-top { flex-direction: column; }
    .almanac-star { text-align: left; }
    .almanac-yi-ji { flex-direction: column; gap: 10px; }
    .zodiac-grid, .animal-grid { grid-template-columns: repeat(2, 1fr); max-height: none; }
}
@media (max-width: 600px) {
    .mysticism-header { flex-direction: column; align-items: stretch; }
    .mysticism-tabs { justify-content: center; }
    .almanac-top { flex-direction: column; }
    .almanac-star { text-align: left; }
    .almanac-yi-ji { flex-direction: column; gap: 12px; }
    .zodiac-grid, .animal-grid { grid-template-columns: repeat(2, 1fr); }
}


/* --- Flight Tracking Map --- */
.flight-map-card {
    margin-bottom: 20px;
}
.flight-subtitle {
    font-size: 12px;
    color: #484f58;
    font-weight: 400;
    margin-left: 6px;
}
.flight-stats {
    float: right;
    font-size: 12px;
    color: #8b949e;
    font-weight: 400;
}
.flight-map {
    width: 100%;
    height: 520px;
    border-radius: 8px;
    background: #0d1117;
    margin-top: 8px;
}
.airport-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.airport-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 4px;
    font-size: 11px;
    color: #8b949e;
}
.airport-tag .airport-code {
    font-weight: 600;
    color: #58a6ff;
}
.airport-tag .airport-count {
    color: #c9d1d9;
    font-weight: 500;
}

@media (max-width: 600px) {
    .flight-map { height: 300px; }
}


/* --- Hot Stocks by Region --- */
.hot-regions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.hot-region {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    padding: 10px;
}
.hot-region-title {
    font-size: 12px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #21262d;
}
.hot-region .hot-stock-item {
    padding: 5px 6px;
    margin-bottom: 2px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
    color: #c9d1d9;
}
.hot-region .hot-stock-item:hover {
    background: #1c2333;
}
.hot-region .hot-stock-item .limit-up-badge {
    font-size: 9px;
    padding: 0 4px;
    border-radius: 2px;
    background: #f85149;
    color: #fff;
    margin-left: 4px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hot-regions { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   Navbar - 右侧
   ═══════════════════════════════════════════════════════ */
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-about-link {
    font-size: 13px; color: #8b949e; cursor: pointer;
    padding: 4px 10px; border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.nav-about-link:hover { color: #58a6ff; background: rgba(88,166,255,0.08); }

/* ═══════════════════════════════════════════════════════
   About Overlay - 网站简介弹出层
   ═══════════════════════════════════════════════════════ */
.about-overlay {
    display: none; position: fixed;
    inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.65);
    align-items: center; justify-content: center;
}
.about-overlay--show { display: flex; }

.about-modal {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    width: 520px; max-width: 94vw;
    max-height: 85vh; overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    position: relative;
    animation: aboutFadeIn 0.2s ease;
}
@keyframes aboutFadeIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.about-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none; color: #8b949e;
    font-size: 18px; cursor: pointer;
    padding: 4px 8px; border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.about-close:hover { color: #fff; background: #21262d; }

.about-header {
    display: flex; align-items: center; gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #21262d;
}
.about-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a5c 0%, #2d1b3d 100%);
    border: 2px solid #58a6ff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #58a6ff;
    flex-shrink: 0;
}
.about-header-text { min-width: 0; }
.about-name {
    font-size: 18px; font-weight: 700; color: #f0e6d0; margin-bottom: 2px;
    display: flex; align-items: center; gap: 8px;
}
.about-badge {
    font-size: 10px; font-weight: 600;
    background: #b22222; color: #fff;
    padding: 1px 7px; border-radius: 3px;
    letter-spacing: 1px;
}
.about-title { font-size: 13px; color: #58a6ff; }

.about-body { padding: 18px 24px 24px; }
.about-bio p {
    font-size: 14px; color: #b1bac4; line-height: 1.9; margin-bottom: 10px;
    text-indent: 2em;
}
.about-bio b { color: #d2a8ff; }
.about-bio em { color: #e3b341; font-style: normal; background: rgba(227,179,65,0.08); padding: 0 4px; border-radius: 2px; }

.about-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.about-tag {
    font-size: 12px; color: #8b949e;
    background: #21262d; border: 1px solid #30363d;
    padding: 5px 12px; border-radius: 14px;
}

@media (max-width: 768px) {
    .about-modal { width: 96vw; }
    .about-header { gap: 12px; padding: 18px 16px 12px; }
    .about-body { padding: 14px 16px 18px; }
    .about-bio p { font-size: 13px; }
    .nav-about-link { font-size: 12px; padding: 3px 8px; }
}

/* ═══════════════════════════════════════════════════════
   Music Player - 底部固定栏
   ═══════════════════════════════════════════════════════ */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #161b22;
    border-top: 1px solid #30363d;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    user-select: none;
    -webkit-user-select: none;
}
/* 给 body 底部留空间 */
body { padding-bottom: 52px !important; }

/* ─── 顶部进度条 ─── */
.mp-progress-bar {
    position: relative;
    height: 3px;
    background: #21262d;
    cursor: pointer;
    transition: height 0.15s;
}
.mp-progress-bar:hover { height: 5px; }
.mp-progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #58a6ff, #3fb950);
    pointer-events: none;
    transition: width 0.1s linear;
}
.mp-progress-thumb {
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #58a6ff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, left 0.1s linear;
}
.mp-progress-bar:hover .mp-progress-thumb { opacity: 1; }

/* ─── 主体 ─── */
.mp-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
    height: 42px;
    gap: 12px;
}
.mp-left, .mp-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* ─── 按钮 ─── */
.mp-btn {
    background: none;
    border: none;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}
.mp-btn:hover { background: #21262d; color: #fff; }
.mp-btn-sm { font-size: 13px; padding: 3px 5px; }
.mp-play { font-size: 20px; }

/* 播放/暂停按钮突出 */
.mp-play:hover { color: #58a6ff; }

/* ─── 歌曲信息 ─── */
.mp-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: 4px;
}
.mp-song {
    font-size: 12px;
    color: #c9d1d9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}
.mp-time {
    font-size: 10px;
    color: #484f58;
    font-variant-numeric: tabular-nums;
}

/* ─── 音量 ─── */
.mp-volume-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.mp-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 3px;
    background: #30363d;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.mp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8b949e;
    cursor: pointer;
}
.mp-volume:hover::-webkit-slider-thumb { background: #58a6ff; }

/* ─── 播放列表弹出 ─── */
.mp-playlist {
    position: absolute;
    bottom: 100%;
    right: 16px;
    width: 360px;
    max-height: 400px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mp-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
    border-bottom: 1px solid #21262d;
}
.mp-playlist-count { font-size: 11px; color: #484f58; font-weight: 400; }
.mp-playlist-list {
    overflow-y: auto;
    max-height: 350px;
}
.mp-playlist-empty {
    padding: 32px 16px;
    text-align: center;
    color: #8b949e;
    font-size: 13px;
    line-height: 1.8;
}
.mp-playlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    border-bottom: 1px solid #0d1117;
    transition: background 0.1s;
    font-size: 12px;
}
.mp-playlist-item:hover { background: #1c2128; }
.mp-playlist-item.mp-active { background: #1a2332; }
.mp-playlist-item.mp-active .mp-pl-name { color: #58a6ff; }
.mp-pl-num {
    width: 20px;
    text-align: center;
    color: #484f58;
    font-size: 11px;
    flex-shrink: 0;
}
.mp-pl-name {
    flex: 1;
    color: #c9d1d9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-pl-artist {
    color: #8b949e;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.mp-pl-dur {
    color: #484f58;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ─── 响应式 ─── */
@media (max-width: 768px) {
    .mp-volume { width: 0; overflow: hidden; }
    .mp-volume-wrap:hover .mp-volume { width: 60px; }
    .mp-song { max-width: 140px; }
    .mp-playlist { right: 4px; width: calc(100vw - 8px); }
    .mp-main { padding: 4px 8px; gap: 4px; }
    .mp-left, .mp-right { gap: 2px; }
    body { padding-bottom: 48px !important; }
}
