/* 表格模板插件前端样式 */

/* 多表格标签页样式 */
.ttp-multi-tables-container {
    margin-bottom: 20px;
}

.ttp-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ttp-tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.ttp-tabs-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ttp-tabs-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

/* 使用CSS变量支持动态颜色 */
.ttp-multi-tables-container {
    --tabs-active-color: #ff9800; /* 默认橙色，会被JavaScript动态覆盖 */
}

.ttp-tab-btn {
    flex: 0 0 auto;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.ttp-tab-btn:hover {
    background: var(--tabs-hover-bg, rgba(255, 152, 0, 0.1));
    color: var(--tabs-active-color);
}

.ttp-tab-btn.active {
    background: var(--tabs-active-color);
    color: #fff;
    border-bottom-color: var(--tabs-active-color);
    font-weight: 600;
}

.ttp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tabs-active-color);
}

.ttp-tab-content {
    display: none;
}

.ttp-tab-content.active {
    display: block;
}

/* 移动端标签页样式 */
@media (max-width: 768px) {
    .ttp-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .ttp-tab-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: auto;
    }
}

/* 文字超长显示方法 */

/* 方法1: 省略号截断（默认） */
.ttp-text-ellipsis .ttp-data-table td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 200px !important;
}

/* 方法2: 自动换行 */
.ttp-text-wrap .ttp-data-table td {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 300px !important;
    line-height: 1.4 !important;
}

/* 方法3: 工具提示显示完整内容 */
.ttp-text-tooltip .ttp-data-table td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 150px !important;
    cursor: pointer !important;
    position: relative !important;
}

.ttp-text-tooltip .ttp-data-table td:hover::after {
    content: attr(data-full-text) !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #333 !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    white-space: normal !important;
    max-width: 300px !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    display: block !important;
}

/* 方法4: 展开/收起功能 */
.ttp-text-expand .ttp-data-table td {
    white-space: normal !important;
    word-wrap: break-word !important;
    max-height: 60px !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
}

.ttp-text-expand .ttp-data-table td.expanded {
    max-height: none !important;
}

.ttp-text-expand .ttp-data-table td .expand-toggle {
    color: #007bff;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}

.ttp-text-expand .ttp-data-table td .expand-toggle:hover {
    text-decoration: underline;
}

/* 方法5: 固定高度滚动 */
.ttp-text-scroll .ttp-data-table td {
    max-height: 80px !important;
    overflow-y: auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 8px !important;
}

/* 方法6: 多行省略 */
.ttp-text-multiline .ttp-data-table td {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 250px !important;
    line-height: 1.4 !important;
}

/* 方法7: 字符限制截断 */
.ttp-text-limit .ttp-data-table td {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 180px !important;
}

/* 方法8: 响应式文字处理 */
@media (max-width: 768px) {
    .ttp-text-responsive .ttp-data-table td {
        font-size: 12px !important;
        padding: 6px 4px !important;
        max-width: 120px !important;
    }
    
    .ttp-text-responsive .ttp-text-tooltip .ttp-data-table td:hover::after {
        max-width: 250px;
        font-size: 11px;
    }
}

/* 表格容器 */
.ttp-table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    padding: 20px;
}

/* 样式主题支持 */
/* 经典表格样式（默认） */
.ttp-style-classic .ttp-table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ttp-style-classic .ttp-data-table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.ttp-style-classic .ttp-data-table td {
    border: 1px solid #dee2e6;
    color: #333;
}

/* 网格卡片样式 */
.ttp-style-grid .ttp-table-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.ttp-style-grid .ttp-table-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ttp-style-grid .ttp-data-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ttp-style-grid .ttp-data-table th {
    background: #4a90e2;
    color: white;
    border: none;
}

.ttp-style-grid .ttp-data-table td {
    border: 1px solid #f0f0f0;
    padding: 12px 8px;
}

/* 列表样式 */
.ttp-style-list .ttp-table-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.ttp-style-list .ttp-table-wrapper {
    display: block;
}

.ttp-style-list .ttp-data-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ttp-style-list .ttp-data-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #007bff;
    color: #495057;
}

.ttp-style-list .ttp-data-table td {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 8px;
}


/* Compact（紧凑风格） */
.ttp-style-compact .ttp-table-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 10px 0;
    padding: 15px;
}

.ttp-style-compact .ttp-data-table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 6px;
    font-size: 0.9rem;
}

.ttp-style-compact .ttp-data-table td {
    border: 1px solid #dee2e6;
    padding: 6px 6px;
    font-size: 0.85rem;
}

.ttp-style-compact .ttp-table-controls {
    margin-bottom: 15px;
    padding: 10px;
}

/* Bootstrap（Bootstrap风格） */
.ttp-style-bootstrap .ttp-table-container {
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    margin: 1rem 0;
    padding: 1.25rem;
}

.ttp-style-bootstrap .ttp-data-table {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.ttp-style-bootstrap .ttp-data-table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    font-weight: 600;
    padding: 0.75rem;
}

.ttp-style-bootstrap .ttp-data-table td {
    border: 1px solid #dee2e6;
    color: #212529;
    padding: 0.75rem;
    vertical-align: middle;
}

.ttp-style-bootstrap .ttp-data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 商务表格样式 - 每行数据都是独立卡片 */
.ttp-style-business .ttp-table-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
}

.ttp-style-business .ttp-table-wrapper {
    display: block;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-width: max-content !important;
    width: 100% !important;
}

.ttp-style-business .ttp-data-table {
    width: 100%;
    min-width: max-content;
    border-collapse: collapse;
    border: none !important;
    background: transparent;
    table-layout: auto;
}

/* 表头样式 - 固定在顶部 */
.ttp-style-business .ttp-data-table thead {
    display: table-header-group;
    border: none !important;
}

.ttp-style-business .ttp-data-table thead tr {
    display: table-row;
    border: none !important;
}

.ttp-style-business .ttp-data-table thead th {
    background-color: #e3f2fd;
    color: #1976d2;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 12px 15px;
    font-weight: 600;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 隐藏原始表格的tbody */
.ttp-style-business .ttp-data-table tbody {
    display: none;
}

/* 商务卡片容器 */
.ttp-style-business .ttp-business-cards {
    display: block;
    margin-top: 0;
    width: 100%;
    min-width: max-content;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* 商务卡片样式 */
.ttp-style-business .ttp-business-card {
    background: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    padding: 0;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
    width: 100%;
}

.ttp-style-business .ttp-business-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 商务卡片数据行 - 使用table布局确保与表头对齐 */
.ttp-style-business .ttp-business-card-row {
    display: table;
    width: 100%;
    min-width: max-content;
    table-layout: auto;
    border-collapse: collapse;
}

/* 商务卡片单元格 */
.ttp-style-business .ttp-business-card-cell {
    display: table-cell;
    padding: 12px 15px;
    border: none;
    color: #333;
    text-align: left;
    word-break: break-word;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 商务表格样式的标签 */
.ttp-style-business .ttp-tag-link {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.ttp-style-business .ttp-tag-link:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

/* 移动端竖向卡片布局 */
.ttp-style-mobile-card-vertical .ttp-table-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.ttp-style-mobile-card-vertical .ttp-table-wrapper {
    display: block;
}

.ttp-style-mobile-card-vertical .ttp-data-table {
    display: none;
}

.ttp-style-mobile-card-vertical .ttp-mobile-cards {
    display: block;
}

.ttp-style-mobile-card-vertical .ttp-mobile-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.ttp-style-mobile-card-vertical .ttp-mobile-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.ttp-style-mobile-card-vertical .ttp-mobile-card-header {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.ttp-style-mobile-card-vertical .ttp-mobile-card-body {
    display: block;
}

.ttp-style-mobile-card-vertical .ttp-mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.ttp-style-mobile-card-vertical .ttp-mobile-card-row:last-child {
    border-bottom: none;
}

.ttp-style-mobile-card-vertical .ttp-mobile-card-label {
    font-weight: 500;
    color: #666;
    flex: 0 0 35%;
    font-size: 14px;
    line-height: 1.5;
}

.ttp-style-mobile-card-vertical .ttp-mobile-card-value {
    flex: 1;
    text-align: right;
    color: #333;
    font-size: 14px;
    word-break: break-word;
    line-height: 1.5;
}

/* 移动端横向卡片布局 */
.ttp-style-mobile-card-horizontal .ttp-table-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.ttp-style-mobile-card-horizontal .ttp-table-wrapper {
    display: block;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-width: auto !important;
    width: 100% !important;
}

.ttp-style-mobile-card-horizontal .ttp-table-responsive {
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-width: auto !important;
    width: 100% !important;
}

.ttp-style-mobile-card-horizontal .ttp-data-table {
    display: none;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 0;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-header {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #007bff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-body {
    display: block;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-row {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-row:last-child {
    border-bottom: none;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-label {
    font-weight: 500;
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-value {
    color: #333;
    font-size: 14px;
    word-break: break-word;
    line-height: 1.5;
}

/* 横向卡片布局 - 表头行和数据行样式 */
.ttp-style-mobile-card-horizontal .ttp-mobile-card-header-row,
.ttp-style-mobile-card-horizontal .ttp-mobile-card-data-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 8px 0;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-header-row {
    border-bottom: 2px solid #007bff;
    margin-bottom: 8px;
    padding-bottom: 10px;
    font-weight: 600;
    color: #007bff;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-data-row {
    color: #333;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-header-cell,
.ttp-style-mobile-card-horizontal .ttp-mobile-card-data-cell {
    flex: 1;
    text-align: center;
    padding: 4px 8px;
    word-break: break-word;
    font-size: 14px;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-header-cell {
    font-weight: 600;
    color: #007bff;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-data-cell {
    color: #333;
}

/* 横向卡片布局 - 悬停提示样式 */
.ttp-style-mobile-card-horizontal .ttp-mobile-card-header-cell[title],
.ttp-style-mobile-card-horizontal .ttp-mobile-card-data-cell[title] {
    cursor: default;
}

/* 横向卡片布局 - 共用表头行 */
.ttp-style-mobile-card-horizontal .ttp-mobile-card-shared-header-row {
    display: flex;
    gap: var(--hc-gap, 10px);
    padding: var(--hc-row-padding, 6px) 0;
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.ttp-style-mobile-card-horizontal .ttp-mobile-card-shared-header-row .ttp-mobile-card-header-cell {
    min-width: var(--hc-cell-min-width, 60px);
    max-width: var(--hc-cell-max-width, 120px);
    padding: var(--hc-cell-padding, 3px) 6px;
    font-size: var(--hc-font-size, 13px);
    font-weight: 600;
    color: #007bff;
    flex: 1;
    text-align: center;
}

/* 桌面端显示为卡片 */
@media (min-width: 769px) {
    .ttp-style-mobile-card-vertical .ttp-data-table,
    .ttp-style-mobile-card-horizontal .ttp-data-table {
        display: none !important;
    }
    
    .ttp-style-mobile-card-vertical .ttp-mobile-cards,
    .ttp-style-mobile-card-horizontal .ttp-mobile-cards {
        display: block !important;
    }
    
    .ttp-style-mobile-card-vertical .ttp-table-wrapper,
    .ttp-style-mobile-card-horizontal .ttp-table-wrapper {
        display: block;
    }
    
    /* 桌面端竖向卡片优化 */
    .ttp-style-mobile-card-vertical .ttp-mobile-card {
        max-width: 100%;
    }
    
    /* 桌面端横向卡片优化 */
    .ttp-style-mobile-card-horizontal .ttp-mobile-cards {
        display: flex !important;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .ttp-style-mobile-card-horizontal .ttp-mobile-card {
        width: 100%;
    }
    
    /* 桌面端横向卡片布局优化 */
    .ttp-style-mobile-card-horizontal .ttp-mobile-card-header-row,
    .ttp-style-mobile-card-horizontal .ttp-mobile-card-data-row {
        gap: 16px;
        padding: 10px 0;
    }
    
    .ttp-style-mobile-card-horizontal .ttp-mobile-card-header-cell,
    .ttp-style-mobile-card-horizontal .ttp-mobile-card-data-cell {
        padding: 6px 12px;
        font-size: 15px;
    }
}

/* 移动端：根据移动端布局选项显示，不强制显示表格 */
@media (max-width: 768px) {
    /* 如果启用了移动端优化，使用移动端布局选项 */
    .ttp-style-mobile-card-vertical.ttp-mobile-mode .ttp-data-table,
    .ttp-style-mobile-card-horizontal.ttp-mobile-mode .ttp-data-table {
        display: none !important;
    }
    
    .ttp-style-mobile-card-vertical.ttp-mobile-mode .ttp-mobile-cards,
    .ttp-style-mobile-card-horizontal.ttp-mobile-mode .ttp-mobile-cards {
        display: block !important;
    }
    
    /* 如果未启用移动端优化或使用桌面布局，显示表格 */
    .ttp-style-mobile-card-vertical:not(.ttp-mobile-mode) .ttp-data-table,
    .ttp-style-mobile-card-horizontal:not(.ttp-mobile-mode) .ttp-data-table,
    .ttp-style-mobile-card-vertical.ttp-mobile-layout-desktop .ttp-data-table,
    .ttp-style-mobile-card-horizontal.ttp-mobile-layout-desktop .ttp-data-table {
        display: table !important;
    }
    
    .ttp-style-mobile-card-vertical:not(.ttp-mobile-mode) .ttp-mobile-cards,
    .ttp-style-mobile-card-horizontal:not(.ttp-mobile-mode) .ttp-mobile-cards,
    .ttp-style-mobile-card-vertical.ttp-mobile-layout-desktop .ttp-mobile-cards,
    .ttp-style-mobile-card-horizontal.ttp-mobile-layout-desktop .ttp-mobile-cards {
        display: none !important;
    }
    
    /* 移动端横向卡片优化 */
    .ttp-style-mobile-card-horizontal.ttp-mobile-mode .ttp-mobile-cards {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* 表格容器强制横向滚动 */
.ttp-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
}

/* 横向卡片布局禁用横向滚动 */
.ttp-style-mobile-card-horizontal .ttp-table-container {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* 表格包装器 */
.ttp-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    min-width: max-content !important;
    width: 100% !important;
}

/* 横向卡片布局禁用横向滚动 */
.ttp-style-mobile-card-horizontal .ttp-table-wrapper {
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-width: auto !important;
}

/* 表格响应式容器 */
.ttp-table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    min-width: max-content !important;
    width: 100% !important;
}

/* 横向卡片布局禁用横向滚动 */
.ttp-style-mobile-card-horizontal .ttp-table-responsive {
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-width: auto !important;
}

/* 表格本身 */
.ttp-data-table {
    width: 100% !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

/* 表格单元格 - 基础样式 */
.ttp-data-table th,
.ttp-data-table td {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-width: 100px !important;
    padding: 12px 8px !important;
    border: 1px solid #dee2e6 !important;
}

/* 文字显示方法优先级更高 */
.ttp-text-tooltip .ttp-data-table td,
.ttp-text-ellipsis .ttp-data-table td,
.ttp-text-wrap .ttp-data-table td,
.ttp-text-expand .ttp-data-table td,
.ttp-text-scroll .ttp-data-table td,
.ttp-text-multiline .ttp-data-table td,
.ttp-text-limit .ttp-data-table td,
.ttp-text-responsive .ttp-data-table td {
    /* 这些样式会被具体的文字显示方法覆盖 */
}

/* 滚动条样式 */
.ttp-table-container::-webkit-scrollbar,
.ttp-table-wrapper::-webkit-scrollbar,
.ttp-table-responsive::-webkit-scrollbar {
    height: 8px !important;
}

.ttp-table-container::-webkit-scrollbar-track,
.ttp-table-wrapper::-webkit-scrollbar-track,
.ttp-table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

.ttp-table-container::-webkit-scrollbar-thumb,
.ttp-table-wrapper::-webkit-scrollbar-thumb,
.ttp-table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 4px !important;
}

.ttp-table-container::-webkit-scrollbar-thumb:hover,
.ttp-table-wrapper::-webkit-scrollbar-thumb:hover,
.ttp-table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
}

/* 移动端优化 - 强制横向滚动 */
@media (max-width: 768px) {
    .ttp-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        padding: 10px !important;
    }
    
    .ttp-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-width: max-content !important;
        width: 100% !important;
    }
    
    .ttp-table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-width: max-content !important;
        width: 100% !important;
    }
    
    .ttp-data-table {
        white-space: nowrap !important;
        min-width: max-content !important;
        width: 100% !important;
    }
    
    /* 横向卡片布局在移动端也禁用横向滚动 */
    .ttp-style-mobile-card-horizontal .ttp-table-container,
    .ttp-style-mobile-card-horizontal .ttp-table-wrapper,
    .ttp-style-mobile-card-horizontal .ttp-table-responsive {
        overflow-x: visible !important;
        overflow-y: visible !important;
        min-width: auto !important;
    }
    
    .ttp-data-table th,
    .ttp-data-table td {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        min-width: 120px !important;
        padding: 8px 6px !important;
        font-size: 0.9rem !important;
    }
    
    /* 移动端表格标题特殊处理 */
    .ttp-data-table th {
        min-width: 140px !important;
        padding: 10px 8px !important;
        font-size: 0.95rem !important;
        font-weight: bold !important;
        background-color: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        text-align: center !important;
    }
    
    .ttp-style-grid .ttp-table-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ttp-style-compact .ttp-table-container {
        padding: 8px !important;
        margin: 5px 0;
    }
    
    .ttp-style-compact .ttp-data-table th,
    .ttp-style-compact .ttp-data-table td {
        padding: 4px 4px !important;
        font-size: 0.8rem !important;
    }
}

/* ========== 移动端专用布局 ========== */

/* 移动端模式基础样式 */
.ttp-mobile-mode {
    padding: 10px !important;
    margin: 10px 0 !important;
}

/* 卡片式布局 */
.ttp-mobile-layout-card .ttp-table-wrapper,
.ttp-mobile-layout-auto .ttp-table-wrapper {
    display: block !important;
}

.ttp-mobile-layout-card .ttp-data-table,
.ttp-mobile-layout-auto .ttp-data-table {
    display: none !important;
}

.ttp-mobile-layout-card .ttp-mobile-cards,
.ttp-mobile-layout-auto .ttp-mobile-cards {
    display: block;
}

.ttp-mobile-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.ttp-mobile-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ttp-mobile-card-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    color: #007bff;
    position: relative;
}

.ttp-mobile-card-body {
    display: block;
}

.ttp-mobile-card-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ttp-mobile-card-row:last-child {
    border-bottom: none;
}

.ttp-mobile-card-label {
    font-weight: 600;
    color: #666;
    flex: 0 0 35%;
    font-size: 14px;
}

.ttp-mobile-card-value {
    flex: 1;
    text-align: right;
    color: #333;
    font-size: 14px;
    word-break: break-word;
}

/* 列表式布局 */
.ttp-mobile-layout-list .ttp-data-table {
    display: table !important;
    font-size: 12px;
}

.ttp-mobile-layout-list .ttp-data-table th,
.ttp-mobile-layout-list .ttp-data-table td {
    padding: 6px 4px !important;
    font-size: 12px !important;
}

/* 可折叠式布局 */
.ttp-mobile-layout-collapsible .ttp-mobile-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttp-mobile-layout-collapsible .ttp-mobile-card-header {
    position: relative;
    padding-right: 30px;
}

.ttp-mobile-layout-collapsible .ttp-mobile-card-header::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.ttp-mobile-layout-collapsible .ttp-mobile-card.collapsed .ttp-mobile-card-header::after {
    transform: rotate(-90deg);
}

.ttp-mobile-layout-collapsible .ttp-mobile-card.collapsed .ttp-mobile-card-body {
    display: none;
}

/* ========== 手势操作样式 ========== */

/* 滑动指示器 */
.ttp-swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 18px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.ttp-swipe-indicator.show {
    opacity: 1;
}

.ttp-swipe-indicator.left {
    left: 10px;
}

.ttp-swipe-indicator.right {
    right: 10px;
}

/* 缩放控制 */
.ttp-zoom-controls {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.ttp-mobile-mode .ttp-zoom-controls {
    display: flex;
}

.ttp-zoom-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.ttp-zoom-btn:active {
    transform: scale(0.95);
    background: #0056b3;
}

.ttp-zoom-btn.zoom-reset {
    background: #6c757d;
}

.ttp-zoom-btn.zoom-reset:active {
    background: #545b62;
}

/* 触摸反馈 */
.ttp-mobile-mode .ttp-data-table td:active,
.ttp-mobile-card:active {
    background-color: #f0f0f0;
    transition: background-color 0.1s ease;
}

.ttp-mobile-mode .ttp-table-wrapper {
    position: relative;
}

/* 缩放时的表格容器 */
.ttp-table-wrapper.zooming {
    overflow: visible !important;
}

.ttp-table-wrapper.zooming .ttp-data-table {
    transition: transform 0.1s ease-out;
}

/* ========== 前端编辑样式 ========== */

.ttp-data-table td.ttp-editable {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.ttp-data-table td.ttp-editable:hover {
    background-color: #f8f9fa;
}

.ttp-data-table td.ttp-editable:hover::after {
    content: '双击编辑';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.9;
}

.ttp-data-table td.ttp-editable.editing {
    background-color: #e7f3ff;
    border: 2px solid #007bff;
}

.ttp-cell-edit {
    width: 100%;
    min-width: 60px;
    border: 2px solid #007bff;
    padding: 4px 8px;
    font-size: inherit;
    font-family: inherit;
    background: #fff;
    outline: none;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.ttp-cell-edit:focus {
    border-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* 计算列样式（不可编辑） */
.ttp-data-table td.ttp-calculated {
    background-color: #f0f0f0;
    cursor: not-allowed;
    font-style: italic;
}

.ttp-data-table td.ttp-calculated:hover::after {
    content: '计算列（自动计算）';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #6c757d;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.9;
}

/* 表格底部标签 */
.ttp-table-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    background: rgba(255, 255, 255, 0);
}

.ttp-table-footer .ttp-table-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ttp-meta-label {
    font-weight: 600;
    color: #666;
    margin-right: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ttp-meta-label i {
    font-size: 0.9rem;
}

.ttp-tag-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    border: 1px solid #ddd;
}

.ttp-tag-link:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

/* ========================================
   标签样式变体 - 根据表格样式自动匹配
   ======================================== */

/* 经典表格样式的标签 */
.ttp-style-classic .ttp-tag-link {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.ttp-style-classic .ttp-tag-link:hover {
    background: #495057;
    color: white;
    border-color: #495057;
}

/* 网格卡片样式的标签 */
.ttp-style-grid .ttp-tag-link {
    background: #4a90e2;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.ttp-style-grid .ttp-tag-link:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* 列表样式的标签 */
.ttp-style-list .ttp-tag-link {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

.ttp-style-list .ttp-tag-link:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Compact样式的标签 */
.ttp-style-compact .ttp-tag-link {
    padding: 3px 10px;
    font-size: 0.8rem;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 3px;
}

.ttp-style-compact .ttp-tag-link:hover {
    background: #495057;
    color: white;
}

/* Bootstrap样式的标签 */
.ttp-style-bootstrap .ttp-tag-link {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0.25rem;
}

.ttp-style-bootstrap .ttp-tag-link:hover {
    background: #0056b3;
}

/* ========================================
   标签样式变体 - 自定义样式选项
   ======================================== */

/* 现代渐变风格 */
.ttp-tag-style-modern .ttp-tag-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ttp-tag-style-modern .ttp-tag-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 清新扁平风格 */
.ttp-tag-style-flat .ttp-tag-link {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
    border-radius: 6px;
}

.ttp-tag-style-flat .ttp-tag-link:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
    transform: scale(1.05);
}

/* 优雅圆点风格 */
.ttp-tag-style-dot .ttp-tag-link {
    background: #fff;
    color: #6366f1;
    border: 2px solid #e0e7ff;
    position: relative;
    padding-left: 24px;
}

.ttp-tag-style-dot .ttp-tag-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.ttp-tag-style-dot .ttp-tag-link:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.ttp-tag-style-dot .ttp-tag-link:hover::before {
    background: white;
}

/* 简约边框风格 */
.ttp-tag-style-minimal .ttp-tag-link {
    background: transparent;
    color: #5a67d8;
    border: 2px solid #cbd5e0;
    position: relative;
    overflow: hidden;
}

.ttp-tag-style-minimal .ttp-tag-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #5a67d8;
    transition: width 0.3s ease;
    z-index: -1;
}

.ttp-tag-style-minimal .ttp-tag-link:hover {
    color: white;
    border-color: #5a67d8;
}

.ttp-tag-style-minimal .ttp-tag-link:hover::after {
    width: 100%;
}

/* 多彩标签风格 */
.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(1) {
    background: #ff6b6b;
    color: white;
    border: none;
}

.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(2) {
    background: #4ecdc4;
    color: white;
    border: none;
}

.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(3) {
    background: #45b7d1;
    color: white;
    border: none;
}

.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(4) {
    background: #f9ca24;
    color: #333;
    border: none;
}

.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(5) {
    background: #6c5ce7;
    color: white;
    border: none;
}

.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(6) {
    background: #a29bfe;
    color: white;
    border: none;
}

.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(7) {
    background: #fd79a8;
    color: white;
    border: none;
}

.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(8) {
    background: #00b894;
    color: white;
    border: none;
}

.ttp-tag-style-colorful .ttp-table-tags .ttp-tag-link:nth-of-type(n+9) {
    background: #74b9ff;
    color: white;
    border: none;
}

.ttp-tag-style-colorful .ttp-tag-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

/* 搜索控件 */
.ttp-table-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.ttp-hide-until-search-message {
    display: none;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: #f5f7ff;
    border: 1px dashed #b3c7ff;
    border-radius: 8px;
    color: #3d4f7c;
    align-items: center;
    gap: 12px;
}

.ttp-hide-until-search-message i {
    font-size: 20px;
    color: #5c6bc0;
}

.ttp-hide-until-search-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

.ttp-hide-until-search-text strong {
    font-size: 15px;
    color: #2f3a5f;
}

.ttp-hide-until-search-active .ttp-hide-until-search-message {
    display: flex;
}

.ttp-hide-until-search-active .ttp-table-wrapper,
.ttp-hide-until-search-active .ttp-table-statistics,
.ttp-hide-until-search-active .ttp-table-pagination,
.ttp-hide-until-search-active .ttp-table-footer,
.ttp-hide-until-search-active .ttp-mobile-cards,
.ttp-hide-until-search-active .ttp-business-cards {
    display: none !important;
}

.ttp-search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.ttp-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.ttp-search-label {
    font-weight: 600;
    color: #343a40;
    white-space: nowrap;
    flex-shrink: 0;
}

.ttp-search-container::-webkit-scrollbar {
    height: 6px;
}

.ttp-search-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ttp-search-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.ttp-search-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 自定义搜索选择器 */
.ttp-custom-search {
    flex: 0 0 auto;
    min-width: 150px;
    box-sizing: border-box;
}

.ttp-custom-search-select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    height: 38px; /* 确保与搜索框高度一致 */
    box-sizing: border-box;
}

.ttp-custom-search-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* 搜索框 */
.ttp-search-box {
    flex: 0 0 auto;
    min-width: 180px;
    box-sizing: border-box;
}

.ttp-search-input {
    flex: 1;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.ttp-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* 搜索按钮组 */
.ttp-search-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ttp-search-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ttp-search-btn:hover {
    background-color: #0056b3;
}

.ttp-reset-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    background-color: #6c757d;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ttp-reset-btn:hover {
    background-color: #545b62;
}

/* 表格样式 */
.ttp-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ttp-data-table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    min-width: 100px;
    cursor: pointer;
}

.ttp-data-table th:hover {
    background-color: #e9ecef;
}

.ttp-data-table th i {
    margin-left: 5px;
    color: #6c757d;
}

.ttp-data-table td {
    border: 1px solid #dee2e6;
    padding: 10px 8px;
    vertical-align: middle;
    word-wrap: break-word;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 表格内链接样式 - 经典蓝色下划线 */
.ttp-data-table td a,
.ttp-mobile-card-data-cell a,
.ttp-mobile-card-value a,
.ttp-business-card-cell a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ttp-data-table td a:hover,
.ttp-mobile-card-data-cell a:hover,
.ttp-mobile-card-value a:hover,
.ttp-business-card-cell a:hover {
    color: #004499;
    text-decoration: underline;
}

.ttp-data-table td a:visited,
.ttp-mobile-card-data-cell a:visited,
.ttp-mobile-card-value a:visited,
.ttp-business-card-cell a:visited {
    color: #551a8b;
}

.ttp-data-table td a:active,
.ttp-mobile-card-data-cell a:active,
.ttp-mobile-card-value a:active,
.ttp-business-card-cell a:active {
    color: #003366;
}

/* 文字显示方法覆盖基础样式 */
.ttp-text-wrap .ttp-data-table td {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 300px !important;
    line-height: 1.4 !important;
}

.ttp-text-expand .ttp-data-table td {
    white-space: normal !important;
    word-wrap: break-word !important;
    max-height: 60px !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
}

.ttp-text-scroll .ttp-data-table td {
    max-height: 80px !important;
    overflow-y: auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 8px !important;
}

.ttp-text-multiline .ttp-data-table td {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 250px !important;
}

.ttp-text-limit .ttp-data-table td {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 180px !important;
}

/* 确保文字显示方法有最高优先级 */
.ttp-text-tooltip .ttp-data-table td,
.ttp-text-ellipsis .ttp-data-table td,
.ttp-text-wrap .ttp-data-table td,
.ttp-text-expand .ttp-data-table td,
.ttp-text-scroll .ttp-data-table td,
.ttp-text-multiline .ttp-data-table td,
.ttp-text-limit .ttp-data-table td,
.ttp-text-responsive .ttp-data-table td {
    /* 这些样式会被具体的文字显示方法覆盖 */
}

.ttp-data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 分页控件 */
.ttp-table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.ttp-pagination-info {
    font-size: 14px;
    color: #6c757d;
}

.ttp-pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttp-prev-btn,
.ttp-next-btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background-color: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ttp-prev-btn:hover:not(:disabled),
.ttp-next-btn:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.ttp-prev-btn:disabled,
.ttp-next-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ttp-page-numbers {
    display: flex;
    gap: 5px;
}

.ttp-page-numbers .ttp-page-btn {
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background-color: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttp-page-numbers .ttp-page-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.ttp-page-numbers .ttp-page-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .ttp-table-controls {
        padding: 10px;
    }
    
    .ttp-search-container {
        gap: 10px;
        padding-bottom: 3px;
    }
    
    .ttp-custom-search {
        min-width: 140px;
    }
    
    .ttp-custom-search-select {
        font-size: 13px;
        padding: 8px 10px;
        height: 36px; /* 移动端稍微小一点 */
    }
    
    .ttp-search-box {
        min-width: 160px;
    }
    
    .ttp-search-input {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .ttp-search-actions {
        gap: 8px;
    }
    
    .ttp-search-btn,
    .ttp-reset-btn {
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 10px;
        min-width: 50px;
    }
    
    .ttp-data-table th,
    .ttp-data-table td {
        padding: 8px 6px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .ttp-table-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .ttp-pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ttp-page-numbers {
        order: -1;
        margin-bottom: 10px;
    }
}

/* 加载状态 */
.ttp-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.ttp-loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: ttp-spin 1s linear infinite;
}

@keyframes ttp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.ttp-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.ttp-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

/* 表格列表样式 */
.ttp-table-list {
    margin: 20px 0;
}

.ttp-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ttp-table-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ttp-table-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ttp-table-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.ttp-table-title a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttp-table-title a:hover {
    color: #0056b3;
}

.ttp-table-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.ttp-table-category,
.ttp-table-tags {
    display: inline-block;
    margin-right: 15px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.8rem;
}

.ttp-table-category {
    background: #e7f3ff;
    color: #0056b3;
}

.ttp-table-tags {
    background: rgba(255, 255, 255, 0.8);
    color: #666;
}

.ttp-table-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.ttp-table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ttp-view-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.ttp-view-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.ttp-shortcode {
    font-size: 0.8rem;
    color: #666;
}

.ttp-shortcode code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* 移动端表格列表适配 */
@media screen and (max-width: 768px) {
    .ttp-table-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ttp-table-item {
        padding: 15px;
    }
    
    .ttp-table-title {
        font-size: 1.1rem;
    }
    
    .ttp-table-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ttp-view-btn {
        text-align: center;
    }
    

    
    /* 移动端表格底部标签适配 */
    .ttp-table-footer {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .ttp-table-footer .ttp-table-tags {
        gap: 6px;
    }
    
    .ttp-tag-link {
        padding: 3px 10px;
        font-size: 0.8rem;
    }
    
    .ttp-meta-label {
        font-size: 0.85rem;
    }
}



/* 小工具样式 */

.ttp-count {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ttp-tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ttp-tag-cloud {
    display: inline-block;
    padding: 4px 8px;
    background: #e7f3ff;
    color: #0056b3;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #b3d9ff;
}

.ttp-tag-cloud:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,86,179,0.3);
}

.ttp-tag-cloud .ttp-count {
    margin-left: 4px;
    background: rgba(255,255,255,0.2);
    color: inherit;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 0.7rem;
}

/* 数据统计样式 */
.ttp-table-statistics {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ttp-statistics-container {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.ttp-statistics-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.ttp-statistics-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.ttp-statistics-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.ttp-statistics-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.ttp-statistics-total {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-left: 20px;
    border-left: 2px solid #dee2e6;
}

.ttp-total-label {
    font-weight: 600;
    color: #333;
}

.ttp-total-value {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1rem;
}

/* 移动端数据统计适配 */
@media screen and (max-width: 768px) {
    .ttp-statistics-container {
        gap: 15px;
        padding-bottom: 10px;
    }
    
    .ttp-statistics-item {
        min-width: 100px;
    }
    
    .ttp-statistics-input {
        width: 70px;
        font-size: 0.85rem;
    }
    
    .ttp-statistics-total {
        padding-left: 15px;
    }
}

/* 主题网站数据样式 */
.ttp-theme-websites {
    margin: 20px 0;
}

.ttp-websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ttp-website-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ttp-website-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ttp-website-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.ttp-website-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttp-website-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.ttp-website-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ttp-website-category,
.ttp-website-tags {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #888;
}

.ttp-website-category strong,
.ttp-website-tags strong {
    color: #555;
    margin-right: 5px;
}

/* 移动端主题网站数据适配 */
@media screen and (max-width: 768px) {
    .ttp-websites-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ttp-website-item {
        padding: 15px;
    }
}

/* ============================================
   分类/标签归档页面模板样式
   ============================================ */

/* 默认列表模板（优化版） - 提高优先级 */
.ttp-taxonomy-archive.ttp-template-default {
    margin: 30px 0 !important;
}

.ttp-taxonomy-archive .ttp-table-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.ttp-taxonomy-archive .ttp-table-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #e9ecef !important;
    border-left: 4px solid #007bff !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.ttp-taxonomy-archive .ttp-table-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    transition: width 0.3s ease;
}

.ttp-taxonomy-archive .ttp-table-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,123,255,0.15);
    border-left-color: #0056b3;
}

.ttp-taxonomy-archive .ttp-table-item:hover::before {
    width: 6px;
}

.ttp-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.ttp-table-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.ttp-table-title a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.ttp-title-icon {
    font-size: 1.2em;
    opacity: 0.7;
}

.ttp-table-title a:hover {
    color: #007bff;
}

.ttp-table-title a:hover .ttp-title-icon {
    opacity: 1;
    transform: scale(1.1);
}

.ttp-item-date {
    color: #95a5a6;
    font-size: 0.85rem;
    white-space: nowrap;
    padding-top: 4px;
}

.ttp-item-date time {
    color: #7f8c8d;
}

/* 隐藏内容摘要 */
.ttp-taxonomy-archive .ttp-table-excerpt {
    display: none !important;
}

.ttp-taxonomy-archive .ttp-table-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #f0f0f0 !important;
}

.ttp-taxonomy-archive .ttp-meta-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
}

.ttp-taxonomy-archive .ttp-tags-group {
    flex: 1 !important;
}

.ttp-taxonomy-archive .ttp-category-group {
    margin-left: auto !important;
}

/* 标签样式 - 蓝色系 */
.ttp-taxonomy-archive .ttp-tag-link {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;
    margin-right: 6px !important;
}

.ttp-taxonomy-archive .ttp-tag-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4) !important;
}

/* 分类样式 - 绿色系 */
.ttp-taxonomy-archive .ttp-category-link {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(17, 153, 142, 0.3) !important;
}

.ttp-taxonomy-archive .ttp-category-link:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(17, 153, 142, 0.4) !important;
}

.ttp-table-actions {
    margin-top: 15px;
}

.ttp-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.ttp-view-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.ttp-btn-icon {
    transition: transform 0.3s ease;
}

.ttp-view-btn:hover .ttp-btn-icon {
    transform: translateX(4px);
}

/* 网格模板优化 */
.ttp-template-grid .ttp-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.ttp-template-grid .ttp-table-grid-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.ttp-template-grid .ttp-table-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #007bff;
}

/* 紧凑模板优化 */
.ttp-template-compact .ttp-table-compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.ttp-template-compact .ttp-table-compact-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.ttp-template-compact .ttp-table-compact-item:last-child {
    border-bottom: none;
}

.ttp-template-compact .ttp-table-compact-item:hover {
    background: #f8f9fa;
}

.ttp-template-compact .ttp-table-compact-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.ttp-template-compact .ttp-table-compact-item a:hover {
    color: #007bff;
}

/* 卡片模板优化 */
.ttp-template-card .ttp-table-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.ttp-template-card .ttp-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.ttp-template-card .ttp-table-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ttp-template-card .ttp-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
}

.ttp-template-card .ttp-card-header .ttp-table-title {
    margin: 0;
    font-size: 1.2rem;
}

.ttp-template-card .ttp-card-header .ttp-table-title a {
    color: white;
    text-decoration: none;
}

.ttp-template-card .ttp-card-body {
    padding: 20px;
}

.ttp-template-card .ttp-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.ttp-template-card .ttp-view-table {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.ttp-template-card .ttp-view-table:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* 现代卡片模板 */
.ttp-template-modern .ttp-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.ttp-template-modern .ttp-modern-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.ttp-template-modern .ttp-modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.ttp-template-modern .ttp-modern-card-inner {
    padding: 25px;
    position: relative;
}

.ttp-template-modern .ttp-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.ttp-template-modern .ttp-modern-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.ttp-template-modern .ttp-modern-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttp-template-modern .ttp-modern-title a:hover {
    color: #007bff;
}

.ttp-template-modern .ttp-modern-date {
    color: #95a5a6;
    font-size: 0.85rem;
    white-space: nowrap;
}

.ttp-template-modern .ttp-modern-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ttp-template-modern .ttp-modern-meta {
    margin-bottom: 15px;
}

.ttp-template-modern .ttp-modern-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ttp-template-modern .ttp-modern-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.ttp-template-modern .ttp-modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ttp-template-modern .ttp-modern-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    text-decoration: none;
    transform: translateX(4px);
}

/* 杂志风格模板 */
.ttp-template-magazine .ttp-magazine-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.ttp-template-magazine .ttp-magazine-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.ttp-template-magazine .ttp-magazine-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.ttp-template-magazine .ttp-magazine-featured {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #007bff;
    padding: 40px;
}

.ttp-template-magazine .ttp-magazine-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.ttp-template-magazine .ttp-magazine-title {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.ttp-template-magazine .ttp-magazine-featured .ttp-magazine-title {
    font-size: 2rem;
}

.ttp-template-magazine .ttp-magazine-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ttp-template-magazine .ttp-magazine-title a:hover {
    color: #007bff;
}

.ttp-template-magazine .ttp-magazine-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.ttp-template-magazine .ttp-magazine-date {
    color: #95a5a6;
}

.ttp-template-magazine .ttp-magazine-category {
    display: inline-block;
    padding: 4px 10px;
    background: #e7f3ff;
    color: #0056b3;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ttp-template-magazine .ttp-magazine-excerpt {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.ttp-template-magazine .ttp-magazine-featured .ttp-magazine-excerpt {
    font-size: 1.1rem;
}

.ttp-template-magazine .ttp-magazine-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ttp-template-magazine .ttp-magazine-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.ttp-template-magazine .ttp-magazine-tag:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    text-decoration: none;
    transform: translateY(-1px);
}

.ttp-template-magazine .ttp-magazine-action {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.ttp-template-magazine .ttp-magazine-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ttp-template-magazine .ttp-magazine-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateX(4px);
}

/* 空状态 */
.ttp-taxonomy-archive .ttp-no-tables {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .ttp-taxonomy-archive .ttp-table-item {
        padding: 20px;
    }
    
    .ttp-item-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .ttp-table-title {
        font-size: 1.1rem;
    }
    
    .ttp-template-grid .ttp-table-grid,
    .ttp-template-card .ttp-table-cards,
    .ttp-template-modern .ttp-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ttp-template-magazine .ttp-magazine-featured {
        padding: 25px;
    }
    
    .ttp-template-magazine .ttp-magazine-title {
        font-size: 1.3rem;
    }
    
    .ttp-template-magazine .ttp-magazine-featured .ttp-magazine-title {
        font-size: 1.5rem;
    }
}

/* 分类和标签归档页面分页控件样式 */
.ttp-taxonomy-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ttp-taxonomy-pagination .ttp-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.ttp-taxonomy-pagination .ttp-pagination-link {
    display: inline-block;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ttp-taxonomy-pagination .ttp-pagination-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.ttp-taxonomy-pagination .ttp-pagination-link.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.ttp-taxonomy-pagination .ttp-pagination-link.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.ttp-taxonomy-pagination .ttp-pagination-dots {
    padding: 8px 4px;
    color: #6c757d;
    font-size: 14px;
}

.ttp-taxonomy-pagination .ttp-pagination-info {
    text-align: center;
    font-size: 13px;
    color: #6c757d;
    margin-top: 10px;
}

.ttp-taxonomy-pagination .ttp-prev-link,
.ttp-taxonomy-pagination .ttp-next-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ttp-taxonomy-pagination .ttp-pagination-wrapper {
        gap: 5px;
    }
    
    .ttp-taxonomy-pagination .ttp-pagination-link {
        padding: 6px 10px;
        min-width: 36px;
        font-size: 13px;
    }
    
    .ttp-taxonomy-pagination .ttp-pagination-dots {
        padding: 6px 2px;
        font-size: 13px;
    }
}

