* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: radial-gradient(circle at 10% 10%, #eef3ff, #f7f9fc 45%, #f2f5fb 100%);
    color: #1f2a44;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.top-title {
    background: linear-gradient(90deg, #102a56, #16366f);
    color: #fff;
    padding: 14px 24px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 14px rgba(10, 29, 59, 0.18);
}

.top-title-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-unread-badge {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 179, 107, 0.22);
    border: 1px solid rgba(255, 219, 184, 0.48);
    color: #fff3e7;
    font-size: 12px;
    font-weight: 700;
}

.top-title-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px;
}

/* 用户端：左 Logo、右表单；整块在顶栏下方区域水平 + 垂直居中；窄屏单列堆叠 */
.user-auth-page {
    min-height: calc(100vh - 56px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.user-auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 244, 0.98);
    box-shadow: 0 16px 42px rgba(16, 42, 86, 0.1);
    overflow: hidden;
}

.user-auth-panel__brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px;
    background: linear-gradient(180deg, #eef3ff 0%, #f8fafc 100%);
    border-right: 1px solid #e4eaf5;
}

.user-auth-panel__body {
    padding: 28px 28px 32px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

@media (max-width: 899px) {
    .user-auth-panel {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .user-auth-panel__brand {
        border-right: none;
        border-bottom: 1px solid #e4eaf5;
        padding: 24px 16px 16px;
    }

    .user-auth-panel__body {
        padding: 20px 20px 28px;
    }
}

.user-auth-panel__body > h2 {
    margin-top: 0;
    margin-bottom: 18px;
    text-align: center;
    font-size: 1.35rem;
}

.user-auth-panel .auth-logo-3d-shell {
    width: 220px;
    height: 220px;
}

.user-auth-panel .auth-logo-3d-shell .front-logo-3d-wrap {
    width: 180px;
    height: 180px;
}

.user-auth-panel .logo-box {
    width: 180px;
    height: 180px;
    font-size: 26px;
    border-radius: 36px;
}

.user-auth-reset-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 16px;
    font-size: 28px;
    font-weight: 700;
    color: #16366f;
    letter-spacing: 2px;
    text-align: center;
}

.user-auth-links {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

.user-auth-links a {
    color: #1f66ff;
    text-decoration: none;
}

.user-auth-links a:hover {
    text-decoration: underline;
}

.user-auth-legal {
    margin-top: 10px;
    font-size: 12px;
    color: #5f6f8f;
    line-height: 1.55;
    text-align: center;
}

.user-auth-legal a {
    color: #1f66ff;
    text-decoration: none;
}

.user-auth-legal a:hover {
    text-decoration: underline;
}

.auth-wrap {
    min-height: calc(100vh - 56px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.logo-box {
    width: 320px;
    height: 320px;
    border-radius: 58px;
    background: linear-gradient(150deg, #ff8c00, #ffb547);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 20px 36px rgba(16, 42, 86, 0.26);
}

.logo-box.has-image {
    background: #fff;
    border: 1px solid #e6ebf5;
    padding: 18px;
}

.logo-box img {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    object-fit: contain;
    background: #fff;
}

.auth-logo-3d-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 320px;
}

.auth-logo-3d-shell .front-logo-3d-wrap {
    width: 240px;
    height: 240px;
    margin: 0;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 22px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 34px rgba(16, 42, 86, 0.12);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d4dceb;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
}

input:focus, textarea:focus, select:focus {
    outline: 0;
    border-color: #4e85ff;
    box-shadow: 0 0 0 3px rgba(31, 102, 255, 0.14);
}

button {
    border: 0;
    background: linear-gradient(135deg, #1f66ff, #3b7dff);
    color: #fff;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(31, 102, 255, 0.26);
    transition: transform .15s, box-shadow .15s, filter .15s;
}

button:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(31, 102, 255, 0.3);
}

button.is-loading,
input[type="submit"].is-loading {
    opacity: 0.75;
    cursor: not-allowed;
    filter: grayscale(0.08);
    transform: none;
}

.hint {
    background: linear-gradient(180deg, #f0f5ff, #eef7ff);
    color: #203355;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.error {
    background: linear-gradient(180deg, #ffeaea, #fff1f1);
    color: #8d2424;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ffd0d0;
}

.app-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 56px);
}

.sidebar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    color: #1f2a44;
    padding: 20px 14px;
    box-shadow: inset -1px 0 0 rgba(12, 40, 80, 0.08);
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.sidebar-section-title {
    margin: 10px 4px 8px;
    font-size: 12px;
    color: #5f6f86;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(18, 47, 95, 0.14);
    transition: color .15s, transform .15s;
    white-space: nowrap;
}

.nav-item:hover {
    color: #1b3f80;
    background: rgba(255, 255, 255, 0.88);
    transform: translateX(2px);
}

.nav-item.active {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(63, 125, 255, 0.9), rgba(31, 102, 255, 0.9));
    border-color: rgba(83, 135, 244, 0.5);
}

.nav-group {
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(18, 47, 95, 0.12);
    overflow: hidden;
}

.nav-group summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary::marker {
    content: "";
}

.nav-group summary::after {
    content: "▸";
    font-size: 12px;
    opacity: .85;
    transition: transform .2s ease;
}

.nav-group[open] summary::after {
    transform: rotate(90deg);
}

.nav-sub-item {
    display: block;
    margin: 0 8px 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(18, 47, 95, 0.12);
    white-space: nowrap;
}

.nav-sub-item.active {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(63, 125, 255, 0.75), rgba(31, 102, 255, 0.75));
    border-color: rgba(148, 185, 255, 0.45);
}

.nav-badge {
    margin: 4px 0 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 146, 68, 0.16);
    border: 1px solid rgba(229, 122, 34, 0.3);
    color: #9a4d0c;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.content {
    padding: 24px;
}

.user-dashboard-center {
    max-width: 980px;
    margin: 0 auto;
}

.admin-dashboard-center {
    max-width: 980px;
    margin: 0 auto;
}

.welcome-box {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    box-shadow: 0 8px 18px rgba(16, 42, 86, 0.08);
}

.avatar-round {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid #e7ecf6;
    object-fit: cover;
}

.grid-two {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 14px;
    max-width: 760px;
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 14px rgba(16, 42, 86, 0.08);
}

.mini-item {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid #e7eefc;
}

.user-kpi-row {
    margin-top: 14px;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 10px;
}

.user-kpi-card {
    border-radius: 12px;
    color: #fff;
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(16, 42, 86, 0.14);
}

.user-kpi-blue { background: linear-gradient(135deg, #356dff, #1f57d4); }
.user-kpi-purple { background: linear-gradient(135deg, #805eff, #6140d3); }
.user-kpi-orange { background: linear-gradient(135deg, #ffa64a, #e07812); }

.user-kpi-label {
    font-size: 12px;
    opacity: 0.95;
}

.user-kpi-value {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.quick-link-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 10px;
}

.quick-link-btn {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f6ff;
    border: 1px solid #d6e4ff;
    color: #1c4fa7;
    font-weight: 700;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16, 42, 86, 0.08);
}

.table th, .table td {
    border-bottom: 1px solid #edf1f7;
    text-align: left;
    padding: 10px;
    font-size: 14px;
}

.table th {
    background: #f7f9fd;
    color: #1a2f57;
}

.install-card {
    max-width: 860px;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.step {
    text-align: center;
    background: #eef2fa;
    color: #4f6185;
    border-radius: 10px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
}

.step.done {
    background: #dfeaff;
    color: #1f4aa7;
}

.btn-link {
    display: inline-block;
    margin-right: 10px;
    padding: 9px 12px;
    background: #edf3ff;
    color: #1b4ea9;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.pagination-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-meta {
    color: #4d5f82;
    font-size: 13px;
}

.pagination-link {
    margin-right: 0;
    min-width: 68px;
    text-align: center;
}

.btn-primary-link {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1f66ff, #3b7dff);
    box-shadow: 0 8px 16px rgba(31, 102, 255, 0.26);
    transition: transform .15s, box-shadow .15s, filter .15s;
}

.btn-primary-link:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(31, 102, 255, 0.3);
}

.btn-secondary {
    background: #edf3ff;
    color: #1b4ea9;
    box-shadow: none;
}

.btn-secondary:hover {
    transform: none;
    box-shadow: none;
}

.modal-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-danger {
    margin-left: 6px;
    background: linear-gradient(135deg, #d84141, #c32f2f);
    box-shadow: 0 8px 16px rgba(215, 52, 52, 0.26);
}

.logo-preview-wrap {
    padding: 10px;
    background: #f8f9fc;
    border: 1px dashed #d5def0;
    border-radius: 12px;
}

.logo-preview {
    max-width: 240px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

.eye-btn {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 45, 0.45);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 860px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 36px rgba(16, 42, 86, 0.25);
    max-height: 88vh;
    overflow: auto;
}

.admin-hero {
    background: linear-gradient(135deg, #0f2a57, #20498c);
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 42, 87, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-hero h2 {
    margin: 0 0 6px;
    color: #fff;
}

.admin-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.admin-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-action-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.admin-kpi-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 12px;
}

.kpi-card {
    border-radius: 14px;
    color: #fff;
    padding: 14px 16px;
    box-shadow: 0 8px 18px rgba(16, 42, 86, 0.18);
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.kpi-label {
    font-size: 13px;
    opacity: 0.95;
}

.kpi-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.kpi-value {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.kpi-blue { background: linear-gradient(135deg, #2b69ff, #1951da); }
.kpi-purple { background: linear-gradient(135deg, #7c56ff, #5d35d5); }
.kpi-orange { background: linear-gradient(135deg, #ff9a3d, #e07611); }
.kpi-green { background: linear-gradient(135deg, #1fbf8f, #129f74); }

.front-cover {
    min-height: 100vh;
    background: linear-gradient(120deg, #0f2a57, #1f4b8f 45%, #3a78cc);
    background-size: cover;
    background-position: center;
}

.front-cover-overlay {
    min-height: 100vh;
    background: linear-gradient(130deg, rgba(8, 20, 43, 0.72), rgba(18, 43, 86, 0.5));
    color: #fff;
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
}

.front-cover-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.front-cover-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.front-cover-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.front-mini-link {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 600;
}

.front-preview-wrap {
    margin: 18px auto 0;
    width: 100%;
    max-width: 1080px;
    display: grid;
    gap: 14px;
}

.front-preview-head {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(9, 26, 54, 0.46);
    border: 1px solid rgba(188, 216, 255, 0.3);
    box-shadow: 0 16px 36px rgba(7, 22, 47, 0.28);
}

.front-preview-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(9, 26, 54, 0.46);
    border: 1px solid rgba(188, 216, 255, 0.3);
    box-shadow: 0 16px 36px rgba(7, 22, 47, 0.28);
}

.front-preview-item {
    display: grid;
    gap: 12px;
}

.front-preview-image img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(188, 216, 255, 0.28);
    background: rgba(9, 26, 54, 0.35);
}

.front-preview-text {
    white-space: pre-wrap;
    line-height: 1.65;
    color: rgba(240, 247, 255, 0.95);
    font-size: 14px;
}

.front-preview-action-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(188, 216, 255, 0.36);
    color: #eaf4ff;
    font-weight: 700;
    font-size: 13px;
}

.front-preview-action-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

.front-preview-sep {
    height: 1px;
    margin: 14px 0;
    background: rgba(255, 255, 255, 0.16);
}

.front-hero {
    margin: auto 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: center;
}

.front-cover-content {
    max-width: 760px;
    padding: 26px;
    border-radius: 20px;
    background: rgba(9, 26, 54, 0.46);
    border: 1px solid rgba(188, 216, 255, 0.3);
    box-shadow: 0 16px 36px rgba(7, 22, 47, 0.32);
}

.front-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(129, 186, 255, 0.2);
    border: 1px solid rgba(176, 216, 255, 0.45);
    font-size: 12px;
    letter-spacing: .4px;
}

.front-logo-3d-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    margin-bottom: 18px;
    --tiltX: 0deg;
    --tiltY: 0deg;
    perspective: 900px;
    transform-style: preserve-3d;
    transform: rotateX(var(--tiltX)) rotateY(var(--tiltY)) translateZ(0);
    animation: logo3d-float 5s ease-in-out infinite;
    animation-delay: 1.3s;
    overflow: hidden;
}

.front-logo-stage-dark {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: rgba(2, 10, 24, 0.72);
    z-index: 5;
    pointer-events: none;
    animation: stage-dark-fade 1.35s ease-in forwards;
}

.front-logo-light-sweep {
    position: absolute;
    left: -46%;
    top: -12%;
    width: 42%;
    height: 124%;
    background: linear-gradient(90deg, rgba(122, 205, 255, 0), rgba(166, 220, 255, 0.86), rgba(155, 133, 255, 0));
    filter: blur(2px);
    opacity: 0;
    transform: rotate(14deg);
    z-index: 6;
    pointer-events: none;
    animation: stage-light-sweep 0.9s ease-out 0.58s forwards;
}

.front-logo-3d-halo {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    border-radius: 26px;
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(9, 24, 54, 0.12), rgba(9, 24, 54, 0.12)) padding-box,
        linear-gradient(120deg, rgba(88, 189, 255, 0.9), rgba(115, 118, 255, 0.92), rgba(168, 87, 255, 0.88)) border-box;
    box-shadow: 0 0 26px rgba(98, 154, 255, 0.3);
    animation-name: halo-gradient-loop;
    animation-duration: 5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.front-logo-3d-halo.h1 {
    animation-name: halo-rotate-a, halo-gradient-loop;
    animation-duration: 8s, 5s;
    animation-timing-function: linear, linear;
    animation-iteration-count: infinite, infinite;
    opacity: 0;
    animation-delay: 0.95s, 0.95s;
}
.front-logo-3d-halo.h2 {
    inset: 16px;
    opacity: 0.72;
    animation-name: halo-rotate-b, halo-gradient-loop;
    animation-duration: 10s, 6s;
    animation-timing-function: linear, linear;
    animation-iteration-count: infinite, infinite;
    opacity: 0;
    animation-delay: 1.05s, 1.05s;
}
.front-logo-3d-halo.h3 {
    inset: 32px;
    opacity: 0.5;
    animation-name: halo-rotate-c, halo-gradient-loop;
    animation-duration: 12s, 7s;
    animation-timing-function: linear, linear;
    animation-iteration-count: infinite, infinite;
    opacity: 0;
    animation-delay: 1.12s, 1.12s;
}

.front-logo-3d-glow {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 193, 255, 0.48), rgba(142, 120, 255, 0.24) 42%, rgba(142, 120, 255, 0) 74%);
    filter: blur(3px);
    animation: glow-pulse 2.8s ease-in-out infinite, logo-appear-glow 1.3s ease-out 1;
    transform-origin: center;
    animation-delay: 0.95s, 0s;
}

.front-logo-3d-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 126px;
    height: 126px;
    margin-left: -63px;
    margin-top: -63px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(227, 235, 249, 0.9);
    box-shadow: 0 14px 36px rgba(12, 39, 84, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    transform: scale(0.58);
    animation: core-pop-in 0.9s cubic-bezier(.2,.8,.2,1) 0.65s forwards;
}

.front-logo-3d-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-logo-3d-core span {
    color: #153a78;
    font-size: 16px;
    font-weight: 700;
}

.front-logo-particles {
    position: absolute;
    inset: -8px;
    pointer-events: none;
}

.front-logo-particles .p {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 223, 255, 1), rgba(120, 180, 255, 0.1));
    box-shadow: 0 0 10px rgba(123, 194, 255, 0.62);
    opacity: 0;
    animation: particle-float 5.2s ease-in-out infinite;
    animation-delay: 1.2s;
}

.front-logo-particles .p1 { left: 12%; top: 72%; animation-delay: 0.1s; }
.front-logo-particles .p2 { left: 24%; top: 30%; animation-delay: 0.7s; }
.front-logo-particles .p3 { left: 40%; top: 82%; animation-delay: 1.4s; }
.front-logo-particles .p4 { left: 58%; top: 24%; animation-delay: 2.1s; }
.front-logo-particles .p5 { left: 76%; top: 72%; animation-delay: 2.9s; }
.front-logo-particles .p6 { left: 84%; top: 42%; animation-delay: 3.4s; }
.front-logo-particles .p7 { left: 46%; top: 10%; animation-delay: 4.1s; }
.front-logo-particles .p8 { left: 10%; top: 48%; animation-delay: 4.7s; }

@keyframes glow-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50% { opacity: 0.85; transform: scale(1.08); }
}
@keyframes logo3d-float {
    0%, 100% { transform: rotateX(var(--tiltX)) rotateY(var(--tiltY)) translateY(0); }
    50% { transform: rotateX(calc(var(--tiltX) + 2deg)) rotateY(calc(var(--tiltY) - 2deg)) translateY(-8px); }
}

@keyframes halo-gradient-loop {
    0% { filter: hue-rotate(0deg) saturate(1); }
    100% { filter: hue-rotate(55deg) saturate(1.15); }
}

@keyframes stage-dark-fade {
    0% { opacity: 1; }
    62% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes stage-light-sweep {
    0% {
        opacity: 0;
        transform: translateX(0) rotate(14deg);
    }
    18% { opacity: 1; }
    82% { opacity: 0.95; }
    100% {
        opacity: 0;
        transform: translateX(420%) rotate(14deg);
    }
}

@keyframes logo-appear-glow {
    0% { opacity: 0; transform: scale(0.42); }
    45% { opacity: 0.95; transform: scale(1.18); }
    100% { opacity: 0.75; transform: scale(1); }
}

@keyframes core-pop-in {
    0% { opacity: 0; transform: scale(0.58) rotate(-8deg); }
    65% { opacity: 1; transform: scale(1.06) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes particle-float {
    0% { transform: translate3d(0, 12px, 0) scale(0.6); opacity: 0; }
    30% { opacity: 0.95; }
    70% { opacity: 0.8; }
    100% { transform: translate3d(0, -18px, 0) scale(1); opacity: 0; }
}

@keyframes halo-rotate-a {
    0% { transform: rotateX(68deg) rotateY(0deg); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: rotateX(68deg) rotateY(360deg); opacity: 1; }
}
@keyframes halo-rotate-b {
    0% { transform: rotateY(72deg) rotateX(0deg); opacity: 0; }
    16% { opacity: 0.72; }
    100% { transform: rotateY(72deg) rotateX(360deg); opacity: 0.72; }
}
@keyframes halo-rotate-c {
    0% { transform: rotateZ(0deg) rotateX(72deg); opacity: 0; }
    18% { opacity: 0.5; }
    100% { transform: rotateZ(360deg) rotateX(72deg); opacity: 0.5; }
}

.front-cover-content h1 {
    margin: 0 0 10px;
    font-size: 44px;
    line-height: 1.2;
}

.front-gradient-title {
    background: linear-gradient(90deg, #d6ecff 0%, #9ec8ff 34%, #c8abff 66%, #f1d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 8px 26px rgba(111, 171, 255, 0.25);
}

.front-cover-content p {
    margin: 0;
    color: rgba(240, 247, 255, 0.95);
    font-size: 17px;
}

.front-cover-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.front-cover-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: #103a75;
    font-weight: 700;
}

.front-cover-btn.ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
}

.front-logo-pane {
    display: flex;
    justify-content: center;
}

.front-cover-footer-meta {
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(232, 243, 255, 0.92);
}

.front-footer-link {
    color: #d6ecff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.front-footer-link:hover {
    color: #ffffff;
}

.target-picker-list {
    max-height: 48vh;
    overflow: auto;
    border: 1px solid #e6ecf8;
    border-radius: 10px;
    padding: 8px;
    background: #fafdff;
}

.target-user-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px solid #edf2fb;
    border-radius: 8px;
    cursor: pointer;
}

.target-user-row:hover {
    background: #f0f6ff;
}

.target-user-row:last-child {
    border-bottom: 0;
}

.target-user-check {
    width: 16px;
    height: 16px;
    margin: 0;
}

.target-user-name {
    color: #1a2f57;
    font-weight: 600;
}

.target-user-id {
    color: #62708a;
    font-size: 12px;
}

.admin-recent-logs-table {
    table-layout: fixed;
}

.admin-recent-logs-table th,
.admin-recent-logs-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.admin-recent-logs-table th:nth-child(1),
.admin-recent-logs-table td:nth-child(1) {
    width: 120px;
}

.admin-recent-logs-table th:nth-child(2),
.admin-recent-logs-table td:nth-child(2) {
    width: 90px;
}

.admin-system-logs-table th:nth-child(1),
.admin-system-logs-table td:nth-child(1) {
    width: 140px;
}

.admin-system-logs-table th:nth-child(2),
.admin-system-logs-table td:nth-child(2) {
    width: 72px;
}

.admin-system-logs-table th:nth-child(4),
.admin-system-logs-table td:nth-child(4) {
    width: 120px;
}

.log-cell-break {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.preview-admin-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.preview-admin-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dce6fb;
    border-radius: 12px;
    background: #f8fbff;
}

.preview-admin-item.is-dragging {
    opacity: 0.55;
}

.preview-admin-handle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e9f1ff;
    color: #305cae;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    font-weight: 700;
}

.preview-admin-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

@media (max-width: 980px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-left {
        padding-bottom: 0;
    }

    .logo-box {
        width: 220px;
        height: 220px;
        font-size: 30px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

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

    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .admin-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .front-cover-content h1 {
        font-size: 30px;
    }

    .front-cover-actions {
        flex-wrap: wrap;
    }

    .front-hero {
        grid-template-columns: 1fr;
    }

    .front-logo-pane {
        order: -1;
    }

    .user-kpi-row,
    .quick-link-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    }

    .top-title {
        padding: 10px 12px;
        font-size: 16px;
    }

    .top-title-inner {
        gap: 8px;
        flex-wrap: wrap;
    }

    .top-title-logo {
        width: 26px;
        height: 26px;
        border-radius: 7px;
    }

    .content {
        padding: 12px;
    }

    .sidebar {
        padding: 10px;
        border-bottom: 1px solid rgba(12, 40, 80, 0.08);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        background: rgba(255, 255, 255, 0.78);
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .sidebar h3 {
        margin-bottom: 10px;
        font-size: 15px;
        grid-column: 1 / -1;
        padding: 2px 4px;
    }

    .nav-item,
    .nav-sub-item {
        padding: 10px 8px;
        margin: 0;
        font-size: 13px;
        text-align: center;
        border-radius: 12px;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-group {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .nav-group summary {
        padding: 10px 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.72);
    }

    .nav-sub-item {
        margin: 6px 6px 8px;
    }

    .card {
        border-radius: 16px;
        padding: 14px;
        max-width: 100% !important;
    }

    .welcome-box {
        padding: 12px;
        border-radius: 14px;
        max-width: 100%;
        align-items: flex-start;
    }

    .avatar-round {
        width: 68px;
        height: 68px;
    }

    .user-kpi-row,
    .admin-kpi-grid,
    .quick-link-row,
    .grid-two {
        grid-template-columns: 1fr !important;
        max-width: 100%;
        gap: 8px;
    }

    .kpi-value,
    .user-kpi-value {
        font-size: 24px;
    }

    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table th,
    .table td {
        white-space: nowrap;
        padding: 8px;
        font-size: 12px;
    }

    .table-mobile-card {
        display: block;
        border-spacing: 0;
        background: transparent;
        box-shadow: none;
    }

    .table-mobile-card thead {
        display: none;
    }

    .table-mobile-card tbody,
    .table-mobile-card tr,
    .table-mobile-card td {
        display: block;
        width: 100%;
    }

    .table-mobile-card tbody tr {
        margin-bottom: 10px;
        border: 1px solid #e2e9f8;
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 6px 14px rgba(16, 42, 86, 0.06);
    }

    .table-mobile-card tbody td {
        white-space: normal !important;
        border-bottom: 1px dashed #edf2fb;
        padding: 8px 10px 8px 96px;
        position: relative;
        min-height: 34px;
    }

    .table-mobile-card tbody td:last-child {
        border-bottom: 0;
    }

    .table-mobile-card tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        width: 78px;
        color: #617396;
        font-size: 12px;
        font-weight: 700;
    }

    .admin-recent-logs-table th,
    .admin-recent-logs-table td {
        white-space: normal;
    }

    .modal-card {
        max-width: 100%;
        border-radius: 14px;
        padding: 14px;
        max-height: 90vh;
    }

    .modal-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-actions .btn-link,
    .modal-actions .btn-primary-link,
    .modal-actions button {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .auth-wrap {
        min-height: auto;
    }

    .user-auth-page {
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 56px);
        padding: 16px 12px;
    }

    .user-auth-panel {
        margin-left: auto;
        margin-right: auto;
        border-radius: 16px;
        max-width: 100%;
    }

    .user-auth-panel__brand {
        padding: 18px 14px 6px;
    }

    .user-auth-panel__body {
        padding: 6px 18px 22px;
    }

    .user-auth-panel__body > h2 {
        font-size: 1.2rem;
    }

    .user-auth-panel .auth-logo-3d-shell {
        width: 190px;
        height: 190px;
    }

    .user-auth-panel .auth-logo-3d-shell .front-logo-3d-wrap {
        width: 150px;
        height: 150px;
    }

    .user-auth-panel .logo-box {
        width: 140px;
        height: 140px;
        font-size: 18px;
        border-radius: 28px;
    }

    .user-auth-reset-badge {
        min-height: 88px;
        font-size: 20px;
        padding: 12px;
    }

    .auth-left,
    .auth-right {
        padding: 14px;
    }

    .logo-box,
    .auth-logo-3d-shell {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .auth-logo-3d-shell .front-logo-3d-wrap {
        width: 200px;
        height: 200px;
    }

    .front-cover-overlay {
        padding: 12px;
    }

    .front-cover-topbar {
        padding: 8px 10px;
        border-radius: 12px;
        align-items: flex-start;
        gap: 8px;
    }

    .front-cover-brand {
        font-size: 15px;
    }

    .front-cover-top-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .front-mini-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .front-cover-content {
        padding: 14px;
        border-radius: 14px;
    }

    .front-cover-content h1,
    .front-gradient-title {
        font-size: 24px !important;
    }

    .front-cover-content p {
        font-size: 14px;
    }

    .front-cover-actions {
        margin-top: 12px;
        gap: 8px;
    }

    .front-cover-btn {
        width: 100%;
        text-align: center;
    }

    .front-logo-3d-wrap {
        width: 200px;
        height: 200px;
    }

    .front-preview-wrap {
        margin-top: 12px;
        gap: 10px;
    }

    .front-preview-head,
    .front-preview-card {
        padding: 12px;
        border-radius: 12px;
    }

    .front-preview-image img {
        max-height: 52vh;
    }

    .preview-admin-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .preview-admin-actions {
        flex-wrap: wrap;
    }

    .preview-admin-actions .btn-link,
    .preview-admin-actions .btn-danger {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
}
