* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #1a1a2e; color: #eee; min-height: 100vh; }
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.header { text-align: center; padding: 30px 0; border-bottom: 2px solid #e94560; }
.header h1 { font-size: 2rem; color: #e94560; }
.header h1 span { color: #fff; }

.filter-panel { background: #16213e; border-radius: 12px; padding: 20px; margin-bottom: 30px; border: 1px solid #2a3a5e; }
.filter-row { display: flex; gap: 15px; margin-bottom: 15px; align-items: center; flex-wrap: wrap; }
.filter-label { color: #e94560; font-size: 0.9rem; font-weight: bold; width: 80px; flex-shrink: 0; }

.filter-row input, .filter-row select {
    padding: 8px 12px;
    border-radius: 6px;
    background: #1a2a4a;
    color: #eee;
    border: 1px solid #2a3a5e;
    outline: none;
    height: 38px;
}

.search-input { width: 200px; flex-shrink: 0; }
.info-select { width: 120px; flex-shrink: 0; }
.attr-select { width: 200px; flex-shrink: 0; }
.val-select { width: 120px; flex-shrink: 0; }

.filter-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.filter-actions button { padding: 10px 30px; background: #e94560; color: #fff; border: none; border-radius: 6px; cursor: pointer; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #16213e; border-radius: 12px; padding: 20px; border: 1px solid #2a3a5e; cursor: pointer; transition: transform 0.2s; }
.card:hover { transform: translateY(-3px); border-color: #e94560; }
.card .top { display: flex; justify-content: space-between; align-items: center; }
.card .name { font-size: 1.15rem; font-weight: bold; }
.card .hw { font-size: 0.75rem; color: #888; font-weight: normal; margin-left: 6px; }
.card .version { color: #888; font-size: 0.85rem; margin-top: 4px; }
.card .overall { font-size: 1.8rem; font-weight: bold; color: #e94560; }
.card .info { color: #aaa; font-size: 0.9rem; margin-top: 8px; }
.stats { text-align: center; color: #666; font-size: 0.9rem; padding: 20px 0; }
.completed-badge { display: inline-block; width: 10px; height: 10px; background-color: #2ecc71; border-radius: 50%; margin-left: 8px; box-shadow: 0 0 5px #2ecc71; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0; align-items: center; }
.pagination button { padding: 8px 16px; background: #16213e; border: 1px solid #2a3a5e; border-radius: 6px; color: #aaa; cursor: pointer; }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 1000; justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-content { background: #16213e; border-radius: 16px; padding: 30px; max-width: 800px; width: 95%; max-height: 90vh; overflow-y: auto; }
.modal-content .close { float: right; font-size: 1.8rem; cursor: pointer; color: #888; }
.section { margin: 22px 0; }
.section h3 { color: #e94560; font-size: 0.95rem; margin-bottom: 12px; border-bottom: 1px solid #2a3a5e; padding-bottom: 6px; }
.attrs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.attr-item { background: #1a2a4a; padding: 8px 12px; border-radius: 6px; display: flex; justify-content: space-between; }
.attr-item .label { color: #888; font-size: 0.85rem; }
.attr-item .value { color: #eee; font-weight: bold; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 12px; background: #2a3a5e; border-radius: 12px; font-size: 0.85rem; }
.tag .level { color: #e94560; font-weight: bold; }
.image-row { display: flex; gap: 15px; flex-wrap: wrap; }
.image-item { text-align: center; }
.image-item img { width: 150px; height: 200px; object-fit: contain; border-radius: 10px; background: #1a2a4a; }
.image-item .label { color: #888; font-size: 0.85rem; margin-top: 5px; }

@media (max-width: 768px) {
    .filter-row { flex-wrap: wrap; }
    .filter-label { width: 100%; }
    .attrs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 球员对比功能 ============ */
.card { position: relative; }
.compare-check {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(26, 42, 74, 0.9);
    border: 1px solid #2a3a5e;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #aaa;
    cursor: pointer;
    user-select: none;
}
.compare-check:hover { border-color: #e94560; color: #fff; }
.compare-check input { cursor: pointer; accent-color: #e94560; }

.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #16213e;
    border-top: 2px solid #e94560;
    padding: 12px 20px;
    display: none;
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.compare-bar.show { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.compare-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #1a2a4a;
    border: 2px solid #2a3a5e;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #eee;
}
.compare-chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.compare-chip .remove { margin-left: 4px; cursor: pointer; color: #888; font-weight: bold; font-size: 1.1rem; line-height: 1; }
.compare-chip .remove:hover { color: #e94560; }
.compare-actions { display: flex; align-items: center; gap: 10px; }
.compare-count { color: #888; font-size: 0.85rem; }
.compare-actions button { padding: 8px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.btn-clear { background: #444; color: #ddd; }
.btn-go { background: #e94560; color: #fff; }
.btn-go:disabled { background: #444; color: #888; cursor: not-allowed; }

/* 对比弹窗 */
.modal-content.compare-modal-content { max-width: 1100px; }
.compare-box { width: 100%; }
.compare-body { display: flex; gap: 20px; padding: 20px; flex-wrap: wrap; }
.compare-radar { flex-shrink: 0; display: flex; justify-content: center; align-items: center; background: #111a2e; border-radius: 8px; padding: 10px; }
.compare-table-wrap { flex: 1; min-width: 400px; max-height: 70vh; overflow-y: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid #1f2f4f; }
.compare-table th { background: #1a2a4a; color: #e94560; position: sticky; top: 0; z-index: 1; font-size: 0.85rem; }
.compare-table .attr-name { text-align: left; color: #8899bb; font-weight: normal; }
.compare-table .attr-val { color: #eee; font-weight: bold; }
.compare-table .val-max { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.compare-table .val-min { color: #888; }

@media (max-width: 768px) {
    .compare-body { flex-direction: column; }
    .compare-table-wrap { min-width: 0; max-height: none; }
}