/* ==================== 攻击属性页面样式 ==================== */

/* 攻击属性说明区块 */
.attack-properties-info {
    background: rgba(40, 35, 30, 0.9);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* 搜索和筛选控件 */
.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;
}

.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;
    min-width: 150px;
    flex-grow: 1;
}

.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.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);
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    background: rgba(40, 35, 30, 0.9);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

/* 攻击属性表格 */
.attack-properties-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    min-width: 2800px;
}

.attack-properties-table th,
.attack-properties-table td {
    padding: 0.6rem 0.4rem;
    text-align: center;
    border: 1px solid var(--border-gold);
    white-space: nowrap;
    vertical-align: top;
}

.attack-properties-table th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 1rem;
}

.attack-properties-table td {
    font-size: 0.85rem;
    background: rgba(30, 25, 20, 0.8);
}

.attack-properties-table tr:nth-child(even) td {
    background: rgba(255, 215, 0, 0.05);
}

/* 表头内容包装器 */
.header-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-text {
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 600;
}

/* 分页控件 */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    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;
}

/* 滚动条样式 */
.table-container::-webkit-scrollbar {
    height: 10px;
    border-radius: 5px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(40, 35, 30, 0.8);
    border-radius: 5px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 5px;
    border: 1px solid var(--gold-primary);
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--gold-secondary);
}

.table-container {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) rgba(40, 35, 30, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-search-controls {
        padding: 1rem;
        gap: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filter-group input[type="text"] {
        min-width: 100%;
    }

    .attack-properties-table th,
    .attack-properties-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }

    .pagination-controls button,
    .pagination-controls span {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}
