/* TikTok风格的达人黑名单CSS - 使用tktoc-bl前缀避免冲突 */

/* 外层包装器，确保宽度 */
.tktoc-bl-wrapper {
    width: 95%;
    margin: 0 auto;
}

/* 主容器样式 */
.tktoc-bl-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 15px;
}

/* 标题样式 */
.tktoc-bl-header {
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.tktoc-bl-title {
    font-size: 32px;
    font-weight: 700;
    color: #161823;
    margin: 30px auto 20px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.tktoc-bl-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #25f4ee 0%, #fe2c55 100%);
    border-radius: 2px;
}
/* 夜间模式下的标题样式 */
.io-black-mode .tktoc-bl-title {
    color: #ffffff;
}

/* 统计数据样式 */
.tktoc-bl-stats-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
    padding: 0 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    color: #8a8b91;
}

.tktoc-bl-stats-item {
    margin: 0 15px;
    white-space: nowrap;
}

.tktoc-bl-stats-highlight {
    color: #fe2c55;
    font-weight: 600;
    margin: 0 4px;
}

/* 搜索框样式 */
.tktoc-bl-search {
    padding: 0px;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
}

.tktoc-bl-search-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#tktoc-black-list-input {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

#tktoc-black-list-input:focus {
    outline: none;
    border-color: #25f4ee;
    box-shadow: 0 0 0 2px rgba(37, 244, 238, 0.2);
}

        /* 夜间模式下的搜索框样式 */
        .io-black-mode #tktoc-black-list-input {
            background-color: #2a2a2a !important;
            color: #e0e0e0 !important;
            border-color: #444 !important;
        }
        
        .io-black-mode #tktoc-black-list-input:focus {
            border-color: #25f4ee !important;
            box-shadow: 0 0 0 2px rgba(37, 244, 238, 0.3) !important;
        }
        
        .io-black-mode #tktoc-black-list-input::placeholder {
            color: #999 !important;
        }
        
.tktoc-bl-search-btn {
    align-self: flex-end;
    background-color: #fe2c55;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tktoc-bl-search-btn:hover {
    background-color: #e62a4d;
}

/* 功能图标 */
.tktoc-bl-feature-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.tktoc-bl-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f1f1f2;
}

.tktoc-bl-feature-icon svg {
    width: 24px;
    height: 24px;
    color: #8a8b91;
}

.tktoc-bl-warning-icon:hover {
    background-color: #ffecee;
}

.tktoc-bl-warning-icon:hover svg {
    color: #fe2c55;
}

.tktoc-bl-report-icon:hover {
    background-color: #e9f9f9;
}

.tktoc-bl-report-icon:hover svg {
    color: #25f4ee;
}

/* 结果表格样式 */
.tktoc-bl-results {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tktoc-bl-results-header {
    background-color: #f8f8f8;
    padding: 15px 20px;
    border-bottom: 1px solid #e6e6e6;
}

.tktoc-bl-results-title {
    font-size: 18px;
    font-weight: 600;
    color: #161823;
}

.tktoc-bl-results-table-container {
    overflow-x: auto;
}

.tktoc-bl-results-table {
    width: 100%;
    border-collapse: collapse;
}

.tktoc-bl-results-table th, 
.tktoc-bl-results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
}

.tktoc-bl-results-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #8a8b91;
    font-size: 14px;
}

.tktoc-bl-results-table tr:hover {
    background-color: #f9f9f9;
}

.tktoc-bl-no-results {
    text-align: center;
    padding: 20px;
    color: #8a8b91;
}

/* 用户单元格样式 */
.tktoc-bl-user-cell {
    display: flex;
    align-items: center;
}

.tktoc-bl-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fe2c55;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.tktoc-bl-user-info {
    display: flex;
    flex-direction: column;
}

.tktoc-bl-user-name {
    font-weight: 600;
}

.tktoc-bl-user-id {
    font-size: 12px;
    color: #8a8b91;
}

/* 加载指示器样式 */
.tktoc-bl-loading-indicator {
    text-align: center;
    padding: 20px;
    color: #8a8b91;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.tktoc-bl-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(254, 44, 85, 0.3);
    border-radius: 50%;
    border-top-color: #fe2c55;
    animation: tktoc-bl-spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* 推广部分样式 */
.tktoc-bl-promotion {
    margin: 30px 0;
}

.tktoc-bl-promotion-box {
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tktoc-bl-promotion-header {
    text-align: center;
    margin-bottom: 20px;
}

.tktoc-bl-promotion-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #161823;
    margin: 0 0 8px 0;
}

.tktoc-bl-promotion-header p {
    color: #8a8b91;
    margin: 0;
}

.tktoc-bl-promotion-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tktoc-bl-promotion-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fe2c55;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    max-width: 350px;
    transition: background-color 0.3s;
}

.tktoc-bl-promotion-button:hover {
    background-color: #e62a4d;
    color: white;
    text-decoration: none;
}

.tktoc-bl-button-icon {
    margin-right: 8px;
    font-size: 18px;
}

.tktoc-bl-promotion-divider {
    color: #8a8b91;
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.tktoc-bl-promotion-divider:before, 
.tktoc-bl-promotion-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background-color: #e6e6e6;
}

.tktoc-bl-promotion-divider:before {
    left: 0;
}

.tktoc-bl-promotion-divider:after {
    right: 0;
}

.tktoc-bl-discount-code-container {
    width: 100%;
    max-width: 350px;
}

.tktoc-bl-discount-code-label {
    font-size: 14px;
    color: #8a8b91;
    margin-bottom: 8px;
}

.tktoc-bl-discount-code-box {
    display: flex;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
}

#discount-code {
    flex: 1;
    padding: 12px 15px;
    background-color: white;
    font-family: monospace;
    font-size: 16px;
    color: #161823;
}

.tktoc-bl-copy-button {
    background-color: #f1f1f2;
    color: #161823;
    border: none;
    padding: 0 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tktoc-bl-copy-button:hover {
    background-color: #e6e6e6;
}

/* 模态框自定义样式 */
.tktoc-bl-congrats-icon {
    font-size: 48px;
    color: #fe2c55;
    font-weight: bold;
}

/* 模态框关闭按钮样式 */
#congratsModal .modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

#congratsModal .btn-close {
    opacity: 1;
    visibility: visible;
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tktoc-bl-stats-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .tktoc-bl-stats-item {
        margin: 5px 0;
    }
    
    .tktoc-bl-results-table {
        font-size: 14px;
    }
    
    .tktoc-bl-results-table th, 
    .tktoc-bl-results-table td {
        padding: 10px;
    }
}

 /* 夜间模式下的推广板块样式 */
        .io-black-mode .tktoc-bl-promotion {
            background-color: #2a2a2a !important;
            color: #e0e0e0 !important;
            border-color: #444 !important;
        }
         .io-black-mode .tktoc-bl-promotion:focus {
            border-color: #25f4ee !important;
            box-shadow: 0 0 0 2px rgba(37, 244, 238, 0.3) !important;
        }
         .io-black-mode .tktoc-bl-promotion::placeholder {
            color: #999 !important;
        }
/* 夜间模式下的标题样式 */
.io-black-mode .tktoc-bl-promotion-header h3 {
    color: #ffffff;
}