button {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    color: #334155;
}
button:hover {
    background: #e2e8f0;
}
button.primary {
    background: #8b5cf6;
    color: white;
    border: none;
}
button.primary:hover {
    background: #7c3aed;
}
.nav-btn {
    padding: 10px 24px;
    font-size: 1rem;
}
.nav-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

/* 角色网格 */
.char-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.char-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.char-item.selected {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}
.char-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 40px;
}
.filter-label {
    font-weight: 500;
    color: #475569;
}
.element-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 6px 16px;
    border-radius: 30px;
    background: white;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.filter-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}
.select-all {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.select-all button {
    padding: 6px 16px;
    background: #e2e8f0;
    border: none;
}

/* 等级列表 */
.level-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}
.level-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}
.level-item .char-name {
    font-weight: 600;
    min-width: 100px;
}
.level-item .char-element {
    color: #64748b;
    margin-left: 8px;
    font-size: 0.9rem;
}
.level-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.level-controls button {
    padding: 4px 12px;
    font-size: 1rem;
    min-width: 40px;
}
.level-controls input {
    width: 70px;
    text-align: center;
    padding: 6px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
}

/* 表格样式 */
.boss-table, .material-table {
    width: 100%;
    border-collapse: collapse;
}
.boss-table th, .material-table th {
    text-align: left;
    padding: 12px 8px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
}
.boss-table td, .material-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e9eef2;
    vertical-align: middle;
}
.boss-table .value, .material-table .value {
    font-weight: 600;
    min-width: 40px;
    display: inline-block;
    text-align: center;
}
.boss-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.boss-buttons button {
    padding: 4px 12px;
    font-size: 0.9rem;
    min-width: 50px;
}
.btn-inc3 { background: #dbeafe; border-color: #3b82f6; color: #1e40af; }
.btn-inc1 { background: #dcfce7; border-color: #22c55e; color: #166534; }
.btn-dec2 { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.btn-dec1 { background: #fff3cd; border-color: #facc15; color: #854d0e; }

/* 元素石头标签页 */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}
.tab {
    padding: 10px 20px;
    border-radius: 30px 30px 0 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
}
.tab.active {
    background: #8b5cf6;
    color: white;
}

/* 元素石头表格内控件 */
.owned-controls {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.owned-input {
    width: 60px;
    padding: 4px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    text-align: center;
    margin-right: 4px;
}
.material-table .small {
    padding: 2px 8px;
    font-size: 0.75rem;
    min-width: 30px;
    border-radius: 20px;
}

/* 剩余编辑按钮 */
.remaining-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}