/* Overwatch 官网风格样式 */

:root {
    /* 官网配色方案 */
    --ow-bg-dark: #0d0f15;
    --ow-bg-medium: #1a1d24;
    --ow-bg-light: #252a34;
    --ow-border: #3a3f4d;
    --ow-text-primary: #ffffff;
    --ow-text-secondary: #b5b9c4;
    --ow-text-muted: #7a7f8e;
    --ow-accent: #f99e1a;
    --ow-accent-hover: #ffb84d;
    
    /* 角色颜色 */
    --role-tank: #ffb84d;
    --role-damage: #ff4655;
    --role-support: #00d4a5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--ow-bg-dark);
    color: var(--ow-text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - 简化版官网风格 */
.header {
    background: var(--ow-bg-medium);
    padding: 32px 0;
    border-bottom: 1px solid var(--ow-border);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ow-accent);
    margin-bottom: 4px;
}

.subtitle {
    font-size: 1rem;
    color: var(--ow-text-secondary);
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* Filters Section - 官网风格 */
.filters-section {
    background: var(--ow-bg-medium);
    padding: 24px 0;
    border-bottom: 1px solid var(--ow-border);
}

.filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--ow-text-secondary);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.filter-group select {
    padding: 10px 14px;
    background: var(--ow-bg-light);
    border: 1px solid var(--ow-border);
    border-radius: 4px;
    color: var(--ow-text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-group select:hover {
    border-color: var(--ow-accent);
    background: var(--ow-bg-medium);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--ow-accent);
    box-shadow: 0 0 0 2px rgba(249, 158, 26, 0.15);
}

.btn-primary {
    padding: 10px 24px;
    background: var(--ow-accent);
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--ow-accent-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.search-box {
    margin-top: 0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.search-box input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--ow-bg-light);
    border: 1px solid var(--ow-border);
    border-radius: 4px;
    color: var(--ow-text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--ow-accent);
    box-shadow: 0 0 0 2px rgba(249, 158, 26, 0.15);
}

.search-box input::placeholder {
    color: var(--ow-text-muted);
}

/* 推荐按钮 */
.btn-recommend {
    padding: 12px 20px;
    background: linear-gradient(135deg, #00d4a5 0%, #4fd1c5 100%);
    border: none;
    border-radius: 4px;
    color: #1a1d24;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-recommend:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 165, 0.25);
}

.btn-recommend:active {
    transform: translateY(0);
}

/* Stats Section - 官网风格 */
.stats-section {
    padding: 32px 0 60px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.stats-title h2 {
    font-size: 1.75rem;
    color: var(--ow-text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.update-time {
    color: var(--ow-text-muted);
    font-size: 0.875rem;
}

/* Table - 官网简洁风格 */
.hero-table {
    background: var(--ow-bg-medium);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--ow-border);
}

#stats-table {
    width: 100%;
    border-collapse: collapse;
}

#stats-table thead {
    background: var(--ow-bg-light);
    border-bottom: 1px solid var(--ow-border);
}

#stats-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ow-text-secondary);
    position: relative;
    user-select: none;
}

#stats-table th.sortable {
    cursor: pointer;
    transition: all 0.2s ease;
}

#stats-table th.sortable:hover {
    background: rgba(249, 158, 26, 0.08);
    color: var(--ow-accent);
}

#stats-table th.sortable:active {
    transform: scale(0.98);
}

.sort-arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.4;
    transition: all 0.2s ease;
}

#stats-table th.sortable.active .sort-arrow {
    opacity: 1;
    color: var(--ow-accent);
}

#stats-table tbody tr {
    border-bottom: 1px solid var(--ow-border);
    transition: background 0.15s ease;
}

#stats-table tbody tr:last-child {
    border-bottom: none;
}

#stats-table tbody tr:hover {
    background: var(--ow-bg-light);
}

#stats-table td {
    padding: 16px 20px;
}

.hero-col {
    width: 28%;
}

.role-col {
    width: 12%;
    text-align: center;
}

.tier-col {
    width: 15%;
    text-align: center;
}

.stat-col {
    width: 22.5%;
    text-align: left;
}

/* Hero Info - 官网简洁风格 */
.hero-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--ow-border);
    object-fit: cover;
    flex-shrink: 0;
}

.hero-name-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ow-text-primary);
    line-height: 1.4;
}

.hero-role {
    font-size: 0.75rem;
    color: var(--ow-text-muted);
    text-transform: capitalize;
}

/* Tier Badge - 简化版 */
.tier-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: help;
}

.tier-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tier-score {
    font-size: 0.75rem;
    color: var(--ow-text-secondary);
    font-weight: 500;
}

.tier-badge.tier-op {
    background: #dc2626;
}

.tier-badge.tier-t1 {
    background: #ea580c;
}

.tier-badge.tier-t2 {
    background: #16a34a;
}

.tier-badge.tier-t3 {
    background: #6b7280;
}

.tier-badge.tier-t4 {
    background: #4b5563;
}

/* Role Badge - 职责徽章 */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: capitalize;
}

.role-badge.role-tank {
    background: linear-gradient(135deg, #ffd89b 0%, #ff9a44 100%);
    color: #1a1d24;
}

.role-badge.role-damage {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee3939 100%);
}

.role-badge.role-support {
    background: linear-gradient(135deg, #4fd1c5 0%, #06b6d4 100%);
}

/* Stat Value - 官网风格 */
.stat-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ow-text-primary);
    margin-bottom: 6px;
}

/* Stat Bar - 简洁版 */
.stat-bar {
    width: 120px;
    height: 4px;
    background: var(--ow-bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--ow-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Role Colors - 简化版 */
.role-tank .hero-icon {
    border-color: var(--role-tank);
}

.role-damage .hero-icon {
    border-color: var(--role-damage);
}

.role-support .hero-icon {
    border-color: var(--role-support);
}

/* Loading & No Data - 官网风格 */
.loading {
    text-align: center;
    padding: 80px 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--ow-border);
    border-top-color: var(--ow-accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-size: 0.9375rem;
    color: var(--ow-text-secondary);
}

.no-data {
    text-align: center;
    padding: 80px 20px;
}

.no-data p {
    font-size: 1.125rem;
    color: var(--ow-text-secondary);
    margin-bottom: 8px;
}

.no-data .hint {
    font-size: 0.875rem;
    color: var(--ow-text-muted);
}

/* Footer - 官网风格 */
.footer {
    background: var(--ow-bg-medium);
    padding: 24px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--ow-border);
}

.footer p {
    color: var(--ow-text-muted);
    font-size: 0.875rem;
}

/* ===== 阵容推荐面板 ===== */
.composition-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.composition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.composition-content {
    position: relative;
    background: var(--ow-bg-medium);
    border: 1px solid var(--ow-border);
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.composition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--ow-border);
}

.composition-header h2 {
    font-size: 1.5rem;
    color: var(--ow-text-primary);
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--ow-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: var(--ow-accent);
}

.composition-map-info {
    padding: 16px 24px;
    background: rgba(26, 29, 36, 0.8);
    border-bottom: 1px solid rgba(249, 158, 26, 0.2);
    text-align: center;
}

.composition-map-info span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ow-accent);
}

#composition-map-name {
    font-weight: 700;
    color: var(--ow-accent);
}

.map-tip {
    color: var(--ow-text-muted);
    font-style: italic;
}

.map-recommend-tip {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--ow-accent);
    font-weight: 500;
}

.composition-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.composition-role {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.composition-damages,
.composition-supports {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ow-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.damages-container,
.supports-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.hero-card {
    background: var(--ow-bg-light);
    border: 1px solid var(--ow-border);
    border-radius: 6px;
    padding: 16px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-empty {
    text-align: center;
    color: var(--ow-text-muted);
    font-size: 0.9375rem;
}

.hero-card-content {
    display: flex;
    gap: 16px;
    width: 100%;
}

.hero-card-icon {
    flex-shrink: 0;
}

.hero-card-icon img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--ow-border);
    object-fit: cover;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.hero-card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ow-text-primary);
    margin: 0;
}

.hero-card-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    color: var(--ow-text-secondary);
}

.stat-item .label {
    color: var(--ow-text-muted);
}

.stat-item .value {
    font-weight: 600;
    color: var(--ow-accent);
}

.hero-tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
    width: fit-content;
}

.composition-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--ow-border);
    text-align: right;
}

.btn-close {
    padding: 10px 24px;
    background: var(--ow-bg-light);
    border: 1px solid var(--ow-border);
    border-radius: 4px;
    color: var(--ow-text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close:hover {
    border-color: var(--ow-accent);
    color: var(--ow-accent);
}

.btn-close:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 1024px) {
    .filters {
        gap: 15px;
    }
    
    .filter-group {
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
        min-width: unset;
    }
    
    .btn-recommend {
        width: 100%;
    }
    
    .stats-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-col {
        width: 100%;
    }
    
    .stat-col {
        width: 50%;
    }
    
    .composition-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .damages-container,
    .supports-container {
        grid-template-columns: 1fr;
    }
}

/* ===== Tier Tabs - ��ѩAPI����ҳ���λ��ǩ ===== */
#tier-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tier-tab {
    padding: 10px 16px;
    background: var(--ow-bg-light);
    border: 1px solid var(--ow-border);
    border-radius: 4px;
    color: var(--ow-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
}

.tier-tab:hover {
    border-color: var(--ow-accent);
    color: var(--ow-accent);
}

.tier-tab.active {
    background: var(--ow-accent);
    color: #1a1d24;
    border-color: var(--ow-accent);
    font-weight: 600;
}

/* ===== Phase 2: 3-Composition Layout ===== */

.composition-content-v2 {
    background: var(--ow-bg-dark);
    padding: 30px;
    border-radius: 12px;
    width: 85%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
}

.compositions-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.composition-card {
    background: linear-gradient(135deg, rgba(26, 29, 36, 0.95) 0%, rgba(35, 39, 47, 0.95) 100%);
    border: 2px solid rgba(249, 158, 26, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.composition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f99e1a 0%, #ff8c00 50%, #f99e1a 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.composition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 158, 26, 0.2);
    border-color: var(--ow-accent);
}

.composition-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(249, 158, 26, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.strategy-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* ========== 饱满布局设计 ========== */

/* 卡片头部 */
.composition-card-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(26, 29, 36, 0.95) 0%, rgba(35, 39, 47, 0.95) 100%);
    border-bottom: 2px solid rgba(249, 158, 26, 0.3);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-center {
    text-align: center;
}

.composition-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ow-accent);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.map-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 20px;
    color: #4caf50;
    font-size: 0.875rem;
    font-weight: 600;
}

.map-icon {
    font-size: 1.2rem;
}

.strategy-badge {
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 英雄网格布局 */
.composition-heroes-grid {
    padding: 32px;
    background: rgba(26, 29, 36, 0.5);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-category-section {
    background: linear-gradient(135deg, rgba(42, 46, 57, 0.6) 0%, rgba(26, 29, 36, 0.6) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid rgba(249, 158, 26, 0.2);
    transition: all 0.3s ease;
}

.hero-category-section:hover {
    border-color: rgba(249, 158, 26, 0.4);
    box-shadow: 0 4px 16px rgba(249, 158, 26, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(249, 158, 26, 0.3);
}

.category-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249, 158, 26, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
    border-radius: 50%;
    border: 2px solid rgba(249, 158, 26, 0.4);
}

.category-title h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ow-accent);
    letter-spacing: 1px;
}

.category-count {
    font-size: 0.875rem;
    color: var(--ow-text-secondary);
    font-weight: 500;
}

.heroes-grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 8px;
}

/* 英雄卡片 - 饱满版 */
.mini-hero-card-full {
    background: linear-gradient(135deg, rgba(58, 63, 77, 0.7) 0%, rgba(42, 46, 57, 0.7) 100%);
    border: 2px solid rgba(249, 158, 26, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.mini-hero-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 158, 26, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-hero-card-full:hover {
    background: linear-gradient(135deg, rgba(58, 63, 77, 0.9) 0%, rgba(42, 46, 57, 0.9) 100%);
    border-color: var(--ow-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(249, 158, 26, 0.3);
}

.mini-hero-card-full:hover::before {
    opacity: 1;
}

.hero-avatar-large {
    position: relative;
    z-index: 1;
}

.mini-hero-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(249, 158, 26, 0.4);
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mini-hero-card-full:hover .mini-hero-icon-large {
    border-color: var(--ow-accent);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(249, 158, 26, 0.6);
}

.mini-hero-fallback-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(249, 158, 26, 0.4);
    background: linear-gradient(135deg, rgba(58, 63, 77, 0.8) 0%, rgba(42, 46, 57, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    color: var(--ow-accent);
}

.hero-info-text {
    text-align: center;
    z-index: 1;
}

.mini-hero-name-large {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #e8eaed;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.hero-label-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6875rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-label-badge.primary {
    background: linear-gradient(135deg, #f99e1a 0%, #ff8c00 100%);
    color: #1a1d24;
}

.hero-label-badge.secondary {
    background: linear-gradient(135deg, rgba(249, 158, 26, 0.3) 0%, rgba(255, 140, 0, 0.3) 100%);
    border: 1px solid rgba(249, 158, 26, 0.5);
    color: #f99e1a;
}

/* 页脚信息区域 */
.composition-footer-info {
    padding: 24px 32px;
    background: rgba(26, 29, 36, 0.3);
    border-top: 1px solid rgba(249, 158, 26, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-label {
    font-weight: 700;
    color: var(--ow-accent);
    font-size: 1rem;
    min-width: 120px;
}

.synergies-list-inline,
.antisynergies-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.synergies-list-inline .synergy-item,
.antisynergies-list-inline .anti-synergy-item {
    background: rgba(249, 158, 26, 0.1);
    border: 1px solid rgba(249, 158, 26, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #e8eaed;
}

.no-data {
    color: var(--ow-text-secondary);
    font-style: italic;
}

.synergies-label,
.antisynergies-label {
    font-size: 0.75rem;
    color: var(--ow-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.synergies-list,
.antisynergies-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.synergy-item {
    font-size: 0.8125rem;
    color: #00d4ff;
    padding: 4px;
    cursor: help;
}

.anti-synergy-item {
    font-size: 0.8125rem;
    color: #ff6b6b;
    padding: 4px;
    cursor: help;
}

.no-synergy,
.no-issues {
    font-size: 0.8125rem;
    color: var(--ow-text-secondary);
    font-style: italic;
}

.no-issues {
    color: #4caf50;
}

.breakdown-toggle {
    width: 100%;
    padding: 10px;
    background: var(--ow-bg-dark);
    border: 1px solid var(--ow-border);
    border-radius: 0 0 8px 8px;
    color: var(--ow-text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.breakdown-toggle:hover {
    background: rgba(249, 158, 26, 0.1);
    border-color: var(--ow-accent);
    color: var(--ow-accent);
}

.composition-breakdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 16px;
}

.composition-breakdown.open {
    max-height: 500px;
    padding: 16px;
    border-top: 1px solid var(--ow-border);
}

.breakdown-item {
    display: grid;
    grid-template-columns: 100px 1fr 50px;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.8125rem;
}

.breakdown-item span:first-child {
    color: var(--ow-text-secondary);
}

.breakdown-item span:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--ow-accent);
}

.breakdown-item.negative span:last-child {
    color: #ff6b6b;
}

.breakdown-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #f99e1a, #ffb84d);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-fill.negative {
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

/* ========== Phase 2: Reasoning 显示样式 ========== */

/* 地图适配 Reasoning */
.map-fit-reasoning {
    background: rgba(249, 158, 26, 0.1);
    border-left: 3px solid var(--ow-accent);
    padding: 12px;
    margin: 12px 0;
    border-radius: 4px;
}

.reasoning-section {
    margin-bottom: 8px;
}

.reasoning-section strong {
    color: var(--ow-accent);
}

.reasoning-section p {
    margin: 4px 0;
    color: var(--ow-text-primary);
    font-size: 0.9375rem;
}

.role-reasoning {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--ow-text-secondary);
}

.role-reasoning div {
    padding: 2px 0;
}

/* Tank 选择 Reasoning */
.tank-selection-reasoning {
    background: rgba(255, 184, 77, 0.1);
    border-left: 3px solid var(--role-tank);
    padding: 12px;
    margin: 12px 0;
    border-radius: 4px;
}

.tank-selection-reasoning strong {
    color: var(--role-tank);
}

.tank-selection-reasoning p {
    margin: 4px 0;
    color: var(--ow-text-primary);
    font-size: 0.9375rem;
}

.tank-selection-reasoning details {
    margin-top: 8px;
}

.tank-selection-reasoning summary {
    cursor: pointer;
    color: var(--ow-accent);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 4px 0;
    user-select: none;
}

.tank-selection-reasoning summary:hover {
    color: #ffb84d;
}

.tank-selection-reasoning ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style-type: disc;
}

.tank-selection-reasoning li {
    margin: 4px 0;
    font-size: 0.875rem;
    color: var(--ow-text-secondary);
}

.tank-selection-reasoning li strong {
    color: var(--ow-text-primary);
}

/* 战术流派说明 */
.strategy-explanation {
    background: rgba(0, 212, 165, 0.1);
    border-left: 3px solid var(--role-support);
    padding: 12px;
    margin: 12px 0;
    border-radius: 4px;
}

.strategy-explanation strong {
    color: var(--role-support);
    font-size: 0.9375rem;
}

.strategy-strengths,
.strategy-counters {
    font-size: 0.875rem;
    margin-top: 6px;
    color: var(--ow-text-secondary);
}

.strategy-strengths {
    color: #00d4a5;
}

.strategy-counters {
    color: #ff6b6b;
}

/* 协同详情完整显示 */
.synergy-details-full {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.synergy-details-full > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ow-accent);
    font-size: 0.9375rem;
}

.synergy-item-detailed {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 3fr;
    gap: 8px;
    padding: 8px;
    background: var(--ow-bg-light);
    border-radius: 4px;
    margin: 4px 0;
    align-items: center;
    font-size: 0.875rem;
}

.synergy-item-detailed.high {
    border-left: 3px solid #00d4a5;
}

.synergy-item-detailed.medium {
    border-left: 3px solid #f99e1a;
}

.synergy-item-detailed.low {
    border-left: 3px solid #888;
}

.synergy-heroes {
    font-weight: 500;
    color: var(--ow-text-primary);
}

.synergy-strength {
    color: var(--ow-accent);
    font-weight: 600;
    text-align: center;
}

.synergy-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--ow-text-muted);
    text-align: center;
}

.synergy-reason {
    font-size: 0.875rem;
    color: var(--ow-text-secondary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .synergy-item-detailed {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .synergy-strength,
    .synergy-type {
        text-align: left;
    }
}


/* Responsive for composition layout */
@media (max-width: 1200px) {
    .composition-content-v2 {
        width: 90%;
        padding: 20px;
    }

    .composition-card-header {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .header-left, .header-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .composition-content-v2 {
        width: 95%;
        padding: 16px;
    }

    .composition-card-header {
        grid-template-columns: 1fr;
        padding: 16px 20px;
        gap: 12px;
        text-align: center;
    }

    .header-left, .header-right {
        justify-content: center;
    }

    .composition-title {
        font-size: 1.25rem;
    }

    .heroes-grid-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .mini-hero-icon-large {
        width: 60px;
        height: 60px;
    }

    .mini-hero-fallback-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .score-value {
        font-size: 2rem;
    }
}
