/* ==================== 最大收益页面样式 ==================== */

/* 内容块样式 */
.content-block {
    background: rgba(40, 35, 30, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.content-block p {
    margin: 0;
    color: var(--text-primary);
}

/* 搜索和筛选控件 */
.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;
    flex-grow: 1;
    min-width: 200px;
}

.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);
}

/* 最大收益表格容器 */
.benefits-table-container {
    background: rgba(40, 35, 30, 0.9);
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem 0;
    overflow-x: auto;
}

/* 最大收益表格 */
.benefits-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.benefits-table th,
.benefits-table td {
    padding: 12px 10px;
    text-align: left;
    border: 1px solid var(--border-gold);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.benefits-table th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.benefits-table td {
    background: rgba(30, 25, 20, 0.8);
    color: var(--text-primary);
}

.benefits-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* 表格列宽设置 */
.benefits-table th:nth-child(1),
.benefits-table td:nth-child(1) {
    width: 12%;
}

.benefits-table th:nth-child(2),
.benefits-table td:nth-child(2) {
    width: 15%;
}

.benefits-table th:nth-child(3),
.benefits-table td:nth-child(3) {
    width: 20%;
}

.benefits-table th:nth-child(4),
.benefits-table td:nth-child(4) {
    width: 8%;
}

.benefits-table th:nth-child(5),
.benefits-table td:nth-child(5) {
    width: 10%;
}

.benefits-table th:nth-child(6),
.benefits-table td:nth-child(6) {
    width: 35%;
}

.benefits-table .stat-value {
    color: var(--text-primary);
}

/* 分页控件 */
.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;
}

/* 输入错误提示 */
.input-error {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.5) !important;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-size: 1.1rem;
}

/* 滚动条样式 */
.benefits-table-container::-webkit-scrollbar {
    height: 10px;
}

.benefits-table-container::-webkit-scrollbar-track {
    background: rgba(40, 35, 30, 0.8);
    border-radius: 5px;
}

.benefits-table-container::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 5px;
}

.benefits-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--gold-secondary);
}

/* 响应式设计 */
@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%;
    }

    .benefits-table th,
    .benefits-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    /* 移动端表格列宽调整 */
    .benefits-table th:nth-child(1),
    .benefits-table td:nth-child(1) {
        width: 15%;
    }

    .benefits-table th:nth-child(2),
    .benefits-table td:nth-child(2) {
        width: 18%;
    }

    .benefits-table th:nth-child(3),
    .benefits-table td:nth-child(3) {
        width: 22%;
    }

    .benefits-table th:nth-child(4),
    .benefits-table td:nth-child(4) {
        width: 10%;
    }

    .benefits-table th:nth-child(5),
    .benefits-table td:nth-child(5) {
        width: 12%;
    }

    .benefits-table th:nth-child(6),
    .benefits-table td:nth-child(6) {
        width: 23%;
    }

    .pagination-controls button,
    .pagination-controls span {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}
