@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=ZCOOL+XiaoWei&display=swap");

:root {
    --bg: #07111f;
    --bg-soft: rgba(10, 20, 38, 0.84);
    --surface: rgba(15, 26, 48, 0.88);
    --surface-strong: rgba(24, 37, 65, 0.94);
    --border: rgba(162, 195, 255, 0.22);
    --text: #eef6ff;
    --muted: #a9bedc;
    --accent: #ff7aa2;
    --accent-2: #6bdcff;
    --accent-3: #ffd36f;
    --success: #72f3b5;
    --danger: #ff8c9c;
    --shadow: 0 24px 70px rgba(2, 9, 20, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Outfit", "Microsoft YaHei UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 122, 162, 0.18), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(107, 220, 255, 0.16), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(255, 211, 111, 0.12), transparent 30%),
        linear-gradient(180deg, #091221 0%, #09111d 45%, #050a14 100%);
}

.page-shell {
    position: relative;
    overflow: hidden;
    padding: 40px 28px 64px;
}

.aurora {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.aurora-left {
    top: -120px;
    left: -90px;
    background: rgba(255, 122, 162, 0.48);
}

.aurora-right {
    top: 120px;
    right: -100px;
    background: rgba(107, 220, 255, 0.32);
}

.hero,
.panel {
    position: relative;
    z-index: 1;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(9, 21, 39, 0.92), rgba(20, 37, 63, 0.88));
    box-shadow: var(--shadow);
}

.eyebrow,
.panel-eyebrow {
    margin: 0 0 8px;
    color: var(--accent-2);
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.hero h1,
.panel h2 {
    margin: 0;
    font-family: "ZCOOL XiaoWei", "Microsoft YaHei UI", serif;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.08;
}

.hero-text {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.hero-actions,
.form-actions,
.table-toolbar,
.panel-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 24px;
}

.hero-panel {
    padding: 22px 20px;
    align-self: stretch;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel-title {
    margin: 0 0 14px;
    font-size: 1.08rem;
    font-weight: 700;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges span,
.tip-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.85rem;
}

.hero-panel-footnote {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.4fr);
    gap: 24px;
    margin-top: 24px;
}

.stats-panel,
.timeline-panel,
.editor-panel,
.table-panel {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    padding: 24px;
}

.stats-panel,
.timeline-panel {
    grid-column: span 2;
}

.panel h2 {
    font-size: 1.6rem;
}

.stats-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.8rem;
    font-weight: 800;
}

.timeline-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.timeline-columns h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.list-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-card strong {
    display: block;
    margin-bottom: 6px;
}

.mini-card p,
.mini-card small {
    margin: 0;
    color: var(--muted);
}

.menu-form {
    margin-top: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label span {
    color: var(--muted);
    font-size: 0.92rem;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(4, 11, 24, 0.42);
    color: var(--text);
    padding: 12px 14px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(107, 220, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(107, 220, 255, 0.16);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
}

.full-width {
    margin-top: 14px;
}

.form-actions {
    justify-content: flex-start;
    margin-top: 16px;
}

.primary-button,
.ghost-button,
.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--accent), #ff9c6b);
    box-shadow: 0 10px 24px rgba(255, 122, 162, 0.28);
}

.ghost-button,
.table-action {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.primary-button:hover,
.ghost-button:hover,
.table-action:hover {
    transform: translateY(-1px);
}

.table-toolbar {
    margin-top: 18px;
    justify-content: flex-start;
}

.table-toolbar input {
    max-width: 320px;
}

.table-wrap {
    margin-top: 16px;
    overflow: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

thead th {
    position: sticky;
    top: 0;
    background: rgba(9, 17, 31, 0.94);
    color: var(--muted);
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
}

tbody td {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.badge-active {
    color: #082116;
    background: rgba(114, 243, 181, 0.9);
}

.badge-inactive {
    color: #34121a;
    background: rgba(255, 140, 156, 0.9);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(11, 20, 35, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-panel,
    .timeline-panel {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 840px) {
    .page-shell {
        padding: 20px 14px 42px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-toolbar,
    .panel-title-row,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
