/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }

/* ========== 登录页 ========== */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #2b7de9 0%, #4a9af5 40%, #6bb3ff 70%, #8fc8ff 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 56px;
    padding-bottom: 48px;
    box-sizing: border-box;
}
/* 顶部白色条 */
.login-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    z-index: 100;
}
.login-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.login-topbar-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-topbar-icon svg * {
    fill: #2b7de9 !important;
}
.login-topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
/* 底部白色条 */
.login-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.08);
    z-index: 100;
}
.login-bottombar-center {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}
.icp-sep { color: #ccc; }
.icp-link { color: #2b7de9; text-decoration: none; }
.icp-link:hover { text-decoration: underline; }
.login-container {
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    padding: 32px 36px;
    width: 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
@keyframes loginFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
.page-fade-out {
    animation: fadeOut 0.4s ease forwards;
}
.login-box-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    animation: titleSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
@keyframes titleSlide {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.login-form .form-group {
    animation: fieldSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-form .form-group:nth-child(2) { animation-delay: 0.15s; }
.login-form .form-group:nth-child(3) { animation-delay: 0.25s; }
.login-form .btn-login { animation: fieldSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.login-form .login-tip { animation: fieldSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }
@keyframes fieldSlide {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}
.login-logo svg { margin-bottom: 12px; }
.login-logo h1 {
    font-size: 22px;
    color: #333;
    font-weight: 600;
}
.login-form .form-group { margin-bottom: 18px; }
.login-form label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}
.login-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.login-form input:focus { border-color: #2b7de9; }
.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2b7de9, #4a9af5);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43,125,233,0.4); }
.btn-login:active { transform: translateY(0) scale(0.98); }
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}
.btn-login.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    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); }
}
.login-error {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
}
.login-tip {
    text-align: center;
    margin-top: 16px;
    color: #999;
    font-size: 12px;
}
/* 登录方式切换（无背景，深灰大字体导航） */
.login-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid #eef1f5;
}
.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.login-tab:hover { color: #1c1c1c; }
.login-tab.active {
    color: #1c1c1c;
    font-weight: 700;
}
.login-panel { display: none; min-height: 320px; }
.login-panel.active {
    display: flex;
    flex-direction: column;
    animation: fieldSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-panel#panel-pwd { justify-content: flex-start; }
.login-panel#panel-quick { justify-content: center; align-items: stretch; }
.quick-msg {
    display: none;
    margin-top: 14px;
    padding: 9px 12px;
    color: #d92d2d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    background: #fdecec;
    border: 1px solid #f0b4b4;
    border-radius: 6px;
}
.quick-msg.show { display: block; animation: fieldSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
/* 快捷登录提示与状态 */
.quick-tip {
    color: #888;
    font-size: 12px;
    line-height: 1.7;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 16px;
}
.quick-status {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #c33;
    min-height: 20px;
    line-height: 1.5;
}
.quick-status.ok { color: #2a7; }

/* ========== 登录方式切换（导航 Tab + 面板） ========== */
.login-split-container { width: 420px; max-width: 94vw; }
.login-split {
    display: flex;
    align-items: stretch;
}
.login-pane {
    flex: 1;
    min-width: 0;
    animation: fieldSlide 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-pane-left  { animation-delay: 0.05s; }
.login-pane-right { animation-delay: 0.22s; }
.login-divider {
    width: 1px;
    background: #e6e9ef;
    margin: 6px 20px;
    flex-shrink: 0;
}
.login-pane-title {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.login-error-global { width: 100%; }
.login-split-container .login-tip { margin-top: 18px; }
/* 验证码 */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.login-form .captcha-input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    letter-spacing: 2px;
    box-sizing: border-box;
}
.captcha-input:focus {
    border-color: #2b7de9;
}
.captcha-img {
    width: 130px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
    object-fit: cover;
}
.captcha-img:hover {
    opacity: 0.8;
}
.captcha-tip {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* ========== 导航主页 ========== */
.nav-body {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}
/* 默认CSS蓝色渐变波浪背景（还原参考图） */
.nav-css-bg {
    background: linear-gradient(135deg, #2b7de9 0%, #4a9af5 40%, #6bb3ff 70%, #8fc8ff 100%);
    background-image:
        radial-gradient(ellipse 600px 400px at 10% 80%, rgba(255,255,255,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 90% 20%, rgba(255,255,255,0.10) 0%, transparent 70%),
        radial-gradient(circle 120px at 8% 30%, rgba(255,255,255,0.15) 0%, transparent 70%),
        radial-gradient(circle 80px at 85% 75%, rgba(255,255,255,0.12) 0%, transparent 70%),
        linear-gradient(135deg, #2b7de9 0%, #4a9af5 40%, #6bb3ff 70%, #8fc8ff 100%);
}
.nav-css-bg::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.nav-css-bg::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.nav-header {
    display: none;
}
.nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-content: flex-start;
    padding: 50px 60px 100px;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
    cursor: pointer;
    animation: navItemIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(6) { animation-delay: 0.3s; }
.nav-item:nth-child(7) { animation-delay: 0.35s; }
.nav-item:nth-child(8) { animation-delay: 0.4s; }
.nav-item:nth-child(n+9) { animation-delay: 0.45s; }
@keyframes navItemIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
.nav-item:hover {
    transform: translateY(-3px);
}
.nav-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-icon svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15)); }
.nav-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}
.nav-empty {
    color: #fff;
    font-size: 16px;
    background: rgba(0,0,0,0.3);
    padding: 20px 40px;
    border-radius: 10px;
}
.nav-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}
.nav-bottom-left {
    display: flex;
    align-items: center;
}
.btn-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: #2b7de9;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.2s;
}
.btn-icon:hover { background: #1e6bc9; }
.btn-icon svg { width: 20px; height: 20px; }
.nav-bottom-right {
    color: #333;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-bottom-right .sep { color: #999; }
.logout-link {
    color: #2b7de9;
    cursor: pointer;
}
.logout-link:hover { text-decoration: underline; }

/* ========== 弹窗 ========== */
.modal-mask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.btn-cancel {
    padding: 8px 20px;
    background: #f0f0f0;
    color: #666;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-cancel:hover { background: #e0e0e0; }
.btn-confirm {
    padding: 8px 20px;
    background: #2b7de9;
    color: #fff;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-confirm:hover { background: #1e6bc9; }
.pwd-msg {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
}
.pwd-msg.success { color: #2a7; }
.pwd-msg.error { color: #c33; }

/* 导航确认弹窗 */
.nav-modal-box {
    width: 440px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}
.nav-modal-info {
    margin: 16px 0;
}
.info-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 10px;
}
.info-row:last-of-type {
    border-bottom: none;
}
.info-label {
    flex-shrink: 0;
    width: 80px;
    color: #888;
    font-size: 13px;
    padding-top: 2px;
}
.info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    word-break: break-all;
}
.nav-open-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}
.nav-open-select:focus {
    border-color: #2b7de9;
    outline: none;
}

/* ========== 管理后台布局 ========== */
.admin-body { background: #f5f7fa; min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
}
.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
    font-weight: 600;
}
.admin-logo svg { flex-shrink: 0; }
.admin-menu {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    font-size: 14px;
}
.menu-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.menu-item.active {
    background: #2b7de9;
    color: #fff;
}
.menu-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); }
.admin-main {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    background: #fff;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.admin-breadcrumb { font-size: 16px; font-weight: 600; color: #333; }
.admin-userinfo { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #666; }
.admin-userinfo .logout-link { color: #2b7de9; }
.admin-content { padding: 24px 28px; flex: 1; }
.page-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* ========== 统计卡片 ========== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #2b7de9, #4a9af5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-num { font-size: 28px; font-weight: 700; color: #333; }
.stat-label { font-size: 13px; color: #999; margin-top: 2px; }

/* ========== 面板 ========== */
.panel {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* ========== 表格 ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.data-table th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}
.data-table tr:hover { background: #f9fafc; }
.data-table .url-cell {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2b7de9;
}
.icon-cell {
    width: 36px; height: 36px;
    background: #eef0ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-row { text-align: center; color: #999; padding: 30px; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 13px;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
    border-color: #2b7de9;
}
.form-check label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}
.form-inline .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    align-items: end;
}
.form-grid .form-actions { display: flex; align-items: flex-end; }
/* 开关按钮 */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider {
    background-color: #2b7de9;
}
.switch input:checked + .slider:before {
    transform: translateX(22px);
}
.icon-preview {
    margin-top: 8px;
    width: 56px; height: 56px;
    background: #e8f2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* 导航管理添加表单布局 */
.form-nav-add .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    align-items: flex-end;
}
.form-nav-add .form-row:last-child { margin-bottom: 0; }
.form-nav-add .form-group { flex: 1; margin-bottom: 0; min-width: 0; }
.form-nav-add .form-group-flex2 { flex: 2; }
.form-nav-add .form-group-btn { flex: 0 0 auto; }
.icon-select-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.icon-select-row select { flex: 1; }
.icon-select-row .icon-preview { margin-top: 0; width: 44px; height: 44px; }

/* ========== 按钮 ========== */
.btn-primary {
    padding: 9px 20px;
    background: #2b7de9;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    display: inline-block;
}
.btn-primary:hover { background: #1e6bc9; }
.btn-link {
    color: #2b7de9;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.btn-link:hover { background: #eef0ff; }
.btn-link.btn-danger { color: #e74c3c; }
.btn-link.btn-danger:hover { background: #fee; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ========== 标签 ========== */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.tag-admin { background: #fef3e2; color: #e67e22; }
.tag-user { background: #e8f5e9; color: #2e7d32; }
.tag-warn { background: #e3f2fd; color: #1565c0; }

/* ========== 提示 ========== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }

/* ========== 权限列表 ========== */
.perm-tip { color: #888; font-size: 13px; margin-bottom: 14px; }
.perm-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
}
.perm-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.perm-item:hover { background: #f5f7fa; }
.perm-item input { cursor: pointer; }

/* ========== 壁纸预览 ========== */
.wallpaper-preview {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}
.preview-overlay {
    position: absolute;
    top: 24px; left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.preview-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.preview-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
}
.preview-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.preview-nav-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-icon-preview {
    width: 56px;
    height: 56px;
    background: #2b7de9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.setting-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.setting-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 18px 0;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .admin-sidebar { width: 60px; }
    .admin-logo span, .menu-item span { display: none; }
    .admin-main { margin-left: 60px; }
    .nav-grid { top: 30px; left: 24px; right: 24px; gap: 16px; }
    .nav-icon { width: 52px; height: 52px; }
}

/* ========== 登录页右上导航栏 ========== */
.login-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}
.login-nav {
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1c;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.login-nav:hover { color: #2b7de9; }
.login-nav-sep {
    color: inherit;
    opacity: 0.4;
    margin: 0 1px;
    user-select: none;
}

/* ========== 登录页右上导航弹窗 ========== */
.modal-small { width: 360px; max-width: 92vw; }
.term-modal-body {
    padding: 6px 2px 12px;
    font-size: 14px;
    color: #333;
}
.term-code-line {
    background: #f5f7fa;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}
.term-msg { font-size: 13px; color: #888; margin-top: 10px; }
.term-msg.warn { color: #e74c3c; font-weight: 600; }
.term-msg.ok { color: #27ae60; font-weight: 600; }
.plugin-download-btn {
    display: block;
    text-align: left;
    font-weight: 700;
    padding: 6px 0;
    text-decoration: none;
    border: none;
    background: none;
}
.bind-list-title { font-size: 13px; color: #888; margin: 4px 0 8px; }
.bind-item {
    padding: 9px 12px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #1c1c1c;
}
