/* ==========================================
   计算机学院管理系统 - 统一样式表
   ========================================== */

/* ============ 1. Reset & 基础样式 ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 屏幕阅读器专用内容（视觉隐藏但可访问） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 导出功能样式 */
.export-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.export-section .custom-date-picker {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
    background: white;
    cursor: pointer;
    height: 38px;
    min-width: 140px;
}

.export-section .custom-date-picker:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
    border-color: #3182ce;
}

.export-section .submit-btn {
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .filter-form select,
    .filter-form input[type="text"] {
        width: 100%;
        min-width: unset;
    }

    .filter-form .submit-btn {
        width: 100%;
    }

    .export-section {
        flex-wrap: wrap;
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .export-section .custom-date-picker {
        flex: 1;
        min-width: 120px;
    }

    .export-section .submit-btn {
        width: 100%;
    }
}

body {
    font-family: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f8fafc;
    color: #4a5568;
    line-height: 1.6;
    padding: 70px 20px 20px 20px;
    min-height: 100vh;
}

/* 有侧边栏的页面（dataview.php, approval.php）添加左侧padding */
body:not(.no-sidebar-page) {
    padding-left: 100px;
}

/* 标题样式 */
h1, h2, h3 {    
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 16px;
}

h1 { font-size: 26px; line-height: 1.3; }
h2 { font-size: 20px; margin-top: 24px; line-height: 1.3; }
h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #2c5282;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

/* 聚焦状态 - 学术蓝色风格 */
:focus-visible {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* 隐藏数字输入框箭头 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ============ 2. 头部样式 - 学术蓝色风格 ============ */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #2c5282;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-header h1,
.header-left h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #3182ce;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #1a202c;
    text-decoration: none;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: #2c5282;
}

/* ============ 3. 侧边栏样式 ============ */
.main-content-wrapper {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 64px);
}

/* ============ 3. 侧边栏样式 - 学术蓝色风格 ============ */
.shell {
    position: fixed;
    top: 64px;
    left: 0;
    width: 90px;
    height: 100%;
    background: #2c5282;
    border-right: 1px solid #1e3a5f;
    z-index: 999;
    transition: width 0.3s ease;
    padding: 20px 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.shell:hover {
    width: 170px;
}

.nav {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav li {
    position: relative;
    margin: 4px 8px;
    border-radius: 6px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.nav li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    border-radius: 6px;
}

.nav li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* 激活状态 */
.nav li.active a {
    color: #ffffff;
    background: #234e76;
    font-weight: 500;
}

.nav li.active .text {
    color: #ffffff;
}

.icon {
    min-width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav li a:hover .icon {
    background: rgba(255, 255, 255, 0.12);
}

.text {
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    font-weight: 500;
    color: #1a202c;
}

.shell:hover .text {
    opacity: 1;
    transform: translateX(0);
}

/* 主内容区域 */
.main-content-area {
    min-height: calc(100vh - 64px);
    transition: none;
}

/* 无侧边栏页面样式（如 index.php） */
body.no-sidebar-page .shell {
    display: none;
}

body.no-sidebar-page .main-content-area {
    margin-left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.no-sidebar-page .all-records-container {
    width: 100%;
    max-width: 1200px;
}

body.no-sidebar-page .declaration-section .submit-btn {
    margin: 0;
}

/* ============ 4. 卡片容器 - 学术蓝色风格 ============ */
.section,
.award-module,
.admin-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

.section:hover,
.award-module:hover {
    border-color: #cbd5e0;
}

/* ============ 5. 表单样式 ============ */
.form-group {
    margin-bottom: 20px;
}

.form-group label,
.section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}

/* 输入框 - 学术蓝色风格 */
input[type="text"],
input[type="password"],
select,
textarea,
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: #3182ce;
    background-color: #ffffff;
}

input[type="text"]:disabled,
input[type="password"]:disabled {
    background-color: #f8fafc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 下拉框美化 - 学术蓝色风格 */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    appearance: none;
    cursor: pointer;
}

/* 文件上传 */
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #E5E6EB;
    border-radius: 6px;
    background-color: #F7F8FA;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

input[type="file"]:hover {
    border-color: #165DFF;
    background-color: #F0F7FF;
}

input[type="file"]:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

/* 按钮基础样式 - 学术蓝色风格 */
.approve-btn,
.reject-btn,
.cancel-btn,
.cancel-button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    outline: none;
}

/* submit-btn 独立样式，支持居中 - 学术蓝 */
.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2c5282;
    border: 2px solid #1e3a5f;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    outline: none;
    color: white;
    line-height: 20px;
    appearance: none;
    font-family: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.submit-btn:hover {
    background: #1e3a5f;
    border-color: #1a2d4a;
}

.approve-btn {
    background: #2c5282;
    border-color: #1e3a5f;
    color: white;
}

.approve-btn:hover {
    background: #1e3a5f;
    border-color: #1a2d4a;
}

.reject-btn {
    background: #c53030;
    border-color: #9b2c2c;
    color: white;
}

.reject-btn:hover {
    background: #9b2c2c;
    border-color: #742a2a;
}

.cancel-btn,
.cancel-button {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #4a5568;
}

.cancel-btn:hover,
.cancel-button:hover {
    background: #cbd5e0;
    border-color: #a0aec0;
}

.submit-btn:disabled {
    background: #cbd5e0;
    border-color: #a0aec0;
    color: #718096;
    cursor: not-allowed;
}

/* 表单中同时有提交和取消按钮时，使用flexbox居中显示 */
.form-group:has(.submit-btn):has(.cancel-button) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.form-group:has(.submit-btn):has(.cancel-button) .submit-btn,
.form-group:has(.submit-btn):has(.cancel-button) .cancel-button {
    display: inline-block;
    margin: 0;
    height: 42px;
    line-height: 20px;
    min-width: 100px;
}

/* ============ 6. 消息提示 - 学术蓝色风格 ============ */
.error-message,
.success-message {
    border-radius: 6px;
    padding: 16px 20px;
    margin: 0 auto 24px auto;  /* 上下边距保持，左右自动居中 */
    max-width: 600px;          /* 限制最大宽度，避免在大屏幕上过宽 */
    text-align: center;
    font-weight: 500;
    border: 1px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* 添加阴影增强视觉效果 */
}

.error-message {
    background: #fff5f5;
    border-color: #fc8181;
    color: #c53030;
}

.success-message {
    background: #f0fff4;
    border-color: #68d391;
    color: #276749;
}

/* 消息淡入动画 - 不修改transform避免覆盖居中样式 */
@keyframes messageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 为动态创建的消息元素添加淡入效果 */
body > div.error-message,
body > div.success-message {
    animation: messageFadeIn 0.3s ease-in-out;
}

/* 固定定位的消息元素 - 顶部居中显示 */
body > div.error-message[style*="position: fixed"],
body > div.success-message[style*="position: fixed"] {
    margin: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* ============ 7. 登录页面 - 学术蓝色风格 ============ */
.login-container {
    max-width: 500px;
    margin: 60px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 40px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 8px;
}

.login-container h2 {
    text-align: center;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 24px;
    color: #86909C;
}

/* 登录按钮居中 */
.login-container .submit-btn {
    margin: 24px auto 0;
}

/* ============ 8. 修改密码页面 - 学术蓝色风格 ============ */
.change-password-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 40px;
}

.change-password-container h2 {
    text-align: center;
    margin-top: 0;
    color: #1a202c;
}

.change-password-form .form-group {
    margin-bottom: 24px;
}

/* ============ 9. 列表项样式 - 学术蓝色风格 ============ */
li {
    list-style: none;
    background: #fff;
    border-left: 3px solid #2c5282;
    padding: 10px 15px;
    margin-bottom: 16px;
    border-radius: 0 6px 6px 0;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #2c5282;
    transition: border-color 0.2s ease;
}

li:hover {
    border-left-color: #1e3a5f;
}

li p {
    margin: 8px 0;
    display: flex;
}

li strong {
    color: #2d3748;
    width: 80px;
    display: inline-block;
}

/* 获奖记录 - 学术蓝色风格 */
.award-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a202c;
}

.awards-list {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.award-item {
    background: #f8fafc;
    border-left: 3px solid #3182ce;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 0 6px 6px 0;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3182ce;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.award-item:hover {
    background: #edf2f7;
}

.award-name {
    font-weight: 500;
    color: #2d3748;
}

.award-time {
    color: #718096;
    font-size: 14px;
}

/* ============ 10. 表格样式 - 学术蓝色风格 ============ */

/* 申报记录容器 */
.all-records-container {
    width: 100%;
    margin: 0 auto;
}

.declaration-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin: 12px 0;
}

.awards-header {
    margin: 30px 0 20px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 40px 0;
}

.empty-message {
    font-size: 16px;
    color: #718096;
}

.declarations-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.declarations-table th,
.declarations-table td {
    padding: 4px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}

.declarations-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #cbd5e0;
}

.declarations-table tr:hover {
    background-color: #f8fafc;
}

/* 状态标签 - 学术蓝色风格 */
.status-approved {
    color: #276749;
    font-weight: 600;
}

.status-rejected {
    color: #c53030;
    font-weight: 600;
}

/* 驳回理由文本 */
.reject-reason-text {
    display: block;
    margin-top: 4px;
    color: #718096;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.4;
}

/* 操作按钮 - 学术蓝色风格 */
.delete-btn {
    background-color: #c53030;
    color: white;
    border: 1px solid #9b2c2c;
    padding: 4px 12px;          /* 与 edit-btn 一致 */
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
    min-width: 50px;            /* 与 edit-btn 一致 */
    text-align: center;
    margin-left: 5px;           /* 保留间距 */
}

.delete-btn:hover {
    background-color: #9b2c2c;
}

.file-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* 操作按钮 - 默认蓝色样式 */
.action-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
    min-width: 45px;
    text-align: center;
}

.action-btn:hover {
    background: #3182ce;
}

/* ============ 11. 悬浮窗样式 - 学术蓝色风格 ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #718096;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2600;
}

.close:hover {
    color: #2d3748;
}

.modal-content h3 {
    color: #1a202c;
}

.modal-body {
    margin-top: 15px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

.modal-body textarea {
    height: 100px;
    resize: vertical;
}

.modal-footer {
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.modal-footer button {
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

/* ============ 12. 数据统计卡片 - 学术蓝色风格 ============ */
.stats-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border-radius: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: border-color 0.2s ease;
}

.stat-card:hover {
    border-color: #cbd5e0;
}

/* ============ 13. 暂停申报公告 - 学术蓝色风格 ============ */
.notice-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
}

.notice-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.notice-container h2 {
    color: #c53030;
    font-size: 22px;
    margin-bottom: 24px;
}

.notice-content {
    text-align: left;
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 6px;
    padding: 24px;
    margin-top: 20px;
}

.notice-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.notice-message {
    font-size: 15px;
    color: #c53030;
    margin-bottom: 16px;
    font-weight: 500;
}

.notice-reason {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.notice-footer {
    border-top: 1px solid #fed7d7;
    padding-top: 16px;
    margin-top: 20px;
}

.notice-time {
    font-size: 12px;
    color: #a0aec0;
    font-style: italic;
}

/* ============ 14. 积分显示 - 学术蓝色风格 ============ */
#points{
    display: inline-block;
    padding: 8px 20px;
    background: #2c5282;
    border: 1px solid #1e3a5f;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
}

/* ============ 15. 响应式设计 ============ */

/* 中等屏幕 (≤800px) */
@media (max-width: 800px) {
    .shell {
        width: 80px;
    }

    .shell:hover {
        width: 200px;
    }

    .nav li {
        margin: 5px 5px;
    }

    .icon {
        min-width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .text {
        font-size: 13px;
    }

    body:not(.no-sidebar-page) .main-content-area {
        margin-left: 80px;
        width: calc(100% - 80px);
        padding: 15px;
    }
}

/* 平板端 (≤768px) */
@media (max-width: 768px) {
    body:not(.no-sidebar-page) {
        padding: 76px 0 16px 0;
    }

    body.no-sidebar-page {
        padding: 76px 0 16px 0;
    }

    .admin-header {
        height: 60px;
        padding: 0 16px;
    }

    .header-left h1 {
        font-size: 18px;
    }

    .user-name {
        display: none;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 0;
    }

    .shell {
        width: 80px;
        height: 100%;
    }

    .shell:hover {
        width: 200px;
    }

    .text {
        opacity: 1;
        transform: translateX(0);
    }

    body:not(.no-sidebar-page) .main-content-area {
        margin-left: 80px;
        width: calc(100% - 80px);
        padding: 15px;
    }

    /* 表单和按钮 */
    .login-container,
    .change-password-container,
    .notice-container {
        padding: 24px;
        margin: 16px;
        max-width: calc(100% - 32px);
        border-radius: 12px;
    }

    .section {
        padding: 16px;
        border-radius: 12px;
    }

    .approve-btn,
    .reject-btn {
        width: 100%;
        margin: 8px 0;
    }

    /* 登录按钮保持居中，但使用合适的宽度 */
    .login-container .submit-btn {
        width: auto;
        min-width: 200px;
    }

    /* 表格响应式 - 移动端改为卡片式布局 */
    .declarations-table,
    .declarations-table thead,
    .declarations-table tbody,
    .declarations-table th,
    .declarations-table td,
    .declarations-table tr {
        display: block;
    }

    .declarations-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .declarations-table tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background: white;
        padding: 10px;
    }

    .declarations-table td {
        border: none;
        display: flex;
        align-items: flex-start;
        padding: 4px 0;
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
    }

    .declarations-table td:before {
        flex-shrink: 0;
        width: 85px;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #2d3748;
        content: attr(data-label);
        box-sizing: border-box;
    }

    /* 如果td有data-label属性，使用data-label；否则使用nth-child作为后备 */
    .declarations-table td[data-label]:before {
        content: attr(data-label);
    }

    /* 为没有data-label的8列表格提供默认标签（index.php） */
    .declarations-table td:nth-child(1):not([data-label]):before { content: "积分模块"; }
    .declarations-table td:nth-child(2):not([data-label]):before { content: "申报项目"; }
    .declarations-table td:nth-child(3):not([data-label]):before { content: "所获奖项"; }
    .declarations-table td:nth-child(4):not([data-label]):before { content: "积分"; }
    .declarations-table td:nth-child(5):not([data-label]):before { content: "状态"; }
    .declarations-table td:nth-child(6):not([data-label]):before { content: "证明材料"; }
    .declarations-table td:nth-child(7):not([data-label]):before { content: "申报时间"; }
    .declarations-table td:nth-child(8):not([data-label]):before { content: "操作"; }

    /* 操作按钮样式优化 - 中等移动设备 */
    .declarations-table td:last-child {
        flex-wrap: wrap;
        gap: 8px;
    }

    .declarations-table td:last-child .action-btn {
        flex: 0 1 auto;
        min-width: 70px;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* 移除按钮默认的 margin-left */
    .declarations-table td:last-child .delete-btn {
        margin-left: 0 !important;
    }

    /* 驳回理由移动端样式 - 768px断点 */
    .declarations-table td:has(.status-rejected) {
        flex-direction: column;
        align-items: flex-start;
    }

    .reject-reason-text {
        display: inline-block;
        margin-top: 6px;
        margin-left: 0;
        padding: 4px 8px;
        background-color: #fff5f5;
        border-left: 2px solid #c53030;
        border-radius: 3px;
        font-size: 12px;
        color: #4a5568;
        line-height: 1.5;
    }

    /* 卡片网格 */
    .stats-cards {
        flex-direction: column;
    }

    .stat-card {
        min-width: 100%;
    }

    /* 获奖项 */
    .award-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* 悬浮窗 */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* 手机端 (≤480px) */
@media (max-width: 480px) {
    body:not(.no-sidebar-page) {
        padding: 45px 0px 0px;
    }

    body.no-sidebar-page {
        padding: 72px 12px 12px 12px;
    }

    .admin-header {
        height: 56px;
        padding: 0 12px;
    }

    .header-left h1 {
        font-size: 16px;
    }

    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }

    /* 侧边栏 */
    .shell {
        width: 70px;
        top: 48px;
        height: 100%;
    }

    .shell:hover {
        width: 155px;
    }

    .icon {
        min-width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .text {
        font-size: 12px;
    }

    body:not(.no-sidebar-page) .main-content-area {
        margin-left: 80px;
        width: calc(100% - 80px);
        padding: 10px;
    }

    .login-container,
    .change-password-container,
    .notice-container {
        margin: 12px;
        padding: 20px;
        max-width: calc(100% - 24px);
        border-radius: 10px;
    }

    .notice-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .notice-container h2 {
        font-size: 20px;
    }

    .notice-content {
        padding: 16px;
    }

    .section {
        padding: 12px;
        margin-bottom: 16px;
    }

    /* 表格在小屏幕上可横向滚动 */
    .declarations-table-wrapper {
        overflow-x: visible;
    }

    /* 按钮 */
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    .dropdown-menu a {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* 悬浮窗 */
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        padding: 20px;
    }

    .close {
        right: 12px;
        top: 12px;
        font-size: 24px;
    }
}

/* 超小屏幕优化 (≤375px) */
@media (max-width: 375px) {
    .header-left h1 {
        font-size: 14px;
    }

    .icon {
        min-width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .text {
        font-size: 11px;
    }

    /* 表格卡片式布局优化 - 标签和内容垂直排列避免重叠 */
    .declarations-table tr {
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background: white;
        padding: 8px;
    }

    .declarations-table td {
        display: flex;
        flex-direction: column;
        padding: 4px;
        border: none;
        text-align: left;
        position: static;
    }

    .declarations-table td:before {
        position: static;
        width: 100%;
        padding-right: 0;
        margin-bottom: 4px;
        white-space: normal;
        font-size: 11px;
        color: #4a5568;
        font-weight: 600;
    }

    /* 操作按钮样式优化 */
    .declarations-table td:last-child {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        padding-top: 4px;
    }

    /* 操作按钮自适应宽度 */
    .declarations-table td:last-child .action-btn {
        flex: 1;
        min-width: 60px;
        max-width: 120px;
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 移除按钮默认的 margin-left */
    .declarations-table td:last-child .delete-btn {
        margin-left: 0 !important;
    }

    /* 驳回理由超小屏幕优化 */
    .reject-reason-text {
        display: block;
        margin-top: 6px;
        margin-left: 0;
        padding: 6px 10px;
        background-color: #fff5f5;
        border-left: 3px solid #c53030;
        border-radius: 4px;
        font-size: 11px;
        color: #4a5568;
        line-height: 1.6;
        word-break: break-word;
    }

    /* 状态列特殊处理，确保驳回状态和理由对齐 */
    .declarations-table td:has(.status-rejected) {
        gap: 4px;
    }

    .declarations-table td .status-rejected {
        display: inline-block;
    }
}

/* ============ 16. 打印样式 ============ */
@media print {
    .admin-header,
    .shell,
    .submit-btn,
    .delete-btn,
    .modal {
        display: none !important;
    }

    body {
        padding: 20px;
        background: white;
    }

    .section,
    .declarations-table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============ 17. 辅助类 ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* ============ 18. 申报审批页面样式 - 学术蓝色风格 ============ */

/* 悬浮窗样式 - 覆盖之前的定义 */
.modal-content {
    /* 布局定位 */
    position: relative;
    margin: 10% auto;                    /* 优先：更靠近顶部 */
    
    /* 尺寸 */
    width: 90%;
    max-width: 800px;                   /* 优先：稍宽，内容更舒适 */
    max-height: 90vh;
    
    /* 外观 */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* 内容 */
    padding: 24px;                      /* 优先：充足内边距 */
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #718096;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #2d3748;
}

.modal-content h3 {
    color: #1a202c;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

.modal-body {
    margin-top: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: #ffffff;
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #3182ce;
    background-color: #ffffff;
}

.modal-body textarea {
    height: 100px;
    resize: vertical;
}

.reject-reasons {
    margin-top: 15px;
}

.reject-reason-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f8fafc;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s ease;
}

.reject-reason-btn:hover {
    background: #edf2f7;
    border-color: #3182ce;
}

.reject-reason-btn.selected {
    background: #2c5282;
    border-color: #1e3a5f;
    color: #ffffff;
    font-weight: 600;
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
}

.modal-footer button {
    margin: 0 10px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

/* 撤销按钮 - 学术风格 */
.revert-btn {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    height: 28px;
    box-sizing: border-box;
    background: #c05621;
    border: 1px solid #9c4221;
    color: white;
    padding: 4px 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
    min-width: 45px;
    text-align: center;
}

.revert-btn:hover {
    background: #9c4221;
}
.edit-btn,
.delete-btn,
.action-btn {
    display: inline-block;      /* 或 inline-flex */
    vertical-align: middle;      /* 关键：强制垂直居中对齐 */
    line-height: 1;             /* 重置行高，避免文字影响对齐 */
    height: 28px;               /* 固定高度，确保一致 */
    box-sizing: border-box;
}
/* 编辑按钮 - 学术风格 */
.edit-btn {
    background: #2c5282;
    border: 1px solid #1e3a5f;
    color: white;
    padding: 4px 4px;          /* 调整 padding，左右增加 */
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
    min-width: 45px;            /* 最小宽度，防止过窄 */
    text-align: center;
}


.edit-btn:hover {
    background: #1e3a5f;
}

.edit-btn:active {
    background: #1a2d4a;
}

/* 自定义滚动条样式 - 学术蓝色风格 */
.modal-content::-webkit-scrollbar,
.suggestions-list::-webkit-scrollbar,
.action-buttons::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-content::-webkit-scrollbar-track,
.suggestions-list::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb,
.suggestions-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.modal-content::-webkit-scrollbar-thumb:active,
.suggestions-list::-webkit-scrollbar-thumb:active {
    background: #718096;
}

/* Firefox 滚动条样式 */
.modal-content,
.suggestions-list {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f8fafc;
}

.modal-content:hover,
.suggestions-list:hover {
    scrollbar-color: #a0aec0 #f8fafc;
}

/* 状态标签样式 - 学术蓝色风格 */
.status-approved {
    color: #276749;
    font-weight: 600;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    padding: 4px 4px;
    border-radius: 4px;
    display: inline-block;
}

.status-rejected {
    color: #c53030;
    font-weight: 600;
    background: #fff5f5;
    border: 1px solid #fc8181;
    padding: 4px 4px;
    border-radius: 4px;
    display: inline-block;
    cursor: help;
    position: relative;
}

/* 驳回理由悬停提示 */
.status-rejected[data-reason]:hover::after {
    content: attr(data-reason);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    padding: 6px 10px;
    background: #2d3748;
    color: white;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    min-width: 120px;
    max-width: 250px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-align: left;
    line-height: 1.5;
}

/* 添加小箭头 */
.status-rejected[data-reason]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -2px;
    border: 5px solid transparent;
    border-top-color: #2d3748;
    z-index: 1001;
}

.status-pending {
    color: #c05621;
    font-weight: 600;
    background: #fffaf0;
    border: 1px solid #fbd38d;
    padding: 4px 4px;
    border-radius: 4px;
}

/* 批量分配控件样式 */
.multiselect-container {
    margin: 0 10px;
    position: relative;
    min-width: 260px;
}

.multiselect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 8px;
    height: 30px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.multiselect-header:hover {
    border-color: #3182ce;
}

.multiselect-header.active {
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.multiselect-selected {
    font-size: 12px;
    color: #2d3748;
    line-height: 30px;
}

.multiselect-selected.empty {
    color: #a0aec0;
}

.multiselect-arrow {
    color: #718096;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.multiselect-header.active .multiselect-arrow {
    transform: rotate(180deg);
}

/* 下拉选项面板 */
.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.multiselect-dropdown.show {
    display: block;
}

.multiselect-option {
    padding: 10px 12px;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #4a5568;
    font-size: 13px;
}

.multiselect-option:last-child {
    border-bottom: none;
}

.multiselect-option:hover {
    background: #f8fafc;
}

.multiselect-option.selected {
    background: #ebf8ff;
    color: #2c5282;
}

.multiselect-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.multiselect-controls {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
}

.multiselect-btn {
    padding: 6px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    background: white;
    color: #2c5282;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.multiselect-btn:hover {
    border-color: #3182ce;
    background: #f8fafc;
}

.batch-assign-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.batch-assign-controls label,
.batch-assign-controls select,
.batch-assign-controls input {
    margin: 0;
}

/* ========== 批量分配表单样式 - 学术蓝色风格 ========== */

/* 区块标题 */
.admin-section h3 {
    color: #2c5282;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* 表单容器 */
#batchAssignByClassForm > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

/* 标签样式 */
#batchAssignByClassForm label {
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    white-space: nowrap;
}

/* 下拉选择框 */
#batchAssignByClassForm select {
    height: 32px;
    padding: 6px 28px 6px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    transition: all 0.2s ease;
    min-width: 130px;
}

/* 选择部员下拉框单独设置宽度 */
#batch_assign_to {
    width: 100px;
}

#batchAssignByClassForm select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

/* 分隔文字"或" */
#batchAssignByClassForm > div > span {
    color: #718096;
    font-size: 13px;
    font-weight: 500;
    padding: 0 2px;
}

/* 自动分配区域 */
#batchAssignByClassForm > div > div:has(#auto_assign_count) {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 数字输入框 */
#auto_assign_count {
    width: 70px;
    height: 32px;
    padding: 6px 8px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
}

#auto_assign_count:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

#auto_assign_count + span {
    font-size: 13px;
    color: #4a5568;
}

/* 提交按钮 */
#batchAssignByClassBtn {
    height: 32px;
    padding: 0 20px;
    margin-left: auto;  /* 靠右对齐 */
}

#batchAssignByClassBtn:disabled {
    background: #cbd5e0;
    border-color: #a0aec0;
    color: #718096;
    cursor: not-allowed;
}

/* 操作按钮容器居中 */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.approve-btn,
.reject-btn {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    height: 28px;
    box-sizing: border-box;
    width: auto;
    min-width: 45px;
    padding: 4px 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
    text-align: center;
}

.approve-btn {
    background: #2c5282;
    border-color: #1e3a5f;
    color: white;
}

.approve-btn:hover {
    background: #1e3a5f;
}

.reject-btn {
    background: #c53030;
    border-color: #9b2c2c;
    color: white;
}

.reject-btn:hover {
    background: #9b2c2c;
}

/* 搜索框样式 - 学术蓝色风格 */
#searchInput {
    border: 1px solid #cbd5e0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: #ffffff;
}

#searchInput:focus {
    outline: none;
    border-color: #3182ce;
    background-color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .batch-assign-controls {
        flex-direction: column;
        align-items: stretch;
    }

    #batchAssignByClassForm > div {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .multiselect-container {
        width: 100%;
    }

    #batchAssignByClassForm > div > span {
        text-align: center;
        padding: 8px 0;
    }

    #batchAssignByClassForm > div > div:has(#auto_assign_count) {
        flex-wrap: wrap;
    }

    #batchAssignByClassBtn {
        width: 100%;
        margin-left: 0;
    }

    .modal-content {
        margin: 5% auto;
        padding: 12px;
    }

    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }
}


/* 隐藏元素 */
.hidden { display: none !important; }

/* ============ 联想输入框样式 - 学术蓝色风格 ============ */
.suggestions-list {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    z-index: 2500;
    display: none;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
    color: #2c5282;
}

.suggestion-item:active {
    background: #edf2f7;
}

/* 为包含联想输入框的 section 设置相对定位 */
#competitionSection > .section:first-child,
#editCompetitionSection > .section:first-child {
    position: relative;
}

/* ============ 编辑悬浮窗响应式优化 ============ */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        margin: 60px auto !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .section {
        margin-bottom: 15px;
    }

    .section label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .section select,
    .section input[type="text"],
    .section input[type="date"],
    .section input[type="file"] {
        width: 100%;
        padding: 10px;
        font-size: 16px; /* 防止iOS缩放 */
    }

    .section input[type="file"] {
        padding: 8px;
    }

    #edit_points {
        margin-bottom: 15px;
    }

    /* 编辑悬浮窗的按钮全宽，但排除登录按钮 */
    .modal-content .submit-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 375px) {
    .modal-content {
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    .section {
        margin-bottom: 12px;
    }

    .section label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .section select,
    .section input[type="text"],
    .section input[type="date"] {
        padding: 8px;
        font-size: 14px;
    }

    .modal-content h3 {
        font-size: 16px;
        padding: 12px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid #E5E6EB;
    }

    .close {
        font-size: 24px;
        top: 12px;
        right: 12px;
    }

    .action-buttons {
        gap: 6px;
    }

    .approve-btn,
    .reject-btn,
    .edit-btn {
        width: 100%;
        padding: 10px 0;
        min-width: unset;
        font-size: 15px;
        height: auto;
    }
}

/* ============ 19. 增强申报表单样式 - 现代化设计 ============ */

/* 模态框增强样式 */
.enhanced-modal {
    max-width: 800px;
    width: 90%;
}

.modal-title-enhanced {
    text-align: center;
    margin-bottom: 30px;
    font-size: 22px;
    color: #1a202c;
}

/* 步骤指示器 */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #2c5282;
    color: white;
    box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.2);
}

.step.completed .step-number {
    background: #3182ce;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.step.active .step-label {
    color: #2c5282;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 8px;
    min-width: 40px;
}

/* 积分悬浮卡片 */
.points-card {
    position: fixed;
    right: 30px;
    top: 150px;
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(44, 82, 130, 0.3);
    text-align: center;
    z-index: 1000;
    min-width: 140px;
}

.points-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.points-value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.points-unit {
    font-size: 14px;
    opacity: 0.8;
}

/* 表单区域 */
.form-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.section-number {
    font-size: 24px;
    font-weight: 700;
    color: #cbd5e0;
    font-family: 'Inter', monospace;
}

.section-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

/* 基本信息折叠区 */
.basic-info-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}

.basic-info-toggle:hover {
    background: #edf2f7;
    border-color: #3182ce;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.basic-info-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* 类别卡片 */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.category-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
    transform: translateY(-2px);
}

.category-card.selected {
    border-color: #2c5282;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

/* 增强表单组 */
.form-group-enhanced {
    margin-bottom: 24px;
}

.form-label-enhanced {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
}

.label-required {
    color: #e53e3e;
    margin-right: 4px;
}

/* 增强输入框和下拉框 */
.form-input-enhanced,
.form-select-enhanced {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.form-input-enhanced:focus,
.form-select-enhanced:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-select-enhanced {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
}

/* 输入框带快捷标签 */
.input-with-tags {
    position: relative;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-tag {
    background: #edf2f7;
    color: #2c5282;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-tag:hover {
    background: #dbeafe;
    border-color: #3182ce;
}

/* 学科竞赛区域 */
.competition-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 2px solid #e2e8f0;
}

/* 获奖等级选择器 */
.award-level-selector {
    display: flex;
    gap: 12px;
}

.award-level-selector .form-select-enhanced {
    flex: 1;
}

/* 文件上传区域 */
.file-upload-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
}

.file-upload-zone:hover {
    border-color: #3182ce;
    background: #edf2f7;
}

.file-upload-zone.dragover {
    border-color: #3182ce;
    background: #dbeafe;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    margin-bottom: 0;
}

.upload-primary {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.upload-secondary {
    font-size: 13px;
    color: #718096;
}

.file-input-hidden {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    margin-top: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: none;
}

.file-preview.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 24px;
}

.file-details {
    text-align: left;
}

.file-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a202c;
}

.file-size {
    font-size: 12px;
    color: #718096;
}

.file-remove {
    background: #fc8181;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.file-remove:hover {
    background: #e53e3e;
}

.existing-file {
    margin-top: 12px;
    padding: 12px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    font-size: 14px;
}

.existing-file a {
    color: #276749;
    font-weight: 600;
}

.file-note {
    color: #276749;
    font-size: 13px;
}

/* 表单操作栏 */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

/* 表单操作按钮变体 */
.action-btn.primary {
    background: #2c5282;
    border-color: #1e3a5f;
}

.action-btn.primary:hover {
    background: #1e3a5f;
    border-color: #1a2d4a;
}

.action-btn.secondary {
    background: white;
    color: #4a5568;
    border-color: #cbd5e0;
}

.action-btn.secondary:hover {
    background: #f8fafc;
    border-color: #3182ce;
    color: #2c5282;
}

/* 提交确认弹窗 */
.confirmation-modal {
    z-index: 3000;
}

.confirm-modal-content {
    max-width: 500px;
}

.confirm-modal-content h3 {
    text-align: center;
    margin-bottom: 24px;
}

.confirm-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #4a5568;
}

.summary-value {
    color: #1a202c;
    font-weight: 500;
}

.summary-item.highlight {
    background: #f0f7ff;
    margin: 12px -20px;
    padding: 16px 20px;
    border-radius: 8px;
    border-bottom: none;
}

.points-highlight {
    font-size: 24px;
    font-weight: 700;
    color: #2c5282;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions .action-btn {
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .points-card {
        position: static;
        margin-bottom: 24px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .card-icon {
        font-size: 28px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-desc {
        font-size: 12px;
    }

    .award-level-selector {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .steps-indicator {
        padding: 0 10px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .step-label {
        font-size: 11px;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .upload-icon {
        font-size: 36px;
    }

    .upload-primary {
        font-size: 14px;
    }
}


/* ========== 单屏表单样式 ========== */

/* 单屏模态框 */
.single-screen-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title-single {
    text-align: center;
    color: #2c5282;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* 单屏模态框内的标签优化 */
.single-screen-modal .category-tabs {
    gap: 3px;
    padding-bottom: 6px;
}

.single-screen-modal .tab-item {
    min-width: 50px;
    padding: 6px 3px;
    font-size: 12px;
    flex: 1;
}

/* 基本信息折叠*/
.basic-info-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 20px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.2s ease;
}

.basic-info-toggle:hover {
    background: #f1f5f9;
}

.toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.basic-info-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* 横向标签*/
.category-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f8fafc;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}

.category-tabs::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 6px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 6px;
}

.tab-item {
    flex: 1;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid transparent;
    font-size: 13px;
}

.tab-item:hover {
    background: #e2e8f0;
}

.tab-item.active {
    background: #2c5282;
    color: white;
    border-color: #2c5282;
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.tab-label {
    font-size: 12px;
    font-weight: 500;
}

/* 动态表单内*/
.dynamic-form-content {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* ========== 基础表单组件 ========== */

/* 表单组 */
.form-group-single {
    margin-bottom: 20px;
    position: relative;
}

/* 表单标签 */
.form-label-single {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}

/* 输入框 / 下拉框 */
.form-input-single,
.form-select-single {
    width: 100%;
    height: 42px;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.form-input-single:focus,
.form-select-single:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* ========== 双列布局 ========== */

.form-row-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-two-columns .form-group-single {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.form-row-two-columns .form-label-single {
    margin-bottom: 6px;
    font-size: 13px;
    height: auto;
    line-height: 1.4; 
}

.form-row-two-columns .form-input-single,
.form-row-two-columns .form-select-single {
    height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

/* ========== 文件上传组件========== */

/* 文件 input 本体 */
input[type="file"].form-input-single {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    border: 2px dashed #cbd5e0;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 33px;
}

/* hover / focus */
input[type="file"].form-input-single:hover {
    border-color: #3182ce;
    background: #edf2f7;
}

input[type="file"].form-input-single:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

input[type="file"].form-input-single::file-selector-button {
    height: 26px;
    width: auto;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #2c5282;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

input[type="file"].form-input-single::-webkit-file-upload-button {
    height: 26px;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #2c5282;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

input[type="file"].form-input-single::file-selector-button:hover,
input[type="file"].form-input-single::-webkit-file-upload-button:hover {
    background: #f8fafc;
    border-color: #2c5282;
}

/* ========== 双列布局下的文件上传（仅尺寸变化，不再碰居中） ========== */

.form-row-two-columns input[type="file"].form-input-single {
    height: 38px;
    padding-left: 12px;
    font-size: 13px;
}

.form-row-two-columns
input[type="file"].form-input-single::file-selector-button,
.form-row-two-columns
input[type="file"].form-input-single::-webkit-file-upload-button {
    height: 24px;
    padding: 0 4px;
    font-size: 12px;
    border-radius: 3px;
}

/* ========== 文件上传包装器（保留） ========== */

.file-upload-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.file-upload-wrapper input[type="file"].form-input-single {
    flex: 1;
    min-width: 200px;
    height: 38px;
}

/* 赛事类型显示（只读） */
.competition-type-display {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    background: #f8fafc;
    color: #4a5568;
    font-weight: 500;
}

.form-input-single:focus,
.form-select-single:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-select-single {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* 获奖等级单选按钮组 */
.award-level-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 8px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.radio-label {
    font-weight: 500;
    color: #4a5568;
    margin-right: 8px;
    font-size: 14px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: #f7fafc;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.radio-group label:hover {
    border-color: #cbd5e0;
    background: #edf2f7;
}

.radio-group label:has(input[type="radio"]:checked) {
    border-color: #3182ce;
    background: #ebf8ff;
}

.radio-group input[type="radio"]:checked + span {
    color: #2c5282;
    font-weight: 500;
}

.radio-group input[type="radio"] {
    accent-color: #2c5282;
}

/* radio-group内的span文本样式，与radio-button-text保持一致 */
.radio-group label span {
    font-size: 12px;
    color: #4a5568;
}

.radio-group input[type="radio"]:checked + span {
    color: #2c5282;
    font-weight: 600;
}

/* 底部固定*/
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.footer-btn {
    padding: 10px 24px;
    height: auto;
    line-height: 1.5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-width: 80px;
    text-align: center;
}

.footer-btn.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.footer-btn.cancel-btn:hover {
    background: #cbd5e0;
}

.footer-btn.submit-btn {
    background: #2c5282;
    color: white;
}

.footer-btn.submit-btn:hover {
    background: #1e3a5f;
}

.footer-points {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.points-label {
    font-size: 14px;
    color: #4a5568;
}

.points-value {
    font-size: 24px;
    font-weight: 600;
    color: #2c5282;
}

.points-unit {
    font-size: 14px;
    color: #4a5568;
}

/* 快捷标签 */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e2e8f0;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-tag:hover {
    background: #cbd5e0;
}

.file-note {
    color: #718096;
    font-size: 12px;
}

/* ========== 响应式设计========== */

/* 手机段(375px) */
@media (max-width: 480px) {
    .category-tabs {
        gap: 2px;
    }

    .tab-item {
        min-width: 45px;
        padding: 6px 2px;
        font-size: 11px;
    }

    .tab-icon {
        font-size: 18px;
    }

    .tab-label {
        font-size: 10px;
    }

    /* 单屏模态框内的标签进一步优化 */
    .single-screen-modal .category-tabs {
        gap: 2px;
        overflow-x: hidden;
    }

    .single-screen-modal .tab-item {
        min-width: 42px;
        padding: 5px 2px;
        font-size: 11px;
    }

    .form-footer {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .footer-btn {
        width: 100%;
    }

    .footer-points {
        order: -1;
    }

    .radio-group {
        gap: 8px;
    }

    .radio-group label {
        font-size: 13px;
    }

    .radio-group label span {
        font-size: 11px;
    }

    .basic-info-toggle {
        font-size: 13px;
        padding: 10px 12px;
    }

    .modal-title-single {
        font-size: 20px;
    }

    .points-value {
        font-size: 20px;
    }
}

/* ========== 赛事名称自动补全建议列表 ========== */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2500;
    display: none;
    margin-top: 4px;
}

.suggestions-list.show {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.focused {
    background-color: #f8fafc;
    background-color: #ebf8ff;
}

.suggestion-item:active {
    background: #edf2f7;
    transform: scale(0.99);
}

.suggestion-name {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.4;
}

.suggestion-type {
    font-size: 12px;
    color: #718096;
    padding: 4px 8px;
    background: #f7fafc;
    border-radius: 6px;
    white-space: nowrap;
}

.suggestion-item.no-result {
    color: #a0aec0;
    font-size: 13px;
    cursor: default;
    justify-content: center;
}

.suggestion-item.no-result:hover {
    background-color: transparent;
}

/* 平板段(768px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .tab-item {
        min-width: 55px;
        padding: 8px 4px;
        font-size: 13px;
    }

    .form-footer {
        padding: 14px 18px;
    }

    /* 单屏模态框内的标签优化 */
    .single-screen-modal .category-tabs {
        gap: 3px;
    }

    .single-screen-modal .tab-item {
        min-width: 50px;
        padding: 7px 3px;
    }
}

/* 电脑端(1200px) */
@media (min-width: 1025px) {
    .category-tabs {
        max-width: 900px;
        margin: 0 auto 24px;
    }

    .dynamic-form-content {
        max-width: 800px;
        margin: 0 auto;
    }

    /* 电脑端模态框内的标签优化 */
    .single-screen-modal .category-tabs {
        gap: 4px;
    }

    .single-screen-modal .tab-item {
        min-width: 55px;
        padding: 8px 5px;
        font-size: 13px;
    }
}

/* ========== 自定义下拉选择器 ========== */

/* 自定义下拉容器 */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    /* 布局与盒模型 */
    position: relative;
    width: 100%;
    height: 38px;
    padding: 0 40px 0 14px;  /* 上下 padding 设为 0 */
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    
    /* 视觉样式 */
    font-size: 14px;
    background: white;
    outline: none;
    
    /* 文字垂直居中 */
    line-height: 38px;  /* 等于 height */
    
    /* 交互与行为 */
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.2s ease;
}
.custom-select:hover {
    border-color: #cbd5e0;
}

.custom-select.active {
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

/* 选中值显示 */
.custom-select-value {
    color: #2d3748;
}

.custom-select-value.placeholder {
    color: #a0aec0;
}

/* 下拉箭头 */
.custom-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #2c5282;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.custom-select.active .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}


/* 选项列表 */
.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.custom-select-options.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 单个选项 */
.custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #2d3748;
    font-size: 14px;
}

.custom-select-option:hover {
    background: #ebf8ff;
    color: #2c5282;
}

.custom-select-option.selected {
    background: #2c5282;
    color: white;
    font-weight: 500;
}

.custom-select-option.selected:hover {
    background: #1e3a5f;
}

/* 班级待审核数量徽章 */
.class-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3px;
    height: 15px;
    padding: 0 5px;
    background: #a0aec0;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    font-weight: 500;
    line-height: 1;
}

.custom-select-option.selected .class-pending-badge {
    background: rgba(255, 255, 255, 0.7);
    color: #2c5282;
}

.custom-select-options::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 0 6px 6px 0;  /* 与容器圆角匹配 */
    margin: 2px;                /* 微间距，避免贴边 */
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
    border: 2px solid #f8fafc;  /* 轨道色边框，形成内边距效果 */
    min-height: 40px;           /* 最小滑块高度，便于拖拽 */
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #3182ce;        /* 悬停变为主蓝色 */
    border-color: #ebf8ff;      /* 悬停时边框变浅蓝 */
}

.custom-select-options::-webkit-scrollbar-thumb:active {
    background: #2c5282;        /* 点击变为深学术蓝 */
}

/* 滚动条角落（水平+垂直滚动条交汇处） */
.custom-select-options::-webkit-scrollbar-corner {
    background: #f8fafc;
}

/* Firefox 滚动条 */
.custom-select-options {
    scrollbar-width: thin;           /* 细滚动条 */
    scrollbar-color: #cbd5e0 #f8fafc; /* 滑块 | 轨道 */
}

/* Firefox 悬停效果（通过容器悬停模拟） */
.custom-select-options:hover {
    scrollbar-color: #3182ce #f8fafc;
}

/* 暗色模式适配（如系统支持） */
@media (prefers-color-scheme: dark) {
    .custom-select-options::-webkit-scrollbar-track {
        background: #2d3748;
    }
    
    .custom-select-options::-webkit-scrollbar-thumb {
        background: #4a5568;
        border-color: #2d3748;
    }
    
    .custom-select-options::-webkit-scrollbar-thumb:hover {
        background: #63b3ed;
    }
}

/* 气泡提示 */
.calendar-tooltip {
    position: fixed;
    background: rgba(26, 32, 44, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    white-space: nowrap;
    pointer-events: none;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.calendar-tooltip.calendar-tooltip-show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 日历面板 */
.custom-date-calendar {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.custom-date-calendar.calendar-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 日历头部 */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
    text-align: center;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: #4a5568;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.calendar-nav-btn:hover {
    background: #e2e8f0;
    color: #2c5282;
}

/* 星期标题 */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    padding: 8px 0;
}

/* 日期网格 */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #2d3748;
}

.calendar-day:hover:not(.calendar-day-disabled):not(.calendar-day-empty) {
    background: #ebf8ff;
    color: #2c5282;
}

/* 今天 */
.calendar-day-today {
    border: 2px solid #3182ce;
    font-weight: 600;
}

/* 选中状态 */
.calendar-day-selected {
    background: #2c5282 \!important;
    color: white \!important;
    font-weight: 600;
}

/* 禁用状态（未来日期） */
.calendar-day-disabled {
    color: #cbd5e0 \!important;
    cursor: not-allowed \!important;
    background: #f7fafc \!important;
    opacity: 0.5;
}


/* 空白日期 */
.calendar-day-empty {
    cursor: default;
}

/* 筛选表单中的日历面板 - 紧凑样式 */
.filter-form ~ .custom-date-calendar,
.filter-form .custom-date-calendar {
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    min-width: 200px;
}

.filter-form ~ .custom-date-calendar .calendar-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.filter-form ~ .custom-date-calendar .calendar-title {
    font-size: 13px;
}

.filter-form ~ .custom-date-calendar .calendar-nav-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.filter-form ~ .custom-date-calendar .calendar-weekday {
    font-size: 10px;
    padding: 4px 0;
}

.filter-form ~ .custom-date-calendar .calendar-day {
    font-size: 11px;
}

/* 学习积分专用字段样式 */
.learning-points-section {
    animation: fadeIn 0.3s ease;
}

.form-hint {
    display: block;
    margin: 4px 2px;
    font-size: 12px;
    color: #718096;
    font-style: italic;
}



.existing-file-info {
    margin-top: 6px;
    padding: 0;
    display: none;
    font-size: 12px;
    color: #718096;
    animation: fadeIn 0.3s ease;
}

/* 当JS设置display时使用flex布局 */
.existing-file-info[style*="display: flex"],
.existing-file-info[style*="display: block"] {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

/* 文字说明 */
.file-text {
    color: #718096;
}

/* 文件链接样式 */
#existingFileLink,
.file-link {
    color: #3182ce;
    text-decoration: underline;
}

#existingFileLink:hover,
.file-link:hover {
    color: #2c5282;
}

/* 提示文字样式 */
.file-note {
    color: #9ca3af;
    font-size: 11px;
    font-style: italic;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 480px) {
    /* 两列布局在移动端改为单列 */
    .form-row-two-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .existing-file-info {
        font-size: 11px;
        flex-wrap: wrap;
    }

    .file-note {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    /* 移动端：flex容器改为纵向布局 */
    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

/* 输入框类型为number时的样式优化 */
input[type="number"].form-input-single {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}

input[type="number"].form-input-single::-webkit-outer-spin-button,
input[type="number"].form-input-single::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 单选按钮组样式（替换下拉选择框） */
.radio-button-group {
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.radio-button-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

.radio-button-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-button-option {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.radio-button-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.radio-button-option input[type="radio"] {
    margin: 0 4px 0 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.radio-button-option input[type="radio"]:checked + .radio-button-text {
    color: #2c5282;
    font-weight: 600;
}

.radio-button-option:has(input[type="radio"]:checked) {
    background: #ebf8ff;
    border-color: #3182ce;
}

.radio-button-text {
    font-size: 12px;
    color: #4a5568;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .radio-button-options {
        gap: 8px;
    }

    .radio-button-option {
        padding: 4px 8px;
        font-size: 13px;
    }

    .radio-button-text {
        font-size: 11px;
    }
}

/* ========== 分页组件样式 - 学术蓝色风格 ========== */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px;
    margin-top: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    white-space: nowrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #2c5282;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #f8fafc;
    border-color: #3182ce;
    color: #2c5282;
}

.pagination-btn.active,
.pagination-btn.current {
    background: #2c5282;
    border-color: #1e3a5f;
    color: white;
    cursor: default;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #718096;
    font-size: 14px;
    -webkit-user-select: none;
    user-select: none;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-nav-btn {
    padding: 0 16px;
    font-size: 13px;
}

/* 页码跳转输入框样式 */
.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.pagination-jump label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    white-space: nowrap;
}

.pagination-jump input[type="number"] {
    width: 60px;
    height: 36px;
    padding: 6px 8px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
    color: #2d3748;
}

.pagination-jump input[type="number"]:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.pagination-jump input[type="number"]::-webkit-inner-spin-button,
.pagination-jump input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.7;
}

.pagination-jump button {
    height: 36px;
    padding: 0 16px;
    background: #2c5282;
    border: 1px solid #1e3a5f;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-jump button:hover {
    background: #1e3a5f;
    border-color: #1a2d4a;
}

.pagination-jump button:active {
    background: #1e3a5f;
    transform: translateY(1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .pagination-info {
        font-size: 13px;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }

    .pagination-nav-btn {
        padding: 0 12px;
    }

    .pagination-jump {
        width: 100%;
        justify-content: center;
    }

    .pagination-jump input[type="number"] {
        width: 50px;
        height: 32px;
        font-size: 13px;
    }

    .pagination-jump button {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }
}

/* ========== 学生选择列表样式 ========== */
.students-select-list {
    background: white;
    margin-top: 8px;
}

.students-select-list .multiselect-option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.students-select-list .multiselect-option:hover {
    background-color: #f8f9fa;
}

.students-select-list .multiselect-option:last-child {
    border-bottom: none;
}

.students-select-list input[type="checkbox"] {
    margin-right: 8px;
}

/* ========== 搜索筛选表单样式 - 学术蓝色风格 ========== */
.filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    flex-wrap: nowrap; /* 桌面端强制单行 */
}

/* 当空间不足时，允许换行 */
@media (max-width: 1200px) {
    .filter-form {
        flex-wrap: wrap;
    }
}

/* 只影响筛选表单内的原生控件 - 使用后代选择器 */
.filter-form > select,
.filter-form > input[type="text"],
.filter-form > div > input[type="text"],
.filter-form > .export-section {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    color: #2d3748;
    transition: all 0.2s ease;
    outline: none;
    line-height: 30px;
}

/* 中等屏幕尺寸优化（平板设备） */
@media (max-width: 1024px) and (min-width: 769px) {
    .filter-form > .export-section {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .filter-form > .export-section .custom-date-picker {
        min-width: 100px;
    }
}
.filter-form > input[type="text"],
.filter-form > div > input[type="text"],
.filter-form > .export-section {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    color: #2d3748;
    transition: all 0.2s ease;
    outline: none;
    line-height: 30px;
}

.filter-form > select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px;
    padding-left: 8px;
    flex: 0 1 auto;
    min-width: 90px;
    max-width: 120px;
}

.filter-form > select:hover {
    border-color: #cbd5e0;
}

.filter-form > input[type="text"],
.filter-form > div > input[type="text"] {
    flex: 1 1 180px;
    min-width: 150px;
}

.filter-form > select:focus,
.filter-form > input[type="text"]:focus,
.filter-form > div > input[type="text"]:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.filter-form .submit-btn {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    flex: 0 0 auto;
}

/* 筛选表单内的自定义下拉选择器 - 只影响直接子元素 */
.filter-form > .custom-select-wrapper {
    position: relative;
    flex-shrink: 1 !important;
}

/* 使用 > 子选择器确保只影响筛选表单内的 custom-select */
.filter-form > .custom-select-wrapper > .custom-select {
    height: 30px !important;
    padding: 0 24px 0 8px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.filter-form > .custom-select-wrapper > .custom-select .custom-select-value {
    line-height: normal;
    font-size: 12px;
    text-align: left;
    padding-left: 0;
    flex: 1;
}

/* 只影响筛选表单内的箭头位置 */
.filter-form > .custom-select-wrapper > .custom-select .custom-select-arrow {
    right: 8px;
    border-width: 0 4px 5px 4px;
}

/* 各个筛选控件的固定宽度 */
.filter-form > .filter-status-wrapper {
    width: 100px !important;
}

.filter-form > .filter-module-wrapper {
    width: 120px !important;
}

.filter-form > .filter-project-wrapper {
    width: 120px !important;
}

.filter-form > .filter-sort-wrapper {
    width: 130px !important;
}

.filter-form .custom-select-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-form .custom-select-options {
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    width: fit-content;
    min-width: 170%;
}

/* 筛选表单内的下拉选项 - 缩小尺寸 */
.filter-form .custom-select-option {
    padding: 6px 8px !important;
    font-size: 12px !important;
}

/* 筛选表单内的日期选择器 */
.filter-form .custom-date-picker {
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 4px;
    min-width: 110px;
    width: 110px;
    flex: 0 0 auto;
}

/* 导出部分 - 紧凑排列，与其他控件统一 */
.filter-form > .export-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.filter-form > .export-section .custom-date-picker {
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    min-width: 110px;
    flex: 0 0 auto;
}

.filter-form > .export-section .submit-btn {
    height: 30px;
    padding: 0 16px;
    font-size: 12px;
    border-radius: 4px;
    flex: 0 0 auto;
}

/* admin-section 内的自定义下拉选择器 - 紧凑样式，与筛选表单统一 */
.admin-section .custom-select-wrapper {
    width: 120px !important;
    flex-shrink: 0 !important;
}

.admin-section .custom-select-wrapper > .custom-select {
    height: 30px !important;
    padding: 0 24px 0 8px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.admin-section .custom-select-wrapper > .custom-select .custom-select-value {
    line-height: 30px;
    font-size: 12px;
}

.admin-section .custom-select-wrapper > .custom-select .custom-select-arrow {
    right: 8px;
    border-width: 0 4px 5px 4px;
}

.admin-section .custom-select-option {
    padding: 6px 8px !important;
    font-size: 12px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .filter-form {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        overflow: hidden; /* 防止内容溢出 */
    }

    .filter-form > .custom-select-wrapper,
    .filter-form > select {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
        max-width: none;
        box-sizing: border-box;
    }

    .filter-form > input[type="text"],
    .filter-form > div > input[type="text"] {
        flex: 1 1 100%;
        min-width: unset;
        order: -1; /* 搜索框置顶 */
        box-sizing: border-box;
    }

    .filter-form .submit-btn {
        width: 100%;
        flex: 1 1 calc(50% - 4px);
        box-sizing: border-box;
    }

    .filter-form > .export-section {
        flex-wrap: wrap !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        align-items: stretch !important;
    }

    .filter-form .custom-date-picker {
        flex: unset !important;  /* 移除flex，强制占据整行 */
        width: 100% !important;
        min-width: unset !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .filter-form > .export-section .custom-date-picker {
        width: 100% !important;
        flex: unset !important;  /* 移除flex */
        min-width: unset !important;
        display: block !important;
    }

    .filter-form > .export-section .submit-btn {
        width: 100% !important;
        flex: unset !important;  /* 移除flex */
        display: block !important;
    }

    /* 确保custom-select-wrapper在移动端正确显示 */
    .filter-form > .custom-select-wrapper {
        box-sizing: border-box;
    }

    .filter-form > .custom-select-wrapper > .custom-select {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 确保所有子元素不会超出边界 */
    .filter-form > * {
        box-sizing: border-box;
        max-width: 100%;
    }

    /* 移动端下拉选项优化 */
    .filter-form .custom-select-options {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: calc(100% - 24px) !important;
        min-width: unset !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        z-index: 99999 !important;
    }

    /* 班级筛选器在移动端的全宽显示 */
    .filter-form > .filter-class-wrapper {
        flex: 1 1 100%;
        min-width: 100%;
    }

    /* 移动端徽章优化 */
    .class-pending-badge {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }

    /* 移动端导出部分的额外优化 */
    .filter-form > .export-section > * {
        width: 100% !important;
        box-sizing: border-box !important;
        flex: none !important;  /* 强制不使用flex布局，每个元素占据单独一行 */
        display: block !important;
        margin: 0 !important;
    }

    .filter-form > .export-section label {
        display: none; /* 隐藏屏幕阅读器标签，节省空间 */
    }

    /* 确保export-section内部的按钮和输入框样式正确 */
    .filter-form > .export-section input[type="text"],
    .filter-form > .export-section button {
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* 超小屏幕额外优化（小于480px） */
    @media (max-width: 480px) {
        .filter-form > .export-section {
            gap: 6px !important;
            padding: 4px 0 !important;
        }

        .filter-form > .export-section input[type="text"],
        .filter-form > .export-section button {
            font-size: 13px !important;
            padding: 8px !important;
        }
    }
}

/* ============ 学生卡片列表样式 ============ */
.students-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.student-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.student-card.has-pending {
    border-left: 3px solid #ed8936;
}

.student-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.student-card-header:hover {
    background: #f7fafc;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.student-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.student-name {
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    letter-spacing: 0.3px;
}

.student-meta {
    font-size: 13px;
    color: #718096;
    display: flex;
    gap: 10px;
}

.student-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.student-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.student-badge.pending {
    background: #fffaf0;
    color: #dd6b20;
    border: 1px solid #feebc8;
}

.student-badge.reviewed {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

.student-expand-icon {
    font-size: 10px;
    color: #a0aec0;
    transition: transform 0.2s ease;
}

.student-card.expanded .student-expand-icon {
    transform: rotate(180deg);
}

.student-records {
    display: none;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
}

.student-card.expanded .student-records {
    display: block;
}

.student-records-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.student-records-table thead {
    background: #edf2f7;
}

.student-records-table th {
    padding: 10px 12px;
    text-align: center !important;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.student-records-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
    text-align: center !important;
    vertical-align: middle !important;
}

.student-records-table td:last-child {
    text-align: center !important;
}

.student-records-table td:last-child .action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.student-records-table tr:last-child td {
    border-bottom: none;
}

.student-records-table tr:hover {
    background: #fff;
}

.status-pending {
    color: #dd6b20;
    font-weight: 500;
}

.status-approved {
    color: #38a169;
    font-weight: 500;
}

.status-rejected {
    color: #e53e3e;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-size: 14px;
}

/* 全屏加载遮罩层 */
.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(2px) !important;
}

.loading-overlay.active {
    display: flex !important;
}

/* 旋转加载动画 */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #9ca3af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载文本 */
.loading-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.loading-overlay.active .loading-text {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

/* 移动端适配学生卡片 */
@media (max-width: 768px) {
    .student-card-header {
        padding: 10px 12px;
    }

    .student-info {
        gap: 0;
    }

    .student-name {
        font-size: 14px;
    }

    .student-meta {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .student-badges {
        gap: 4px;
    }

    .student-badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    .student-records-table {
        font-size: 12px;
    }

    .student-records-table th,
    .student-records-table td {
        padding: 8px 8px;
    }
}


.student-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.student-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.student-meta {
    font-size: 13px;
    color: #718096;
    display: flex;
    gap: 12px;
}

.student-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.student-badge.pending {
    background: #fffaf0;
    color: #dd6b20;
}

.student-badge.reviewed {
    background: #f0fff4;
    color: #38a169;
}

.student-expand-icon {
    font-size: 12px;
    color: #a0aec0;
    transition: transform 0.2s ease;
}

.student-card.expanded .student-expand-icon {
    transform: rotate(180deg);
}

.student-records {
    display: none;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
}

.student-card.expanded .student-records {
    display: block;
}

.student-records-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.student-records-table thead {
    background: #edf2f7;
}

.student-records-table th {
    padding: 12px 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.student-records-table td {
    padding: 12px 8px;
    font-size: 13px;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
}

.student-records-table tr:last-child td {
    border-bottom: none;
}

.student-records-table tr:hover {
    background: #fff;
}

.status-pending {
    color: #dd6b20;
    font-weight: 500;
}

.status-approved {
    color: #38a169;
    font-weight: 500;
}

.status-rejected {
    color: #e53e3e;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-size: 14px;
}

/* 全屏加载遮罩层 */
.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(2px) !important;
}

.loading-overlay.active {
    display: flex !important;
}

/* 旋转加载动画 */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #9ca3af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载文本 */
.loading-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.loading-overlay.active .loading-text {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

/* 移动端适配学生卡片 */
@media (max-width: 768px) {
    .student-card-header {
        padding: 12px;
    }

    .student-info {
        gap: 12px;
    }

    .student-name {
        font-size: 14px;
    }

    .student-meta {
        font-size: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .student-records-table {
        font-size: 12px;
    }

    .student-records-table th,
    .student-records-table td {
        padding: 8px 4px;
    }
}


/* ========== 学生社区样式 ========== */
.community-container {
    padding: 20px;
}

.community-content {
    max-width: 800px;
    margin: 0 auto;
}

.community-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.community-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid;
}

.community-section-title.blue {
    border-left-color: #409EFF;
}

.community-section-title.green {
    border-left-color: #67C23A;
}

.community-section-title.orange {
    border-left-color: #E6A23C;
}

.community-announcement-text {
    color: #606266;
    line-height: 1.8;
}

.community-announcement-text p {
    margin-bottom: 12px;
}

.community-announcement-text p:last-child {
    margin-bottom: 0;
}

.community-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.community-quick-link {
    display: block;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.3s ease;
}

.community-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.community-quick-link.blue {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-color: rgba(64, 158, 255, 0.2);
}

.community-quick-link.green {
    background: linear-gradient(135deg, #f5fff0 0%, #ffffff 100%);
    border-color: rgba(103, 194, 58, 0.2);
}

.community-quick-link.orange {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-color: rgba(230, 162, 60, 0.2);
}

.community-quick-link-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.community-quick-link.blue .community-quick-link-title {
    color: #409EFF;
}

.community-quick-link.green .community-quick-link-title {
    color: #67C23A;
}

.community-quick-link.orange .community-quick-link-title {
    color: #E6A23C;
}

.community-quick-link-desc {
    font-size: 12px;
    color: #909399;
}

.community-features-list {
    color: #606266;
    line-height: 2;
}

.community-features-list p {
    margin-bottom: 8px;
}

.community-features-list p:last-child {
    margin-bottom: 0;
}

.community-features-list strong {
    color: #303133;
}

.community-development-notice {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    border: 1px solid rgba(64, 158, 255, 0.1);
    text-align: center;
}

.community-development-notice-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.community-development-notice-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #409EFF;
}

.community-development-notice-text {
    font-size: 14px;
    color: #909399;
}

@media (max-width: 768px) {
    .community-container {
        padding: 16px;
    }

    .community-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .community-quick-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   社区论坛页面样式（完整功能版）
   ============================================ */

/* 页面标题和操作栏 */
.dashboard-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.community-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.community-actions .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #dcdfe6;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.community-actions .action-btn:hover {
    border-color: #409EFF;
    color: #409EFF;
    transform: translateY(-2px);
}

.community-actions .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #F56C6C;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* 内容区布局 */
.community-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* 主内容区 */
.community-main {
    min-width: 0;
}

/* 分类导航 */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.category-tabs .tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 20px;
    text-decoration: none;
    color: #606266;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-tabs .tab-item:hover {
    border-color: #2c5282;
    color: #2c5282;
}

.category-tabs .tab-item.active {
    background: #2c5282;
    border-color: #2c5282;
    color: white;
}

/* 帖子列表 */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 帖子卡片 */
.post-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 帖子状态徽章 */
.post-status-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-pinned {
    background: #ecf5ff;
    color: #409EFF;
}

.status-badge.status-featured {
    background: #fff0f0;
    color: #F56C6C;
}

/* 帖子标题 */
.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-title a {
    color: #303133;
    text-decoration: none;
}

.post-title a:hover {
    color: #409EFF;
}

/* 帖子元信息 */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* author-avatar 和 anonymous-avatar 已移除，统一使用 user-avatar */

.post-time {
    font-size: 12px;
    color: #909399;
}

/* 帖子互动栏 */
.post-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.action-btn-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #909399;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn-item:hover {
    background: #f0f7ff;
    color: #409EFF;
}

/* 侧边栏 */
.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* 热门标签 */
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f0f7ff;
    color: #409EFF;
    border-radius: 16px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hot-tag:hover {
    background: #409EFF;
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .community-content-wrapper {
        grid-template-columns: 1fr;
    }

    .community-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .post-card {
        padding: 16px;
    }

    .post-title {
        font-size: 16px;
    }
}

/* ============================================
   帖子详情页样式
   ============================================ */

/* 返回导航 */
.back-nav {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #606266;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #409EFF;
}

.back-icon {
    font-size: 20px;
    font-weight: 600;
}

/* 帖子详情布局 */
.post-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* 帖子详情卡片 */
.post-detail-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #303133;
    margin: 16px 0;
    line-height: 1.4;
}

.post-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-time-info {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #909399;
}

.post-detail-content {
    padding: 20px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #303133;
    min-height: 100px;
}

.post-detail-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* 回复表单卡片 */
.reply-form-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.reply-form-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 16px;
}

.reply-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.reply-form .form-control:focus {
    outline: none;
    border-color: #409EFF;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

/* 回复区域 */
.replies-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.replies-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.replies-count {
    font-size: 14px;
    color: #909399;
    font-weight: normal;
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 回复卡片 */
.reply-card {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    position: relative;
}

.best-reply-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b5a00;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reply-time {
    font-size: 12px;
    color: #909399;
}

.reply-content {
    padding: 12px;
    background: white;
    border-radius: 6px;
    line-height: 1.6;
    color: #303133;
    margin-bottom: 12px;
}

.reply-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .post-detail-card {
        padding: 20px;
    }

    .post-detail-title {
        font-size: 20px;
    }

    .post-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .replies-section {
        padding: 16px;
    }

    .reply-card {
        padding: 12px;
    }

    .best-reply-badge {
        position: static;
        margin-bottom: 8px;
    }
}

/* ============================================
   移动端按钮优化
   ============================================ */

@media (max-width: 768px) {
    /* 社区操作按钮居中优化 */
    .community-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* 帖子互动按钮优化 */
    .post-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .post-actions .action-btn-item {
        padding: 6px 8px;
        font-size: 12px;
        flex: 1;
        min-width: 60px;
        justify-content: center;
    }

    /* 帖子详情互动按钮优化 */
    .post-detail-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .post-detail-actions .action-btn-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 回复操作按钮优化 */
    .reply-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .reply-actions .action-btn-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* 表单操作按钮优化 */
    .reply-form .form-actions {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .reply-form .form-actions button {
        flex: 1;
        min-width: 100px;
    }

    .post-form .form-actions {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .post-form .form-actions button {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕进一步优化 */
    .post-actions .action-btn-item {
        font-size: 11px;
        padding: 4px 6px;
        min-width: 50px;
    }

    .post-detail-actions .action-btn-item {
        font-size: 12px;
        padding: 6px 10px;
    }

    .action-btn-item .action-text {
        display: none;
    }

    .action-btn-item .action-icon {
        font-size: 16px;
    }
}

/* ============================================
   社区论坛页面移动端优化
   ============================================ */

@media (max-width: 768px) {
    /* 页面标题和操作栏优化 */
    .dashboard-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .community-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* 分类导航优化 */
    .category-tabs {
        margin-bottom: 16px;
        padding-bottom: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .category-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .category-tabs .tab-item {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* 帖子列表优化 */
    .posts-list {
        gap: 12px;
    }

    .post-card {
        padding: 16px;
        border-radius: 10px;
    }

    /* 帖子标题优化 */
    .post-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* 帖子摘要优化 */
    .post-excerpt {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 帖子元信息优化 */
    .post-meta {
        padding: 10px 0;
        font-size: 12px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .author-name {
        font-size: 13px;
    }

    .post-category {
        font-size: 11px;
        padding: 3px 6px;
        margin-left: 6px;
    }

    .post-time {
        font-size: 11px;
    }

    /* 帖子标签优化 */
    .post-tags {
        gap: 6px;
        margin-bottom: 10px;
    }

    .post-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* 帖子互动栏优化 */
    .post-views {
        display: none; /* 移动端隐藏浏览数 */
    }

    /* 空状态优化 */
    .empty-state {
        padding: 40px 20px;
    }

    .empty-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .empty-message {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* 分页优化 */
    .pagination-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-nav-btn,
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .pagination-pages {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    /* 模态框优化 */
    #postModal .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 16px;
    }

    .modal-header {
        margin-bottom: 16px;
    }

    .modal-title {
        font-size: 16px;
    }

    .post-form {
        gap: 12px;
    }

    .post-form .form-control {
        font-size: 14px;
        padding: 10px;
    }

    .post-form textarea.form-control {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕优化 */
    .dashboard-title {
        font-size: 18px;
    }

    /* 帖子卡片进一步优化 */
    .post-card {
        padding: 12px;
    }

    .post-title {
        font-size: 15px;
    }

    .post-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2; /* 只显示2行 */
    }

    /* 作者信息优化 */
    .author-info {
        gap: 6px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .author-name {
        font-size: 12px;
    }

    /* 帖子元信息 */
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 0;
    }

    .post-category {
        margin-left: 0;
        margin-top: 4px;
    }

    /* 帖子标签 */
    .post-tags {
        gap: 4px;
    }

    .post-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* 帖子互动按钮 */
    .post-actions {
        gap: 2px;
    }

    .post-actions .action-btn-item {
        padding: 4px 6px;
        font-size: 11px;
        flex: 1;
        min-width: 40px;
    }

    /* 分页进一步优化 */
    .pagination-nav-btn,
    .pagination-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .pagination-ellipsis {
        display: none; /* 超小屏幕隐藏省略号 */
    }

    /* 模态框进一步优化 */
    #postModal .modal-content {
        width: 98%;
        padding: 12px;
    }

    .post-form .form-group label {
        font-size: 13px;
    }

    .post-form .form-control {
        font-size: 13px;
        padding: 8px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .post-form .form-actions {
        gap: 8px;
    }

    .post-form .form-actions button {
        font-size: 13px;
        padding: 10px;
        min-width: 80px;
    }
}

/* 触摸优化 - 所有移动设备 */
@media (hover: none) and (pointer: coarse) {
    /* 移除悬停效果 */
    .category-tabs .tab-item:hover {
        transform: none;
    }

    .post-card:hover {
        transform: none;
    }

    .action-btn-item:hover {
        background: transparent;
        transform: none;
    }

    .hot-tag:hover {
        transform: none;
    }

    /* 添加触摸反馈 */
    .category-tabs .tab-item:active {
        background: #2c5282;
        color: white;
    }

    .action-btn-item:active {
        background: #e6f7ff;
        transform: scale(0.95);
    }

    .post-tag:active {
        background: #409EFF;
        color: white;
    }
}

/* 安全区域适配 - iPhone X及以上 */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .main-content-wrapper {
            padding-left: max(0px, env(safe-area-inset-left));
            padding-right: max(0px, env(safe-area-inset-right));
        }

        #postModal .modal-content {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
            padding-bottom: max(16px, env(safe-area-inset-bottom));
        }
    }
}

/* ============================================
   帖子详情页移动端优化
   ============================================ */

@media (max-width: 768px) {
    /* 返回导航优化 */
    .back-nav {
        margin-bottom: 16px;
    }

    .back-link {
        font-size: 14px;
    }

    /* 帖子详情卡片优化 */
    .post-detail-wrapper {
        max-width: 100%;
    }

    .post-detail-card {
        padding: 16px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    /* 帖子状态徽章优化 */
    .post-status-badges {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
    }

    .status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* 帖子标题优化 */
    .post-detail-title {
        font-size: 18px;
        line-height: 1.4;
        margin: 10px 0;
    }

    /* 帖子元信息优化 */
    .post-detail-meta {
        padding: 10px 0;
        margin-bottom: 12px;
    }

    .author-details {
        gap: 2px;
    }

    .author-name {
        font-size: 13px;
    }

    .post-category {
        font-size: 11px;
        padding: 3px 6px;
        margin-top: 4px;
    }

    .post-time-info {
        font-size: 11px;
        gap: 6px;
    }

    /* 帖子标签优化 */
    .post-detail-content {
        padding: 16px 0;
        font-size: 14px;
        line-height: 1.7;
    }

    /* 帖子互动按钮优化 */
    .post-detail-actions {
        padding-top: 12px;
        gap: 4px;
    }

    /* 回复表单优化 */
    .reply-form-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .reply-form-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .reply-form .form-control {
        font-size: 14px;
        padding: 10px;
    }

    .reply-form textarea.form-control {
        min-height: 100px;
    }

    /* 回复区域优化 */
    .replies-section {
        padding: 16px;
        border-radius: 10px;
    }

    .replies-title {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    /* 回复卡片优化 */
    .replies-list {
        gap: 12px;
    }

    .reply-card {
        padding: 12px;
        border-radius: 8px;
    }

    .best-reply-badge {
        font-size: 11px;
        padding: 3px 8px;
        margin-bottom: 8px;
    }

    .reply-meta {
        margin-bottom: 10px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .author-name {
        font-size: 13px;
    }

    .reply-time {
        font-size: 11px;
    }

    .reply-content {
        padding: 10px;
        font-size: 13px;
        line-height: 1.6;
    }

    .reply-actions {
        gap: 2px;
        margin-top: 8px;
    }

    .reply-actions .action-btn-item {
        padding: 6px 8px;
        font-size: 11px;
    }

    /* 空状态优化 */
    .empty-state {
        padding: 30px 16px;
    }

    .empty-icon {
        font-size: 36px;
    }

    .empty-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕帖子详情页优化 */
    .post-detail-title {
        font-size: 16px;
    }

    .post-detail-content {
        font-size: 13px;
        line-height: 1.6;
    }

    /* 回复内容进一步优化 */
    .reply-content {
        padding: 8px;
        font-size: 12px;
    }

    .reply-actions .action-btn-item {
        padding: 4px 6px;
        font-size: 10px;
    }

    .reply-actions .action-text {
        font-size: 10px;
    }

    /* 隐藏部分文字以节省空间 */
    .post-views {
        display: none;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .post-detail-card {
        padding: 12px;
    }

    .post-detail-title {
        font-size: 16px;
        margin: 8px 0;
    }

    .post-detail-content {
        padding: 12px 0;
        font-size: 13px;
    }

    .reply-form textarea.form-control {
        min-height: 80px;
    }
}

/* ==================== 社区底部导航栏 ==================== */
.community-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none; /* 默认隐藏，在移动端显示 */
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    padding: 4px 0;
    position: relative;
}

.bottom-nav-item:hover {
    color: #1890ff;
}

.bottom-nav-item.active {
    color: #1890ff;
}

.bottom-nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* 移动端显示底部导航栏 */
@media (max-width: 1024px) {
    .community-bottom-nav {
        display: flex;
    }

    /* 隐藏顶部分类标签，但保留模态框中的标签 */
    .community-container > .community-main > .category-tabs {
        display: none;
    }

    /* 调整页面底部内边距，为底部导航栏留出空间 */
    .community-container,
    .categories-page-wrapper {
        padding-bottom: 70px;
    }

    .main-content-wrapper {
        padding-bottom: 70px;
    }
}

/* PC 端保持顶部分类标签显示 */
@media (min-width: 1025px) {
    .community-bottom-nav {
        display: none;
    }

    .community-container > .community-main > .category-tabs {
        display: flex;
    }
}

/* ==================== 分类页面 ==================== */
.categories-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
    transform: translateY(-2px);
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.category-count {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.category-arrow {
    font-size: 24px;
    color: #ddd;
    margin-left: 12px;
}

.category-card:hover .category-arrow {
    color: #1890ff;
}

/* 分类页面移动端优化 */
@media (max-width: 768px) {
    .categories-page-wrapper {
        padding: 16px;
        padding-bottom: 80px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 16px;
    }

    .category-name {
        font-size: 15px;
    }

    .category-count {
        font-size: 12px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .category-card:active {
        background: #f5f5f5;
        transform: scale(0.98);
    }

    .bottom-nav-item:active {
        background: rgba(24, 144, 255, 0.1);
    }
}

/* ==================== 个人资料页面 ==================== */
.profile-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

.profile-header-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar-section {
    flex-shrink: 0;
}

/* 个人资料页面的头像使用大尺寸 */
.profile-avatar-section .user-avatar {
    width: 100px;
    height: 100px;
    font-size: 42px;
    border-radius: 20px;
}

.profile-avatar-section .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.profile-info-section {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.profile-id {
    font-size: 14px;
    color: #999;
    margin: 0 0 16px 0;
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #999;
}

.follow-btn {
    min-width: 120px;
}

.profile-posts-section {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

/* 个人资料页面移动端优化 */
@media (max-width: 768px) {
    .profile-page-wrapper {
        padding: 16px;
        padding-bottom: 80px;
    }

    .profile-header-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-section .user-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
        border-radius: 16px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-stats {
        gap: 24px;
        justify-content: center;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }

    .profile-posts-section {
        padding: 16px;
    }

    .section-title {
        font-size: 16px;
    }

    .follow-btn {
        width: 100%;
    }
}

/* ==================== 私信消息页面 ==================== */
.messages-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

.messages-page-wrapper .page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.conversations-list {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.conversation-card {
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    cursor: pointer;
    position: relative;
}

.conversation-card:last-child {
    border-bottom: none;
}

.conversation-card:hover {
    background: #f8f9fa;
}

.conversation-avatar {
    flex-shrink: 0;
    margin-right: 12px;
}

.conversation-avatar .user-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.conversation-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.conversation-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 12px;
}

.conversation-preview {
    font-size: 13px;
    color: #666;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-badge {
    flex-shrink: 0;
    background: #ff4d4f;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    margin-left: 12px;
}

/* 私信页面移动端优化 */
@media (max-width: 768px) {
    .messages-page-wrapper {
        padding: 16px;
        padding-bottom: 80px;
    }

    .messages-page-wrapper .page-title {
        font-size: 20px;
    }

    .conversation-card {
        padding: 12px;
    }

    .conversation-avatar .user-avatar,
    .conversation-avatar img {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .conversation-name {
        font-size: 14px;
    }

    .conversation-time {
        font-size: 11px;
    }

    .conversation-preview {
        font-size: 12px;
    }

    .conversation-badge {
        font-size: 11px;
        padding: 2px 6px;
        min-width: 18px;
    }
}

/* ==================== 通知消息页面 ==================== */
.notifications-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.notifications-header .page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.clear-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.notifications-list {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-icon {
    flex-shrink: 0;
    font-size: 24px;
    margin-right: 12px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.notification-user .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.notification-user img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.notification-user span {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.notification-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

.notification-link {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #2c5282;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    margin-left: 12px;
    transition: background 0.3s ease;
}

.notification-link:hover {
    background: #1a365d;
}

/* 通知页面移动端优化 */
@media (max-width: 768px) {
    .notifications-page-wrapper {
        padding: 16px;
        padding-bottom: 80px;
    }

    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .notifications-header .page-title {
        font-size: 20px;
    }

    .clear-btn {
        width: 100%;
    }

    .notification-item {
        padding: 12px;
        flex-direction: column;
    }

    .notification-icon {
        margin-bottom: 8px;
    }

    .notification-link {
        margin-left: 0;
        margin-top: 8px;
        align-self: flex-end;
    }
}

/* ==================== 聊天页面 ==================== */
.chat-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
}

.back-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: #2c5282;
    color: #2c5282;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user-info .user-avatar,
.chat-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.chat-user-info img {
    object-fit: cover;
}

.chat-user-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.empty-chat .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-chat .empty-message {
    font-size: 14px;
}

.chat-message {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
}

.chat-message.received {
    justify-content: flex-start;
}

.chat-message.sent {
    justify-content: flex-end;
}

.message-avatar {
    flex-shrink: 0;
    margin-right: 12px;
}

.message-avatar .user-avatar,
.message-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.message-avatar img {
    object-fit: cover;
}

.message-content {
    max-width: 70%;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 14px;
}

.chat-message.received .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chat-message.sent .message-bubble {
    background: #2c5282;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.chat-message.sent .message-time {
    text-align: right;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid #e8e8e8;
    background: white;
}

.chat-form {
    display: flex;
    gap: 12px;
}

.input-group {
    flex: 1;
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #2c5282;
}

.send-btn {
    padding: 10px 24px;
    background: #2c5282;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.send-btn:hover {
    background: #1a365d;
}

/* 聊天页面移动端优化 */
@media (max-width: 768px) {
    .chat-page-wrapper {
        height: calc(100vh - 140px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .chat-header {
        padding: 12px;
    }

    .back-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .chat-user-info .user-avatar,
    .chat-user-info img {
        width: 32px;
        height: 32px;
    }

    .chat-user-info h3 {
        font-size: 14px;
    }

    .chat-messages {
        padding: 12px;
    }

    .message-avatar .user-avatar,
    .message-avatar img {
        width: 32px;
        height: 32px;
    }

    .message-content {
        max-width: 80%;
    }

    .message-bubble {
        font-size: 13px;
        padding: 8px 12px;
    }

    .chat-input-area {
        padding: 12px;
    }

    .input-group {
        flex-direction: column;
        gap: 8px;
    }

    .send-btn {
        width: 100%;
        padding: 10px;
    }
}

/* ==================== 我的帖子/收藏页面 ==================== */
.my-posts-page-wrapper,
.my-collections-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .my-posts-page-wrapper,
    .my-collections-page-wrapper {
        padding: 16px;
        padding-bottom: 80px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-header .submit-btn {
        width: 100%;
    }
}

