/* 源于原始 main.css + admin.css 的 Flat UI 经典配色 */
/* 主色 #e74c3c | 暗红 #c0392b | 浅红背景 #fadbd8 */
/* 绿色 #27ae60 | 橙 #e67e22 | 黄 #f39c12 | 蓝 #3498db */
/* 页面背景 #f8f9fa | 卡片 #fff | 深色文字 #2c3e50 | 边框 #e9ecef */

html { font-size: 16px; }
@media (max-width: 1024px) { html { font-size: 15px; } }
@media (max-width: 768px) { html { font-size: 14px; } }
@media (max-width: 480px) { html { font-size: 13.5px; } }

/* ===== 交互 ===== */
.admin-sidebar.open { transform: translateX(0) !important; }
.admin-sidebar-overlay { display: none !important; pointer-events: none; }
.admin-sidebar-overlay.show { display: block !important; pointer-events: auto; }
.menu-group .menu-group-items { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.menu-group.open .menu-group-items { max-height: 500px; }
.avatar-menu.open { display: block !important; }
.admin-avatar-menu.open { display: block !important; }

.navbar-nav .active, .navbar-nav a.active { background-color: rgba(231,76,60,.08) !important; color: #e74c3c !important; }

/* ===== Toast 提示框 ===== */
.toast-container {
    position: fixed; bottom: 16px; right: 16px; z-index: 3000;
    display: flex; flex-direction: column; gap: 8px;
    max-width: 360px; pointer-events: none;
}
.toast {
    pointer-events: auto;
    padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    animation: toastIn .3s ease;
    word-break: break-word;
}
.toast.toast-out { animation: toastOut .3s ease forwards; }
.toast-success { background: #e8f8f5; color: #1e8449; border: 1px solid #a3e4d7; }
.toast-error   { background: #fdedec; color: #b03a2e; border: 1px solid #f5b7b1; }
.toast-warning { background: #fef9e7; color: #b7950b; border: 1px solid #f9e79f; }
.toast-info    { background: #d6eaf8; color: #2471a3; border: 1px solid #aed6f1; }
.toast-msg { display: block; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

/* ===== 弹窗 (Modal) ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
}
.modal-overlay.show {
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.modal-overlay .modal {
    position: relative; width: 100%; max-width: 480px; max-height: 80vh;
    background: #fff; color: #2c3e50;
    border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.18);
    display: flex; flex-direction: column;
    animation: modalIn .25s ease;
    overflow: hidden;
}
.modal-overlay .modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #eaecef;
    flex-shrink: 0;
}
.modal-overlay .modal-header h3 {
    font-size: 16px; font-weight: 600; color: #2c3e50; margin: 0;
}
.modal-overlay .modal-body {
    padding: 20px; overflow-y: auto; flex: 1;
    font-size: 14px; color: #3f4254; line-height: 1.6;
}
.modal-overlay .modal-body p { margin: 0 0 12px; }
.modal-overlay .modal-body p:last-child { margin-bottom: 0; }
.modal-overlay .modal-body ul {
    padding-left: 20px; margin: 8px 0;
}
.modal-overlay .modal-body ul li {
    padding: 4px 0; font-size: 14px; color: #3f4254;
}
.modal-warning {
    padding: 12px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
    border: 1px solid #f5b7b1; background: #fdedec; color: #b03a2e; margin-bottom: 12px;
}
.modal-tip { font-size: 12px; color: #7e8299; margin-top: 4px; }
.modal-overlay .modal-footer {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 14px 20px; border-top: 1px solid #eaecef;
    flex-shrink: 0;
}
.modal-close-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 4px; cursor: pointer;
    color: #7e8299; font-size: 18px; line-height: 1;
    background: none; border: none; transition: all .15s;
}
.modal-close-btn:hover { background: #f0f0f0; color: #2c3e50; }

/* 弹窗内表单 */
.modal-overlay .modal-body .form-group { margin-bottom: 14px; }
.modal-overlay .modal-body .form-group label {
    display: block; font-size: 13px; font-weight: 500; color: #3f4254; margin-bottom: 4px;
}
.modal-overlay .modal-body .form-group .fc {
    width: 100%; padding: 8px 12px; border: 1px solid #dde0e4; border-radius: 6px;
    font-size: 13px; outline: none; box-sizing: border-box;
}
.modal-overlay .modal-body .form-group .fc:focus { border-color: #e74c3c; }

@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* 弹窗移动端适配 */
@media (max-width: 768px) {
    .modal-overlay .modal { max-width: 100%; max-height: 90vh; border-radius: 12px 12px 0 0; }
    .modal-overlay .modal-header { padding: 14px 16px; }
    .modal-overlay .modal-body   { padding: 16px; }
    .modal-overlay .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
    .modal-overlay .modal-footer .admin-btn { flex: 1; justify-content: center; }
}

/* Toast 移动端适配 */
@media (max-width: 480px) {
    .toast-container { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}

/* ===== 按钮 ===== */
.btn, .admin-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .2s; text-decoration: none; min-height: 34px; white-space: nowrap; font-family: inherit; line-height: 1.4; }
.btn-brand { background: #e74c3c; color: #fff; }
.btn-brand:hover { background: #c0392b; color: #fff; }
.btn-primary, .btn-pri, .btn-danger, .btn-dan { background: #e74c3c; color: #fff; }
.btn-primary:hover, .btn-pri:hover, .btn-danger:hover, .btn-dan:hover { background: #c0392b; color: #fff; }
.btn-success, .btn-suc { background: #27ae60; color: #fff; }
.btn-success:hover, .btn-suc:hover { background: #219a52; color: #fff; }
.btn-warning, .btn-war { background: #f39c12; color: #fff; }
.btn-warning:hover, .btn-war:hover { background: #d68910; color: #fff; }
.btn-info, .btn-inf { background: #3498db; color: #fff; }
.btn-info:hover, .btn-inf:hover { background: #2471a3; color: #fff; }
.btn-outline, .btn-out { background: transparent; color: #e74c3c; border: 1px solid #e74c3c; }
.btn-outline:hover, .btn-out:hover { background: #e74c3c; color: #fff; }
.btn-ghost { background: transparent; color: #495057; border: none; }
.btn-ghost:hover { background: #f8f9fa; }
.btn-sm { padding: 5px 12px; font-size: 12px; min-height: 30px; }
.toolbar .btn-sm { height: 36px; }
.btn-block { width: 100%; display: flex; justify-content: center; }
.btn-xl { padding: 12px 24px; font-size: 16px; min-height: 44px; }
.btn:disabled, .admin-btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ===== 容器 & 区块 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
@media (max-width: 768px) { .container { padding: 0 16px; } }
@media (max-width: 480px) { .container { padding: 0 12px; } }
.section { padding: 60px 0; }
@media (max-width: 768px) { .section { padding: 24px 0; } }
.section-title { font-size: 24px; font-weight: 700; text-align: center; color: #2c3e50; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: #6c757d; margin-bottom: 40px; font-size: 15px; }
@media (max-width: 768px) { .section-title { font-size: 20px; margin-bottom: 6px; } .section-subtitle { font-size: 13px; margin-bottom: 20px; } .announcement-page h1 { font-size: 20px !important; margin-bottom: 16px; } }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: #2c3e50; }
.page-subtitle { font-size: 13px; color: #7e8299; margin-bottom: 24px; }

/* ===== Banner ===== */
.banner-section { position: relative; overflow: hidden; background: #0d1117; padding: 30px 0; }
.banner-carousel { position: relative; height: 380px; overflow: visible; display: flex; align-items: center; justify-content: center; }
.banner-slide { display: none; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.4); transition: all .6s cubic-bezier(.25,.46,.45,.94); cursor: pointer; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide.pos-left { display: block; position: absolute; top: 50%; left: -7%; width: 44%; height: 70%; transform: translateY(-50%) scale(.85); z-index: 1; opacity: .5; filter: brightness(.5); border-radius: 16px; }
.banner-slide.pos-center { display: block; position: absolute; top: 50%; left: 28%; width: 44%; height: 100%; transform: translateY(-50%) scale(1); z-index: 3; opacity: 1; filter: brightness(1); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.banner-slide.pos-right { display: block; position: absolute; top: 50%; left: 63%; width: 44%; height: 70%; transform: translateY(-50%) scale(.85); z-index: 1; opacity: .5; filter: brightness(.5); border-radius: 16px; }
.banner-slide.single { display: block; position: absolute; top: 50%; left: 50% !important; width: 60% !important; height: 100% !important; transform: translate(-50%,-50%) !important; z-index: 1; opacity: 1; filter: brightness(1); }
.banner-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.3); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .3s; backdrop-filter: blur(4px); }
.banner-btn:hover { background: rgba(255,255,255,.35); border-color: rgba(255,255,255,.6); }
.banner-btn-left { left: 20px; }
.banner-btn-right { right: 20px; }
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: .3s; border: none; padding: 0; }
.banner-dot.active { background: #e74c3c; width: 28px; border-radius: 5px; }

@media (max-width: 768px) {
    .banner-section { padding: 0; }
    .banner-carousel { height: 260px; padding: 0; background: #1a1a2e; }
    .banner-slide.pos-left, .banner-slide.pos-right { display: none !important; }
    .banner-slide.pos-center { position: relative !important; top: auto !important; left: auto !important; width: 100% !important; height: 100% !important; transform: none !important; border-radius: 0 !important; box-shadow: none !important; z-index: 1 !important; opacity: 1 !important; filter: brightness(1) !important; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .banner-slide.pos-center img { width: 100%; height: 100%; object-fit: contain; }
    .banner-slide.single { position: relative !important; left: auto !important; top: auto !important; width: 100% !important; height: 100% !important; transform: none !important; border-radius: 0 !important; display: flex; align-items: center; justify-content: center; }
    .banner-slide.single img { width: 100%; height: 100%; object-fit: contain; }
    .banner-btn { width: 36px; height: 36px; font-size: 16px; }
    .banner-btn-left { left: 8px; }
    .banner-btn-right { right: 8px; }
    .banner-dots { bottom: 6px; }
}

/* ===== 通知 ===== */
.notice-section { background: #fff; }
.notice-list { max-width: 800px; margin: 0 auto; }
.notice-item { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e9ecef; cursor: pointer; }
.notice-content { display: flex; flex-direction: column; justify-content: center; }
.notice-item:last-child { border-bottom: none; }
.notice-badge { padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-top { background: #fadbd8; color: #e74c3c; }
.badge-normal { background: #e9ecef; color: #6c757d; }
.notice-content { flex: 1; min-width: 0; }
.notice-content h4 { font-size: 15px; color: #2c3e50; line-height: 1.2; margin: 0; }
.notice-content p { font-size: 13px; color: #6c757d; line-height: 1.2; margin: 2px 0 0 0; }
.notice-date { font-size: 13px; color: #adb5bd; white-space: nowrap; }
@media (max-width: 768px) {
    .notice-item { padding: 8px 0; gap: 10px; }
    .notice-date { width: auto; text-align: right; }
}

/* ===== 活动卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
@media (max-width: 768px) { .card-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: all .3s; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.card-img { width: 100%; height: 180px; object-fit: cover; display: block; background: linear-gradient(135deg, #fadbd8, #e9ecef); }
@media (max-width: 768px) { .card-img { height: 200px; } }
.card-body { padding: 20px; }
.card-tag { display: inline-block; padding: 3px 0; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 10px; color: #e74c3c !important; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #2c3e50; }
.card-meta { display: flex; gap: 16px; font-size: 13px; color: #6c757d; margin-bottom: 12px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #e9ecef; }
.card-progress { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6c757d; }
.progress-bar { width: 80px; height: 6px; border-radius: 3px; background: #e9ecef; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: #e74c3c; }

/* Tag 颜色 - 原版 */
.tag-school{background:#eaf2f8;color:#2471a3}.tag-community{background:#fef9e7;color:#b7950b}
.tag-environment{background:#e8f8f5;color:#1e8449}.tag-education{background:#f4ecf7;color:#7d3c98}
.tag-elderly{background:#fdedec;color:#b03a2e}.tag-culture{background:#ebdef0;color:#6c3483}
.tag-other{background:#f2f3f4;color:#5d6d7e}
.tag-public{background:#fef9e7;color:#b7950b}
.tag-technology{background:#eaf2f8;color:#2471a3}
.tag-medical{background:#fdedec;color:#b03a2e}
.tag-sports{background:#e8f8f5;color:#1e8449}

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #495057; }
.form-control, .fc,
input[type="text"]:not(.btn), input[type="password"]:not(.btn),
input[type="email"]:not(.btn), input[type="number"]:not(.btn), input[type="tel"]:not(.btn),
input[type="url"]:not(.btn), input[type="date"]:not(.btn), input[type="datetime-local"]:not(.btn),
textarea:not(.btn), select:not(.btn) {
    width: 100%; height: 42px; padding: 0 14px; border: 2px solid #dee2e6; border-radius: 8px;
    font-size: 14px; color: #2c3e50; background: #fff; transition: all .3s;
    outline: none; box-sizing: border-box; font-family: inherit; line-height: 38px;
}
.form-control:focus, .fc:focus, input:focus:not(.btn), textarea:focus:not(.btn), select:focus:not(.btn) {
    border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.1);
}
.form-control[readonly], input[readonly] { background: #f8f9fa; cursor: default; }
textarea:not(.btn) { resize: vertical; min-height: 80px; height: auto !important; line-height: 1.5; padding-top: 10px; padding-bottom: 10px; }
.form-text { font-size: 12px; color: #adb5bd; margin-top: 4px; }
.form-group .error { font-size: 12px; color: #e74c3c; margin-top: 4px; }
.form-group small { display: block; margin-top: 4px; font-size: 12px; color: #6c757d; line-height: 1.4; }

/* 表单行 - 同行两组对齐 */
.form-row { display: flex; gap: 20px; }
.form-row > .form-group { flex: 1; min-width: 0; }
@media (max-width: 768px) { .form-row { flex-direction: column; } }


/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: #f8f9fa; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; color: #7e8299; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #e8ecf1; font-size: 13px; color: #3f4254; vertical-align: middle !important; white-space: nowrap; }
.admin-table td:last-child, .admin-table th:last-child { max-width: none; }
.admin-table tbody tr:hover { background: #f8f9fa; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .no-data { text-align: center; color: #7e8299; padding: 40px 16px; font-size: 13px; white-space: normal; max-width: none; }
@media (max-width: 1024px) { .admin-table td { font-size: 12px; padding: 10px 12px; } }
@media (max-width: 768px) { .admin-table { min-width: 650px; width: auto; } .admin-table .no-data { white-space: normal; } }

/* ===== 深色侧栏配色 ===== */
.admin-sidebar .sidebar-brand h2 { color: #fff !important; }
.admin-sidebar .sidebar-brand { border-color: rgba(255,255,255,.08) !important; }
.admin-sidebar .menu-group-title { color: rgba(255,255,255,.7) !important; font-weight: 700 !important; }
.admin-sidebar .menu-item { color: rgba(255,255,255,.55) !important; font-size: 0.875rem !important; border-radius: 0 !important; }
.admin-sidebar .menu-item:hover { background: rgba(255,255,255,.06) !important; color: rgba(255,255,255,.85) !important; }
.admin-sidebar .menu-item.active { background: rgba(231,76,60,.15) !important; color: #e74c3c !important; }
.admin-sidebar .menu-group-items .menu-item { padding-left: 1.5rem !important; }

/* ===== 后台卡片 ===== */
.admin-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 24px; }
.admin-card-header { padding: 16px 24px; border-bottom: 1px solid #e8ecf1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.admin-card-header h3 { font-size: 16px; font-weight: 600; color: #2c3e50; }
.admin-card-body { padding: 24px; }
.admin-card-body.nopad { padding: 0; }
@media (max-width: 768px) { .admin-card-header { padding: 12px 16px; } .admin-card-body { padding: 16px; } }

/* ===== 统计卡片 ===== */
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1400px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-card { background: #fff; border-radius: 8px; padding: 20px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-num { font-size: 28px; font-weight: 700; line-height: 1; color: #2c3e50; }
.stat-text { font-size: 13px; color: #7e8299; margin-top: 4px; }

/* ===== 警告提示 ===== */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.alert-error { background: #fdedec; color: #b03a2e; border: 1px solid #f5b7b1; }
.alert-success { background: #e8f8f5; color: #1e8449; border: 1px solid #a3e4d7; }
.alert-warning { background: #fef9e7; color: #b7950b; border: 1px solid #f9e79f; }
.alert-info { background: #d6eaf8; color: #2471a3; border: 1px solid #aed6f1; }

/* ===== 徽章 ===== */
.badge, .badge-s, .badge-d, .badge-i, .badge-w, .badge-g { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 1.2; vertical-align: middle; white-space: nowrap; }
.badge-s svg, .badge-d svg, .badge-i svg, .badge-w svg, .badge-g svg { flex-shrink: 0; }
.badge-s, .badge-success { background: #D6F4E4; color: #24834C; }
.badge-d, .badge-danger { background: #fdedec; color: #b03a2e; }
.badge-i, .badge-info { background: #d6eaf8; color: #2471a3; }
.badge-w, .badge-warning { background: #fef9e7; color: #b7950b; }
.badge-g, .badge-gray { background: #f2f3f4; color: #5d6d7e; }
.menu-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e74c3c; color: #fff; font-size: 11px; font-weight: 700; margin-left: auto; line-height: 1; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid #dee2e6; border-radius: 8px; color: #495057; font-size: 14px; text-decoration: none; transition: .3s; }
.pagination a:hover { background: rgba(231,76,60,.1); border-color: #e74c3c; color: #e74c3c; }
.pagination .current { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.pagination .disabled { opacity: .5; pointer-events: none; }

/* ===== 工具栏 ===== */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar form { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.toolbar .fc { min-width: 0; max-width: 200px; height: 36px; padding: 0 12px; border: 2px solid #dee2e6; border-radius: 8px; font-size: 14px; line-height: 36px; box-sizing: border-box; flex-shrink: 0; }
.toolbar select.fc { max-width: 140px; }
@media (max-width: 1200px) { .toolbar .fc { max-width: 180px; } .toolbar select.fc { max-width: 120px; } }
@media (max-width: 768px) {
    .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .toolbar form { flex-direction: column; align-items: stretch; width: 100%; gap: 8px; }
    .toolbar .fc, .toolbar input.fc, .toolbar select.fc { max-width: 100% !important; width: 100% !important; }
    .toolbar .admin-btn, .toolbar .btn { width: 100% !important; text-align: center; justify-content: center; }
    .toolbar .form-control { width: 100% !important; max-width: 100% !important; }
}
.no-data { text-align: center; padding: 40px; color: #7e8299; }
.no-data p { margin: 2px 0; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1; min-width: 200px; }
@media (max-width: 768px) { .row { flex-direction: column; gap: 0; } .col { min-width: 0; flex: none; } }

/* ===== 认证页 ===== */
.auth-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fadbd8, #fdebd0); padding: 2rem 1.25rem; }
.auth-card { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 40px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h2 { font-size: 24px; font-weight: 700; color: #2c3e50; }
.auth-header p { color: #6c757d; margin-top: 6px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: #6c757d; }
.auth-footer a { color: #e74c3c; font-weight: 500; text-decoration: none; }
.auth-card .form-control { margin-bottom: 0; }
.auth-card .btn { height: 42px; font-size: 15px; margin-top: 12px; }
@media (max-width: 480px) { .auth-card { padding: 28px 20px; } }

/* ===== 活动详情 ===== */
.detail-header { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; padding: 50px 0; }
.detail-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
/* DaisyUI reset 导致 h1 无字号，统一恢复 */
.announcement-page h1 { font-size: 24px !important; font-weight: 700 !important; color: #2c3e50; margin-bottom: 24px; }
.detail-header .detail-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; opacity: .9; }
.detail-body { padding: 40px 0; max-width: 1200px; margin: 0 auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.detail-main { background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); padding: 30px; }
.detail-sidebar > div { background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); padding: 20px; margin-bottom: 20px; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } .detail-main { padding: 20px 16px; } }

/* ===== 配置表格 ===== */
.config-group { border: 1px solid #e8ecf1; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.config-group h4 { font-size: 15px; margin-bottom: 16px; color: #2c3e50; }
.config-table { width: 100%; border-collapse: collapse; }
.config-table td { padding: 6px 8px; vertical-align: middle; }
.ct-label { width: 100px; text-align: right; font-size: 13px; font-weight: 500; color: #3f4254; white-space: nowrap; padding-left: 0 !important; }
.ct-input input { width: 100%; padding: 8px 12px; border: 1px solid #e8ecf1; border-radius: 6px; font-size: 13px; outline: none; box-sizing: border-box; }
.ct-input input:focus { border-color: #e74c3c; }
/* 时长转换页面搜索栏 - 和其他页面 .toolbar .fc 样式完全一致 */
.filter-bar { flex-wrap: nowrap !important; }
.filter-bar .f-input {
    width: 100%; padding: 0 12px; border: 2px solid #dee2e6; border-radius: 8px;
    font-size: 14px; color: #2c3e50; background: #fff; transition: all .3s;
    outline: none; box-sizing: border-box; font-family: inherit;
    height: 36px !important; min-height: 0 !important;
    line-height: normal !important;
}
.filter-bar .f-input.select {
    width: 140px !important; min-width: 0 !important; max-width: 140px !important; flex-shrink: 0;
    padding: 0 8px !important;
}
.filter-bar .f-input.search { width: 200px !important; min-width: 0 !important; flex-shrink: 0; }
.filter-bar .f-input:focus { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.1); }
.filter-bar .admin-btn { flex-shrink: 0; height: 36px !important; }
@media (max-width: 768px) {
    .filter-bar { flex-direction: column !important; flex-wrap: wrap !important; align-items: stretch !important; gap: 8px !important; }
    .filter-bar .f-input.search,
    .filter-bar .f-input.select { width: 100% !important; max-width: 100% !important; }
    .filter-bar .admin-btn { width: 100% !important; }
}

/* 部门管理 */
.dept-grade-header, .dept-grade-header h3 { color: #e74c3c !important; }
.dept-student-list .admin-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dept-student-list table { min-width: 600px; }
.dept-student-list td { vertical-align: middle !important; }
@media (max-width: 768px) { .config-group { padding: 12px; } .ct-label { width: auto; text-align: left; } }

.form-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-switch .switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.form-switch .switch input { opacity: 0; width: 0; height: 0; }
.form-switch .slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 24px; transition: .3s; }
.form-switch .slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.form-switch .switch input:checked + .slider { background: #e74c3c; }
.form-switch .switch input:checked + .slider::before { transform: translateX(20px); }

.restart-progress-bar { background: #e9ecef; border-radius: 10px; height: 20px; overflow: hidden; }
.restart-progress-fill { height: 100%; background: linear-gradient(90deg, #f39c12, #e67e22); border-radius: 10px; transition: width .3s ease; width: 0%; }
.restart-done-box { padding: 16px; background: #d5f5e3; border-radius: 8px; color: #1e8449; font-weight: 600; text-align: center; }

/* ===== 面包屑 (替代 DaisyUI breadcrumbs) ===== */
.breadcrumbs { font-size: 14px; color: #7e8299; }
.breadcrumbs ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: #7e8299; text-decoration: none; transition: color .15s; }
.breadcrumbs a:hover { color: #e74c3c; text-decoration: underline; }
.breadcrumbs .sep { color: #c4c8d0; user-select: none; }
.breadcrumbs .current { color: #3f4254; font-weight: 500; }
/* 链接样式 (替代 DaisyUI link/link-hover) */
.link { color: #e74c3c; text-decoration: none; }
.link-hover { color: inherit; text-decoration: none; }
.link-hover:hover { color: #e74c3c; text-decoration: underline; }

/* ===== 杂项 ===== */
.skeleton { background: linear-gradient(90deg, #e9ecef 25%, #f0f0f0 50%, #e9ecef 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: 4px; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.img-upload-preview img { max-width: 180px; max-height: 180px; border-radius: 8px; border: 1px solid #e9ecef; }
.col-hide-mobile {  }
@media (max-width: 768px) { .col-hide-mobile { display: none !important; } }

#delete-user-list li { font-weight: bold; color: #e74c3c; text-align: center; }

.hamburger-btn { display: none !important; }
@media (max-width: 767px) { .hamburger-btn { display: flex !important; } }

.avatar-dropdown { position: relative; }
.header-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #dee2e6; cursor: pointer; transition: border-color .2s, transform .2s; }
.header-avatar:hover { border-color: #e74c3c; transform: scale(1.1); }
.avatar-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 140px; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px 0; z-index: 1050; }
.avatar-menu a { display: block; padding: 10px 20px; font-size: 14px; color: #2c3e50; text-decoration: none; transition: background .15s; }
.avatar-menu a:hover { background: rgba(231,76,60,.06); color: #e74c3c; }

.admin-avatar-dropdown { position: relative; }
.admin-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer; transition: box-shadow .15s; }
.admin-avatar:hover { box-shadow: 0 0 0 3px rgba(231,76,60,.2); }
.admin-avatar-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 140px; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px 0; z-index: 1050; }
.admin-avatar-menu a { display: block; padding: 10px 20px; font-size: 14px; color: #3f4254; text-decoration: none; transition: background .15s; }
.admin-avatar-menu a:hover { background: rgba(231,76,60,.06); color: #e74c3c; }
.admin-hamburger { display: none !important; }
@media (max-width: 1023px) { .admin-hamburger { display: flex !important; } }

.main-footer { background: #2c3e50; color: rgba(255,255,255,.4); padding: 8px 0; text-align: center; font-size: 12px; }
.footer-beian a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-beian a:hover { color: rgba(255,255,255,.7); }

.steps { display: flex; counter-reset: step; }
.steps .step { flex: 1; text-align: center; position: relative; padding-top: 1.25rem; font-size: 12px; color: #adb5bd; }
.steps .step::before { content: counter(step); counter-increment: step; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #e9ecef; color: #6c757d; line-height: 22px; font-size: 12px; }
.steps .step.active { color: #e74c3c; font-weight: 600; }
.steps .step.active::before { background: #e74c3c; color: #fff; }
.steps .step.done { color: #1e8449; }
.steps .step.done::before { background: #27ae60; color: #fff; }

@media (max-width: 768px) {
    .container, .admin-content, .detail-body { width: 100% !important; box-sizing: border-box; }
    .admin-content { padding: 16px 12px !important; }
}


