/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color:white;
    color: #333;
    padding-top: 1rem;
    /* 为固定导航栏留出空间 */
}



/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    color: gray;
}

.btn-primary {
    padding: 10px 20px;
    border-radius: 4px;
    background-color: #f0b90b;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #e3af0a;
}

.btn-secondary {
    background-color: #3498db;
    color: white;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-link {
    background: none;
    color: #3498db;
    text-decoration: underline;
    padding: 0;
}


/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(240, 185, 11, 0.3);
    border-radius: 50%;
    border-top-color: #f0b90b;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 通知提示 */
.notification {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 4px;
    background-color: #f0b90b;
    color: #000;
    z-index: 1001;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: none;
    transition: opacity 0.3s, transform 0.3s;
}

.notification.error {
    background-color: #e74c3c;
    color: #fff;
}

.notification.success {
    background-color: #2ecc71;
    color: #fff;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #7f8c8d;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer button {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.modal-footer button.primary {
    background-color: #f0b90b;
    color: #000;
}

.modal-footer button.cancel {
    background-color: #ddd;
    color: #333;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.mobile-table{
    margin-top: 1.5rem;
}

.mobile-table-cell {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: .5rem;
    margin-bottom: 1rem;
    padding: .5rem;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f0b90b;
    color: #000;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 地址标签样式 */
.address-label {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 14px;
}

.address-label .label-text {
    margin-right: 5px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-label .remove-button {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin-left: 5px;
}

/* 代币徽章样式 */
.token-badge {
    padding: .5rem .5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: normal;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    margin-right: .5rem;
    margin-bottom: .5rem;   
}

.token-badge.inflow {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #2ecc71;
}

.token-badge.outflow {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #e74c3c;
}

.token-badge.difference {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: #3498db;
    margin-top: 5px;
}

.token-badge.value {
    background-color: rgba(155, 89, 182, 0.1);
    border-color: #9b59b6;
    color: #9b59b6;
}

.token-badge.point {
    background-color: rgba(241, 196, 15, 0.1);
    border-color: #f1c40f;
    color: #f1c40f;
}

.token-amount {
    margin-left: 5px;
}

/* Tab样式 */
.tab-container {
    margin-bottom: 20px;
}

.tab-header {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.tab-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: #eee;
}

.tab-button.active {
    background-color: #f0b90b;
    color: #fff;
    border-color: #f0b90b;
}

.tab-content {
    display: none;
}

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

/* 摘要与展开块 */
.collapsible-section {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.section-header {
    padding: 12px 15px;
    background-color: #f0b90b;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header:hover {
    background-color: #e3af0a;
}

.section-header .arrow {
    transition: transform 0.3s;
}

.section-header.expanded .arrow {
    transform: rotate(180deg);
}

.address-list{
    margin-top: 20px;
}

.section-content {
    padding: 15px;
    background-color: #fff;
    display: none;
}

.section-content.expanded {
    display: block;
}

/* 日汇总视图样式 */
.day-summary {
    margin-bottom: .8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.day-header {
    padding: 12px 15px;
    background-color: #ffb800;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header:hover {
    background-color: #e3af0a;
}

.day-header .arrow {
    transition: transform 0.3s;
}

.day-header.expanded .arrow {
    transform: rotate(180deg);
}

.day-content {
    display: none;
    padding: 15px;
    background-color: #fff;
}

.day-content.expanded {
    display: block;
}

.day-outflow-title{
    font-size: 1.15rem;
    color: #000;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.day-outflow-stats{
    margin: 0px;
    padding: 0px;
    height: auto;
    font-weight: normal;
}

.day-outflow-stats li{
    font-size: 1rem;
    color: #000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 全屏覆盖层样式 */
.cover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cover-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cover-content h2 {
    font-size: 24px;
    color: #213547;
    margin-bottom: 20px;
}

.cover-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.twitter-link {
    display: inline-block;
    background-color: #1DA1F2;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.twitter-link:hover {
    background-color: #0c85d0;
}

.countdown {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    display: none;
}

.address-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    color: #3498db;
}

.address-cell:hover {
    text-decoration: underline;
}

.token-flow {
    color: #2ecc71;
}

.token-flow.outflow {
    color: #e74c3c;
}

.hash-link {
    color: #3498db;
    text-decoration: none;
}

.hash-link:hover {
    text-decoration: underline;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}



/* 地址备注管理样式 */
.form-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.address-notes-list {
    margin-bottom: 20px;
}

.address-notes-table {
    width: 100%;
    border-collapse: collapse;
}

.address-notes-table th,
.address-notes-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.description-cell {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.actions-cell {
    white-space: nowrap;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-right: 5px;
    border-radius: 4px;
}

.btn-icon:hover {
    background-color: #f0f0f0;
}

.edit-icon {
    color: #3498db;
}

.delete-icon {
    color: #e74c3c;
}

.bulk-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* 地址显示组件样式 */
.address-display {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.address-link,
.address-text {
    color: #3498db;
    text-decoration: none;
}

.address-link:hover {
    text-decoration: underline;
}

.address-note-name {
    background-color: #f0b90b;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.address-note-tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
}

/* 添加这些紧凑表格样式 */

/* 更紧凑的表格样式 */
.tab-content table {
    font-size: 0.9rem;
    /* 稍微减小字体 */
    border-collapse: collapse;
    width: 100%;
}

.tab-content th,
.tab-content td {
    padding: 8px 10px;
    /* 减小内边距 */
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap;
    /* 防止文本换行 */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    /* 限制最大宽度 */
}

.tab-content th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

/* 为不同的列设置宽度 */
.tab-content table th:nth-child(1) {
    width: 15%;
}

/* 地址列 */
.tab-content table th:nth-child(2) {
    width: 8%;
}

/* 交易数量列 */
.tab-content table th:nth-child(3) {
    width: 8%;
}

/* 消耗BNB列 */
.tab-content table th:nth-child(4) {
    width: 30%;
}

/* 流出代币列 */
.tab-content table th:nth-child(5) {
    width: 22%;
}

/* 净流出列 */
.tab-content table th:nth-child(6) {
    width: 12%;
}

/* USD价值列 */
.tab-content table th:nth-child(7) {
    width: 5%;
}

/* 积分列 */

/* 悬停效果 */
.tab-content tr:hover {
    background-color: #f5f5f5;
}

/* 去除地址单元格的特殊样式，使其与其他单元格一致 */
.address-cell {
    max-width: initial;
    color: #3498db;
}

/* 地址链接样式 */
.address-cell a {
    color: #3498db;
    text-decoration: none;
}

.address-cell a:hover {
    text-decoration: underline;
}

/* 批量导入相关样式 */
#bulk-import-text {
    font-family: monospace;
    white-space: pre;
    min-height: 150px;
    line-height: 1.4;
}

.collapsible-section {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.section-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header:hover {
    background-color: #f0f0f0;
}

.section-header .arrow {
    transition: transform 0.3s;
}

.section-header.expanded .arrow {
    transform: rotate(180deg);
}

.section-content {
    padding: 15px;
    background-color: #fff;
    display: none;
}

.section-content.expanded {
    display: block;
}

/* 地址备注表格样式优化 */
.address-notes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.address-notes-table th,
.address-notes-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.address-notes-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

.address-notes-table tr:hover {
    background-color: #f5f5f5;
}

/* 定义列宽 */
.address-notes-table th:nth-child(1) {
    width: 25%;
}

/* 地址列 */
.address-notes-table th:nth-child(2) {
    width: 20%;
}

/* 名称列 */
.address-notes-table th:nth-child(3) {
    width: 25%;
}

/* 描述列 */
.address-notes-table th:nth-child(4) {
    width: 20%;
}

/* 标签列 */
.address-notes-table th:nth-child(5) {
    width: 10%;
}

/* 操作列 */

/* 地址选择相关样式 */
.address-filter {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.filter-actions {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-actions label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.filter-actions input[type="checkbox"] {
    margin-right: 5px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-sm:hover {
    background-color: #e0e0e0;
}

.address-selection-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.address-selection-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    background-color: #fff;
}

.address-selection-item:hover {
    background-color: #f5f5f5;
}

.address-selection-item.has-note {
    border-left: 3px solid #3498db;
}

.address-selection-item.no-note {
    border-left: 3px solid #e74c3c;
}

.address-checkbox {
    margin-right: 10px;
}

.address-selection-label {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-hash {
    color: #7f8c8d;
    font-size: 12px;
}

.address-selection-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    border-radius: 4px;
    color: #7f8c8d;
}

.btn-icon:hover {
    background-color: #f0f0f0;
    color: #333;
}

.progress-info {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-title{
    margin-bottom: 1rem;
}

.results{
    display: flex;
    flex-direction: column;
}

.results h3{
    /* white-space: nowrap;  
    overflow: hidden;      */
    /* text-align: center; */
    max-width: 100%;
}


/* 修改原有样式，确保地址列表在添加表单下方 */
.header-controls {
    margin-bottom: 0;
}

#address-input {
    max-width: 500px;
}

.view-icon {
    color: #3498db;
}

.remove-icon {
    color: #e74c3c;
}

.icon-eye,
.icon-delete,
.icon-edit {
    font-style: normal;
}

/* 代币价格底部栏样式 */
.token-price-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 2px solid #f0b90b;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

.price-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.price-bar-header h4 {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.price-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-bar-actions span {
    font-size: 12px;
    color: #666;
}

.price-bar-content {
    padding: 10px 20px;
}

.price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 80px;
}

.price-item.success {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.price-item.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.price-symbol {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    margin-bottom: 4px;
}

.price-value {
    font-size: 11px;
    color: #666;
}

.price-value.error {
    color: #e74c3c;
}

.price-loading,
.price-error,
.no-price-data {
    text-align: center;
    padding: 15px;
    color: #666;
    font-style: italic;
}

.price-error {
    color: #e74c3c;
}

/* 为主内容添加底部间距，避免被价格栏遮挡 */
.container {
    margin-bottom: 220px;
}

/* 表格排序样式 */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
}

.sortable:hover {
    background-color: #e3af0a !important;
}

.sortable.sort-asc {
    background-color: rgba(240, 185, 11, 0.3) !important;
}

.sortable.sort-desc {
    background-color: rgba(240, 185, 11, 0.3) !important;
}

.sort-indicator {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.sortable:hover .sort-indicator {
    color: #000;
}

/* 移除之前的底部栏样式，改为弹窗样式 */
.token-price-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.price-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.price-modal-header span {
    font-size: 14px;
    color: #666;
}

.price-modal-content {
    max-height: 400px;
    overflow-y: auto;
}

.price-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.price-item-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

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

.price-item-modal.success {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.price-item-modal.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.price-symbol-modal {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.price-value-modal {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.price-value-modal.error {
    color: #e74c3c;
    font-weight: normal;
}

.price-loading,
.price-error,
.no-price-data {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

.price-error {
    color: #e74c3c;
}

/* 移除之前给 container 添加的底部间距 */
.container {
    margin-bottom: 20px;
    /* 恢复正常间距 */
}

/* ============= 排序样式优化 ============= */

/* 可排序的表头样式 */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
    padding-right: 24px !important;
    /* 为箭头留出空间 */
}

.sortable:hover {
    background-color: #e3af0a !important;
    color: #000;
}

/* 排序箭头样式 */
.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.3;
    transition: all 0.2s ease;
}

/* 默认状态 - 显示双向箭头效果 */
.sortable::after {
    border-top: 4px solid #666;
    border-bottom: 4px solid #666;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    height: 8px;
}

/* 升序状态 - 向上箭头 */
.sortable.sort-asc {
    background-color: rgba(240, 185, 11, 0.2) !important;
    color: #000;
}

.sortable.sort-asc::after {
    border-bottom: 6px solid #f0b90b;
    border-top: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 1;
    height: 0;
}

/* 降序状态 - 向下箭头 */
.sortable.sort-desc {
    background-color: rgba(240, 185, 11, 0.2) !important;
    color: #000;
}

.sortable.sort-desc::after {
    border-top: 6px solid #f0b90b;
    border-bottom: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 1;
    height: 0;
}

/* 悬停时的箭头效果 */
.sortable:hover::after {
    opacity: 0.8;
    border-color: #000 transparent transparent transparent;
}

.sortable.sort-asc:hover::after {
    border-bottom-color: #000;
}

.sortable.sort-desc:hover::after {
    border-top-color: #000;
}

/* 移除原有的 sort-indicator 样式，因为现在使用 ::after 伪元素 */
.sort-indicator {
    display: none;
}

/* 表格行过渡效果 */
.tab-content table tbody tr {
    transition: all 0.3s ease;
}

/* 汇总行样式增强 */
.tab-content table tbody tr[style*="background-color"] {
    /* border-top: 2px solid #f0b90b !important; */
    /* border-top: 2px solid #dee2e6 !important; */
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

/* 排序动画 */
@keyframes sortingAnimation {
    0% {
        opacity: 0.7;
        transform: translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content table tbody tr {
    animation: sortingAnimation 0.3s ease-out;
}


.tab-content table tbody tr[style*="background-color"] td {
    white-space: normal !important;
    vertical-align: top !important;
    line-height: 1.4 !important;
    min-height: auto !important;
    height: auto !important;
}

.pagination{
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
}

.pagination-button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-button:hover {
    background-color: #f8f9fa;
}

/* 小屏幕 (手机) */
@media (max-width: 767px) {
    /* 主容器样式 */
    .container {
        width: calc(100% - 4rem);
        max-width: calc(100% - 4rem);
        /* 移除最大宽度限制 */
        margin: 0px auto;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }
}

/* 中等屏幕 (平板) */
@media (min-width: 768px) and (max-width: 991px) {
    /* 主容器样式 */
    .container {
        width: 80%;
        max-width: 80%;
        /* 移除最大宽度限制 */
        margin: 0px auto;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }
}

/* 大屏幕 (桌面) */
@media (min-width: 992px) {
   /* 主容器样式 */
    .container {
        width: 80%;
        max-width: 80%;
        /* 移除最大宽度限制 */
        margin: 0px auto;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }
}

