/* 电站财务管理 - 自定义样式 */

:root {
    --bg-main: #f3f6f4;
    --bg-card: #ffffff;
    --text-main: #1f2a37;
    --text-muted: #6b7280;
    --border-soft: #d9e2dc;
    --primary: #0f766e;
    --primary-deep: #134e4a;
    --success-soft: #dcfce7;
    --danger-soft: #fee2e2;
    --warning-soft: #fef3c7;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
        linear-gradient(180deg, #f6faf8 0%, var(--bg-main) 100%);
    color: var(--text-main);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.navbar {
    background: linear-gradient(135deg, #0f766e 0%, #1d4d4f 100%) !important;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.card {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(217, 226, 220, 0.7);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #edf1ef;
    font-weight: 700;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(17, 94, 89, 0.86)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08), transparent);
    color: #fff;
    border-radius: 24px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.22);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 0.75rem;
    align-self: start;
    min-width: min(100%, 360px);
}

.hero-chip {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.hero-chip-label {
    display: block;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.35rem;
}

.stat-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: none;
}

.stat-card:hover,
.station-card:hover {
    transform: translateY(-4px);
}

.stat-card-income {
    background: linear-gradient(180deg, #ffffff 0%, #f1fbf5 100%);
}

.stat-card-expense {
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.stat-card-profit {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.stat-card-tax {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
}

.stat-footnote {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.table th {
    font-weight: 700;
    color: #475569;
    border-top: none;
    background-color: #f8fafc;
    white-space: nowrap;
}

.table-hover tbody tr:hover {
    background-color: rgba(15, 118, 110, 0.06);
}

.btn {
    border-radius: 10px;
    padding: 0.45rem 1rem;
    font-weight: 600;
}

.btn-sm {
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #d7dfdc;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.filter-bar {
    background-color: rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(217, 226, 220, 0.75);
}

.amount-positive {
    color: #0f766e;
    font-weight: 700;
}

.amount-negative {
    color: #dc2626;
    font-weight: 700;
}

.badge {
    font-weight: 600;
    padding: 0.42em 0.72em;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.alert-card {
    border-radius: 16px;
    padding: 1rem 1rem 0.95rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    border: 1px solid transparent;
}

.alert-card h6 {
    font-weight: 700;
}

.alert-card p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.92rem;
}

.alert-danger {
    background: #fff2f2;
    border-color: #fecaca;
}

.alert-warning {
    background: #fff9e8;
    border-color: #fde68a;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.alert-secondary {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.station-card {
    background: linear-gradient(180deg, #fbfffd 0%, #f2f8f6 100%);
    border: 1px solid #e3ece8;
    border-radius: 18px;
    padding: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.station-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.station-metrics span,
.station-footer {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.station-metrics strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1rem;
}

.station-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #d5e3dd;
}

.metric-block-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.progress-line + .progress-line {
    margin-top: 0.95rem;
}

.soft-progress {
    height: 10px;
    border-radius: 999px;
    background: #edf2f7;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
}

.dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #eef2f0;
}

.dashboard-item:last-child {
    border-bottom: none;
}

.compact-list .dashboard-item {
    padding-left: 0;
    padding-right: 0;
}

.compact-list .dashboard-item:first-child {
    padding-top: 0;
}

.compact-list .dashboard-item:last-child {
    padding-bottom: 0;
}

.equity-card {
    border: 1px solid #e6ece9;
    border-radius: 16px;
    padding: 1rem;
    background: #fbfcfc;
}

.equity-card + .equity-card {
    margin-top: 0.85rem;
}

.equity-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.92rem;
}

.empty-hint {
    color: var(--text-muted);
    background: #f8faf9;
    border: 1px dashed #d6e0db;
    border-radius: 14px;
    padding: 1rem;
}

.text-bg-warning {
    color: #533f03 !important;
}

.table-responsive {
    scrollbar-width: thin;
}

.dashboard-item .btn {
    flex-shrink: 0;
}

.login-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.24), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.14), transparent 22%),
        linear-gradient(135deg, #eef8f5 0%, #f7fbfa 45%, #edf4f2 100%);
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-panel {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
}

.login-hero {
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.96), rgba(19, 78, 74, 0.92)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08), transparent);
    color: #fff;
    border-radius: 28px;
    padding: 2.4rem;
    box-shadow: 0 25px 60px rgba(15, 118, 110, 0.2);
    position: relative;
    overflow: hidden;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin: 1rem 0 0.75rem;
    letter-spacing: -0.04em;
}

.login-subtitle {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.login-highlights {
    display: grid;
    gap: 0.85rem;
}

.login-highlight {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.login-highlight span {
    display: block;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
}

.login-highlight strong {
    font-size: 1rem;
    font-weight: 700;
}

.login-card {
    border-radius: 28px;
    display: flex;
    align-items: center;
}

.login-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-mark {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(15, 118, 110, 0.1);
}

.login-card .input-group-text {
    border-radius: 12px 0 0 12px;
    border-color: #d7dfdc;
    background: #f8fbfa;
    color: var(--text-muted);
}

.login-card .form-control {
    border-left: 0;
}

.login-card .form-control,
.login-card .input-group-text {
    min-height: 54px;
}

@media (max-width: 991.98px) {
    .login-panel {
        grid-template-columns: 1fr;
    }

    .login-hero,
    .login-card {
        border-radius: 24px;
    }
}

@media (max-width: 575.98px) {
    .login-shell {
        padding: 1rem;
    }

    .login-hero,
    .login-card .card-body {
        padding: 1.4rem !important;
    }

    .login-title {
        font-size: 1.8rem;
    }
}

.footer {
    border-top: 1px solid rgba(217, 226, 220, 0.8);
    background: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 991.98px) {
    .hero-meta {
        grid-template-columns: 1fr;
        min-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-panel {
        padding: 1.4rem 1.2rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .station-metrics {
        grid-template-columns: 1fr;
    }

    .station-footer,
    .dashboard-item,
    .alert-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
