:root {
    --primary-gradient: linear-gradient(135deg, #7b1fa2 0%, #f50057 100%);
    --primary-color: #7b1fa2;
    --secondary-color: #f50057;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e0e0e0;
    --bg-color: #f5f7fb;
    --card-bg: #fff;
    --danger-color: #ff4757;
    --success-color: #2ed573;
    --warning-color: #ffa502;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 布局 */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 18%;
    min-width: 200px;
    max-width: 280px;
    background: var(--primary-gradient);
    color: var(--light-text);
    padding: 20px 0;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo-text h2 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.version {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

.menu ul li {
    margin-bottom: 5px;
    position: relative;
}

.menu ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    transition: all 0.3s;
}

.menu ul li a i {
    margin-right: 12px;
    font-size: 18px;
}

.menu ul li:hover a, .menu ul li.active a {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu ul li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--light-text);
    border-radius: 0 2px 2px 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 70px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    border-radius: 30px;
    padding: 5px 15px;
    width: 400px;
}

.search-container i {
    color: #888;
    margin-right: 10px;
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    padding: 8px 0;
}

.search-btn {
    background: var(--primary-gradient);
    color: var(--light-text);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9c27b0 0%, #ff1744 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
}

.search-btn:hover::before {
    opacity: 1;
}

.page-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title {
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 600;
    color: #444;
}

#new-influencer-btn {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-primary i, .btn-secondary i, .btn-danger i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--light-text);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

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

.btn-danger {
    background-color: var(--danger-color);
    color: var(--light-text);
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* 数据看板卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon i {
    color: var(--light-text);
    font-size: 24px;
}

.stat-content h3 {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #444;
}

/* 图表卡片 */
.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.charts-container .chart-card:last-child {
    grid-column: span 2;
}

.chart-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.chart-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #555;
}

.chart {
    height: 300px;
    width: 100%;
    position: relative;
}

/* 网红管理页面 */
.filters-bar {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    width: 100%;
    overflow-x: visible;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 8px;
    font-weight: 500;
    color: #666;
}

.filter-group select, .filter-group input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.3s;
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--secondary-color);
}

.filter-group input {
    width: 80px;
}

.filter-btn {
    margin-left: auto;
    cursor: pointer;
    padding: 10px 20px !important;
    font-size: 16px !important;
    border-radius: 5px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
    min-width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 10;
    position: relative;
}

.filter-btn:hover {
    background-color: #6a1b9a; /* 更深的紫色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.filter-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.data-table-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table th {
    background-color: #f9fafc;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
    word-wrap: break-word;
}

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

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #9C27B0 !important;
    color: white !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-data-message {
    text-align: center;
    padding: 30px;
    color: #888;
}

.no-data-message i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* 数据导入页面 */
.import-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.import-help {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.import-help h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.import-help ul {
    margin: 15px 0;
    padding-left: 15px;
}

.import-help ul li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
}

.file-upload-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--secondary-color);
    background-color: rgba(245, 0, 87, 0.03);
}

.file-upload-area i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.file-upload-area p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.file-hint {
    font-size: 12px;
    color: #999;
}

.preview-container {
    margin-top: 20px;
}

.preview-table-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.import-logs {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.import-logs h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.logs-container {
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry .timestamp {
    color: #888;
    font-size: 12px;
}

.empty-log {
    text-align: center;
    color: #888;
    padding: 20px;
}

.template-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 设置页面 */
.settings-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.settings-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.settings-card p {
    margin-bottom: 20px;
    color: #666;
}

.settings-actions {
    display: flex;
    gap: 10px;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 500px;
    max-width: 90%;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #555;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer button {
    min-width: 120px;
    width: 120px;
    padding: 10px 0;
    text-align: center;
    height: 45px;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 错误显示 */
.error-row {
    background-color: rgba(255, 71, 87, 0.1);
}

.error-cell {
    position: relative;
}

.error-cell::after {
    content: '!';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--danger-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        padding-top: 15px;
    }
    
    .logo {
        padding: 0 0 15px;
        display: flex;
        justify-content: center;
    }
    
    .logo h1 {
        display: none;
    }
    
    .logo::before {
        content: 'M';
        font-size: 24px;
        font-weight: bold;
    }
    
    .menu ul li a {
        padding: 12px 0;
        justify-content: center;
    }
    
    .menu ul li a i {
        margin-right: 0;
    }
    
    .menu ul li a span {
        display: none;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .charts-container .chart-card:last-child {
        grid-column: auto;
    }
    
    .import-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* 微交互动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(123, 31, 162, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(123, 31, 162, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(123, 31, 162, 0);
    }
}

.search-btn:active {
    animation: pulse 0.3s;
}

/* 根据需求添加额外的CSS属性 */
/* 按钮发光效果 */
.btn-primary {
    position: relative;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    --glow-size: 15px;
    filter: drop-shadow(0 0 var(--glow-size) rgba(123, 31, 162, 0.5));
}

/* 颜色标签系统 */
.tag-red { background-color: rgba(255, 71, 87, 0.1); color: #ff4757; }
.tag-green { background-color: rgba(46, 213, 115, 0.1); color: #2ed573; }
.tag-blue { background-color: rgba(37, 117, 252, 0.1); color: #2575fc; }
.tag-yellow { background-color: rgba(255, 165, 2, 0.1); color: #ffa502; }
.tag-purple { background-color: rgba(123, 31, 162, 0.1); color: #7b1fa2; }
.tag-pink { background-color: rgba(245, 0, 87, 0.1); color: #f50057; }

/* 增加运行按钮背景选项 */
.run-background-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 4px;
    transition: all 0.3s;
}

.checkbox-wrapper:hover input ~ .checkbox-custom {
    background-color: #ccc;
}

.checkbox-wrapper input:checked ~ .checkbox-custom {
    background: var(--primary-gradient);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-wrapper input:checked ~ .checkbox-custom:after {
    display: block;
}

.checkbox-wrapper .checkbox-custom:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    margin-left: 8px;
    font-size: 14px;
}

/* 多条件搜索表单样式 */
.search-form-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    overflow-x: visible;
}

.search-form-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.search-form-header h3 {
    margin: 0;
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
}

.search-form-header h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.search-form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.search-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-group.search-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    margin-bottom: 15px;
}

.advanced-search-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 6px 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-group {
        min-width: 100%;
    }
    
    .search-form-row {
        flex-direction: column;
    }
}

/* 语言切换器样式 */
.language-switcher {
    margin-bottom: 5px;
}

.user-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 10px;
    }

    .search-container {
        width: 100%;
        margin-bottom: 10px;
        order: 1;
    }
    
    .user-actions {
        order: 2;
        width: 100%;
        align-items: flex-end;
    }
    
    .language-switcher {
        margin-bottom: 10px;
        align-self: flex-end;
    }
}

/* 可搜索下拉菜单样式 */
.select-searchable-wrapper {
    position: relative;
    width: 100%;
}

.select-search-input {
    width: calc(100% - 24px);
    padding: 8px 30px 8px 10px;  /* 右侧留出空间给下拉箭头 */
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    margin: 5px auto;
    outline: none;
    transition: border-color 0.2s;
    position: absolute;
    bottom: 5px;
    left: 12px;
    z-index: 5;
    display: block !important; /* 确保搜索框始终可见 */
    opacity: 1 !important; /* 确保搜索框不透明 */
    background-color: #fff;
}

.select-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(123, 31, 162, 0.1);
}

.selected-display {
    width: 100%;
    padding: 8px 12px;
    padding-bottom: 45px; /* 为搜索框留出空间 */
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    display: block;
    transition: all 0.2s;
}

.selected-display:hover {
    border-color: var(--primary-color);
}

.selected-display::after {
    content: '▼';
    font-size: 12px;
    color: #6c757d;
    position: absolute;
    right: 12px;
    top: 10px;
    transition: transform 0.2s;
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000 !important;  /* 确保高于其他元素 */
    display: none;
    margin-top: 4px;
    padding: 4px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.select-options li {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.select-options li:hover {
    background-color: rgba(123, 31, 162, 0.1);
    color: var(--primary-color);
}

.select-options li.selected {
    background-color: var(--primary-color);
    color: white;
}

.select-options li.no-results {
    color: #999;
    font-style: italic;
    cursor: default;
    text-align: center;
}

.select-options li.no-results:hover {
    background-color: transparent;
    color: #999;
}

/* 添加拼音匹配提示样式 */
.search-hint {
    color: #999;
    font-size: 0.9em;
    margin-left: 8px;
}

/* 滚动条样式 */
.select-options::-webkit-scrollbar {
    width: 6px;
}

.select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .select-searchable-wrapper {
        width: 100%;
    }
    
    .select-options {
        max-height: 150px;
    }
}

/* 重复数据选择弹窗样式 */
#duplicate-modal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

#duplicate-table {
    width: 100%;
    border-collapse: collapse;
}

#duplicate-table th, 
#duplicate-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#duplicate-table th {
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 1;
}

.existing-record {
    background-color: #f9f9f9;
}

.new-record {
    background-color: #fff;
}

.new-record td {
    font-weight: bold;
}

/* 添加全选按钮的样式 */
.select-all-container {
    margin-bottom: 10px;
}

/* 高亮不同的字段 */
.different-value {
    background-color: #ffef9c;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    #duplicate-modal .modal-content {
        width: 95%;
        max-width: none;
    }
    
    #duplicate-table {
        font-size: 0.9em;
    }
    
    #duplicate-table th, 
    #duplicate-table td {
        padding: 5px;
    }
}

/* 排序按钮样式 */
.sort-buttons {
    display: inline-flex !important;
    flex-direction: column;
    margin-left: 5px;
    vertical-align: middle;
}

.sort-btn {
    cursor: pointer;
    color: #000;
    font-size: 12px;
    line-height: 10px;
    opacity: 0.5;
    display: inline-block !important;
    padding: 2px;
    margin: 3px 0;
    height: 12px;
}

.sort-btn:hover {
    opacity: 1;
}

.sort-btn.active {
    opacity: 1;
    color: var(--primary-color);
}

/* 表头样式 */
th {
    position: relative;
}

th[id="th-price"], th[id="th-points"] {
    cursor: pointer;
}

th[id="th-price"] .header-content, th[id="th-points"] .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    flex-direction: row !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
}

/* 确保网红管理页面和用户管理页面宽度一致 */
#influencers, #user-management {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

/* 调整表格中的列宽 */
.data-table th[id="th-username"],
.data-table th[id="th-platform"],
.data-table th[id="th-country"],
.data-table th[id="th-tg_account"] {
    width: 10%;
}

.data-table th[id="th-link"] {
    width: 20%;
}

.data-table th[id="th-price"],
.data-table th[id="th-points"],
.data-table th[id="th-actions"] {
    width: 8%;
}

.data-table th[id="th-label"] {
    width: 16%;
}

/* User Management表格操作按钮样式优化 */
#user-management .data-table td .btn-primary,
#user-management .data-table td .btn-secondary,
#user-management .data-table td .btn-danger {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    vertical-align: middle;
}

/* 为操作列添加弹性布局，确保按钮水平排列 */
#user-management .data-table td:last-child {
    display: flex;
    gap: 8px; /* 按钮之间的间距 */
    align-items: center; /* 按钮垂直居中 */
}

#user-management .data-table td .btn-danger {
    /* 移除之前的margin-top样式，因为现在使用gap来控制间距 */
} 