.network-dashboard-page {
    min-height: 100vh;
    padding: 12px 0 24px;
    background:
        radial-gradient(circle at 8% 2%, rgba(37, 99, 235, .16), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(20, 184, 166, .13), transparent 28%),
        radial-gradient(circle at 50% 42%, rgba(14, 165, 233, .07), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 38%, #ffffff 100%);
}

.network-container {
    max-width: 1540px;
    margin: 0 auto;
    padding-right: 12px;
    padding-left: 12px;
}

.network-hero,
.network-status-strip,
.network-panel,
.network-metric-card {
    border: 1px solid rgba(226, 232, 240, .78);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}

.network-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 14px;
    padding: 24px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(239, 246, 255, .82) 48%, rgba(236, 253, 245, .78)),
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, .12), transparent 26%);
}

/* 仪表盘页头保持紧凑，把首屏空间留给筛选与核心数据。 */
.network-hero {
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, .94);
}

.network-hero::before { display: none; }

.network-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .38), transparent 56%),
        radial-gradient(circle at 88% 18%, rgba(16, 185, 129, .13), transparent 24%);
}

.network-hero > * { position: relative; z-index: 1; }

.network-hero-main {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}

.network-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.network-logo-mark {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #1d4ed8, #14b8a6);
    box-shadow: 0 16px 28px rgba(37, 99, 235, .20);
}

.network-kicker {
    color: #2563eb;
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.network-title {
    color: #0f172a;
    font-size: clamp(1.45rem, 2vw, 2.05rem);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: 0;
    margin: 0 0 8px;
}

.network-title-row .network-title { margin: 0; }

.network-desc {
    color: #64748b;
    font-size: .88rem;
    line-height: 1.62;
    margin: 0;
    max-width: 760px;
}

.network-source-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 7px 12px;
    color: #0f766e;
    background: rgba(240, 253, 250, .86);
    border: 1px solid rgba(94, 234, 212, .72);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 850;
    text-decoration: none;
}

.network-title-row .network-source-link {
    margin-top: 0;
    padding: 5px 9px;
}

.network-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding: 4px 8px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 8px;
    background: rgba(248, 250, 252, .86);
    white-space: nowrap;
}

.network-status-inline .network-status-label {
    margin-right: 0;
    font-size: .64rem;
}

.network-status-inline strong {
    color: #475569;
    font-size: .68rem;
    font-weight: 800;
}

.network-source-link:hover {
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(20, 184, 166, .12);
}

.network-toolbar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 620px;
}

.network-toolbar-group {
    display: grid;
    gap: 5px;
}

.network-control-label {
    color: #64748b;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.network-period-pills {
    display: inline-flex;
    gap: 5px;
    padding: 4px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .80);
    border: 1px solid rgba(203, 213, 225, .74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.network-period-pills button,
.network-ghost-btn {
    font-size: .74rem;
    font-weight: 850;
    transition: all .16s ease;
}

.network-period-pills button {
    border: 0;
    border-radius: 9px;
    color: #64748b;
    background: transparent;
    padding: 6px 11px;
}

.network-period-pills button.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .16);
}

.network-ghost-btn {
    border: 0;
    border-radius: 10px;
    color: #64748b;
    background: rgba(148, 163, 184, .12);
    padding: 6px 9px;
}

.network-ghost-btn:hover { color: #0f172a; background: rgba(148, 163, 184, .20); }

.network-status-strip {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
}

.network-status-strip {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: none;
}

.network-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 14px;
    padding: 0 4px;
    border-bottom: 1px solid #dbe4ef;
}

.network-tabs button {
    min-width: 0;
    min-height: 42px;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #64748b;
    background: transparent;
    font-size: .8rem;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.network-tabs button:hover {
    color: #0f172a;
    background: #f8fafc;
}

.network-tabs button.active {
    color: #0f766e;
    border-bottom-color: #14b8a6;
    background: rgba(240, 253, 250, .72);
}

.network-tabs button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.network-tab-content { position: relative; }

.network-tab-panel:not(.active) {
    display: none;
}

.network-tab-panel.active {
    display: block;
}

.network-performance-grid {
    margin-bottom: 18px;
}

.network-performance-grid > [class*="col-"] { min-width: 0; }

.network-status-label {
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 850;
    margin-right: 8px;
}

.network-status-strip strong {
    color: #0f172a;
    font-size: .86rem;
    font-weight: 900;
}

.network-alert {
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: .82rem;
    font-weight: 800;
}

.network-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.network-metric-card {
    min-height: 210px;
    border-radius: 24px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .92));
    overflow: hidden;
    position: relative;
}

.network-metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.24), transparent 54%);
}

.network-metric-card::after {
    content: '';
    position: absolute;
    right: -34px;
    top: -34px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    opacity: .17;
}

.metric-green::after { background: #22c55e; }
.metric-blue::after { background: #38bdf8; }
.metric-teal::after { background: #14b8a6; }
.metric-red::after { background: #fb7185; }

.metric-head,
.metric-row,
.metric-sub,
.network-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.metric-title {
    color: #0f172a;
    font-size: .8rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 10px 18px rgba(37, 99, 235, .14);
}

.metric-row { align-items: center; margin-top: 18px; }

.metric-label,
.metric-sub {
    color: #64748b;
    font-size: .76rem;
    font-weight: 760;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    background: #f1f5f9;
    color: #64748b;
}

.metric-trend.up { color: #047857; background: #ecfdf5; }
.metric-trend.down { color: #be123c; background: #fff1f2; }

.metric-value {
    position: relative;
    z-index: 1;
    color: #0f172a;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
    margin-top: 8px;
    margin-bottom: 8px;
}

.metric-sub {
    align-items: center;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(226, 232, 240, .72);
}

.metric-sub strong { color: #0f172a; font-size: 1.02rem; font-weight: 900; }

.metric-sub strong.metric-name {
    color: #334155;
    font-size: .74rem;
    line-height: 1.35;
    text-align: right;
}

.metric-sparkline {
    position: relative;
    z-index: 1;
    height: 62px;
    margin-top: 8px;
}

.metric-sparkline .apexcharts-tooltip {
    font-size: .72rem;
}

.network-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.network-panel-large { grid-column: 1 / -1; }

.network-panel {
    border-radius: 24px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .94));
    overflow: visible;
}

.network-panel-head { align-items: center; margin-bottom: 10px; }
.network-panel-head.compact { margin-bottom: 6px; }

.network-info-btn {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4ef;
    border-radius: 50%;
    color: #64748b;
    background: #ffffff;
    font-size: .9rem;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.network-info-btn:hover,
.network-info-btn:focus-visible {
    color: #0f766e;
    border-color: #5eead4;
    background: #f0fdfa;
}

.network-info-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.network-panel h2 {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 920;
    letter-spacing: 0;
    margin: 0 0 4px;
}

.network-panel p {
    color: #64748b;
    font-size: .76rem;
    margin: 0;
    line-height: 1.5;
}

.network-panel-badge {
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}

.network-chart { width: 100%; }
.network-chart-large { min-height: 300px; }
.network-chart-medium { min-height: 260px; }
.network-chart-small { min-height: 212px; }
.network-chart-mini { min-height: 212px; }

.network-panel .apexcharts-canvas,
.network-panel .apexcharts-svg {
    overflow: visible;
}

.network-table-panel { padding-bottom: 20px; }
.network-table-wrap .bootstrap-table .fixed-table-container { border: 0; }

.network-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: .78rem;
}

.network-table thead th {
    color: #64748b;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 0 !important;
    background: rgba(248, 251, 255, .96) !important;
    padding: 8px 10px;
}

.network-table tbody td {
    border-top: 1px solid rgba(226, 232, 240, .7) !important;
    border-bottom: 1px solid rgba(226, 232, 240, .7) !important;
    padding: 10px !important;
    vertical-align: middle;
    background: transparent !important;
}

.network-table tbody td:first-child {
    border-left: 1px solid rgba(226, 232, 240, .7) !important;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.network-table tbody td:last-child {
    border-right: 1px solid rgba(226, 232, 240, .7) !important;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.network-table-wrap .fixed-table-pagination { color: #64748b; font-size: .72rem; }
.network-table-wrap .fixed-table-pagination .btn,
.network-table-wrap .fixed-table-pagination .page-link,
.network-table-wrap .fixed-table-pagination .dropdown-toggle {
    padding: 3px 8px;
    font-size: .7rem;
    border-radius: 7px;
}

@media (max-width: 1180px) {
    .network-hero { flex-direction: column; }
    .network-toolbar { max-width: none; justify-content: flex-start; }
    .network-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .network-module-grid { grid-template-columns: 1fr; }
    .network-panel-large { grid-column: auto; }
}

@media (max-width: 768px) {
    .network-dashboard-page { padding-top: 8px; }
    .network-hero,
    .network-hero-main,
    .network-toolbar,
    .network-status-strip {
        align-items: flex-start;
        flex-direction: column;
    }
    .network-hero { padding: 18px; border-radius: 24px; }
    .network-logo-mark { width: 52px; height: 52px; border-radius: 17px; }
    .network-card-grid { grid-template-columns: 1fr; }
    .network-title { font-size: 1.35rem; }
    .network-desc { font-size: .82rem; }
    .network-period-pills { flex-wrap: wrap; }
    .network-ghost-btn { width: 100%; justify-content: center; }
    .metric-value { font-size: 1.65rem; }
    .network-panel { padding: 15px; border-radius: 20px; }
    .network-panel-head { flex-direction: column; align-items: flex-start; }
    .network-chart-large { min-height: 280px; }
    .network-chart-medium { min-height: 240px; }
    .network-chart-small,
    .network-chart-mini { min-height: 205px; }
}

.metric-orange::after { background: #f97316; }

.compact-sub {
    margin-top: 8px;
    padding-top: 8px;
}

.network-core-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, .95fr);
    gap: 18px;
    margin-bottom: 18px;
}

.network-trend-side {
    display: grid;
    gap: 18px;
}

.network-eco-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.network-panel-main {
    min-height: 100%;
}

.network-panel-badge {
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
}

.network-mini-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 120px;
    padding: 8px 11px;
    border-radius: 14px;
    background: rgba(248, 251, 255, .92);
    border: 1px solid rgba(226, 232, 240, .78);
}

.network-mini-stat span {
    color: #64748b;
    font-size: .66rem;
    font-weight: 850;
}

.network-mini-stat strong {
    color: #0f172a;
    font-size: .92rem;
    font-weight: 950;
}

.network-table-panel .network-panel-head {
    align-items: center;
}

@media (max-width: 1180px) {
    .network-core-grid,
    .network-eco-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .network-toolbar-group,
    .network-period-pills { width: 100%; }
    .network-period-pills button { flex: 1 1 auto; }
    .network-mini-stat { align-items: flex-start; width: 100%; }
    .network-core-grid,
    .network-eco-grid,
    .network-trend-side { gap: 14px; }
}

/* PC 端核心区左侧图表不再随右侧双面板等高拉伸，避免图表下方出现大块空白。 */
.network-core-grid {
    align-items: start;
}

.network-panel-main {
    min-height: auto;
    align-self: start;
}

/* 核心分析区改为大屏仪表盘布局：主图全宽，两个辅图并列，避免左右列高度差造成视觉空洞。 */
.network-core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.network-core-grid > .network-panel-main {
    grid-column: 1 / -1;
}

.network-trend-side {
    display: contents;
}

.network-core-grid > .network-panel,
.network-trend-side > .network-panel {
    min-width: 0;
}

.network-core-grid .network-panel-main .network-chart-large {
    min-height: 360px;
}

@media (max-width: 1180px) {
    .network-core-grid {
        grid-template-columns: 1fr;
    }

    .network-core-grid > .network-panel-main {
        grid-column: auto;
    }

    .network-trend-side {
        display: grid;
    }
}

/* 顶部 KPI 共 7 张卡片；桌面端四列，避免指标标题与数值过度拥挤。 */
.network-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-purple::after { background: #8b5cf6; }
.metric-gray::after { background: #64748b; }

.metric-purple .metric-icon {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

@media (max-width: 1280px) {
    .network-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    .network-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .network-card-grid { grid-template-columns: 1fr; }
    .network-chart-large { min-height: 300px; }
    .network-chart-medium { min-height: 260px; }
}

#fee_burn_stack_chart {
    min-height: 286px;
    height: 286px;
}

.network-chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #be123c;
    font-size: .82rem;
    font-weight: 800;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 16px;
}

.network-panel-wide {
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    .network-panel-wide { grid-column: auto; }
}

#network_panel_overview .network-core-grid > .network-panel-main {
    grid-column: auto;
}

#network_panel_overview .network-core-grid .network-chart-large {
    min-height: 286px;
}

@media (max-width: 768px) {
    .network-hero { padding: 12px; border-radius: 14px; }
    .network-title-row { align-items: flex-start; }
    .network-source-link { max-width: 100%; }
    .network-status-strip { padding: 8px 10px; }
    .network-tabs {
        display: flex;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        padding: 0;
    }
    .network-tabs::-webkit-scrollbar { display: none; }
    .network-tabs button {
        flex: 0 0 auto;
        min-width: 126px;
        padding: 0 10px;
    }
}
.network-security-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.network-security-summary div { background: #fff; border: 1px solid #e2e8f0; padding: 14px 16px; border-radius: 10px; display: flex; flex-direction: column; gap: 5px; }
.network-security-summary span { color: #64748b; font-size: .78rem; }
.network-security-summary strong { color: #0f172a; font-size: 1.2rem; }
.network-security-ratio-panel { margin-bottom: 16px; }
.network-security-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (max-width: 768px) { .network-security-summary, .network-security-grid { grid-template-columns: 1fr; } }
