* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: #111;
    min-height: 100vh;
}

.header {
    background: #1a1a1a;
    padding: 20px 30px;
    border-bottom: 2px solid #333;
}

.nav-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #aaa;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #333;
    border-color: #555;
    color: #ccc;
}

.nav-btn.active {
    background: #2a2a2a;
    border-color: #667eea;
    color: #667eea;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
}

.filter-section {
    padding: 20px 30px;
    background: #0f0f0f;
    border-bottom: 1px solid #222;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #555;
    color: #ccc;
}

.tab-btn.active {
    background: #2a2a2a;
    border-color: #667eea;
    color: #667eea;
}

.search-box input {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box input::placeholder {
    color: #555;
}

.penetration-legend {
    margin-top: 20px;
    padding: 15px;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 4px;
}

.legend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.legend-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #aaa;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
}

.legend-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
}

.legend-table tr:last-child td {
    border-bottom: none;
}

.pen-level {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
    color: #fff;
    margin-right: 5px;
}

.level-0 { background: #ef4444; }
.level-1 { background: #fb923c; }
.level-2 { background: #fbbf24; }
.level-3 { background: #a3e635; }
.level-4 { background: #4ade80; }
.level-5 { background: #22c55e; }
.level-6 { background: #16a34a; }

.table-container {
    overflow-x: auto;
    padding: 20px 30px;
}

.ammo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ammo-table thead {
    background: #0f0f0f;
    position: sticky;
    top: 0;
}

.ammo-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid #222;
    white-space: nowrap;
}

.ammo-table th:hover {
    color: #aaa;
}

.ammo-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #1a1a1a;
}

.ammo-table tbody tr:hover {
    background: #0f0f0f;
}

.ammo-table td:first-child {
    font-weight: 500;
    color: #fff;
}

/* 数值颜色 */
.value-high {
    color: #4ade80;
}

.value-medium {
    color: #fbbf24;
}

.value-low {
    color: #f87171;
}

/* 破甲能力网格容器 */
.penetration-grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* 破甲能力网格 */
.penetration-grid {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.penetration-cell {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    border-radius: 3px;
    text-shadow: 0 0 2px rgba(0,0,0,0.7);
    transition: all 0.2s ease;
}

/* 穿透值颜色 - 严格按照表格 */
.penetration-high {
    background: #4ade80;  /* 绿色 - 高穿透 */
}

.penetration-medium {
    background: #fbbf24;  /* 黄色/橙色 - 中等穿透 */
}

.penetration-low {
    background: #fb923c;  /* 橙色/红色 - 低穿透 */
}

.penetration-zero {
    background: #ef4444;  /* 红色 - 无穿透 */
}

/* 护甲等级标签 */
.penetration-labels {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.penetration-label {
    width: 26px;
    text-align: center;
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

.stats-bar {
    padding: 15px 30px;
    background: #0f0f0f;
    border-top: 1px solid #222;
    font-size: 14px;
    color: #666;
}

.stats-bar strong {
    color: #aaa;
    margin-right: 20px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 16px;
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .filter-section {
        padding: 15px 20px;
    }
    
    .table-container {
        padding: 15px 20px;
    }
    
    .ammo-table {
        font-size: 12px;
    }
    
    .ammo-table th,
    .ammo-table td {
        padding: 8px 10px;
    }
}
