html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f6f7fb;
    color: #333;
    margin: 0;
    padding: 0;
}
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1 0 auto;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}
.admin-nav {
    display: flex;
    gap: 1.2rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(22,93,255,0.08), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 0.7rem 1.2rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    border: 1.5px solid #e4e7ed;
    position: relative;
}
.admin-nav::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #165DFF 0%, #4CAF50 100%);
    opacity: 0.08;
    border-radius: 0 0 14px 14px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
    position: relative;
    z-index: 1;
}
.nav-link.active, .nav-link:hover {
    background: linear-gradient(90deg, #165DFF 80%, #4CAF50 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22,93,255,0.10);
    transform: translateY(-2px) scale(1.04);
}
.nav-link.active {
    font-weight: 700;
    border: 2px solid #165DFF;
    box-shadow: 0 4px 16px rgba(22,93,255,0.13);
}
.nav-link i {
    font-size: 1.1em;
    margin-right: 0.3em;
}
.table-container {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(22,93,255,0.08), 0 1.5px 4px rgba(0,0,0,0.04);
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1.5px solid #e4e7ed;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
    font-size: 1rem;
}
.table-header {
    background: linear-gradient(90deg, #f8fafc 60%, #e0e7ef 100%);
    font-weight: 700;
    color: #222;
    padding: 1.1rem 0.8rem;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: 0.02em;
    text-align: center;
}
.table-cell, .module-table-container .table-cell {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    position: relative;
    cursor: pointer;
}
.table-cell:hover, .module-table-container .table-cell:hover {
    overflow: visible;
    white-space: normal;
    background: #f4faff;
    z-index: 2;
}
.table-cell[title], .module-table-container .table-cell[title] {
    position: relative;
}
.table-cell[title]:hover::after, .module-table-container .table-cell[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: #fff;
    color: #165DFF;
    border: 1px solid #bcdcff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #bcdcff22;
    padding: 0.4em 1em;
    font-size: 0.98em;
    white-space: pre-wrap;
    min-width: 80px;
    max-width: 320px;
    word-break: break-all;
    z-index: 99;
}
tr:nth-child(even) .table-cell {
    background: #f8fafc;
}
.action-button, .table-action, .module-table-container .action-button, .module-table-container .table-action {
    background: linear-gradient(90deg, #3a7bd5 60%, #7ee7c6 100%);
    color: #fff;
    border-radius: 10px;
    padding: 0.45em 1.3em;
    font-size: 1.05em;
    font-weight: 600;
    border: none;
    margin-right: 0.4rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
    box-shadow: 0 1px 4px #bcdcff11;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}
.action-button:hover, .table-action:hover, .module-table-container .action-button:hover, .module-table-container .table-action:hover {
    background: linear-gradient(90deg, #165DFF 60%, #3ecf8e 100%);
    box-shadow: 0 2px 8px #3a7bd522;
    transform: translateY(-2px) scale(1.04);
}
.table-action.delete, .module-table-container .table-action.delete {
    background: #dc3545;
    color: #fff;
}
.table-action.delete:hover, .module-table-container .table-action.delete:hover {
    background: #b91c1c;
}
input, select, textarea {
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    outline: none;
    margin-bottom: 0.5rem;
    background: #fff;
    transition: border 0.18s, box-shadow 0.18s;
}
input:focus, select:focus, textarea:focus {
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22,93,255,0.10);
}
.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(220,53,69,0.08);
    animation: fadeIn 0.3s;
}
.success {
    background: #d1fae5;
    color: #065f46;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(16,185,129,0.08);
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.log-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border 0.18s, box-shadow 0.18s;
}
.log-checkbox:checked {
    background-color: #165DFF;
    border-color: #165DFF;
}
.log-checkbox:checked::before {
    content: '✓';
    color: white;
    font-size: 0.875rem;
    display: block;
    text-align: center;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3em;
    flex-wrap: wrap;
    margin-top: 2em;
}
.pagination a {
    border-radius: 8px;
    background: #fafdff;
    color: #165DFF;
    padding: 0.5em 1.2em;
    margin: 0 0.2em;
    font-weight: 600;
    font-size: 1.08em;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px #bcdcff11;
    display: inline-block;
}
.pagination a.bg-primary\/20, .pagination a.active {
    background: linear-gradient(90deg,#165DFF 60%,#7ee7c6 100%);
    color: #fff;
    box-shadow: 0 2px 8px #165DFF22;
}
.pagination a:hover {
    background: linear-gradient(90deg,#3ecf8e 60%,#165DFF 100%);
    color: #fff;
    box-shadow: 0 2px 8px #3ecf8e22;
}
@media (max-width: 900px) {
    .page-container {
        padding: 1rem 0.3rem;
    }
    table {
        min-width: 500px;
    }
    .table-header, .table-cell { padding: 0.7rem 0.4rem; }
    .admin-nav {
        gap: 0.5rem;
        padding: 0.5rem 0.3rem;
    }
    .nav-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.98rem;
    }
    .dashboard-account-info { align-items:flex-start;padding:1em 0 1em 0.7em;min-width:140px; }
    .table-cell { max-width: 120px; }
}
@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    .page-title {
        font-size: 1.3rem;
    }
    .admin-nav {
        flex-wrap: wrap;
        gap: 0.3rem;
        padding: 0.3rem 0.1rem;
    }
    .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.95rem;
    }
    .table-header, .table-cell { padding: 0.5rem 0.2rem; font-size: 0.95rem; }
    .table-container { border-radius: 8px; }
    .action-button {
        padding: 0.3rem 0.7rem;
        font-size: 0.95rem;
    }
    .dashboard-account-info { align-items:flex-start;padding:1em 0 1em 0.7em;min-width:140px; }
    .manage-files-top {
        flex-direction: column;
        gap: 0.7em;
        padding: 0.7em 0.2em;
        min-width: 0;
        margin-bottom: 0.7em;
    }
    .table-container {
        border-radius: 8px;
        box-shadow: 0 1px 4px #bcdcff22;
        padding: 0.2em 0.1em;
        min-width: 0;
        margin-bottom: 1em;
        overflow-x: auto;
    }
    .table-container table {
        min-width: 520px;
        font-size: 0.97em;
    }
    .table-header, .table-cell {
        padding: 0.5rem 0.2rem;
        font-size: 0.95rem;
    }
    .action-button, .table-action {
        padding: 0.3rem 0.7rem;
        font-size: 0.95rem;
        min-width: 60px;
    }
    .table-cell input, .table-cell textarea {
        font-size: 0.95em;
        padding: 0.3em 0.5em;
    }
    .filename-cell {
        max-width: 90px !important;
    }
}
/* ===== 仪表盘统计卡片美化 ===== */
.stat-card {
    background: linear-gradient(120deg, #eaf1ff 60%, #fff 100%);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(22,93,255,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 1.1rem 1rem 0.7rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.18s, transform 0.18s;
}
.stat-card:hover {
    box-shadow: 0 12px 32px rgba(22,93,255,0.16), 0 2px 8px rgba(22,93,255,0.10);
    transform: translateY(-3px) scale(1.02);
}
.stat-card .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    background: linear-gradient(135deg,#165DFF22 60%,#4CAF5015 100%);
    color: #165DFF;
    border-radius: 50%;
    font-size: 1.1em;
    margin-bottom: 0.4em;
    box-shadow: 0 2px 8px #165DFF11;
}
.stat-card .stat-title {
    font-size: 0.95em;
    font-weight: 700;
    color: #165DFF;
    letter-spacing: 0.03em;
    margin-bottom: 0.2em;
}
.stat-card .stat-number {
    font-size: 1.4em;
    font-weight: 900;
    color: #165DFF;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px #165DFF11;
    transition: color 0.18s;
}
@media (max-width: 600px) {
    .stat-card { padding: 1.2rem 0.7rem 1rem 0.7rem; min-width: 140px; }
    .stat-card .stat-number { font-size: 2em; }
    .stat-card .stat-title { font-size: 1em; }
}
/* 仪表盘标题美化 */
.dashboard-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: #165DFF;
    letter-spacing: 0.04em;
    margin-bottom: 1.7rem;
    position: relative;
    display: inline-block;
}
.dashboard-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg,#165DFF 60%,#4CAF50 100%);
    border-radius: 2px;
    margin-top: 0.4em;
    opacity: 0.18;
}
.dashboard-account-info {
    flex:1;
    min-width: 120px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-end;
    padding: 0.7em 0 0.7em 0.7em;
    background:linear-gradient(120deg,#fff 60%,#eaf1ff 100%);
    border-radius:10px;
    box-shadow:0 2px 8px #165DFF11;
    margin-left:1.2em;
}
.dashboard-account-info .account-title {
    font-size: 0.95em;
    color:#165DFF;
    font-weight:700;
    margin-bottom:0.2em;
}
.dashboard-account-info .account-row {
    font-size: 0.95em;
    color:#333;
    margin-bottom:0.1em;
}
.dashboard-stats-row {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
}
.dashboard-stats-row > .stat-card,
.dashboard-stats-row > .dashboard-account-info {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}
.dashboard-account-info { align-items: center; }
@media (max-width: 900px) {
    .dashboard-stats-row { flex-direction: column; gap: 0.7rem; }
    .dashboard-stats-row > .stat-card,
    .dashboard-stats-row > .dashboard-account-info { min-width: 0; height: auto; }
}
.upload-drag-area {
    border: 2.5px dashed #165DFF;
    border-radius: 12px;
    padding: 2.2em 1em;
    text-align: center;
    color: #165DFF;
    margin-bottom: 1.5em;
    background: linear-gradient(135deg,#eaf1ff 60%,#fff 100%);
    transition: border-color 0.18s, box-shadow 0.18s;
    cursor: pointer;
    box-shadow: 0 2px 12px #165DFF11;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.upload-drag-area:hover {
    border-color: #0d47a1;
    box-shadow: 0 4px 16px #165DFF22;
    background: linear-gradient(135deg,#eaf1ff 80%,#fff 100%);
}
.upload-form-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px #165DFF11;
    padding: 2em 1.2em 1.2em 1.2em;
    max-width: 900px;
    margin: 0 auto 2em auto;
    border: 1.5px solid #e4e7ed;
}
.upload-form-top {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    background: #f4f8ff;
    border-radius: 10px;
    padding: 1.1em 1em 0.7em 1em;
    margin-bottom: 1.2em;
    box-shadow: 0 1px 4px #165DFF08;
    border: 1px solid #e4e7ed;
}
.upload-form-top label {
    font-weight: 600;
    color: #165DFF;
    margin-bottom: 0.2em;
}
.upload-form-top .allowed-exts-tip {
    color: #4CAF50;
    font-size: 0.98em;
    margin-top: 0.1em;
    margin-bottom: 0.2em;
    font-weight: 500;
}
.file-item {
    background: #fff;
    border-radius: 8px;
    padding: 1em 0.7em 0.7em 0.7em;
    margin-bottom: 1em;
    box-shadow: 0 1px 4px #165DFF08;
    border: 1px solid #e4e7ed;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
.file-item label {
    color: #165DFF;
    font-weight: 500;
    margin-bottom: 0.1em;
}
.file-item input[type="file"] {
    background: #f8fafc;
    border: 1.5px dashed #165DFF;
    border-radius: 6px;
    padding: 0.5em 0.8em;
    font-size: 1em;
    margin-bottom: 0.3em;
}
.file-item input[type="text"], .file-item textarea {
    background: #f8fafc;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5em 0.8em;
    font-size: 1em;
    margin-bottom: 0.3em;
    transition: border 0.18s, box-shadow 0.18s;
}
.file-item input[type="text"]:focus, .file-item textarea:focus {
    border-color: #165DFF;
    box-shadow: 0 0 0 2px #165DFF22;
}
.file-item .remove-btn {
    position: absolute;
    top: 0.7em;
    right: 0.7em;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1em;
    cursor: pointer;
    display: none;
}
.file-item:hover .remove-btn { display: inline-block; }
.upload-form-actions {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-bottom: 1em;
    justify-content: flex-end;
}
@media (max-width: 600px) {
    .upload-form-top { padding: 0.7em 0.2em; }
    .file-item { padding: 0.7em 0.2em; }
}
.file-item textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.8em;
    resize: vertical;
    overflow-wrap: break-word;
    word-break: break-all;
    box-sizing: border-box;
}
.admin-footer {
    background: #fff;
    border-top: 2.5px solid transparent;
    border-image: linear-gradient(90deg,#165DFF 0%,#4CAF50 100%);
    border-image-slice: 1;
    box-shadow: 0 -2px 12px #165DFF11;
    padding: 1.5em 0 1em 0;
    margin-top: auto;
    font-size: 1em;
    flex-shrink: 0;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}
.footer-main {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1.15em;
    font-weight: 700;
    color: #165DFF;
    margin-bottom: 0.2em;
}
.footer-logo {
    font-size: 1.5em;
    color: #165DFF;
    background: linear-gradient(135deg,#eaf1ff 60%,#fff 100%);
    border-radius: 50%;
    padding: 0.2em 0.4em;
    box-shadow: 0 1px 4px #165DFF11;
}
.footer-title {
    letter-spacing: 0.04em;
}
.footer-meta {
    color: #888;
    font-size: 0.98em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}
.footer-dot {
    color: #4CAF50;
    font-size: 1.2em;
    margin: 0 0.2em;
}
@media (max-width: 600px) {
    .footer-inner { padding: 0 0.3em; }
    .footer-main { font-size: 1em; }
    .footer-meta { font-size: 0.93em; }
}
.manage-files-top {
    background: linear-gradient(90deg, #f8fbff 60%, #eaf7ff 100%);
    border-radius: 14px;
    padding: 1.3em 1.3em 1em 1.3em;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 8px #bcdcff33, 0 1.5px 4px #bcdcff11;
    border: 1.5px solid #bcdcff;
    display: flex;
    flex-direction: row;
    gap: 1.5em;
    align-items: flex-end;
    max-width: 600px;
    min-height: 70px;
}
.manage-files-top label {
    color: #3a7bd5;
    font-weight: 700;
    font-size: 1.08em;
    margin-bottom: 0.3em;
    letter-spacing: 0.01em;
}
.manage-files-top select {
    background: #fafdff;
    border: 1.5px solid #bcdcff;
    border-radius: 8px;
    padding: 0.6em 1.2em;
    font-size: 1.08em;
    color: #3a7bd5;
    font-weight: 600;
    box-shadow: 0 1px 4px #bcdcff11;
    transition: border 0.18s, box-shadow 0.18s;
}
.manage-files-top select:focus {
    border-color: #7ee7c6;
    box-shadow: 0 0 0 2px #7ee7c622;
    outline: none;
}
.manage-files-top option {
    color: #333;
    font-weight: 500;
}
.manage-files-top .allowed-exts-tip {
    color: #3ecf8e;
    font-size: 1em;
    font-weight: 600;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    letter-spacing: 0.01em;
}
@media (max-width: 600px) {
    .manage-files-top {
        flex-direction: column;
        gap: 0.7em;
        padding: 0.7em 0.2em;
        min-width: 0;
        margin-bottom: 0.7em;
    }
}
.table-action {
    background: #165DFF;
    color: #fff;
    border-radius: 6px;
    padding: 0.3em 1em;
    border: none;
    font-size: 1em;
    cursor: pointer;
    margin-right: 0.3em;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px #165DFF11;
    display: inline-block;
}
.table-action:hover { background: #0d47a1; }
.table-action.delete { background: #dc3545; }
.table-action.delete:hover { background: #b91c1c; }
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.18);
    transition: background 0.2s;
}
.modal.show {
    display: block;
    animation: modalBgFadeIn 0.2s;
}
@keyframes modalBgFadeIn {
    from { background: rgba(0,0,0,0); }
    to { background: rgba(0,0,0,0.18); }
}
.modal-content {
    background: #fff;
    margin: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    box-shadow: 0 8px 32px #165DFF22, 0 1.5px 4px #0001;
    padding: 2.2em 2.2em 1.5em 2.2em;
    min-width: 320px;
    min-height: 120px;
    max-width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.25s;
    border: 2px solid #165DFF22;
    user-select: text;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.98); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal-content h2 {
    margin-bottom: 1em;
}
.modal-content .close {
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 1.3em;
    color: #888;
    cursor: pointer;
    transition: color 0.18s;
}
.modal-content .close:hover {
    color: #16c96b;
}
.table-cell.filename-cell {
    max-width: 160px !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overflow: auto !important;
    display: block !important;
    cursor: pointer;
    padding-bottom: 2px;
    text-overflow: unset !important;
}
.table-cell.filename-cell::-webkit-scrollbar {
    height: 6px;
}
.table-cell.filename-cell::-webkit-scrollbar-thumb {
    background: #e4e7ed;
    border-radius: 3px;
}
/* ===== 模块管理美化 ===== */
.module-manage-top {
    background: linear-gradient(90deg, #f8fbff 60%, #eaf7ff 100%);
    border-radius: 14px;
    padding: 1.3em 1.3em 1em 1.3em;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 8px #bcdcff33, 0 1.5px 4px #bcdcff11;
    border: 1.5px solid #bcdcff;
    display: flex;
    flex-direction: row;
    gap: 1.5em;
    align-items: flex-end;
    max-width: 700px;
    min-height: 70px;
}
.module-manage-top label {
    color: #3a7bd5;
    font-weight: 700;
    font-size: 1.08em;
    margin-bottom: 0.3em;
    letter-spacing: 0.01em;
}
.module-manage-top input[type="text"] {
    background: #fafdff;
    border: 1.5px solid #bcdcff;
    border-radius: 8px;
    padding: 0.6em 1.2em;
    font-size: 1.08em;
    color: #3a7bd5;
    font-weight: 600;
    box-shadow: 0 1px 4px #bcdcff11;
    transition: border 0.18s, box-shadow 0.18s;
}
.module-manage-top input[type="text"]:focus {
    border-color: #7ee7c6;
    box-shadow: 0 0 0 2px #7ee7c622;
    outline: none;
}
.module-manage-top .action-button {
    background: linear-gradient(90deg, #3a7bd5 60%, #7ee7c6 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 4px #bcdcff22;
    padding: 0.6em 1.5em;
    font-size: 1.08em;
    transition: background 0.18s, box-shadow 0.18s;
}
.module-manage-top .action-button:hover {
    background: linear-gradient(90deg, #165DFF 60%, #3ecf8e 100%);
    box-shadow: 0 2px 8px #3a7bd522;
}
@media (max-width: 700px) {
    .module-manage-top {
        flex-direction: column;
        gap: 0.7em;
        padding: 0.8em 0.3em;
        min-width: 0;
        margin-bottom: 0.7em;
    }
    .module-manage-top > div {
        width: 100%;
        margin-bottom: 0.2em;
    }
    .module-manage-top .action-button {
        width: 100%;
        margin: 0.2em 0 0 0;
        display: block;
    }
}
.module-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px #bcdcff22, 0 1.5px 4px #bcdcff11;
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1.5px solid #bcdcff;
    padding: 1.5em 1em 1.2em 1em;
}
.module-table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
    font-size: 1rem;
}
.module-table-container .table-header {
    background: linear-gradient(90deg, #eaf7ff 60%, #f8fbff 100%);
    font-weight: 900;
    color: #3a7bd5;
    padding: 1.1rem 0.8rem;
    border-bottom: 2px solid #bcdcff;
    letter-spacing: 0.03em;
    text-align: center;
    font-size: 1.08em;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.module-table-container .table-cell {
    padding: 1.1rem 0.8rem;
    border-bottom: 1px solid #eaf7ff;
    font-size: 1rem;
    background: #fff;
    vertical-align: middle;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    text-align: center;
    border-radius: 8px;
    transition: background 0.18s, box-shadow 0.18s;
}
.module-table-container tr:hover .table-cell {
    background: #f4faff;
    box-shadow: 0 2px 8px #bcdcff22;
    z-index: 2;
}
.module-table-container .action-button, .module-table-container .table-action {
    background: linear-gradient(90deg, #3a7bd5 60%, #7ee7c6 100%);
    color: #fff;
    border-radius: 8px;
    padding: 0.4rem 1.1rem;
    border: none;
    margin-right: 0.4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px #bcdcff11;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}
.module-table-container .action-button:hover, .module-table-container .table-action:hover {
    background: linear-gradient(90deg, #165DFF 60%, #3ecf8e 100%);
    box-shadow: 0 2px 8px #3a7bd522;
}
.module-table-container .table-action.delete {
    background: #dc3545;
    color: #fff;
}
.module-table-container .table-action.delete:hover {
    background: #b91c1c;
}
/* ===== 模块管理操作按钮美化 ===== */
.module-table-container .action-button.module-enable {
    background: linear-gradient(90deg, #16c96b 60%, #7ee7c6 100%);
    color: #fff;
    border-radius: 3%;
    font-weight: 700;
    border: none;
    box-shadow: 0 1px 4px #7ee7c622;
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.module-table-container .action-button.module-enable:hover {
    background: linear-gradient(90deg, #0fa958 60%, #3ecf8e 100%);
    box-shadow: 0 2px 8px #3ecf8e22;
    transform: translateY(-2px) scale(1.04);
}
.module-table-container .action-button.module-edit {
    background: linear-gradient(90deg, #3a7bd5 60%, #165DFF 100%);
    color: #fff;
    border-radius: 3%;
    font-weight: 700;
    border: none;
    box-shadow: 0 1px 4px #165DFF22;
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.module-table-container .action-button.module-edit:hover {
    background: linear-gradient(90deg, #165DFF 60%, #3a7bd5 100%);
    box-shadow: 0 2px 8px #165DFF22;
    transform: translateY(-2px) scale(1.04);
}
.module-table-container .action-button.module-delete {
    background: linear-gradient(90deg, #ff5f5f 60%, #ffbcbc 100%);
    color: #fff;
    border-radius: 3%;
    font-weight: 700;
    border: none;
    box-shadow: 0 1px 4px #ff5f5f22;
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.module-table-container .action-button.module-delete:hover {
    background: linear-gradient(90deg, #dc3545 60%, #b91c1c 100%);
    box-shadow: 0 2px 8px #dc354522;
    transform: translateY(-2px) scale(1.04);
}
@media (max-width: 700px) {
    .module-table-container {
        border-radius: 10px;
        box-shadow: 0 2px 8px #bcdcff22;
        padding: 0.7em 0.2em;
        min-width: 0;
        margin-bottom: 1em;
        overflow-x: auto;
    }
    .module-table-container table {
        min-width: 520px;
        font-size: 0.97em;
    }
    .module-table-container .table-header, .module-table-container .table-cell {
        padding: 0.5rem 0.2rem;
        font-size: 0.95rem;
        max-width: 110px;
    }
    .module-table-container .action-button, .module-table-container .table-action {
        padding: 0.5em 1.1em;
        font-size: 1.05em;
        min-width: 70px;
        margin: 0.15em 0.15em 0.15em 0;
        border-radius: 12px;
    }
    .module-table-container .table-cell {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90px;
    }
    .module-table-container .table-cell:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2em;
        justify-content: center;
        align-items: center;
        min-width: 180px;
    }
    .module-table-container::-webkit-scrollbar {
        height: 6px;
    }
    .module-table-container::-webkit-scrollbar-thumb {
        background: #e4e7ed;
        border-radius: 3px;
    }
}
/* 表格内容省略号与tooltip已全局支持 */
.table-row-hover {
    transition: background 0.18s, box-shadow 0.18s;
}
.table-row-hover:hover {
    background: #f4faff !important;
    box-shadow: 0 2px 8px #bcdcff22;
    z-index: 2;
}
.upload-progress-overlay {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.18);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.upload-progress-inner {
    background: rgba(255,255,255,0.75);
    border-radius: 16px;
    box-shadow: 0 8px 32px #165DFF22, 0 1.5px 4px #0001;
    padding: 2.2em 2.2em 1.5em 2.2em;
    min-width: 320px;
    min-height: 120px;
    max-width: 96vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.upload-progress-inner .progress-bar-bg {
    width: 320px;
    max-width: 80vw;
    background: transparent;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 1em auto 0 auto;
    box-shadow: 0 1px 4px #3ecf8e22;
}
.upload-progress-inner .progress-bar {
    background: #3ecf8e;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
    border-radius: 10px 0 0 10px;
}
@media (max-width: 600px) {
    .upload-progress-inner {
        min-width: 0;
        width: 90vw;
        padding: 1.2em 0.5em 1em 0.5em;
    }
    .upload-progress-inner .progress-bar-bg {
        width: 90vw;
        min-width: 0;
    }
}
.log-action-cell, .log-detail-cell {
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #165DFF;
    transition: background 0.18s;
}
.log-detail-cell {
    max-width: 160px;
}
.log-action-cell:hover, .log-detail-cell:hover {
    background: #f4faff;
    color: #3ecf8e;
}
.log-action-cell::after, .log-detail-cell::after {
    content: '';
}
@media (max-width: 700px) {
    .log-action-cell, .log-detail-cell {
        max-width: 70px;
        font-size: 0.95em;
    }
}
.log-filter-form input[type="date"], .log-filter-form input[type="text"] {
    border: 1.5px solid #bcdcff;
    border-radius: 8px;
    padding: 0.6em 1.2em;
    font-size: 1.08em;
    color: #3a7bd5;
    font-weight: 600;
    box-shadow: 0 1px 4px #bcdcff11;
    transition: border 0.18s, box-shadow 0.18s;
}
.log-filter-form input[type="date"]:focus, .log-filter-form input[type="text"]:focus {
    border-color: #7ee7c6;
    box-shadow: 0 0 0 2px #7ee7c622;
    outline: none;
}
/* ===== 日志表格美化 ===== */
.table-container table tr:nth-child(even) {
    background: #f8fafc;
}
.table-container table tr:hover {
    background: #f4faff !important;
    box-shadow: 0 2px 8px #bcdcff22;
    z-index: 2;
}
.table-container thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 3;
}
/* 空状态美化 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5em 0 2em 0;
    color: #bcdcff;
    font-weight: 600;
    font-size: 1.15em;
    opacity: 0.95;
}
.empty-state img {
    width: 80px;
    opacity: 0.7;
    margin-bottom: 1em;
}
/* 移动端表格横向滚动提示 */
@media (max-width: 700px) {
    .table-container::after {
        content: '← 可横向滑动 →';
        display: block;
        text-align: center;
        color: #bcdcff;
        font-size: 0.98em;
        margin: 0.3em 0 0.2em 0;
        letter-spacing: 0.08em;
    }
} 