** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html
Load key "/c/Users/Administrator/.ssh/id_rsa": error in libcrypto: unsupported
/* ========================================
   笨鱼AI工具箱 - 后台管理统一样式
   主题：亮色主题，专业美观
   ======================================== */

/* === 全局重置 === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #f1f5f9; font-family: 'Microsoft YaHei', '微软雅黑', sans-serif; color: #1e293b; font-size: 14px; min-height: 100vh; }
a { color: #6366f1; text-decoration: none; transition: color 0.2s; }
a:hover { color: #4f46e5; }
input, textarea, select { font-family: 'Microsoft YaHei', '微软雅黑', sans-serif; }

/* === 侧边栏 === */
.admin-sidebar {
    width: 240px;
    background: #e2e8f0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.sidebar-logo {
    padding: 15px 20px;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-logo-top {
    flex: 1;
    text-align: left;
}
.sidebar-logo img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}
.sidebar-logo-text {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
    letter-spacing: 1px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.sidebar-logo-user {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #0f172a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.25s;
    border-left: 3px solid transparent;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.sidebar-link:hover {
    color: #0f172a;
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
}
.sidebar-link.active {
    color: #0f172a;
    background: rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
}
.sidebar-link .icon {
    margin-right: 10px;
    font-size: 18px;
}

/* admin-sidebar 下的二级菜单 */
.admin-sidebar .menu-one {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 24px;
    color: #0f172a;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.admin-sidebar .menu-one:hover {
    color: #0f172a;
    background: rgba(102, 126, 234, 0.1);
}
.admin-sidebar .menu-one .icon {
    margin-right: 10px;
    font-size: 18px;
}
.admin-sidebar .menu-two {
    background: rgba(0,0,0,0.03);
}
.admin-sidebar .menu-two a {
    display: block;
    padding: 12px 15px 12px 40px;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.admin-sidebar .menu-two a:hover {
    color: #0f172a;
    background: rgba(102, 126, 234, 0.08);
}
.admin-sidebar .menu-two a.active {
    background: rgba(102, 126, 234, 0.15);
    color: #0f172a;
    border-radius: 0;
}

/* 兼容旧版 .menu 侧边栏 */
.menu {
    width: 240px;
    background: #e2e8f0;
    position: fixed;
    height: 100vh;
    color: #475569;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    z-index: 100;
}
.menu a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #475569;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.25s;
    border-left: 3px solid transparent;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.menu a:hover {
    color: #0f172a;
    background: rgba(102, 126, 234, 0.1);
}
.menu a[style*="background"] {
    /* 激活态 */
    color: #0f172a !important;
    background: rgba(102, 126, 234, 0.15) !important;
    border-left-color: #667eea;
}

/* setting.php 专用侧边栏 */
.left-menu {
    width: 240px;
    background: #e2e8f0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}
.left-menu .item-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #0f172a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.25s;
    border-left: 3px solid transparent;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.left-menu .item-link:hover {
    color: #0f172a;
    background: rgba(102, 126, 234, 0.1);
}
.left-menu .menu-one {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    color: #0f172a;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.left-menu .menu-one:hover {
    color: #0f172a;
    background: rgba(102, 126, 234, 0.1);
}
.left-menu .menu-two {
    background: rgba(0,0,0,0.03);
}
.left-menu .menu-two a {
    display: block;
    padding: 12px 15px 12px 40px;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}
.left-menu .menu-two a:hover {
    color: #0f172a;
    background: rgba(102, 126, 234, 0.08);
}
.left-menu .menu-two a.active {
    background: rgba(102, 126, 234, 0.15);
    color: #0f172a;
    border-radius: 0;
}

/* === 主内容区 === */
.admin-main, .main, .right-main {
    margin-left: 240px;
    padding: 30px;
    min-height: 100vh;
}

/* === 卡片容器 === */
.admin-card, .box {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}
.admin-card:hover, .box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* === 表单元素 === */
.admin-form .form-row {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    color: #475569;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-input, input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="datetime-local"], input:not([type]) {
    max-width: 520px;
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 14px;
    transition: all 0.25s;
    outline: none;
}
.form-input:focus, input:focus, textarea:focus, select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: #ffffff;
}
.form-input::placeholder, input::placeholder {
    color: #94a3b8;
}
.form-textarea, textarea {
    max-width: 600px;
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 14px;
    transition: all 0.25s;
    outline: none;
    resize: vertical;
    min-height: 80px;
}
.form-select, select {
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s;
}
.form-select option {
    background: #ffffff;
    color: #1e293b;
}
.form-input-sm {
    width: 100px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1e293b;
    font-size: 14px;
    outline: none;
}
.form-row-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.form-row-inline .form-group {
    flex: 0 0 auto;
}
.form-row-inline .form-label {
    margin-bottom: 4px;
}

/* === 按钮 === */
.admin-btn {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    gap: 6px;
    line-height: 1;
}
.admin-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.admin-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}
.admin-btn-default {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.admin-btn-default:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.admin-btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.admin-btn-danger:hover {
    background: #fee2e2;
}
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    vertical-align: middle;
}
button:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === 表格 === */
.table-wrap {
    overflow-x: auto;
}
.admin-table, table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.admin-table th, table th {
    padding: 12px 16px;
    text-align: left;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}
.admin-table td, table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 14px;
}
.admin-table tr:hover, table tr:hover {
    background: #f8fafc;
}

/* === 标签 === */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.tag-blue {
    background: #eef2ff;
    color: #6366f1;
}

/* === 状态徽章 === */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.status-on {
    background: #d1fae5;
    color: #059669;
}
.status-off {
    background: #fee2e2;
    color: #dc2626;
}

/* === 操作链接 === */
.action-cell {
    white-space: nowrap;
}
.action-link {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    margin-right: 4px;
}
.action-edit {
    background: #eef2ff;
    color: #6366f1;
}
.action-edit:hover {
    background: #e0e7ff;
}
.action-del {
    background: #fee2e2;
    color: #dc2626;
}
.action-del:hover {
    background: #fecaca;
}

/* === 筛选栏 === */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* === 分页 === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.page-btn {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.page-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #667eea;
}
.page-info {
    color: #64748b;
    font-size: 13px;
}

/* === 提示消息 === */
.admin-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    animation: toastFade 3s ease forwards;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.admin-toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.admin-toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.msg {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}
.msg.success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #059669;
}
.msg.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

@keyframes toastFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* === 激活框 === */
.activate-box {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.activate-box input {
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 300px;
    font-size: 14px;
    background: #ffffff;
    color: #1e293b;
}
.activate-box button {
    padding: 10px 24px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    transition: all 0.25s;
}
.activate-box button:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

/* === 过期状态 === */
.expired-text {
    font-weight: bold;
}
.expired-text.normal {
    color: #059669;
}
.expired-text.overdue {
    color: #dc2626;
}

/* === 图片预览 === */
img {
    max-width: 200px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* === 登录/注册页面 === */
.login-box, .register-box {
    max-width: 440px;
    margin: 80px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.login-box h2, .register-box h2, .box h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 22px;
    color: #0f172a;
    font-weight: 600;
}
.login-box input, .register-box input, .box input[type="password"], .box input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 14px;
    margin: 8px 0;
    outline: none;
    transition: all 0.25s;
}
.login-box input:focus, .register-box input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.login-box button, .register-box button {
    padding: 10px 24px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
    transition: all 0.25s;
}
.login-box button:hover, .register-box button:hover {
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}
.tip {
    text-align: center;
    margin-top: 18px;
    color: #64748b;
    font-size: 14px;
}
.tip a {
    color: #6366f1;
}
.tip a:hover {
    color: #4f46e5;
}

/* === 标题 === */
h3 {
    margin: 10px 0 18px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
}

/* === 滚动条 === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === 超级管理员 Tab 切换 === */
.tab { display: none; }
.tab.show { display: block; }

/* === 响应式 === */
@media (max-width: 768px) {
    .admin-sidebar, .left-menu, .menu {
        width: 60px;
    }
    .sidebar-logo-text, .sidebar-logo-user, .sidebar-link span:not(.icon), .menu a span:not(.icon), .left-menu .item-link span:not(.icon) {
        display: none;
    }
    .sidebar-logo-top {
        justify-content: center;
    }
    .admin-main, .main, .right-main {
        margin-left: 60px;
        padding: 16px;
    }
}

/* 滑动开关样式 */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* 表单行间距优化 */
.form-row {
    margin-bottom: 18px;
}

/* 隐藏所有菜单图标 */
.sidebar-link .icon,
.menu-one .icon,
.left-menu .item-link .icon,
.menu a .icon {
    display: none;
}
