:root {
    --primary: #165DFF;
    --primary-light: #e8f0ff;
    --primary-dark: #0e4bdb;
    --secondary: #36CFC9;
    --success: #52C41A;
    --warning: #FAAD14;
    --danger: #FF4D4F;
    --dark: #1D2129;
    --gray-1: #4E5969;
    --gray-2: #86909C;
    --gray-3: #C9CDD4;
    --gray-4: #F2F3F5;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --glass-bg: rgba(255,255,255,0.12);
    --glass-border: rgba(255,255,255,0.25);
    --text: #fff;
    --placeholder: rgba(255,255,255,0.6);
    --shadow: 0 8px 32px rgba(31,38,135,0.15);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
    color: var(--dark);
    min-height: 100vh;
    padding-bottom: 60px;
    transition: var(--transition);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(245,247,250,0.8);
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    z-index: 999;
    padding: 24px 0;
    transition: var(--transition);
    overflow-y: auto;
}
.sidebar-header {
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-logo i {
    font-size: 20px;
}
.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--gray-1);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-radius: var(--radius-md);
    margin: 0 8px;
    background: transparent;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(232,240,255,0.2);
    color: var(--primary);
}
.sidebar-menu a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.main-content {
    margin-left: 250px;
    padding: 24px;
    transition: var(--transition);
}
.toggle-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(22,93,255,0.3);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.card, .user-center-card, .project-tab {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
    transition: var(--transition);
}
.card:hover, .user-center-card:hover, .project-tab:hover {
    box-shadow: 0 12px 40px rgba(31,38,135,0.2);
    background: rgba(255,255,255,0.15);
}
.card-header {
    background: rgba(22,93,255,0.3);
    color: var(--text);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.card-header.bg-warning {
    background: rgba(250,173,20,0.3);
    color: var(--dark);
}
.card-header.bg-success {
    background: rgba(82,196,26,0.3);
    color: var(--white);
}
.card-header.bg-info {
    background: rgba(54,207,201,0.3);
    color: var(--white);
}
.card-body {
    padding: 24px;
}
.btn {
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    color: var(--white);
}
.btn-primary {
    background: rgba(22,93,255,0.7);
}
.btn-primary:hover {
    background: rgba(14,75,219,0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22,93,255,0.25);
}
.btn-success {
    background: rgba(82,196,26,0.7);
}
.btn-success:hover {
    background: rgba(65,168,19,0.85);
    box-shadow: 0 4px 12px rgba(82,196,26,0.25);
}
.btn-danger {
    background: rgba(255,77,79,0.7);
}
.btn-danger:hover {
    background: rgba(235,67,67,0.85);
    box-shadow: 0 4px 12px rgba(255,77,79,0.25);
}
.btn-warning {
    background: rgba(250,173,20,0.7);
    color: var(--dark);
}
.btn-warning:hover {
    background: rgba(224,157,18,0.85);
    box-shadow: 0 4px 12px rgba(250,173,20,0.25);
}
.btn-secondary {
    background: rgba(134,144,156,0.7);
}
.btn-secondary:hover {
    background: rgba(113,121,129,0.85);
}
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}
.form-control, .captcha-code, select.form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 14px;
    transition: var(--transition);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.form-control::placeholder, select.form-control::placeholder {
    color: var(--placeholder);
}
.form-control:focus, select.form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,93,255,0.2);
    outline: none;
}
.form-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-1);
    margin-bottom: 8px;
    display: block;
}
.message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
}
.message-success {
    background: rgba(82, 196, 26, 0.08);
    color: var(--success);
    border: 1px solid rgba(82, 196, 26, 0.2);
}
.message-error {
    background: rgba(255, 77, 79, 0.08);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 79, 0.2);
}
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-code {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    text-align: center;
}
.captcha-code:hover {
    background: rgba(255,255,255,0.15);
}
.project-tab {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    font-size: 14px;
}
.project-tab.active {
    background: linear-gradient(135deg, rgba(22,93,255,0.4), rgba(14,75,219,0.4));
    color: var(--white);
    border-color: rgba(22,93,255,0.2);
}
.badge, .user-status-badge {
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid transparent;
}
.vip-badge {
    background: rgba(250,173,20,0.4);
    color: var(--dark);
    border-color: rgba(250,173,20,0.2);
}
.user-status-badge.status-normal {
    background: rgba(82,196,26,0.4);
    color: var(--white);
    border-color: rgba(82,196,26,0.2);
}
.user-status-badge.status-banned {
    background: rgba(255,77,79,0.4);
    color: var(--white);
    border-color: rgba(255,77,79,0.2);
}
.user-status-badge.status-pending {
    background: rgba(250,173,20,0.4);
    color: var(--dark);
    border-color: rgba(250,173,20,0.2);
}
.code-block {
    background: rgba(29,33,41,0.6);
    color: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.user-center-card {
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}
.user-count-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}
.count-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(22,93,255,0.45), rgba(14,75,219,0.45));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.count-label {
    color: var(--gray-1);
    font-weight: 500;
    font-size: 14px;
}
.dev-avatar, .user-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    margin: 0 auto 8px auto !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    box-shadow: var(--shadow-sm);
    display: block;
}
.announcement-alert {
    background: rgba(250, 173, 20, 0.08);
    color: var(--warning);
    border: 1px solid rgba(250, 173, 20, 0.2);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-top: 15px;
    font-size: 14px;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.accordion-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md) !important;
    margin-bottom: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.accordion-button {
    border-radius: 0 !important;
    background: rgba(255,255,255,0.12);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border: none;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    color: var(--gray-1);
}
.accordion-button:not(.collapsed) {
    background: rgba(232,240,255,0.3);
    color: var(--primary);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
}
.accordion-body {
    padding: 16px;
    font-size: 14px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.table {
    font-size: 14px;
    margin-bottom: 0;
}
.table-hover > tbody > tr:hover {
    background: rgba(232,240,255,0.15);
}
.table th {
    color: var(--gray-1);
    font-weight: 500;
    border-top: none;
}
.table td {
    color: var(--dark);
    vertical-align: middle;
}
.table thead {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.table-bordered {
    border-color: rgba(255,255,255,0.1);
}
.table-bordered td, .table-bordered th {
    border-color: rgba(255,255,255,0.1);
}
.modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    color: var(--text);
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
}
.section {
    display: none;
}
.active-section {
    display: block;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.run-time {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-1);
    font-size: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 99;
    border: 1px solid var(--glass-border);
}
.switch-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(201,205,212,0.35);
    transition: .4s;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: rgba(255,255,255,0.8);
    transition: .4s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}
input:checked + .slider {
    background: rgba(22,93,255,0.45);
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.text-gray-1 {
    color: var(--gray-1) !important;
}
.text-gray-2 {
    color: rgba(255,255,255,0.8) !important;
}
.text-primary {
    color: #4096ff !important;
}
.fs-14 {
    font-size: 14px;
}
.qq-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.qq-input-group .form-control {
    width: 100%;
}
@media (max-width: 992px) {
    .sidebar {
        left: -250px;
    }
    .sidebar.open {
        left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .toggle-btn {
        display: flex;
    }
}
@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
    .card-body {
        padding: 16px;
    }
    .user-center-card {
        padding: 15px;
    }
    .count-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .code-block {
        font-size: 12px;
        max-height: 300px;
    }
    .captcha-box {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-code {
        text-align: center;
    }
}
