/* ============================================================
 * user_center.css — 用户中心（/user/index.php）
 * 2026-10-23 暗黑模式改造：
 *   1. 从 index.php 的 addExtraStyle 内联样式提取到本文件
 *   2. 颜色统一走 office 主题系统（/office/css/list_office.css 的 --lo-* 变量）
 *      配合 /office/js/theme.js 的 4 主题切换（paper/eye-care/sepia/dark，默认暗黑）
 * ============================================================ */

.hilite {
    background: var(--lo-row-hover-bg);
}

.layadmin-iframe2 {
    position: relative;
    width: 100%;
    height: 600px;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.layadmin-pagetabs {
    height: 100%;
    line-height: 35px;
    font-size: 20px;
    padding: 0 10px 0 10px;
    background-color: var(--lo-card);
    box-sizing: border-box;
    box-shadow: var(--lo-shadow);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    color: var(--lo-text);
}

.layui-tab-title {
    background-color: var(--lo-border);
}
.layui-tab-title li {
    color: var(--lo-text-soft);
}
.layui-tab-title .layui-this {
    color: var(--lo-stat-active-text);
    background-color: var(--lo-stat-active-bg);
}

.layui-bg-black {
    background-color: #393D49 !important;
}

.sidebar-column {
    z-index: 2000;
}

#LAY_app,
.layui-layout,
.layui-layout-admin,
.layui-header,
.layui-body,
.layui-side {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.user-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.user-info-card h3 {
    margin: 0 0 10px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.menu-item {
    background: var(--lo-card);
    border: 1px solid var(--lo-border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--lo-shadow);
    border-color: var(--lo-primary);
    background: var(--lo-card-hover-bg);
}
.menu-item a {
    color: var(--lo-text);
    text-decoration: none;
    font-weight: bold;
    display: block;
}
.menu-item .icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    color: var(--lo-primary);
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lo-primary);
}

.main-content-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.layui-layout-admin {
    background: transparent;
}

/* 顶部条：原 layui 深色写死，改走主题变量（dark 下 #1e293b） */
.layui-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: var(--lo-topbar-bg) !important;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--lo-shadow);
    overflow: hidden;
    color: var(--lo-topbar-text);
}
.layui-header .layui-logo {
    background: transparent !important;
    color: var(--lo-topbar-text);
    line-height: 60px;
}

.layui-body {
    position: static !important;
    background: transparent;
    padding: 0 !important;
    color: var(--lo-text);
}

.layui-tab-content {
    padding: 0 !important;
    background: transparent;
}

.site-demo-body {
    background: transparent;
}

.layui-tab-item {
    padding: 0 !important;
}

/* 移动端头部（funnystore_layout.css 原为白底，改走主题变量） */
.mobile-header {
    background: var(--lo-card);
    border-bottom: 1px solid var(--lo-border);
    color: var(--lo-text);
}
.btn-toggle-sidebar {
    background: var(--lo-btn-bg);
    border: 1px solid var(--lo-btn-border);
    color: var(--lo-btn-text);
}
.btn-toggle-sidebar:hover {
    background: var(--lo-btn-hover-bg);
    border-color: var(--lo-btn-hover-border);
}

/* 主题切换按钮/面板（list_office.css 提供基础样式，这里保证显示在 layui 头部右侧） */
.layui-header .office-theme-wrap {
    flex: none;
}
