/* static/style.css */
body { font-family: sans-serif; margin: 0; background-color: #f4f4f9; color: #333; }
.container { max-width: 800px; margin: 20px auto; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
h1, h2 { color: #0056b3; }
.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 10px; }
#user-info { font-size: 0.9em; color: #555; }
.actions { margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap; }
#search-box { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 10px 15px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; }
button:hover { background-color: #0056b3; }

/* 客户列表 */
.customer-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; }
.customer-item:last-child { border-bottom: none; }
.customer-info .name { font-weight: bold; font-size: 1.1em; }
.customer-info .phone, .customer-info .status { font-size: 0.9em; color: #666; }
.customer-actions button { margin-left: 5px; font-size: 0.9em; padding: 8px 10px; }
.btn-dtmf { background-color: #28a745; }
.btn-dtmf:hover { background-color: #218838; }

/* 状态颜色 */
.status-contacted { color: green !important; }
.status-follow-up { color: red !important; font-weight: bold; }
.status-uncontacted-long { color: #333; /* 超过3个月未联系，可以加不同样式 */ }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: 8px; }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; }
.form-group input[type="text"], .form-group input[type="number"], .form-group input[type="date"], .form-group textarea { width: 95%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.form-group textarea { resize: vertical; min-height: 80px; }

/* 文件上传按钮美化 */
.file-input-wrapper { position: relative; overflow: hidden; display: inline-block; }
.file-input-wrapper button { }
.file-input-wrapper input[type=file] { font-size: 100px; position: absolute; left: 0; top: 0; opacity: 0; }
.error { color: red; font-size: 0.9em; }

/* =================================== */
/* ====   Login Page Styles Start   ==== */
/* =================================== */

/* 登录页专属的 body 背景色 */
.login-page-body {
    background-color: #f0f2f5; /* 一个柔和的浅灰色背景 */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 顶部对齐 */
    padding-top: 60px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

.login-form-wrapper {
    /* 容器 */
}

.form-fields {
    background-color: #ffffff;
    border-radius: 8px; /* 轻微的圆角 */
    border: 1px solid #e0e0e0;
    overflow: hidden; /* 配合圆角，确保内部边框不溢出 */
}

.form-row {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0; /* 行之间的分割线 */
}

.form-row:last-child {
    border-bottom: none; /* 最后一行不需要分割线 */
}

.form-row label {
    flex-basis: 70px; /* 固定标签宽度 */
    flex-shrink: 0;
    font-size: 16px;
    color: #333;
    padding-right: 10px;
}

.form-row input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: transparent;
    width: 100%; /* 确保输入框填满剩余空间 */
}

/* 输入框的占位符文字样式 */
.form-row input::placeholder {
    color: #b2b2b2;
}

.button-wrapper {
    margin-top: 30px;
}

#login-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background-color: #007bff; /* 明亮的蓝色 */
    border: none;
    border-radius: 25px; /* 大圆角，形成胶囊形状 */
    cursor: pointer;
    transition: background-color 0.2s;
}

#login-btn:hover {
    background-color: #0056b3; /* 鼠标悬停时颜色变深 */
}

#login-btn:active {
    background-color: #004494; /* 点击时颜色再变深 */
}

/* 错误信息的样式 */
.login-form-wrapper .error {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* =================================== */
/* ==== New Main Page Styles Start ==== */
/* =================================== */

/* 通用重置和容器 */
body {
    background-color: #f8f8f8; /* 更柔和的背景色 */
}
.container {
    padding: 0; /* 移除旧的 padding，让内容占满 */
    box-shadow: none; /* 移除旧的阴影 */
    max-width: none;
    margin: 0;
    border-radius: 0;
}

/* 主页顶部导航 */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 0;
    z-index: 10;
}
/* 在CSS文件顶部添加全局字体大小设置 */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f9;
    color: #333;
    font-size: 16px; /* 基础字体大小 */
}

/* 增大主要文本元素的字体大小 */
.header-title {
    font-size: 22px; /* 原来是18px */
    font-weight: 600;
    color: #333;
    margin: 0;
}

.header-actions a, .header-back a {
    text-decoration: none;
    color: #007bff;
    font-size: 18px; /* 原来是16px */
}

#search-box {
    border: none;
    outline: none;
    height: 40px; /* 稍微增高搜索框 */
    width: 100%;
    font-size: 16px; /* 原来是14px */
    background: transparent;
}

.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 10px 18px; /* 增大按钮内边距 */
    border-radius: 20px; /* 稍微增大圆角 */
    border: 1px solid #e0e0e0;
    font-size: 16px; /* 原来是14px */
    white-space: nowrap;
}

.customer-name {
    font-size: 20px; /* 原来是18px */
    font-weight: 600;
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 10px; /* 增大间距 */
    font-size: 16px; /* 原来是14px */
    color: #555;
}

.new-record-btn {
    align-self: flex-end;
    background-color: #ff8c42;
    color: white;
    border: none;
    padding: 12px 24px; /* 增大按钮内边距 */
    border-radius: 22px; /* 稍微增大圆角 */
    font-size: 16px; /* 原来是14px */
    cursor: pointer;
}

/* 增大模态框中的字体 */
.modal-content h2 {
    font-size: 22px; /* 增大标题字体 */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px; /* 增大标签字体 */
}

.form-group input[type="text"], 
.form-group input[type="number"], 
.form-group input[type="date"], 
.form-group textarea {
    width: 95%;
    padding: 10px; /* 增大输入框内边距 */
    border: 1px solid #ccc;
    border-radius: 6px; /* 稍微增大圆角 */
    font-size: 16px; /* 增大输入框字体 */
}

#save-log-btn {
    padding: 12px 24px; /* 增大按钮内边距 */
    font-size: 16px; /* 增大按钮字体 */
    border-radius: 6px; /* 稍微增大圆角 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
/* 电话号码和拨号按钮样式 */
.phone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-actions {
    display: flex;
    gap: 10px;
}

.call-btn, .dtmf-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.call-btn {
    background-color: #4CAF50; /* 绿色 */
    color: white;
}

.dtmf-btn {
    background-color: #2196F3; /* 蓝色 */
    color: white;
}

.call-btn:hover, .dtmf-btn:hover {
    opacity: 0.8;
}

.call-btn svg, .dtmf-btn svg {
    width: 24px;
    height: 24px;
}

/* 模态框中的电话按钮样式 */
.phone-buttons-container {
    margin: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.phone-button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.phone-number {
    font-weight: bold;
}

.phone-actions {
    display: flex;
    gap: 10px;
}

.call-btn, .dtmf-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: white;
}

.call-btn {
    background-color: #4CAF50; /* 绿色 */
}

.dtmf-btn {
    background-color: #2196F3; /* 蓝色 */
}

/* DTMF按钮激活状态 */
.dtmf-btn.active {
    background-color: #007bff;
    color: white;
}

.call-btn:hover, .dtmf-btn:hover {
    opacity: 0.9;
}

.call-btn svg, .dtmf-btn svg {
    width: 18px;
    height: 18px;
}

/* 拨号中的动画效果 */
@keyframes dialing {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.dialing {
    animation: dialing 1s infinite;
}

/* 计时器样式 */
.timer {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    color: #ff5722;
    display: none; /* 默认隐藏 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}


/* 新的馆员列表卡片样式 */
#customer-list-container {
    padding: 0 15px;
}
.customer-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.customer-name {
    font-size: 18px;
    font-weight: 600;
}
.edit-info-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.edit-info-btn svg { width: 14px; height: 14px; }
.card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.detail-item span {
    color: #999;
    margin-right: 5px;
}
.new-record-btn {
    align-self: flex-end; /* 按钮在右侧底部对齐 */
    background-color: #ff8c42; /* 橙色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.new-record-btn:hover { background-color: #e67e3a; }

/* 状态颜色 */
.health-status-healthy { color: #28a745; font-weight: bold; } /* 绿色 */
.health-status-sick { color: #dc3545; font-weight: bold; } /* 红色 */
.status-color-green { color: green; }
.status-color-red { color: red; font-weight: bold; }
.status-color-black { color: #333; }


/* =================================== */
/* ====   Management Page Styles  ==== */
/* =================================== */

.back-link {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
}
.management-section {
    padding: 20px;
    margin: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
}
.management-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.file-input-wrapper { margin-top: 15px; }

/* 旧样式兼容 */
.actions {
    margin: 20px 15px;
}
.customer-item {
    display: none; /* 隐藏旧的列表样式，我们用 .customer-card 代替 */
}
.header-actions, .header-back {
    flex: 1;
}
.header-actions { text-align: right; }
.header-back { text-align: left; }

/* 工具栏：搜索和管理按钮 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f8f8;
    position: sticky;
    top: 44px; /* 主页顶部导航的高度，确保工具栏紧跟在导航栏下方 */
    z-index: 9; /* 比主页顶部导航的z-index小，确保导航栏在上层 */
}
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 18px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    margin-right: 8px;
}
#search-box {
    border: none;
    outline: none;
    height: 36px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.manage-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
}
.manage-icon {
    width: 18px;
    height: 18px;
    color: #555;
}