:root {
    --primary: #165DFF;
    --primary-light: #E8F3FF;
    --primary-dark: #0E42D2;
    --primary-hover: #4080FF;
    --success: #00B42A;
    --success-light: #E8FFEA;
    --warning: #FF7D00;
    --warning-light: #FFF7E8;
    --danger: #F53F3F;
    --danger-light: #FFECE8;
    --info: #86909C;
    --bg: #F7F8FA;
    --bg-white: #FFFFFF;
    --bg-gray: #F2F3F5;
    --border: #E5E6EB;
    --border-light: #F2F3F5;
    --text-1: #1D2129;
    --text-2: #4E5969;
    --text-3: #86909C;
    --text-4: #C9CDD4;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-1);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

button { font-family: inherit; cursor: pointer; border: none; outline: none; transition: var(--transition); }
input, textarea, select { font-family: inherit; outline: none; transition: var(--transition); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    height: 38px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:active:not(:disabled) { background: var(--primary-dark); transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary { background: var(--bg-white); color: var(--text-1); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #F76560; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #23C343; }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }

.btn-text { background: transparent; color: var(--primary); padding: 0 8px; height: auto; }
.btn-text:hover { color: var(--primary-hover); }

.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.btn-lg { height: 46px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title { font-size: 16px; font-weight: 600; color: var(--text-1); }
.card-body { padding: 24px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.form-label.required::before { content: '*'; color: var(--danger); margin-right: 4px; }

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0 16px;
    height: 40px;
    font-size: 14px;
    color: var(--text-1);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-textarea { height: auto; padding: 12px 16px; min-height: 100px; resize: vertical; }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,93,255,0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--danger);
    background: var(--danger-light);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-4); }

.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; }

.input-group { display: flex; gap: 10px; }
.input-group .form-input { flex: 1; }
.input-group .btn { flex-shrink: 0; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
.table th { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--bg-gray); }
.table td { font-size: 14px; color: var(--text-1); }
.table tr:hover td { background: var(--bg); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
    line-height: 20px;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-gray { background: var(--bg-gray); color: var(--text-3); }

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 480px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast-show { opacity: 1; transform: translateY(0); }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--primary); }

.toast-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--primary); }
.toast-icon svg { width: 20px; height: 20px; }
.toast-content { flex: 1; font-size: 14px; color: var(--text-1); }

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: var(--bg-white);
    padding: 32px 48px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text { font-size: 14px; color: var(--text-2); }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-show { opacity: 1; visibility: visible; }

.modal-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.modal-show .modal-container { transform: scale(1); }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 600; }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: var(--bg-gray); color: var(--text-1); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 24px; overflow-y: auto; max-height: calc(90vh - 140px); }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; }

.pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.pagination-btns { display: flex; align-items: center; gap: 6px; }
.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.page-btn svg { width: 16px; height: 16px; }
.page-ellipsis { padding: 0 8px; color: var(--text-4); }
.pagination-info { font-size: 13px; color: var(--text-3); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; color: var(--text-4); }
.empty-state p { font-size: 14px; }

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #E8F3FF 0%, #F7F8FA 50%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22,93,255,0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(22,93,255,0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(22,93,255,0.15);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { font-size: 48px; margin-bottom: 12px; }
.auth-title { font-size: 24px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.auth-desc { font-size: 14px; color: var(--text-3); }

.auth-footer { text-align: center; margin-top: 24px; }
.auth-footer p { font-size: 12px; color: var(--text-4); }

.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
}
.nav-link:hover { background: var(--bg-gray); color: var(--text-1); }
.nav-link.active { background: var(--primary-light); color: var(--primary); }

.user-dropdown { position: relative; }
.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.user-dropdown-toggle:hover { background: var(--bg-gray); }
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 14px; font-weight: 500; color: var(--text-1); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    min-width: 180px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}
.dropdown.show .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-gray); color: var(--text-1); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-light); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 0; }

.dashboard { padding: 24px 0; min-height: calc(100vh - 64px); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-title { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--text-1); line-height: 1; margin-bottom: 8px; }
.stat-desc { font-size: 12px; color: var(--text-4); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}
.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text-1); }
.page-actions { display: flex; gap: 10px; align-items: center; }

.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    min-width: 260px;
    position: relative;
}
.search-input input { padding-left: 40px; }
.search-input::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
}

.filter-select { min-width: 140px; }

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #4080FF 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 44px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero-desc { font-size: 18px; opacity: 0.9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.features-section { padding: 80px 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-desc { text-align: center; font-size: 16px; color: var(--text-3); margin-bottom: 48px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}
.feature-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-3); line-height: 1.7; }

.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
.tab-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: var(--transition);
}
.tab-item:hover { color: var(--text-1); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

@media (max-width: 768px) {
    .auth-card { padding: 28px 20px; }
    .hero-title { font-size: 28px; }
    .hero-desc { font-size: 15px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 24px; }
    .toolbar { flex-direction: column; }
    .search-input, .filter-select { width: 100%; min-width: auto; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .nav-links { display: none; }
    .table { font-size: 13px; }
    .table th, .table td { padding: 10px 8px; }
}

.home-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.home-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.logo-slogan {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
    font-weight: 400;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-content {
    min-height: calc(100vh - 64px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #E8F3FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-cards {
    padding: 80px 0;
    background: var(--bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.app-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 24px 0;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}

.app-footer p {
    margin: 0;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.green { background: var(--success); }
.status-dot.red { background: var(--danger); }
.status-dot.orange { background: var(--warning); }
.status-dot.gray { background: var(--text-4); }

.action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btns .btn {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.switch-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.switch.active {
    background: var(--primary);
}

.switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch.active::after {
    left: 26px;
}

.stat-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.message-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.message-item:hover {
    background: var(--bg);
}

.message-item:last-child {
    border-bottom: none;
}

.message-info {
    flex: 1;
    min-width: 0;
}

.message-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-meta {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    gap: 12px;
}

.unread-badge {
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.list-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.list-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 15px;
}

.list-body {
    max-height: 500px;
    overflow-y: auto;
}

.type-card {
    text-align: center;
    padding: 24px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.type-card:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.type-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.type-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.type-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.type-card-desc {
    font-size: 12px;
    color: var(--text-3);
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.log-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}

.log-item:last-child { border-bottom: none; }

.log-level {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
    font-size: 11px;
}

.log-level.debug { background: var(--bg-gray); color: var(--text-3); }
.log-level.info { background: var(--primary-light); color: var(--primary); }
.log-level.warning { background: var(--warning-light); color: var(--warning); }
.log-level.error { background: var(--danger-light); color: var(--danger); }

.log-time { color: var(--text-3); margin-right: 8px; }
.log-category { color: var(--text-2); margin-right: 8px; }
.log-msg { color: var(--text-1); }
.log-ip { color: var(--text-4); float: right; }

.text-red { color: var(--danger) !important; font-weight: 600; }
.text-blue { color: var(--primary) !important; }
.text-green { color: var(--success) !important; }
.text-orange { color: var(--warning) !important; }
.text-gray { color: var(--text-3) !important; }

.app-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 20px;
    color: var(--text-2);
    transition: var(--transition);
}

.notification-btn:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.user-dropdown:hover .user-avatar {
    border-color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1000;
}

.user-dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-2);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover { background: var(--bg-gray); color: var(--text-1); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-light); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 0; }

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 20px;
    color: var(--text-2);
    background: transparent;
}

.mobile-menu-btn:hover {
    background: var(--bg-gray);
}

.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #4080FF 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.welcome-desc {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.dashboard-stats .stat-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 28px;
}

.dashboard-stats .stat-info {
    flex: 1;
    min-width: 0;
}

.dashboard-stats .stat-label {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.dashboard-stats .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1;
    margin-bottom: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.quick-action-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    color: var(--text-1);
    position: relative;
    text-decoration: none;
}

.quick-action-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: var(--transition);
}

.quick-action-card:hover .quick-action-icon {
    background: var(--primary);
    color: #fff;
}

.quick-action-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-action-info p {
    font-size: 13px;
    color: var(--text-3);
}

.recent-messages {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.recent-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
}

.recent-more {
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
}

.recent-more:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-3);
}

.empty-state .spinner {
    margin: 0 auto 16px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
}

.mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    font-size: 11px;
    color: var(--text-3);
    transition: var(--transition);
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
    color: var(--primary);
}

.mobile-bottom-nav-item-icon {
    font-size: 22px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
}

.loading-content .spinner {
    margin: 0 auto 16px;
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.loading-text {
    color: var(--text-2);
    font-size: 14px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 20px;
}

.modal-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-1);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-3);
    background: transparent;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--text-1);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 93, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 93, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #4080FF 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.35);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}

.auth-desc {
    font-size: 14px;
    color: var(--text-3);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-4);
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.p-0 { padding: 0 !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.flex { display: flex !important; }
.flex-1 { flex: 1 !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-2 { gap: 16px !important; }
.w-full { width: 100% !important; }
.hidden { display: none !important; }

.badge-error { background: var(--danger-light); color: var(--danger); }
.badge-default { background: var(--bg-gray); color: var(--text-3); }

.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--primary-light); border-color: var(--primary); }

.main-content {
    min-height: calc(100vh - 64px);
    padding-bottom: 40px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.list-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}

.list-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.list-actions .form-input {
    height: 38px;
}

.message-table {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.message-table-header {
    display: grid;
    grid-template-columns: 90px 120px 1fr 160px 120px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-gray);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    border-bottom: 1px solid var(--border-light);
}

.message-row {
    display: grid;
    grid-template-columns: 90px 120px 1fr 160px 120px;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: var(--transition);
}

.message-row:last-child {
    border-bottom: none;
}

.message-row:hover {
    background: var(--bg);
}

.message-row.unread {
    background: var(--primary-light);
}

.message-row.unread:hover {
    background: #D6E8FF;
}

.col-type {
    display: flex;
    align-items: center;
}

.col-sender,
.col-receiver {
    font-size: 14px;
    color: var(--text-1);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-content {
    min-width: 0;
}

.col-title {
    font-size: 14px;
    color: var(--text-1);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-meta {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    gap: 10px;
    align-items: center;
}

.col-time {
    font-size: 13px;
    color: var(--text-3);
}

.col-action {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
}

/* 发信卡片布局 */
.message-card-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.message-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.message-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.message-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    min-width: 0;
}

.message-card-meta-label {
    color: var(--text-3);
    flex-shrink: 0;
}

.message-card-meta-value {
    color: var(--text-1);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

.message-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.message-card-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .message-card-list {
        padding: 12px;
        gap: 10px;
    }
    .message-card {
        padding: 14px 16px;
    }
    .message-card-title {
        white-space: normal;
        word-break: break-word;
    }
    .message-card-meta {
        flex-direction: column;
        gap: 6px;
    }
    .message-card-meta-value {
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }
    .message-card-footer {
        justify-content: flex-end;
    }
}

.pagination-container {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
}

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.message-sender {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
}

.message-time {
    font-size: 12px;
    color: var(--text-3);
    flex-shrink: 0;
}

.message-subject {
    font-size: 14px;
    color: var(--text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-item.unread .message-sender,
.message-item.unread .message-subject {
    font-weight: 600;
    color: var(--text-1);
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.type-selector .type-card {
    text-align: center;
    padding: 24px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.type-selector .type-card:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.type-selector .type-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.type-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.type-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-1);
}

.type-desc {
    font-size: 12px;
    color: var(--text-3);
}

.form-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.info-item label {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 4px;
}

.info-item .value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.word-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 6px;
}

.word-count.warning {
    color: var(--warning);
}

.word-count.danger {
    color: var(--danger);
}

.switch-label {
    font-size: 14px;
    color: var(--text-2);
}

.realname-container {
    max-width: 600px;
    margin: 0 auto;
}

.status-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.status-card.status-0 {
    background: var(--bg-gray);
}

.status-card.status-1 {
    background: var(--warning-light);
    border-color: var(--warning);
}

.status-card.status-2 {
    background: var(--success-light);
    border-color: var(--success);
}

.status-card.status-3 {
    background: var(--danger-light);
    border-color: var(--danger);
}

.status-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.status-info {
    flex: 1;
}

.status-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-1);
}

.status-info p {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.6;
}

.reject-reason {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(245, 63, 63, 0.1);
    border-radius: var(--radius);
    border-left: 3px solid var(--danger);
}

.reject-reason-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 4px;
}

.reject-reason-text {
    font-size: 14px;
    color: var(--text-1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 6px;
    line-height: 1.5;
}

.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.cache-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.cache-item-info {
    flex: 1;
}

.cache-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    margin-bottom: 4px;
}

.cache-item-desc {
    font-size: 12px;
    color: var(--text-3);
}

.cache-item-size {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 16px;
}

.cache-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-top: 16px;
    margin-bottom: 24px;
}

.cache-summary-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
}

.cache-summary-size {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.message-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.message-detail-header {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.message-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
}

.message-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-3);
}

.meta-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
}

.message-detail-body {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.message-content-box {
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-1);
    word-break: break-all;
}

.card-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card-info-item {
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.card-info-label {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.card-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    word-break: break-all;
}

.notification-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg);
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-item.unread:hover {
    background: #D6E8FF;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 8px;
}

.notification-content {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-3);
}

.profile-section {
    padding: 0;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-light);
    border: 3px solid var(--border-light);
    flex-shrink: 0;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-list {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg);
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-item.unread:hover {
    background: #D6E8FF;
}

.notification-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.notification-item.unread .notification-icon {
    background: var(--primary-light);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.notification-preview {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.message-detail {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.detail-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.detail-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.detail-body {
    padding: 24px;
}

.detail-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.content-box {
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-1);
    word-break: break-all;
    white-space: pre-wrap;
}

.content-box.rich-content {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}

.card-secret-box {
    margin-top: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #FFD591;
}

.card-secret-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secret-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 125, 0, 0.15);
}

.secret-row:last-child {
    border-bottom: none;
}

.secret-label {
    width: 100px;
    font-size: 13px;
    color: var(--text-2);
    flex-shrink: 0;
}

.secret-value {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    font-family: 'Consolas', 'Monaco', monospace;
    word-break: break-all;
}

.secret-value.clickable {
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.secret-value.clickable:hover {
    text-decoration: underline;
}

.platform-link {
    color: var(--primary);
    word-break: break-all;
}

.platform-link:hover {
    text-decoration: underline;
}

.burn-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--danger-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--danger);
    margin-bottom: 20px;
}

.burn-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.burn-warning-text {
    font-size: 14px;
    color: var(--text-1);
    line-height: 1.6;
}

.burn-warning-text strong {
    color: var(--danger);
}

/* 第三方中转声明样式 */
.relay-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #FFF7E6 0%, #FFFBE6 100%);
    border: 1px solid #FFD591;
    border-left: 4px solid #FA8C16;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(250, 140, 22, 0.1);
}
.relay-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}
.relay-notice-text {
    font-size: 13px;
    color: #874D00;
    line-height: 1.7;
    word-break: break-word;
}
.relay-notice-text strong {
    color: #D46B08;
    font-weight: 600;
}
/* 关键字段多色标注 */
.relay-notice-text .relay-brand { color: #1a73e8; font-weight: 700; }
.relay-notice-text .relay-warning { color: #CF1322; font-weight: 700; }
.relay-notice-text .relay-disclaimer { color: #D46B08; font-weight: 600; }
.relay-notice-text .relay-neutral { color: #874D00; font-weight: 600; }

/* 发信人隐藏内容高亮样式 */
.sender-hidden-highlight {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(90deg, #FFF1F0 0%, #FFCCC7 100%);
    color: #CF1322;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #FFA39E;
    box-shadow: 0 1px 3px rgba(207, 19, 34, 0.15);
    animation: highlight-pulse 2s ease-in-out infinite;
}
@keyframes highlight-pulse {
    0%, 100% { box-shadow: 0 1px 3px rgba(207, 19, 34, 0.15); }
    50% { box-shadow: 0 2px 8px rgba(207, 19, 34, 0.3); }
}

/* 移动端汉堡菜单下拉导航（桌面端默认隐藏） */
.mobile-nav-dropdown {
    display: none;
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-bottom-nav { display: flex; }
    .header-inner { padding: 0 12px; }
    .logo-slogan { display: none; }
    .logo-text { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
    .logo-text-wrap { min-width: 0; overflow: hidden; }
    .logo-icon { font-size: 20px; }
    .logo { gap: 6px; max-width: 50vw; }
    .welcome-banner { padding: 24px; }
    .welcome-title { font-size: 20px; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dashboard-stats .stat-card { padding: 16px; }
    .dashboard-stats .stat-icon { width: 44px; height: 44px; font-size: 22px; }
    .dashboard-stats .stat-value { font-size: 22px; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .quick-action-card { padding: 16px 12px; flex-direction: column; text-align: center; gap: 8px; }
    .quick-action-icon { font-size: 28px; }
    .quick-action-info h4 { font-size: 14px; }
    .quick-action-info p { font-size: 11px; }
    .auth-card { padding: 28px 20px; }
    .main-content { padding-bottom: 80px; }
    .message-table-header { display: none; }
    .message-row {
        grid-template-columns: auto 1fr;
        gap: 6px 10px;
        padding: 14px 16px;
    }
    /* 第一行：类型标签 + 发信人/收信人 */
    .col-type { grid-column: 1; grid-row: 1; }
    .col-sender, .col-receiver { grid-column: 2; grid-row: 1; font-weight: 600; }
    /* 第二行：标题+状态 */
    .col-content { grid-column: 1 / -1; grid-row: 2; }
    /* 第三行：时间 + 操作按钮 */
    .col-time { grid-column: 1; grid-row: 3; font-size: 12px; }
    .col-action { grid-column: 2; grid-row: 3; justify-content: flex-end; flex-wrap: wrap; }
    .type-selector { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .type-selector .type-card { padding: 12px 6px; }
    .type-selector .type-icon { font-size: 24px; }
    .type-selector .type-name { font-size: 13px; }
    .type-selector .type-desc { font-size: 11px; display: none; }
    .form-info-grid { grid-template-columns: 1fr; }
    .list-header { flex-direction: column; align-items: flex-start; }
    .list-actions { width: 100%; }
    .list-actions .form-input { flex: 1; }
    .status-card { flex-direction: column; gap: 12px; padding: 16px; }
    .cache-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cache-item-size { margin-right: 0; }
    .message-detail-meta { grid-template-columns: 1fr; }
    .detail-meta { grid-template-columns: 1fr; }
    .card-info-grid { grid-template-columns: 1fr; }
    .profile-avatar-section { flex-direction: column; text-align: center; }
    .notification-item { padding: 16px; gap: 12px; }
    .notification-icon { width: 40px; height: 40px; font-size: 22px; }
    .secret-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .secret-label { width: auto; }
    .detail-footer { flex-direction: column; }
    .detail-footer .btn { width: 100%; }
    .photo-upload-grid { grid-template-columns: 1fr; }
    .change-phone-item { flex-direction: column; }
    .ads-grid { grid-template-columns: 1fr; }
    .ad-item { min-width: 100%; }
    /* 最近消息列表移动端优化：横向铺满，头像缩小 */
    .message-item { padding: 12px; gap: 10px; }
    .message-avatar { width: 36px; height: 36px; font-size: 14px; }
    /* 快捷操作卡片角标 */
    .quick-action-badge {
        position: absolute; top: 8px; right: 8px;
        background: var(--danger); color: #fff;
        font-size: 11px; font-weight: 600;
        min-width: 18px; height: 18px;
        border-radius: 9px; padding: 0 5px;
        display: flex; align-items: center; justify-content: center;
    }
    .quick-action-card { position: relative; }
    /* 移动端汉堡菜单下拉 */
    .mobile-nav-dropdown {
        display: none; position: fixed; top: 56px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 999;
        flex-direction: column; padding: 8px 0;
    }
    .mobile-nav-dropdown.show { display: flex; }
    .mobile-nav-dropdown a {
        padding: 12px 20px; font-size: 14px; color: var(--text-1);
        text-decoration: none; border-bottom: 1px solid var(--border-light);
    }
    .mobile-nav-dropdown a:last-child { border-bottom: none; }
    .mobile-nav-dropdown a:active { background: var(--bg-gray); }
}

.switch-desc {
    font-size: 12px;
    color: var(--text-3);
    margin-left: 8px;
}

.email-privacy-notice {
    padding: 14px 16px;
    background: #eff6ff;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
}

.email-privacy-notice strong {
    color: var(--primary);
}

.text-success { color: #10b981 !important; }
.text-warning { color: #f59e0b !important; }
.text-danger { color: #ef4444 !important; }
.text-info { color: #3b82f6 !important; }

.privacy-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f0f9ff;
    border-radius: var(--radius);
    border: 1px solid #bae6fd;
    margin-bottom: 20px;
}

.privacy-tip .tip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.privacy-tip .tip-content {
    font-size: 14px;
    color: #0369a1;
    line-height: 1.6;
}

.photo-upload-section {
    margin-bottom: 24px;
}

.photo-upload-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.photo-upload-box {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-gray);
}

.photo-upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.photo-upload-box.has-image {
    border-style: solid;
    border-color: var(--primary);
    padding: 8px;
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.photo-upload-icon {
    font-size: 36px;
}

.photo-upload-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
}

.photo-upload-desc {
    font-size: 12px;
    color: var(--text-3);
}

.photo-preview {
    position: relative;
}

.photo-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.photo-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.photo-preview-label {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 6px;
    text-align: center;
}

.verified-photos {
    margin-top: 20px;
}

.verified-photos h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 12px;
}

.verified-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.verified-photo-item {
    text-align: center;
}

.verified-photo-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #10b981;
}

.verified-photo-item span {
    font-size: 12px;
    color: var(--text-2);
    display: block;
    margin-top: 6px;
}

.cache-item-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cache-item-detail input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cache-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
}

.cache-item-desc {
    font-size: 12px;
    color: var(--text-3);
}

.cache-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.cache-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cache-total-size {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary);
}

.change-phone-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.change-phone-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 8px;
}

.change-phone-tip {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 16px;
}

.change-phone-form {
    max-width: 400px;
}

.change-phone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.change-phone-item label {
    width: 100px;
    font-size: 14px;
    color: var(--text-2);
    flex-shrink: 0;
}

.change-phone-item .form-input {
    flex: 1;
}

.code-btn {
    white-space: nowrap;
    min-width: 120px;
}

.realname-check-notice {
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: var(--radius);
    border-left: 4px solid #f59e0b;
    margin-bottom: 16px;
    font-size: 13px;
    color: #92400e;
}

.ads-section {
    margin-top: 24px;
}

.ads-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ad-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}

.ad-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.ad-item-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ad-item-content {
    padding: 16px;
}

.ad-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-item-desc {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-item-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    border-radius: 10px;
    margin-top: 10px;
}

/* 纯文本广告样式：紧凑列表，无图 */
.ad-item.ad-item-text {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ad-item.ad-item-text .ad-item-text-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    flex-shrink: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ad-item.ad-item-text .ad-item-text-desc {
    font-size: 13px;
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* 滚动播报通知条 */
.scroll-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(90deg, #fffbe6 0%, #fff3e0 100%);
    border: 1px solid #ffe0b2;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}
.scroll-notice-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.scroll-notice-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}
.scroll-notice-item {
    display: inline-block;
    font-size: 13px;
    color: var(--text-2);
    line-height: 24px;
    white-space: nowrap;
    padding-right: 40px;
    animation: scrollNoticeMove 20s linear infinite;
}
.scroll-notice-item a {
    color: var(--text-2);
    text-decoration: none;
}
.scroll-notice-item a:hover {
    color: var(--primary);
}
@keyframes scrollNoticeMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 移动端广告卡片优化：限制图片高度，避免广告过多时挤压功能按钮 */
@media (max-width: 768px) {
    .ads-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ad-item-image {
        height: 100px;
    }
    .ad-item-content {
        padding: 10px 12px;
    }
    .ad-item-title {
        font-size: 14px;
    }
    .ad-item-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    .ads-section {
        margin-bottom: 12px;
    }
}

.user-logs-section {
    margin-top: 32px;
}

.user-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.user-logs-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.log-item:last-child {
    border-bottom: none;
}

.log-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.log-item-icon.login { background: #dcfce7; }
.log-item-icon.message { background: #dbeafe; }
.log-item-icon.sms { background: #fef3c7; }
.log-item-icon.error { background: #fee2e2; }
.log-item-icon.default { background: var(--bg-gray); }

.log-item-content {
    flex: 1;
}

.log-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    margin-bottom: 4px;
}

.log-item-meta {
    font-size: 12px;
    color: var(--text-3);
}

.log-item-time {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
}

.admin-profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.admin-profile-dropdown:hover {
    background: var(--bg-gray);
}

.admin-profile-dropdown .admin-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
}

.admin-profile-dropdown .admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.admin-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.admin-dropdown-menu.show {
    display: block;
}

.admin-dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-1);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-dropdown-item:hover {
    background: var(--bg-gray);
}

.admin-dropdown-item.danger {
    color: var(--danger);
}

.admin-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}
