:root {
    --ui-bg: #081321;
    --ui-bg-soft: #10283e;
    --ui-surface: rgba(255, 255, 255, 0.92);
    --ui-surface-soft: rgba(255, 255, 255, 0.82);
    --ui-border: rgba(255, 255, 255, 0.16);
    --ui-border-strong: rgba(7, 24, 41, 0.12);
    --ui-text: #0b1728;
    --ui-text-soft: #526174;
    --ui-text-muted: #7e8c9b;
    --ui-primary: #276ef1;
    --ui-primary-strong: #0f4ed0;
    --ui-secondary: #0f766e;
    --ui-success: #15803d;
    --ui-danger: #dc2626;
    --ui-warning: #b45309;
    --ui-shadow-xl: 0 28px 60px rgba(4, 12, 25, 0.28);
    --ui-shadow-lg: 0 18px 36px rgba(10, 24, 43, 0.18);
    --ui-radius-xl: 32px;
    --ui-radius-lg: 24px;
    --ui-radius-md: 18px;
    --bs-body-font-family: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    --bs-body-color: var(--ui-text);
    --bs-body-bg: transparent;
    --bs-border-radius-lg: var(--ui-radius-md);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ui-text);
    background:
        radial-gradient(circle at 10% 15%, rgba(39, 110, 241, 0.24), transparent 24rem),
        radial-gradient(circle at 85% 18%, rgba(34, 211, 238, 0.18), transparent 22rem),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.14), transparent 26rem),
        linear-gradient(135deg, #06101c 0%, #0b1d31 46%, #0c2f3f 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 22px
        );
    opacity: 0.7;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    padding: 2.5rem 1.5rem 3.5rem;
}

.page-shell::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 16rem;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 12, 25, 0.24) 100%);
}

.container {
    position: relative;
    z-index: 1;
}

.content-stack {
    position: relative;
    z-index: 1;
    width: min(1288px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 2.25rem;
}

.app-panel {
    position: relative;
    padding: 2rem;
    border-radius: var(--ui-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 252, 0.92) 100%);
    box-shadow: var(--ui-shadow-xl);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.app-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(39, 110, 241, 0.08), transparent 16rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 26%);
}

.app-panel > * {
    position: relative;
    z-index: 1;
}

.app-panel-dark {
    color: #f8fbff;
    background:
        linear-gradient(180deg, rgba(8, 19, 33, 0.96) 0%, rgba(10, 33, 55, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.12);
}

.app-panel-dark::before {
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 16rem),
        radial-gradient(circle at bottom left, rgba(39, 110, 241, 0.18), transparent 18rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 251, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.display-title {
    margin: 1.2rem 0 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.lead-copy {
    margin: 1rem 0 0;
    color: rgba(236, 245, 255, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.status-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-label {
    color: rgba(236, 245, 255, 0.62);
    font-size: 0.92rem;
}

.status-item strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

.info-divider {
    height: 1px;
    margin: 1.8rem 0 1.3rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
}

.quick-steps {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: start;
}

.quick-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
}

.quick-steps strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #ffffff;
    font-size: 1rem;
}

.quick-steps p {
    margin: 0;
    color: rgba(236, 245, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.7;
}

.small-note {
    margin-top: 1.5rem;
    color: rgba(236, 245, 255, 0.58);
    font-size: 0.88rem;
    line-height: 1.7;
}

.panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panel-kicker {
    color: var(--ui-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-title {
    margin: 0.4rem 0 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.panel-subtitle {
    margin: 0.55rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.98rem;
    line-height: 1.7;
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(39, 110, 241, 0.1);
    color: var(--ui-primary-strong);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

.panel-chip-muted {
    background: rgba(15, 118, 110, 0.1);
    color: var(--ui-secondary);
}

.form-label {
    margin-bottom: 0.55rem;
    color: var(--ui-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.form-control {
    min-height: 3.65rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ui-text);
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--ui-text-muted);
}

.form-control:focus {
    border-color: rgba(39, 110, 241, 0.42);
    box-shadow: 0 0 0 0.28rem rgba(39, 110, 241, 0.12);
}

.btn {
    border-radius: var(--ui-radius-md);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-lg {
    min-height: 3.7rem;
}

.btn-ui-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ui-primary) 0%, #22a3ff 100%);
    border: 0;
    box-shadow: var(--ui-shadow-lg);
}

.btn-ui-primary:hover,
.btn-ui-primary:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ui-primary-strong) 0%, #188bd8 100%);
}

.btn-ui-secondary {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border: 0;
    box-shadow: var(--ui-shadow-lg);
}

.btn-ui-secondary:hover,
.btn-ui-secondary:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #0c5f58 0%, #109e90 100%);
}

.feedback-card {
    padding: 1.35rem;
    border-radius: var(--ui-radius-lg);
    border: 1px solid rgba(13, 27, 42, 0.1);
    background: rgba(247, 251, 255, 0.92);
}

.feedback-card-success {
    border-color: rgba(21, 128, 61, 0.18);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(236, 252, 242, 0.94) 100%);
}

.feedback-card-danger {
    border-color: rgba(220, 38, 38, 0.18);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.98) 0%, rgba(254, 237, 237, 0.94) 100%);
}

.feedback-card-neutral {
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.98) 0%, rgba(242, 247, 252, 0.94) 100%);
}

.feedback-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feedback-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.feedback-text {
    margin: 0.45rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.95rem;
    line-height: 1.75;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill-success {
    background: rgba(21, 128, 61, 0.12);
    color: var(--ui-success);
}

.status-pill-muted {
    background: rgba(82, 97, 116, 0.12);
    color: var(--ui-text-soft);
}

.detail-grid {
    display: grid;
    gap: 0.85rem;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(13, 27, 42, 0.08);
}

.detail-key {
    color: var(--ui-text-soft);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--ui-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.feedback-actions {
    margin-top: 1.1rem;
}

.feedback-note {
    margin-top: 1rem;
    color: var(--ui-text-soft);
    font-size: 0.88rem;
    line-height: 1.7;
}

.inline-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(13, 27, 42, 0.12);
}

.inline-panel-title {
    margin-bottom: 0.8rem;
    color: var(--ui-text);
    font-size: 0.94rem;
    font-weight: 600;
}

.app-toast {
    min-width: min(24rem, calc(100vw - 2rem));
    color: #ffffff;
    background: rgba(9, 18, 31, 0.92);
    border-radius: 1.2rem;
    box-shadow: var(--ui-shadow-xl);
    backdrop-filter: blur(18px);
}

.toast-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: #60a5fa;
    box-shadow: 0 0 0 0.3rem rgba(96, 165, 250, 0.16);
}

.app-toast.toast-success .toast-dot {
    background: #4ade80;
    box-shadow: 0 0 0 0.3rem rgba(74, 222, 128, 0.16);
}

.app-toast.toast-danger .toast-dot {
    background: #f87171;
    box-shadow: 0 0 0 0.3rem rgba(248, 113, 113, 0.16);
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.toast-message {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.6;
}

.btn-close-white {
    opacity: 0.75;
}

.btn-close-white:hover {
    opacity: 1;
}

@media (max-width: 1199.98px) {
    .app-panel-dark {
        min-height: auto !important;
    }
}

@media (max-width: 767.98px) {
    .page-shell {
        padding: 1.5rem 0.9rem 2.5rem;
    }

    .app-panel {
        padding: 1.4rem;
        border-radius: 1.6rem;
    }

    .panel-head,
    .feedback-header,
    .detail-row,
    .status-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-chip,
    .status-pill {
        white-space: normal;
    }

    .detail-value,
    .status-item strong {
        text-align: left;
    }

    .quick-steps li {
        gap: 0.8rem;
    }
}
