/* ==================== 处决数据页面样式 ==================== */

/* 处决信息块 */
.execution-info {
    background: rgba(40, 35, 30, 0.9);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* 处决表格 */
.execution-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    table-layout: fixed; /* 关键：固定表格布局，防止内容撑开列 */
}

.execution-table th, 
.execution-table td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--border-gold);
    word-wrap: break-word; /* 确保长文本能正确换行 */
    overflow: hidden;
}

.execution-table th {
    background: rgba(255,215,0,0.1);
    color: var(--gold-primary);
}

.execution-table tr:nth-child(even) {
    background: rgba(255,215,0,0.05);
}

/* 独立处决表格列宽 */
.hero-table .hero-col { width: 12%; }
.hero-table .name-col { width: 18%; }
.hero-table .time-col { width: 9%; }
.hero-table .duration-col { width: 9%; }
.hero-table .victim-col { width: 11%; }
.hero-table .hp-col { width: 8%; }
.hero-table .lock-col { width: 8%; }
.hero-table .ledge-col { width: 8%; }
.hero-table .notes-col { width: 17%; }

/* 通用处决表格列宽 */
.shared-table .name-col { width: 20%; }
.shared-table .time-col { width: 10%; }
.shared-table .duration-col { width: 10%; }
.shared-table .victim-col { width: 12%; }
.shared-table .hp-col { width: 8%; }
.shared-table .lock-col { width: 8%; }
.shared-table .ledge-col { width: 8%; }
.shared-table .source-col { width: 12%; }
.shared-table .notes-col { width: 12%; }

/* 阵营颜色指示器 */
.faction-knight {
    color: #ffd700;
    border-left: 3px solid #ffd700;
    padding-left: 5px;
}

.faction-viking {
    color: #c41e3a;
    border-left: 3px solid #c41e3a;
    padding-left: 5px;
}

.faction-samurai {
    color: #1abc9c;
    border-left: 3px solid #1abc9c;
    padding-left: 5px;
}

.faction-wulin {
    color: #9b59b6;
    border-left: 3px solid #9b59b6;
    padding-left: 5px;
}

.faction-adventurer {
    color: #189DC9;
    border-left: 3px solid #189DC9;
    padding-left: 5px;
}

/* 内容块样式 */
.info-block {
    background: rgba(30, 25, 20, 0.6);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 3px solid var(--gold-primary);
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

/* 分页控件样式 */
.pagination-controls { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 0.5rem; 
    margin-top: 1rem; 
    padding: 1rem; 
}

.pagination-controls button, 
.pagination-controls span { 
    color: var(--text-secondary); 
    padding: 0.5rem 0.8rem; 
    text-decoration: none; 
    border: 1px solid var(--border-gold); 
    border-radius: 4px; 
    transition: all 0.3s ease; 
    background-color: transparent; 
    cursor: pointer; 
    font-family: inherit; 
    font-size: inherit; 
}

.pagination-controls button:hover { 
    background-color: rgba(255,215,0,0.1); 
    color: var(--gold-primary); 
    border-color: var(--gold-primary); 
}

.pagination-controls .active { 
    background-color: var(--gold-primary); 
    color: var(--bg-dark); 
    border-color: var(--gold-primary); 
    font-weight: bold; 
}

.pagination-controls .disabled { 
    color: rgba(168, 154, 125, 0.5); 
    pointer-events: none; 
    border-color: rgba(255, 215, 0, 0.15); 
    opacity: 0.6; 
}

.pagination-controls span.ellipsis { 
    border: none; 
    padding: 0.5rem 0.3rem; 
    cursor: default; 
}

/* 无结果提示 */
.no-results { 
    text-align: center; 
    color: var(--text-secondary); 
    padding: 2rem; 
    font-size: 1.1rem; 
}

/* 输入错误样式 */
.input-error { 
    border-color: #ff4d4d !important; 
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.5) !important; 
}

/* 搜索和过滤控件 */
.filter-search-controls { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 1.5rem; 
    padding: 1.5rem; 
    background: rgba(30, 25, 20, 0.7); 
    border-radius: 8px; 
    margin-bottom: 2rem; 
    border: 1px solid var(--border-gold); 
}

.filter-group { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    flex-grow: 1; 
}

.filter-group label { 
    color: var(--text-secondary); 
    font-size: 0.95rem; 
    white-space: nowrap; 
}

.filter-group input[type="text"] { 
    background-color: var(--bg-dark); 
    color: var(--text-primary); 
    border: 1px solid var(--gold-secondary); 
    border-radius: 4px; 
    padding: 0.5rem 0.8rem; 
    font-size: 0.9rem; 
    flex-grow: 1; 
    min-width: 200px; 
}

.search-button { 
    background-color: var(--gold-secondary); 
    color: var(--bg-dark); 
    border: none; 
    padding: 0.5rem 1rem; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: background-color 0.3s ease; 
}

.search-button:hover { 
    background-color: var(--gold-primary); 
}

/* 加载中样式 */
.loading {
    text-align: center;
    color: #ffd700;
    font-size: 1.2rem;
    margin: 1rem 0;
}

/* 表格分隔样式 */
.table-section-header {
    background: rgba(255, 215, 0, 0.3);
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

/* 错误提示样式 */
.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
}

/* 分离的表格样式 */
.separate-table-section {
    background: rgba(40, 35, 30, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.section-title-with-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title-with-pagination h3 {
    margin: 0;
    color: var(--gold-primary);
}

.section-title-header {
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.mini-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-pagination .pagination-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
}

.mini-pagination .pagination-info {
    font-size: 0.9rem;
}

/* 英雄名字高亮样式 */
.hero-name {
    font-weight: bold;
    color: var(--gold-primary);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .execution-info {
        padding: 1.5rem;
    }

    .info-block {
        padding: 1rem;
    }

    .filter-search-controls {
        flex-direction: column;
        padding: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filter-group input[type="text"] {
        min-width: 100%;
    }

    .search-button {
        width: 100%;
    }

    .separate-table-section {
        padding: 1rem;
    }

    .execution-table {
        font-size: 0.85rem;
    }

    .execution-table th, 
    .execution-table td {
        padding: 0.5rem 0.3rem;
    }

    .pagination-controls {
        flex-wrap: wrap;
        gap: 0.3rem;
        padding: 0.5rem;
    }

    .pagination-controls button, 
    .pagination-controls span {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}
