body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* ========== 顶部导航栏样式 ========== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #b3001b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text {
    color: #fff;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-text strong {
    font-weight: 600;
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ========== 后台管理导航按钮样式 ========== */
.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e94560, #0f3460);
    border: 1px solid rgba(233, 69, 96, 0.5);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
}

.admin-nav-btn:hover {
    background: linear-gradient(135deg, #ff6b8a, #1a4a7a);
    border-color: rgba(233, 69, 96, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.admin-nav-btn svg {
    opacity: 0.95;
}

/* ========== 账户下拉菜单样式 ========== */
.account-dropdown {
    position: relative;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.account-btn .icon {
    opacity: 0.9;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.account-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item svg {
    color: #666;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.logout-item {
    color: #b3001b;
}

.logout-item:hover {
    background-color: #fff5f5;
}

.logout-item svg {
    color: #b3001b;
}

h1 {
    text-align: center;
    color: #333;
    margin-top: 20px;
}

/* ========== 功能卡片网格样式 ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 140px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(179, 0, 27, 0.15);
    border-color: rgba(179, 0, 27, 0.2);
}

.feature-card:active {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #b3001b 0%, #d71191 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.feature-desc {
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.4;
}

/* ========== 管理员卡片样式 ========== */
.feature-card.admin-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #e94560;
}

.feature-card.admin-card .feature-icon {
    background: linear-gradient(135deg, #e94560, #0f3460);
}

.feature-card.admin-card .feature-title {
    color: #fff;
}

.feature-card.admin-card .feature-desc {
    color: #aaa;
}

.feature-card.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(233, 69, 96, 0.3);
    border-color: #e94560;
}

/* ========== 波动选项面板样式 ========== */
.fluctuation-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin: 0 auto 20px;
    max-width: 500px;
}

.fluctuation-options label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.fluctuation-options select {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
}

.fluctuation-options select:focus {
    outline: none;
    border-color: #b3001b;
}

.fluctuation-confirm-btn {
    padding: 10px 20px;
    font-size: 14px;
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fluctuation-confirm-btn:hover {
    background: linear-gradient(135deg, #d71191 0%, #b3001b 100%);
    transform: translateY(-1px);
}

/* 旧按钮容器样式保留以兼容 */
.button-container {
    text-align: center;
    margin-top: 20px;
}

.button-container a {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    font-size: 18px;
    background-color: #b3001b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.button-container a:hover {
    background-color: #d71191;
}

.content {
    margin: 20px auto;
    padding: 25px 40px;
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1120px;
}

select {
    padding: 5px;
    font-size: 16px;
}

#person-select {
    padding: 10px;
    font-size: 16px;
    width: 200px;                           /* 设置一个适当的宽度 */
    margin: 0 auto;                         /* 居中 */
    border: 1px solid #ccc;                 /* 添加边框 */
    border-radius: 5px;                     /* 圆角边框 */
}

#person-select-container {
    text-align: center;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    max-width: 1120px;
}

#friend-search-input {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#friend-search-input:focus {
    outline: none;
    border-color: #b3001b;
    box-shadow: 0 0 5px rgba(179, 0, 27, 0.3);
}

#friend-search-input::placeholder {
    color: #999;
    font-size: 14px;
}

#person-select {
    padding: 10px;
    font-size: 16px;
    width: 210px;                            /* 设置一个适当的宽度 */
    border: 1px solid #ccc;                  /* 添加边框 */
    border-radius: 5px;                      /* 圆角边框 */
}

.text-normal {
    font-size: 17px;
}

/* 将内容容器居中 */
#page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loading-message {
    display: none;
    position: absolute;
    top: 21%;                                  /* 调整此值以满足你的需求 */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.right-aligned {
    float: right;
    width: 100px;
    display: inline-block;
}

#chart-container {
    text-align: center;
    height: 400px;                             /* 设置容器的高度 */
}

.tooltip {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 12px;
    display: none;                             /* 初始隐藏 */
}

/* ========== 位置信息区域样式 ========== */
.location-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px auto;
    padding: 20px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    max-width: 1120px;
}

/* 定位信息显示 */
.location-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    min-width: 200px;
}

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #b3001b, #d71191);
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}

.location-icon svg {
    width: 18px;
    height: 18px;
}

.location-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.location-text.no-location {
    color: #999;
    font-style: italic;
}

/* 刷新定位按钮样式 */
.refresh-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(179, 0, 27, 0.1);
    color: #b3001b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-location:hover {
    background: rgba(179, 0, 27, 0.2);
    transform: rotate(15deg);
}

.refresh-location svg {
    display: block;
}

.location-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-display:has(.location-text.no-location) {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffdf5 0%, #fff 100%);
}

.location-display:has(.location-text.no-location) .location-icon {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

/* 城市选择器 */
.city-selector {
    width: 100%;
}

.city-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.city-select {
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z" fill="%23666"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.city-select:hover {
    border-color: #b3001b;
}

.city-select:focus {
    outline: none;
    border-color: #b3001b;
    box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.1);
}

.city-input {
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    min-width: 160px;
    transition: all 0.2s ease;
}

.city-input:focus {
    outline: none;
    border-color: #b3001b;
    box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.1);
}

.city-submit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-submit-btn:hover {
    background: linear-gradient(135deg, #d71191 0%, #b3001b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 0, 27, 0.3);
}

.city-submit-btn svg {
    opacity: 0.9;
}

#ip-container,
#local-time-container {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

#fluctuation-select {
    padding: 9px 30px 9px 15px;
    margin-left: 10px;                         /* 添加一些左边距，和按钮间隔开 */
    font-size: 18px;                           /* 字体大小与按钮一致 */
    background-color: #b3001b;                 /* 按钮的背景颜色 */
    color: #fff;                               /* 字体颜色 */
    border: none;                              /* 移除边框 */
    border-radius: 5px;                        /* 圆角边框 */
    -webkit-appearance: none;                  /* 移除iOS下的默认样式 */
    -moz-appearance: none;                     /* 移除Firefox下的默认样式 */
    appearance: none;                          /* 标准属性，移除默认下拉箭头 */
    cursor: pointer;                           /* 鼠标悬停时显示手指指针，更像按钮 */
    min-width: 110px;                          /* 最小宽度，确保足够空间显示文本和箭头 */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z" fill="%23ffffff"/></svg>'); /* 使用SVG箭头 */
    background-repeat: no-repeat;
    background-position: right 10px center;    /* 调整箭头位置 */
    background-size: 12px;                     /* 调整箭头大小 */
}

#fluctuation-select:hover {
    background-color: #d71191;                 /* 悬停时的背景颜色 */
}

#manual-location-form-container {
    display: flex;
    justify-content: center;                   /* This will center the contents horizontally */
    align-items: center;                       /* This will center the contents vertically (if needed) */
    margin-top: 20px;                          /* Add some top margin for spacing */
}

#manual-location-form {
    display: flex;
    flex-direction: row;                      /* This ensures that the children of the form are in a row */
    gap: 10px;                                /* This adds some space between your select box and button */
}

#city-select, #city-input, button {
    height: 35px;                             /* Ensuring consistent height */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 10px;                          /* Some padding inside the elements */
}

button {
    cursor: pointer;                          /* Changes the mouse cursor to a pointer on hover over the button */
    background-color: #b3001b;
    color: white;
    border: none;                             /* Removes the default border */
}

button:hover {
    background-color: #d71191;                /* A lighter shade for hover effect */
}

ul {
    list-style-type: none;                    /* 去除列表的项目符号 */
    padding: 0;                               /* 去除内边距 */
}

li {
    display: flex;                            /* 启用 flexbox */
    justify-content: flex-end;                /* 子项向右对齐 */
    align-items: center;                      /* 中心对齐子项 */
    margin-bottom: 10px;                      /* 添加点底部外边距 */
}

li span {
    margin-left: 10px;                        /* 在span元素之间添加一些空间 */
    min-width: 100px;                         /* 设置最小宽度，保持列宽一致 */
    text-align: right;                        /* 右对齐文本 */
}

.highlighted {
    font-weight: bold;                        /* 加粗突出显示 */
    color: red;                               /* 可选的: 更改颜色来增加可见度 */
}

/* ========== 底部备案号样式 ========== */
.footer {
    text-align: center;
    font-size: 13px;
    color: #999;
    padding: 30px 20px;
    margin-top: 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
    border-top: 1px solid #eee;
}

.footer a {
    color: #b3001b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #d71191;
    text-decoration: underline;
}

.popup-form {
    display: flex;
    justify-content: center;     /* 水平居中 */
    margin-top: 20px;
}

.form-wrapper {
    display: flex;
    justify-content: center;     /* 保证 wrapper 自身居中 */
    width: 100%;
}

#update-birthtime-form {
    display: flex;
    flex-direction: row;         /* 水平排列 */
    align-items: center;
    justify-content: center;     /* 水平居中 */
    gap: 15px;
    padding: 12px 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 8px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

#update-birthtime-form .form-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

#update-birthtime-form button {
    white-space: nowrap; /* 防止按钮内容被折行 */
}

/* ========== 进度条美化样式 ========== */
#progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    padding: 25px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1120px;
}

#progressBar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
    -webkit-appearance: none;
    appearance: none;
}

#progressBar::-webkit-progress-bar {
    background: #e9ecef;
    border-radius: 6px;
}

#progressBar::-webkit-progress-value {
    background: linear-gradient(90deg, #b3001b 0%, #d71191 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

#progressBar::-moz-progress-bar {
    background: linear-gradient(90deg, #b3001b 0%, #d71191 100%);
    border-radius: 6px;
}

#progressLabel {
    margin-top: 12px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

#progressHistory {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    width: 100%;
    max-height: 100px;
    overflow-y: auto;
}

#progressHistory div {
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

#progressHistory div:last-child {
    border-bottom: none;
}

/* 朋友一览搜索框样式 */
.friends-search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#friends-search {
    padding: 10px 15px;
    width: 280px;
    font-size: 15px;
    border: 2px solid #b3001b;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#friends-search:focus {
    border-color: #d71191;
    box-shadow: 0 0 5px rgba(215, 17, 145, 0.3);
}

#friends-search::placeholder {
    color: #999;
}

#search-btn, #reset-btn {
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#search-btn {
    background-color: #b3001b;
    color: white;
}

#search-btn:hover {
    background-color: #d71191;
}

#reset-btn {
    background-color: #666;
    color: white;
}

#reset-btn:hover {
    background-color: #888;
}

/* ========== 训练样本管理表格样式 ========== */
.training-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.training-cases-container h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b3001b;
}

#training-cases-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#training-cases-table thead {
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
}

#training-cases-table th {
    padding: 14px 16px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#training-cases-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
}

#training-cases-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

#training-cases-table tbody tr:hover {
    background-color: #fff5f5;
}

#training-cases-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格内按钮样式 */
#training-cases-table .btn-edit,
#training-cases-table .btn-delete {
    padding: 6px 14px;
    margin-right: 6px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#training-cases-table .btn-edit {
    background-color: #4CAF50;
    color: white;
}

#training-cases-table .btn-edit:hover {
    background-color: #45a049;
}

#training-cases-table .btn-delete {
    background-color: #f44336;
    color: white;
}

#training-cases-table .btn-delete:hover {
    background-color: #da190b;
}

/* 标签样式 */
.label-positive {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background-color: #e8f5e9;
    color: #2e7d32;
}

.label-negative {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background-color: #ffebee;
    color: #c62828;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a {
    background-color: #fff;
    color: #b3001b;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background-color: #b3001b;
    color: #fff;
    border-color: #b3001b;
}

.pagination span {
    color: #666;
}

.pagination span strong {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}

/* 每页显示选择器 */
.per-page-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.per-page-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.per-page-selector select:hover {
    border-color: #b3001b;
}

.per-page-selector select:focus {
    outline: none;
    border-color: #b3001b;
    box-shadow: 0 0 5px rgba(179, 0, 27, 0.2);
}

/* ========== 编辑训练样本页面样式 ========== */
.edit-case-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.edit-case-container h2 {
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #b3001b;
    font-size: 20px;
}

.edit-case-form .form-group {
    margin-bottom: 20px;
}

.edit-case-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.edit-case-form input[type="text"],
.edit-case-form input[type="number"],
.edit-case-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.edit-case-form input:focus,
.edit-case-form textarea:focus {
    outline: none;
    border-color: #b3001b;
    box-shadow: 0 0 5px rgba(179, 0, 27, 0.2);
}

.edit-case-form textarea {
    min-height: 100px;
    resize: vertical;
}

.edit-case-form .btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edit-case-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 0, 27, 0.3);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #b3001b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #d71191;
    text-decoration: underline;
}

/* ========== 自定义确认弹窗样式 ========== */
.confirm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.confirm-modal-overlay.show {
    display: flex;
}

.confirm-modal {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirm-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #b3001b 0%, #d71191 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.confirm-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.confirm-modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.confirm-modal-btn.cancel {
    background: #f0f0f0;
    color: #666;
}

.confirm-modal-btn.cancel:hover {
    background: #e0e0e0;
}

.confirm-modal-btn.confirm {
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    color: #fff;
}

.confirm-modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 0, 27, 0.3);
}

/* ========== 朋友管理页面样式 ========== */
.friend-management-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.friend-management-container h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b3001b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-management-actions {
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 0, 27, 0.3);
}

/* 添加朋友面板 */
.add-friend-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.panel-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: #333;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #b3001b;
}

.btn-search {
    padding: 10px 20px;
    background: #b3001b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: #8b0015;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.user-item:last-child {
    border-bottom: none;
}

.user-item:hover {
    background: #f9f9f9;
}

.user-item.is-friend {
    background: #f5fff5;
}

.user-name {
    font-size: 14px;
    color: #333;
}

.friend-badge {
    font-size: 12px;
    color: #4CAF50;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 12px;
}

.btn-add {
    padding: 6px 14px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add:hover {
    background: #45a049;
}

/* 朋友列表区域 */
.friend-lists-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .friend-lists-wrapper {
        grid-template-columns: 1fr;
    }
}

.friend-list-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #b3001b 0%, #8b0015 100%);
    color: #fff;
}

.section-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 svg {
    opacity: 0.9;
}

.friend-count {
    font-size: 13px;
    opacity: 0.9;
}

.friend-list {
    max-height: 350px;
    overflow-y: auto;
}

.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.friend-item:last-child {
    border-bottom: none;
}

.friend-item:hover {
    background: #fff5f5;
}

.friend-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.btn-remove {
    padding: 5px 12px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: #da190b;
}

.empty-list {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.loading {
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 提示信息 */
.friend-management-tips {
    background: #fffdf5;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px 20px;
}

.friend-management-tips p {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 14px;
}

.friend-management-tips ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.friend-management-tips li {
    display: list-item;
    justify-content: flex-start;
    color: #856404;
    font-size: 13px;
    margin-bottom: 5px;
    text-align: left;
}