body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 表格样式 */
.table th {
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* 可编辑行的悬停效果 */
.table-hover tbody tr.reminder-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

/* 双击提示样式 */
.dblclick-hint {
    float: right;
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
    margin-right: 10px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

/* 优化表格单元格样式 */
.table th,
.table td {
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    padding: 0.75rem;
}

/* 操作列固定宽度 */
.table th:last-child,
.table td:last-child {
    width: 40px;
    min-width: 40px;
}

/* 内容列自动宽度 */
.table th:nth-child(2),
.table td:nth-child(2) {
    width: auto;
}

/* 标签列适配内容 */
.table th:nth-child(3),
.table td:nth-child(3) {
    width: 1%;
    white-space: nowrap;
}

/* 内容列样式优化 */
.table td:nth-child(2) {
    word-wrap: break-word;
    word-break: break-word;
    max-width: 400px;
    line-height: 1.5;
    padding-top: 0.75rem;
}

/* 紧凑显示Markdown内容 */
.table td:nth-child(2) .markdown-content {
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* 表格中段落间距优化 */
.table td:nth-child(2) .markdown-content p {
    margin-bottom: 0.25rem;
}

.table td:nth-child(2) .markdown-content p:last-child {
    margin-bottom: 0;
}

.table td:nth-child(2) .markdown-content > *:first-child {
    margin-top: 0;
}

.table td:nth-child(2) .markdown-content > *:last-child {
    margin-bottom: 0;
}

/* 代码块在表格中的优化显示 */
.table td:nth-child(2) .markdown-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 代码块复制按钮样式 */
.code-block-container {
    position: relative;
}

.code-block-copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: transparent;
    color: #6c757d;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.code-block-container:hover .code-block-copy-btn {
    opacity: 1;
}

.code-block-copy-btn:hover {
    background-color: rgba(108, 117, 125, 0.1);
}

.code-block-copy-btn.copied {
    color: #28a745;
}

/* 标签样式 */
.badge {
    font-size: 0.75em;
}

/* 分页样式 */
.pagination .page-link {
    color: #0d6efd;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 移动端分页优化 - 防止垂直换行 */
@media (max-width: 768px) {
    .pagination {
        font-size: 0.875rem;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .pagination .page-item .page-link {
        padding: 0.375rem 0.5rem;
        white-space: nowrap;
        min-width: 44px;
        text-align: center;
    }
    
    /* 确保"上一页"和"下一页"文本不换行 */
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 60px;
    }
}

@media (max-width: 576px) {
    .pagination {
        font-size: 0.8rem;
        gap: 2px;
    }
    
    .pagination .page-item .page-link {
        padding: 0.3rem 0.4rem;
        min-width: 36px;
        border-radius: 4px;
    }
    
    /* 小屏幕上缩短"上一页"和"下一页"文本 */
    .pagination .page-item:first-child .page-link {
        min-width: 50px;
    }
    .pagination .page-item:last-child .page-link {
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .pagination {
        font-size: 0.75rem;
        gap: 1px;
    }
    
    .pagination .page-item .page-link {
        padding: 0.25rem 0.35rem;
        min-width: 32px;
        border-radius: 3px;
    }
    
    /* 超小屏幕上进一步优化 */
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 45px;
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .pagination {
        font-size: 0.7rem;
        gap: 1px;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .pagination .page-item .page-link {
        padding: 0.2rem 0.3rem;
        min-width: 28px;
        border-radius: 2px;
    }
    
    /* 极小屏幕上的分页优化 */
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 40px;
        font-size: 0.65rem;
    }
    
    /* 极小屏幕上使用简化的分页文本 */
    .pagination .page-item:first-child .page-link::after {
        content: "‹";
        display: inline-block;
    }
    .pagination .page-item:last-child .page-link::after {
        content: "›";
        display: inline-block;
    }
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        text-indent: -9999px;
        position: relative;
        min-width: 32px;
    }
    .pagination .page-item:first-child .page-link::after,
    .pagination .page-item:last-child .page-link::after {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
        font-size: 1rem;
        font-weight: bold;
    }
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 模态框样式 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 0.375rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-nav .nav-link {
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
}

/* 标题样式 */
h2 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* 空状态显示 */
.text-center.py-5 {
    padding: 3rem !important;
}

/* Markdown内容样式 */
.markdown-content {
    line-height: 1.6;
}

.markdown-content h1 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.4rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content h4 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content h5 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content h6 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content p {
    margin-bottom: 0.5rem;
}

.markdown-content ul, .markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.25rem;
}

.markdown-content blockquote {
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #dee2e6;
    background-color: #f8f9fa;
}

.markdown-content code {
    padding: 0.2em 0.4em;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    font-family: monospace;
    word-wrap: break-word;
}

.markdown-content pre {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.markdown-content pre code {
    padding: 0;
    background-color: transparent;
    word-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 移动端Markdown优化 */
@media (max-width: 576px) {
    .markdown-content h1 {
        font-size: 1.3rem;
    }
    
    .markdown-content h2 {
        font-size: 1.2rem;
    }
    
    .markdown-content h3 {
        font-size: 1.1rem;
    }
    
    .markdown-content h4 {
        font-size: 1rem;
    }
    
    .markdown-content h5 {
        font-size: 0.95rem;
    }
    
    .markdown-content h6 {
        font-size: 0.9rem;
    }
    
    .markdown-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .markdown-content ul, .markdown-content ol {
        padding-left: 1.5rem;
    }
    
    .markdown-content pre {
        padding: 0.75rem;
        margin-right: 0.75rem;
        font-size: 0.85rem;
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    /* 移动端代码块分段显示优化 */
    .markdown-content pre.code-segmented {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        margin-right: 0.75rem;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    .markdown-content pre.code-segmented code {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* 代码块段落间距 */
    .markdown-content pre.code-segmented + pre.code-segmented {
        margin-top: 0.5rem;
    }
}

/* 标签建议 */
.tag-suggestion {
    cursor: pointer;
}

.tag-suggestion:hover {
    background-color: #f8f9fa;
}

/* 紧凑标签样式 */
.compact-tag {
    padding: 0.15em 0.3em;
    font-size: 0.75rem;
    min-height: 24px;
    margin: 0.05rem 0.1rem 0.05rem 0;
    line-height: 1.2;
}

/* 移动端紧凑标签优化 */
@media (max-width: 576px) {
    .compact-tag {
        padding: 0.1em 0.25em;
        font-size: 0.7rem;
        min-height: 22px;
        margin: 0.025rem 0.075rem 0.025rem 0;
        line-height: 1.1;
    }
}

@media (max-width: 400px) {
    .compact-tag {
        padding: 0.075em 0.2em;
        font-size: 0.65rem;
        min-height: 18px;
        margin: 0.01rem 0.05rem 0.01rem 0;
        line-height: 1.0;
    }
}

/* 标签列表容器优化 */
.tag-list {
    max-height: 150px;
    overflow-y: auto;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

/* 移动端标签列表优化 */
@media (max-width: 768px) {
    .tag-list {
        max-height: 120px;
        padding: 0.125rem;
    }
}

@media (max-width: 576px) {
    .tag-list {
        max-height: 100px;
        padding: 0.1rem;
    }
}

/* 编辑模态框中的紧凑标签列表 */
#editReminderModal .compact-tags {
    max-height: 90px;
    padding: 0.1rem;
    margin-top: 0.125rem;
}

@media (max-width: 576px) {
    #editReminderModal .compact-tags {
        max-height: 70px;
        padding: 0.075rem;
        margin-top: 0.1rem;
    }
}

@media (max-width: 400px) {
    #editReminderModal .compact-tags {
        max-height: 60px;
        padding: 0.05rem;
        margin-top: 0.075rem;
    }
}

/* 表格列宽度设置 - 优化移动端显示 */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 15px;
    min-width: 15px;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: auto;
    min-width: 200px;
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 20px;
    min-width: 20px;
}

.table th:nth-child(4),
.table td:nth-child(4) {
    width: 20px;
    min-width: 20px;
}

/* 移动端按钮与card-body间距优化 - 只针对添加提醒按钮 */
@media (max-width: 768px) {
    .text-end .btn-primary {
        margin-bottom: 1.5rem;
    }
    
    .text-end .btn-primary + .card {
        margin-top: 0.5rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
        overflow-x: auto;
    }
    
    .table {
        min-width: 500px;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .table td:nth-child(2) {
        max-width: none;
    }
    
    /* 移动端Markdown内容优化 */
    .table td:nth-child(2) .markdown-content {
        max-width: none;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    /* 移动端代码块优化 */
    .table td:nth-child(2) .markdown-content pre {
        max-width: 100%;
        margin-right: 0.75rem;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
        word-break: break-word;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    /* 移动端代码块分段显示优化 */
    .table td:nth-child(2) .markdown-content pre.code-segmented {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        font-size: 0.8rem;
        padding: 0.6rem;
        margin-right: 0.75rem;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    .table td:nth-child(2) .markdown-content pre.code-segmented code {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* 移动端表格内容强制换行优化 */
    .table td:nth-child(2) .markdown-content *,
    .table td:nth-child(2) .markdown-content p,
    .table td:nth-child(2) .markdown-content li {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
    }
}

@media (max-width: 576px) {
    .table {
        min-width: auto;
    }
    
    /* 小屏幕下的代码块右侧边距优化 */
    .markdown-content pre {
        margin-right: 0.5rem;
        padding: 0.6rem;
        font-size: 0.8rem;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    .markdown-content pre.code-segmented {
        margin-right: 0.5rem;
        padding: 0.55rem;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    /* 表格中的代码块优化 */
    .table td:nth-child(2) .markdown-content pre {
        margin-right: 0.5rem;
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .table td:nth-child(2) .markdown-content pre.code-segmented {
        margin-right: 0.5rem;
        padding: 0.5rem;
        font-size: 0.7rem;
    }
}

/* 移动端卡片布局 - 替代表格显示 */
@media (max-width: 768px) {
    .table-card-view {
        display: block;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .table-card-view thead {
        display: none;
    }
    
    .table-card-view tbody {
        display: block;
        padding: 0;
    }
    
    .table-card-view tr {
        display: block;
        margin-bottom: 1.25rem;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
        padding: 1.25rem;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    .table-card-view tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
        border-color: #d1ecf1;
    }
    
    .table-card-view tr::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #007bff, #17a2b8);
        border-radius: 12px 12px 0 0;
    }
    
    .table-card-view td {
        display: block;
        border: none;
        padding: 0;
        text-align: left;
        width: 100% !important;
        max-width: 100%;
    }
    
    /* 优化序号显示为卡片右上角徽章 */
    .table-card-view td[data-label="#"] {
        position: absolute;
        top: 16px;
        right: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.4rem 0.8rem;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        border: none;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
        min-width: 40px;
        height: 28px;
        font-size: 0.85rem;
        line-height: 1;
        z-index: 2;
        margin: 0;
    }
    
    .table-card-view td[data-label="#"]:before {
        content: "#";
        margin-right: 0.2rem;
        font-weight: normal;
        color: #6c757d;
    }
    
    .table-card-view .time-info {
        font-size: 0.85rem;
        color: #6c757d;
        margin-top: 0.75rem;
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: rgba(248, 249, 250, 0.8);
        border-radius: 8px;
        border: 1px solid #e9ecef;
        backdrop-filter: blur(10px);
    }
    
    .table-card-view .time-info > div {
        margin-bottom: 0.25rem;
    }
    
    .table-card-view .time-info > div:last-child {
        margin-bottom: 0;
    }
    
    .table-card-view .markdown-content {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding-right: 60px; /* 为右上角徽章留出空间 */
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 1rem;
        line-height: 1.4;
        color: #333;
    }
    
    /* 移动端段落间距优化 */
    .table-card-view .markdown-content p {
        margin-bottom: 0.25rem;
    }
    
    .table-card-view .markdown-content p:last-child {
        margin-bottom: 0;
    }
    
    .table-card-view .btn-group {
        display: flex;
        justify-content: flex-end;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .table-card-view .btn-group .btn {
        flex: 0 0 auto;
        margin-left: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border: 2px solid transparent;
        border-radius: 20px;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .table-card-view .btn-group .btn-outline-primary {
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
        border-color: #007bff;
        color: #007bff;
    }
    
    .table-card-view .btn-group .btn-outline-danger {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(176, 42, 55, 0.1) 100%);
        border-color: #dc3545;
        color: #dc3545;
    }
    
    .table-card-view .btn-group .btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    
    .table-card-view .btn-group .btn-outline-primary:hover {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        border-color: #0056b3;
    }
    
    .table-card-view .btn-group .btn-outline-danger:hover {
        background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
        color: white;
        border-color: #b02a37;
    }
    
    .table-card-view .btn-group .btn:active {
        transform: translateY(0);
    }
    
    .table-responsive {
        overflow-x: hidden;
    }
    
    /* 确保代码块在卡片视图中正确显示 */
    .table-card-view pre {
        overflow-x: auto;
        max-width: 100%;
        white-space: pre-wrap;
        word-wrap: break-word;
        word-break: break-word;
        box-sizing: border-box;
    }
    
    .table-card-view .markdown-content pre {
        overflow-x: auto;
        max-width: calc(100% - 80px); /* 考虑右上角徽章的空间 */
        margin-right: 1rem;
        white-space: pre-wrap;
        word-wrap: break-word;
        word-break: break-word;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0.75rem 1rem 0.75rem 0;
        padding: 0.85rem;
        box-sizing: border-box;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    /* 移动端卡片视图中的代码块优化 */
    .table-card-view .markdown-content pre.code-segmented {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        font-size: 0.8rem;
        padding: 0.7rem;
        margin-right: 1rem;
        max-width: calc(100% - 80px);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .table-card-view .markdown-content pre.code-segmented code {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* 确保图片在卡片视图中响应式显示 */
    .table-card-view img {
        max-width: 100%;
        height: auto;
    }
    
    /* 优化标签显示 */
    .table-card-view .badge {
        display: inline-block;
        margin-top: 0.25rem;
    }
    
    /* 优化信息完整性和视觉直观性 */
    .table-card-view .content-summary {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
        margin-bottom: 1rem;
    }

    .table-card-view .mobile-info-card {
        background: rgba(248, 249, 250, 0.6);
        border-radius: 12px;
        padding: 1rem;
        margin: 1rem 0;
        border: 1px solid rgba(233, 236, 239, 0.8);
    }

    .table-card-view .info-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .table-card-view .info-item {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        color: #6c757d;
    }

    .table-card-view .info-item i {
        margin-right: 0.5rem;
        color: #007bff;
        width: 16px;
        text-align: center;
    }

    .table-card-view .info-item strong {
        color: #333;
        margin-right: 0.25rem;
    }

    /* 状态指示器 */
    .table-card-view .status-indicator {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .table-card-view .status-pending {
        background: rgba(255, 193, 7, 0.1);
        color: #856404;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .table-card-view .status-sent {
        background: rgba(40, 167, 69, 0.1);
        color: #155724;
        border: 1px solid rgba(40, 167, 69, 0.3);
    }

    /* 快速操作按钮 */
    .table-card-view .action-bar {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(233, 236, 239, 0.5);
        margin: 1rem -1.25rem -1.25rem;
        padding: 1rem;
        border-radius: 0 0 12px 12px;
    }

    /* 在移动端卡片视图中，将标签和操作列显示在同一行 */
    .table-card-view .card-footer-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        gap: 0.5rem;
    }
    
    .table-card-view .tags-section {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
        overflow: hidden;
    }
    
    .table-card-view .tags-section .badge {
        flex-shrink: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
        font-weight: 500;
        border-radius: 15px;
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
        color: white;
        border: none;
        box-shadow: 0 1px 4px rgba(23, 162, 184, 0.2);
        max-width: 120px;
        margin: 0;
    }
    
    .table-card-view .tags-section .badge:empty {
        display: none;
    }
    
    .table-card-view .mobile-actions-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    /* 移动端标签和操作按钮平行显示在一行 */
    .table-card-view .mobile-actions-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
    }

    .table-card-view .mobile-actions-container .tags-section {
        flex: 1;
        min-width: 0;
        margin-right: 0.5rem;
    }

    .table-card-view .mobile-actions-container .actions-section {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex-shrink: 0;
    }

    .table-card-view .mobile-actions-container .badge {
        max-width: 100px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .table-card-view .mobile-actions-container .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 28px;
        height: 28px;
        border-radius: 6px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: auto;
    }
    
    .table-card-view .mobile-actions-row .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 8px;
        margin: 0;
        min-height: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .table-card-view .action-btn-view {
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
        color: white;
        border-color: #138496;
    }

    .table-card-view .action-btn-edit {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        border-color: #0056b3;
    }

    .table-card-view .action-btn-delete {
        background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
        color: white;
        border-color: #b02a37;
    }
    
    /* 添加平板电脑尺寸的适配 */
    @media (max-width: 992px) and (min-width: 769px) {
        .table-card-view tr {
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .table-card-view .markdown-content {
            padding-right: 70px;
        }
    }
    
    /* 小屏平板和大手机的进一步优化 */
    @media (max-width: 480px) {
        .table-card-view tr {
            padding: 1rem;
            margin-bottom: 1rem;
        }
        
        .table-card-view .markdown-content {
            padding-right: 50px;
            font-size: 0.95rem;
        }
        
        /* 小屏幕代码块优化 */
        .table-card-view .markdown-content pre {
            max-width: calc(100% - 60px);
            margin-right: 0.75rem;
            padding: 0.7rem;
            font-size: 0.8rem;
            border-radius: 6px;
        }
        
        .table-card-view .markdown-content pre.code-segmented {
            max-width: calc(100% - 60px);
            margin-right: 0.75rem;
            padding: 0.6rem;
            font-size: 0.75rem;
        }
        
        .table-card-view td[data-label="#"] {
            top: 12px;
            right: 12px;
            min-width: 35px;
            height: 26px;
            font-size: 0.8rem;
            padding: 0.3rem 0.6rem;
        }
        
        .table-card-view .card-footer-mobile {
            padding: 0.5rem 0.75rem;
        }
        
        .table-card-view .btn-group .btn {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
        }
        
        /* 移动端标签操作行优化 */
        .table-card-view .mobile-actions-container {
            gap: 0.25rem;
            justify-content: space-between;
        }
        
        .table-card-view .mobile-actions-container .tags-section {
            margin-right: 0.25rem;
        }
        
        .table-card-view .mobile-actions-container .badge {
            max-width: 80px;
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }
        
        .table-card-view .mobile-actions-container .btn {
            padding: 0.2rem 0.4rem;
            font-size: 0.7rem;
            min-width: 24px;
            height: 24px;
            border-radius: 4px;
        }
    }
    
    /* 状态指示器样式 */
    .table-card-view tr[data-reminder*='"reminder_sent_at":null']::after {
        content: '待提醒';
        position: absolute;
        top: 16px;
        left: 16px;
        background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
        z-index: 1;
    }
    
    .table-card-view tr[data-reminder*='"reminder_sent_at"']:not([data-reminder*='"reminder_sent_at":null'])::after {
        content: '已提醒';
        position: absolute;
        top: 16px;
        left: 16px;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
        z-index: 1;
    }
    
    /* 增强无标签状态的视觉表现 */
    .table-card-view .tags-section .text-muted {
        font-size: 0.8rem;
        font-style: italic;
        color: #adb5bd;
        padding: 0.25rem 0;
    }
    
    /* 优化时间信息的可读性 */
    .table-card-view .time-info::before {
        content: '⏰ 时间信息';
        font-size: 0.75rem;
        font-weight: 600;
        color: #007bff;
        margin-bottom: 0.25rem;
        display: block;
    }
    
    /* 增强卡片的视觉层次感 */
    .table-card-view tr:nth-child(odd) {
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    }
    
    .table-card-view tr:nth-child(even) {
        background: linear-gradient(135deg, #fafbfc 0%, #f1f3f5 100%);
    }

    /* 移动端操作流程优化 */
    @media (max-width: 768px) {
        /* 触摸优化的按钮 */
        .table-card-view .btn {
            min-height: 44px;
            touch-action: manipulation;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }

        /* 滑动操作提示 */
        .table-card-view .swipe-hint {
            display: block;
            text-align: center;
            font-size: 0.8rem;
            color: #999;
            margin-top: 0.5rem;
            font-style: italic;
        }

        /* 快速操作菜单 */
        .table-card-view .quick-menu {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            background: #007bff;
            color: white;
            border-radius: 50px;
            padding: 1rem;
            box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
            transform: scale(0);
            transition: transform 0.3s ease;
        }

        .table-card-view.quick-menu-active .quick-menu {
            transform: scale(1);
        }

        /* 卡片动作优化 */
        .table-card-view tr {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .table-card-view tr:active {
            transform: translateY(1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* 上下文操作按钮 */
        .context-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
            justify-content: space-between;
        }

        .context-actions .btn {
            flex: 1;
            max-width: none;
            font-size: 0.85rem;
            padding: 0.75rem 1rem;
            border-radius: 8px;
        }

        /* 触摸友好的间距 */
        .table-card-view td[data-label="#"] {
            top: 12px;
            right: 12px;
            z-index: 10;
        }

        /* 响应式文本调整 */
        .table-card-view .markdown-content {
            font-size: 1rem;
            line-height: 1.6;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* 优化空状态处理 */
        .table-card-view .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: #6c757d;
        }

        .table-card-view .empty-state i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
    }
    
    /* 隐藏桌面端的标签、操作和提醒时间列内容，在卡片视图中重新组织 */
    .table-card-view td[data-label="标签"],
    .table-card-view td[data-label="操作"],
    .table-card-view td[data-label="提醒时间"] {
        display: none;
    }
}

/* 确保表格列正确显示 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 已发送提醒列表样式优化 */
.table tr td:nth-child(2) {
    max-width: 400px;
}

/* 通用内容列样式优化 */
.table-responsive .markdown-content {
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.table-responsive .markdown-content * {
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* 图片在表格中的响应式处理 */
.table-responsive .markdown-content img {
    max-width: 100%;
    height: auto;
}

/* 时间信息样式 */
.time-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
    line-height: 1.4;
}

.time-info > div {
    margin-bottom: 2px;
}

.time-info > div:last-child {
    margin-bottom: 0;
}

/* 标签按钮字体大小优化 - 匹配标签文字大小 */
#addReminderModal .tag-item,
#editReminderModal .tag-item {
    font-size: 0.875rem !important;
    line-height: 1.5;
    padding: 0.25rem 0.5rem;
}

/* 移动端导航栏优化 */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-text {
        font-size: 0.8rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* 移动端导航项优化 - 简洁美观 */
    .navbar .d-flex .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-height: 36px; /* 触摸友好的最小高度 */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0.1rem;
        border-radius: 0.2rem;
        min-width: 45px; /* 确保有足够的点击区域 */
        text-align: center;
        transition: all 0.15s ease;
        position: relative;
    }
    
    /* 底部指示器 */
    .navbar .d-flex .nav-link.fw-bold::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 25%;
        width: 50%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
    }
    
    .navbar .d-flex .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar .d-flex .nav-link:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .navbar .d-flex .navbar-text {
        font-size: 0.65rem;
        padding: 0.3rem 0.2rem;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        margin: 0 0.025rem;
        min-width: 25px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 40px;
    }
    
    /* 移动端登出按钮优化 */
    .navbar .d-flex .btn-outline-light {
        padding: 0.3rem 0.2rem;
        font-size: 0.7rem;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0.025rem;
        min-width: 24px;
        border-width: 1px;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }
    
    .navbar .d-flex .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar .d-flex .btn-outline-light:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    /* 触摸优化 */
    .navbar .d-flex .nav-link,
    .navbar .d-flex .navbar-text,
    .navbar .d-flex .btn-outline-light {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }
}

/* 优化Markdown表格列宽自适应 */
.markdown-content table {
    table-layout: auto;
    width: 100%;
}

.markdown-content table th,
.markdown-content table td {
    width: auto;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 确保表格列根据内容自动分配宽度 */
.markdown-content .table-responsive > .table {
    table-layout: auto;
}

.markdown-content .table-responsive > .table > thead > tr > th,
.markdown-content .table-responsive > .table > tbody > tr > td {
    width: auto !important;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 标签按钮字体大小优化 - 匹配标签文字大小 */
#addReminderModal .tag-item,
#editReminderModal .tag-item {
    font-size: 0.875rem !important;
    line-height: 1.5;
    padding: 0.25rem 0.5rem;
}

/* 移动端导航栏优化 */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-text {
        font-size: 0.8rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* 移动端导航项优化 - 确保在所有设备上的一致性 */
    .navbar .d-flex .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-height: 36px; /* 触摸友好的最小高度 */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0.1rem;
        border-radius: 0.25rem;
        min-width: 45px; /* 确保有足够的点击区域 */
        text-align: center;
        transition: all 0.15s ease;
        position: relative;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background-color: transparent;
        border: none;
        color: white;
        text-decoration: none;
        box-sizing: border-box;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }
    
    /* 底部指示器 */
    .navbar .d-flex .nav-link.fw-bold::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 25%;
        width: 50%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
    }
    
    .navbar .d-flex .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar .d-flex .nav-link:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .navbar .d-flex .navbar-text {
        font-size: 0.85rem;
        padding: 0.4rem 0.3rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        margin: 0 0.1rem;
        min-width: 60px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: white;
        box-sizing: border-box;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }
    
    /* 移动端登出按钮优化 */
    .navbar .d-flex .btn-outline-light {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0.1rem;
        min-width: 40px;
        border-width: 1px;
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
        background-color: transparent;
        box-sizing: border-box;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }
    
    .navbar .d-flex .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.7);
    }
    
    .navbar .d-flex .btn-outline-light:active {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: white;
    }
    
    /* 触摸优化 */
    .navbar .d-flex .nav-link,
    .navbar .d-flex .navbar-text,
    .navbar .d-flex .btn-outline-light {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
        user-select: none;
    }
}

/* 修改Markdown表格为平均分配各列宽度 - 简化版本 */
.markdown-content table.table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* 所有表格单元格平均分配宽度 */
.markdown-content table.table th,
.markdown-content table.table td {
    width: auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* 使用nth-child选择器为所有列设置相等宽度 */
.markdown-content .table th:nth-child(1),
.markdown-content .table td:nth-child(1) {
    width: 25% !important;
}

.markdown-content .table th:nth-child(2),
.markdown-content .table td:nth-child(2) {
    width: 25% !important;
}

.markdown-content .table th:nth-child(3),
.markdown-content .table td:nth-child(3) {
    width: 25% !important;
}

.markdown-content .table th:nth-child(4),
.markdown-content .table td:nth-child(4) {
    width: 25% !important;
}

.markdown-content .table th:nth-child(5),
.markdown-content .table td:nth-child(5) {
    width: 20% !important;
}

.markdown-content .table th:nth-child(6),
.markdown-content .table td:nth-child(6) {
    width: 16.66% !important;
}

/* 确保表格响应式容器不影响列宽 */
.markdown-content .table-responsive > .table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* 确保即使有其他选择器也能覆盖 */
.markdown-content .table th:nth-child(1),
.markdown-content .table td:nth-child(1),
.markdown-content .table th:nth-child(2),
.markdown-content .table td:nth-child(2),
.markdown-content .table th:nth-child(3),
.markdown-content .table td:nth-child(3),
.markdown-content .table th:nth-child(4),
.markdown-content .table td:nth-child(4) {
    width: 25% !important;
    max-width: 25% !important;
}

/* 确保表格响应式容器不影响列宽 */
.markdown-content .table-responsive > .table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* 使用属性选择器增加特异性 */
.markdown-content table[class*="table"] th,
.markdown-content table[class*="table"] td {
    width: 25% !important;
}

/* 星期几显示样式 */
.weekday {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: normal;
    display: block;
    margin-top: 2px;
}