/* Web前台 - 用户/陪诊师个人中心样式 */

/* ========== 全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* body { background: #f0f2f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } */
/* 让 body 成为纵向 flex 容器，高度至少撑满视口 */
body {
    background: #f0f2f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;   /* 关键：至少占满一屏，内容多时可撑开 */
    margin: 0;
    padding: 0;
}
a { text-decoration: none; color: inherit; }

/* ========== 顶部导航 ========== */
.web-header {
    background: linear-gradient(135deg, #4A90A4, #5BA4B8);
    color: #fff;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 8px rgba(74,144,164,0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.web-header .logo {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}
.web-header .logo .layui-icon { margin-right: 8px; font-size: 24px; }
.web-header .header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.web-header .header-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    padding: 8px 0;
    transition: all 0.3s;
}
.web-header .header-nav a:hover,
.web-header .header-nav a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}
.web-header .header-user {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.web-header .header-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
}
.web-header .header-user .user-dropdown {
    position: relative;
    cursor: pointer;
}
.web-header .header-user .user-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    z-index: 100;
}
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}
.dropdown-menu a:hover { background: #f5f5f5; }
.dropdown-menu .divider { height: 1px; background: #eee; margin: 4px 0; }

/* ========== 主体布局 ========== */
.web-body {
    margin-top: 60px;
    display: flex;
    min-height: calc(100vh - 60px);
}

/* ========== 左侧菜单 ========== */
.web-sidebar {
    width: 220px;
    background: #fff;
    box-shadow: 2px 0 6px rgba(0,0,0,0.05);
    padding: 20px 0;
    flex-shrink: 0;
}
.web-sidebar .user-card {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}
.web-sidebar .user-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #4A90A4;
}
.web-sidebar .user-card .name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.web-sidebar .user-card .role {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.web-sidebar .menu-list { list-style: none; }
.web-sidebar .menu-list li a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #555;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.web-sidebar .menu-list li a .layui-icon {
    margin-right: 10px;
    font-size: 18px;
    color: #4A90A4;
}
.web-sidebar .menu-list li a:hover {
    background: #f0f7fa;
    color: #4A90A4;
}
.web-sidebar .menu-list li a.active {
    background: #e8f4f8;
    color: #4A90A4;
    border-left-color: #4A90A4;
    font-weight: bold;
}

/* ========== 内容区域 ========== */
.web-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}
.web-content .page-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4A90A4;
    display: inline-block;
}

/* ========== 统计卡片 ========== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.stat-card .stat-icon .layui-icon { font-size: 22px; color: #fff; }
.stat-card .stat-icon.blue { background: linear-gradient(135deg, #4A90A4, #5BA4B8); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #52c41a, #73d13d); }
.stat-card .stat-icon.orange { background: linear-gradient(135deg, #fa8c16, #ffa940); }
.stat-card .stat-icon.purple { background: linear-gradient(135deg, #722ed1, #9254de); }
.stat-card .stat-icon.red { background: linear-gradient(135deg, #f5222d, #ff4d4f); }
.stat-card .stat-icon.cyan { background: linear-gradient(135deg, #13c2c2, #36cfc9); }
.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}
.stat-card .stat-label {
    font-size: 13px;
    color: #999;
}

/* ========== 数据卡片 ========== */
.data-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.data-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.data-card .card-header .card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* ========== 表格样式 ========== */
.web-table { width: 100%; border-collapse: collapse; }
.web-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.web-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}
.web-table tr:hover { background: #f9fbfc; }
.web-table .empty-row td {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* ========== 状态标签 ========== */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.status-tag.success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.status-tag.warning { background: #fffbe6; color: #faad14; border: 1px solid #ffe58f; }
.status-tag.danger { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.status-tag.info { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.status-tag.default { background: #f5f5f5; color: #999; border: 1px solid #d9d9d9; }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    outline: none;
}
.btn-primary { background: #4A90A4; color: #fff; }
.btn-primary:hover { background: #3A7A8C; }
.btn-success { background: #52c41a; color: #fff; }
.btn-success:hover { background: #389e0d; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #cf1322; }
.btn-warning { background: #faad14; color: #fff; }
.btn-warning:hover { background: #d48806; }
.btn-default { background: #fff; color: #333; border: 1px solid #d9d9d9; }
.btn-default:hover { color: #4A90A4; border-color: #4A90A4; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 10px 24px; font-size: 15px; }

/* ========== 表单 ========== */
.web-form { max-width: 600px; }
.web-form .form-group {
    margin-bottom: 20px;
}
.web-form .form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}
.web-form .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}
.web-form .form-input:focus { border-color: #4A90A4; box-shadow: 0 0 0 2px rgba(74,144,164,0.2); }
.web-form textarea.form-input { min-height: 100px; resize: vertical; }
.web-form .form-help { font-size: 12px; color: #999; margin-top: 4px; }

/* ========== 登录页面 ========== */
/* .login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90A4 0%, #5BA4B8 50%, #E8F4F8 100%);
} */
 /* 页脚：固定在底部，不浮动 */
.layui-footer {
    flex-shrink: 0;      /* 防止被压缩 */
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    color: #999;
    /* 如果你想让页脚始终贴在屏幕最底，可以加背景 */
    /* background: #f8f8f8; */
}
 /* 登录区域：占据剩余空间，自动把页脚挤到底部 */
.login-page {
    flex: 1;             /* 关键：占满除页脚外的所有剩余空间 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90A4 0%, #5BA4B8 50%, #E8F4F8 100%);
    /* 如果你之前有 height: 100vh，务必删掉，否则会顶掉页脚 */
}
.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(74,144,164,0.3);
}
.login-box .login-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}
.login-box .login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}
.login-box .login-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}
.login-box .login-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}
.login-box .login-tabs .tab.active {
    color: #4A90A4;
    border-bottom-color: #4A90A4;
}
.login-box .login-form .form-group { margin-bottom: 20px; }
.login-box .login-form .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.login-box .login-form .form-input:focus { border-color: #4A90A4; }
.login-box .login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4A90A4, #5BA4B8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}
.login-box .login-btn:hover { opacity: 0.9; }
.login-box .login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    transition: all 0.3s;
}
.pagination a:hover { color: #4A90A4; border-color: #4A90A4; }
.pagination .current { background: #4A90A4; color: #fff; border-color: #4A90A4; }

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state .layui-icon { font-size: 64px; color: #ddd; margin-bottom: 16px; display: block; }
.empty-state .empty-text { font-size: 15px; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .web-sidebar { display: none; }
    .web-content { padding: 16px; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .login-box { width: 90%; padding: 24px; }
    .web-header .header-nav { display: none; }
}
