/* ===== 卡密系统 - 极简风格主题 ===== */
/* 参考 D:\wwwroot\Ai创作\网络验证系统 的清爽仪表盘风格 */

html.theme-minimal {
    /* 统一变量：admin/user 命名 */
    --primary: #5e72e4;
    --primary-dark: #4f5fbd;
    --primary-light: rgba(94,114,228,0.08);
    --primary-hover: #4f5fbd;
    --secondary: #8898aa;
    --success: #2dce89;
    --success-bg: rgba(45,206,137,0.10);
    --danger: #f5365c;
    --danger-bg: rgba(245,54,92,0.08);
    --warning: #fb6340;
    --warning-bg: rgba(251,99,64,0.08);
    --info: #11cdef;
    --glass: #ffffff;
    --glass-solid: #ffffff;
    --glass-border: #e9ecef;
    --glass-border-strong: #dee2e6;
    --bg: #f8f9fe;
    --bg-gradient-start: #f8f9fe;
    --bg-gradient-end: #f8f9fe;
    --background: #f8f9fe;
    --surface: #ffffff;
    --text: #525f7f;
    --text-primary: #525f7f;
    --text-secondary: #8898aa;
    --text-tertiary: #adb5bd;
    --border: #e9ecef;
    --shadow: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 8px 24px rgba(0,0,0,0.08);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-pill: 9999px;
    --transition: all 0.2s ease;
}

html.theme-minimal body {
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 移除玻璃拟态效果 */
html.theme-minimal .top-nav-bar,
html.theme-minimal .sidebar,
html.theme-minimal .login-container,
html.theme-minimal .login-card,
html.theme-minimal .card,
html.theme-minimal .glass,
html.theme-minimal .admin-wrapper .top-nav-bar,
html.theme-minimal .dashboard-layout .sidebar {
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: var(--border) !important;
}

/* 顶部导航 */
html.theme-minimal .top-nav-bar,
html.theme-minimal .console-header {
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 侧边栏 */
html.theme-minimal .sidebar,
html.theme-minimal .left-side-menu {
    border-right: 1px solid var(--border);
    box-shadow: none;
}

html.theme-minimal .sidebar-brand {
    border-bottom: 1px solid var(--border);
}

/* 卡片 */
html.theme-minimal .card,
html.theme-minimal .login-card,
html.theme-minimal .console-panel,
html.theme-minimal .detail-section,
html.theme-minimal .form-section {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

/* 按钮 */
html.theme-minimal .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
html.theme-minimal .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

html.theme-minimal .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
html.theme-minimal .btn-outline:hover {
    background: var(--bg);
}

/* 表单 */
html.theme-minimal .form-control,
html.theme-minimal .form-input,
html.theme-minimal input,
html.theme-minimal textarea,
html.theme-minimal select {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

html.theme-minimal .form-control:focus,
html.theme-minimal .form-input:focus,
html.theme-minimal input:focus,
html.theme-minimal textarea:focus,
html.theme-minimal select:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94,114,228,0.12);
}

/* 表格 */
html.theme-minimal .data-table,
html.theme-minimal table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
html.theme-minimal .data-table th,
html.theme-minimal .data-table td,
html.theme-minimal table th,
html.theme-minimal table td {
    border-bottom: 1px solid var(--border);
}
html.theme-minimal .data-table th {
    background: #fafafa;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 导航按钮 */
html.theme-minimal .nav-btn {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}
html.theme-minimal .nav-btn:hover,
html.theme-minimal .nav-btn.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* 模态框 */
html.theme-minimal .modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
}

/* 下拉菜单 */
html.theme-minimal .avatar-dropdown,
html.theme-minimal .dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

/* 状态标签 */
html.theme-minimal .badge-success,
html.theme-minimal .status-success { background: var(--success-bg); color: var(--success); }
html.theme-minimal .badge-danger,
html.theme-minimal .status-danger { background: var(--danger-bg); color: var(--danger); }
html.theme-minimal .badge-warning,
html.theme-minimal .status-warning { background: var(--warning-bg); color: var(--warning); }

/* 链接 */
html.theme-minimal a { color: var(--primary); }
html.theme-minimal a:hover { color: var(--primary-dark); }

/* 滚动条 */
html.theme-minimal ::-webkit-scrollbar { width: 6px; height: 6px; }
html.theme-minimal ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
html.theme-minimal ::-webkit-scrollbar-track { background: transparent; }

/* ===== 快捷登录图标按钮（极简主题） ===== */
.login-icon-row {
    margin-top: 24px;
    text-align: center;
}
.login-icon-divider {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.login-icon-divider::before,
.login-icon-divider::after {
    content: '';
    width: 40px;
    height: 1px;
    background: #d2d2d7;
}
.login-icon-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.login-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f7;
    color: #86868b;
    transition: all 0.25s ease;
    flex-shrink: 0;
    border: 1px solid #d2d2d7;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}
.login-icon-btn:hover {
    background: #007aff;
    color: #fff;
    border-color: #007aff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}
.login-icon-btn svg {
    width: 22px;
    height: 22px;
}
