 /* ==================== CSS Reset & Variables ==================== */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --bg-primary: #0a0e1a;
     --bg-secondary: #111827;
     --bg-card: #1a1f35;
     --bg-card-hover: #222842;
     --border-color: rgba(59, 130, 246, 0.15);
     --border-hover: rgba(59, 130, 246, 0.3);
     --text-primary: #e2e8f0;
     --text-secondary: #94a3b8;
     --text-muted: #64748b;
     --accent: #3b82f6;
     --accent-light: #60a5fa;
     --gold: #ffd700;
     --silver: #c0c0c0;
     --bronze: #cd7f32;
     --success: #10b981;
     --error: #ef4444;
     --info: #3b82f6;
     --heaven: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.04));
     --earth: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.04));
     --human: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(168, 85, 247, 0.03));
     --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
     --radius: 12px;
     --radius-sm: 8px;
 }

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(57, 15, 199, 0.45), transparent 55%),
        radial-gradient(ellipse at 80% 40%, rgba(47, 184, 255, 0.18), transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.25), transparent 60%),
        linear-gradient(189.16deg, #1a0f4d 0%, #0a0e1a 60%, #06091a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 流动的渐变球体（参考首页模板的 ball1 / ball2） */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 51% 49% 58% 42% / 34% 78% 22% 66%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    will-change: transform, border-radius;
}

body::before {
    top: 220px;
    left: 180px;
    background: linear-gradient(rgba(186, 117, 255, 0.49) 26.56%, rgb(57, 19, 184) 100%);
    animation: floatBall 30s infinite alternate;
}

body::after {
    top: 320px;
    left: 50%;
    background: linear-gradient(rgba(47, 184, 255, 0.42) 31.77%, rgba(158, 236, 217, 0.6) 100%);
    animation: floatBall 25s infinite alternate-reverse;
}

@keyframes floatBall {
    0% {
        transform: translate(-200px, 0) rotate(-90deg);
        border-radius: 51% 49% 58% 42% / 34% 78% 22% 66%;
    }
    100% {
        transform: translate(420px, 120px) rotate(-120deg);
        border-radius: 22% 78% 73% 27% / 67% 31% 69% 33%;
    }
}

@media (max-width: 768px) {
    body::before,
    body::after {
        width: 320px;
        height: 320px;
        filter: blur(46px);
    }
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

 a {
     color: var(--accent);
     text-decoration: none;
 }

 a:hover {
     color: var(--accent-light);
 }

/* ==================== 顶部导航 ==================== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(15, 14, 71, 0.55), rgba(15, 14, 71, 0.2));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    height: 60px;
}

 .header-inner {
     max-width: 1400px;
     margin: 0 auto;
     padding: 0 20px;
     height: 100%;
     align-items: center;
     justify-content: space-between;
 }

 .logo {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 1.2rem;
     font-weight: 700;
     color: var(--gold);
     cursor: pointer;
 }

 .logo i.fa-fist-raised {
     font-size: 1.5rem;
 }

 .back-home {
     color: var(--text-secondary);
     font-size: 1.1rem;
     margin-right: 5px;
     transition: color 0.3s;
 }

 .back-home:hover {
     color: var(--accent-light);
 }

 .header-right {
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .time-display {
     color: var(--text-secondary);
     font-size: 0.85rem;
     white-space: nowrap;
 }

.header-btn {
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: rgba(31, 47, 71, 0.25) 0 20px 40px, rgba(0, 0, 0, 0.1) 0 1px 5px, rgba(255, 255, 255, 0.4) 0 0 0 0.5px inset;
    transform: translateY(-1px);
}

.header-btn.accent {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.header-btn.accent:hover {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.5);
}

 .user-info {
     color: var(--accent-light);
     font-size: 0.9rem;
     display: flex;
     align-items: center;
     gap: 5px;
 }

 /* ==================== 弹窗 ==================== */
 .modal-overlay {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.7);
     backdrop-filter: blur(5px);
     z-index: 2000;
     align-items: center;
     justify-content: center;
 }

 .modal-overlay.show {
     display: flex;
 }

.modal-box {
    background: linear-gradient(160deg, rgba(36, 38, 100, 0.85), rgba(20, 24, 60, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalIn 0.3s ease;
}

 .modal-box.modal-lg {
     max-width: 600px;
 }

 @keyframes modalIn {
     from {
         opacity: 0;
         transform: scale(0.9) translateY(20px);
     }

     to {
         opacity: 1;
         transform: scale(1) translateY(0);
     }
 }

 .modal-header {
     padding: 16px 20px;
     border-bottom: 1px solid var(--border-color);
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .modal-header h3 {
     font-size: 1.05rem;
     color: var(--text-primary);
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .modal-close {
     background: none;
     border: none;
     color: var(--text-secondary);
     font-size: 1.1rem;
     cursor: pointer;
     padding: 4px;
     transition: color 0.3s;
 }

 .modal-close:hover {
     color: var(--error);
 }

 .modal-body {
     padding: 20px;
 }

.form-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
    border-left-width: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.form-notice i {
    font-size: 16px;
    flex-shrink: 0;
}

.form-notice.error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.55);
}

.form-notice.success {
    color: #bbf7d0;
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.55);
}

.form-notice.info {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.55);
}

.form-notice.flash {
    animation: formNoticeFlash 0.5s ease;
}

@keyframes formNoticeFlash {
    0% { transform: translateY(-6px); opacity: 0; }
    60% { transform: translateY(2px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

 .modal-footer {
     padding: 12px 20px;
     border-top: 1px solid var(--border-color);
     display: flex;
     justify-content: flex-end;
     gap: 10px;
 }

 /* ==================== 表单 ==================== */
 .form-group {
     margin-bottom: 16px;
 }

 .form-group label {
     display: block;
     margin-bottom: 6px;
     color: var(--text-secondary);
     font-size: 0.9rem;
 }

 .form-group label small {
     color: var(--text-muted);
 }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
    background: rgba(0, 0, 0, 0.35);
}

 .form-group textarea {
     resize: vertical;
     font-family: inherit;
 }

 .form-group select {
     cursor: pointer;
 }

 .form-group select option {
     background: var(--bg-secondary);
     color: var(--text-primary);
 }

 /* ==================== 按钮 ==================== */
 .btn {
     padding: 8px 18px;
     border: none;
     border-radius: var(--radius-sm);
     cursor: pointer;
     font-size: 0.9rem;
     font-weight: 500;
     transition: all 0.3s;
 }

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

 .btn-cancel {
     background: var(--bg-secondary);
     color: var(--text-secondary);
     border: 1px solid var(--border-color);
 }

 .btn-cancel:hover {
     border-color: var(--text-secondary);
 }

 .btn-danger {
     background: var(--error);
     color: #fff;
 }

 .btn-danger:hover {
     background: #dc2626;
 }

 .btn-sm {
     padding: 6px 12px;
     font-size: 0.8rem;
 }

 /* ==================== Toast ==================== */
 .toast {
     position: fixed;
     top: 80px;
     left: 50%;
     transform: translateX(-50%) translateY(-20px);
     padding: 12px 24px;
     border-radius: var(--radius-sm);
     font-size: 0.9rem;
     z-index: 3000;
     opacity: 0;
     transition: all 0.3s;
     pointer-events: none;
     white-space: nowrap;
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .toast.show {
     opacity: 1;
     transform: translateX(-50%) translateY(0);
 }

 .toast.success {
     background: rgba(16, 185, 129, 0.9);
     color: #fff;
 }

 .toast.error {
     background: rgba(239, 68, 68, 0.9);
     color: #fff;
 }

 .toast.info {
     background: rgba(59, 130, 246, 0.9);
     color: #fff;
 }

 /* ==================== 确认框 ==================== */
 .confirm-overlay {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.7);
     z-index: 2500;
     align-items: center;
     justify-content: center;
 }

 .confirm-overlay.show {
     display: flex;
 }

 .confirm-box {
     background: var(--bg-card);
     border: 1px solid var(--border-color);
     border-radius: var(--radius);
     padding: 30px;
     text-align: center;
     max-width: 400px;
     width: 90%;
 }

 .confirm-icon {
     font-size: 2.5rem;
     color: var(--gold);
     margin-bottom: 15px;
 }

 .confirm-message {
     color: var(--text-primary);
     margin-bottom: 20px;
     font-size: 1rem;
 }

 .confirm-btns {
     display: flex;
     gap: 10px;
     justify-content: center;
 }

 .confirm-btn {
     padding: 8px 24px;
     border: none;
     border-radius: var(--radius-sm);
     cursor: pointer;
     font-size: 0.9rem;
     transition: all 0.3s;
 }

 .confirm-no {
     background: var(--bg-secondary);
     color: var(--text-secondary);
     border: 1px solid var(--border-color);
 }

 .confirm-yes {
     background: var(--error);
     color: #fff;
 }

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    backdrop-filter: blur(10px);
}

.empty-state i {
    font-size: 3.4rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.7;
}

 .empty-state p {
     font-size: 1rem;
 }

 .empty-sub {
     font-size: 0.85rem;
     color: var(--text-muted);
     margin-top: 8px;
 }

/* ==================== 页脚 ==================== */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 36px 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(7, 10, 25, 0) 0%, rgba(30, 19, 87, 0.4) 100%);
    letter-spacing: 1px;
}

 /* ==================== 响应式 ==================== */
 @media (max-width: 768px) {
     .top-header {
         height: 10vw;
     }

     .header-inner {
         padding: 0 ;
     }

     .user-info {
         font-size: 3vw;
         gap: .5vw;
     }

     .time-display {
         font-size: 2.5vw;
     }

     .logo span {
         font-size: 3.3vw;
     }

     .header-btn {
        padding: 1vw 2vw;
        font-size: 3vw;
     }
 }

 /* @media (max-width: 480px) {
     .logo span {
         display: none;
     }
 } */