/* 新版英雄页面样式 */

.hero-v2-layout {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    align-content: stretch;
}

.hero-v2-race-sidebar {
    width: 5.125rem;
    min-width: 5.125rem;
    padding: 0.45rem;
    position: sticky;
    top: 0;
    overflow: visible;
    align-self: flex-start;
    z-index: 10;
}

.hero-v2-left {
    display: flex;
    flex-direction: row; /* race on left, hero list on right */
    gap: 0.35rem;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto; /* don't force height or internal scroll */
    min-height: 0;
    position: relative;
    overflow: visible;
}

/* Left group floats with the page (normal flow). No sticky/overflow so it scrolls together with right content. */

.hero-v2-sidebar {
    width: 14.125rem;
    min-width: 14.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: width 0.22s ease, min-width 0.22s ease, opacity 0.18s ease, margin-right 0.22s ease;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: auto;
    max-height: none;
    overflow: visible;
    z-index: 10;
}

/* Scrollbar styling for sidebar */
.hero-v2-sidebar::-webkit-scrollbar {
    width: 0.25rem;
}

.hero-v2-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.125rem;
}

.hero-v2-sidebar.collapsed {
    width: 0;
    min-width: 0;
    margin-right: -0.5rem;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-v2-sidebar.collapsed .hero-v2-portrait-panel {
    padding: 0;
    border-width: 0;
}

.hero-v2-sidebar.collapsed .hero-v2-hero-list {
    max-height: 0;
    overflow: hidden;
}

.hero-v2-panel {
    background: var(--bg-card);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.45rem;
}

.hero-v2-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.hero-v2-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.hero-v2-panel-meta {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.hero-v2-race-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.hero-v2-race-btn {
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.125rem;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.hero-v2-race-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.375rem;
    display: block;
}

.hero-v2-race-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.hero-v2-race-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(251, 191, 36, 0.22));
    border-color: rgba(253, 224, 71, 0.9);
    box-shadow:
        0 0 0 0.125rem rgba(251, 191, 36, 0.42),
        0 0.625rem 1.5rem rgba(245, 158, 11, 0.28);
}

.hero-v2-race-btn.active::after {
    content: '';
    position: absolute;
    inset: -0.25rem;
    border: 0.125rem solid rgba(254, 240, 138, 0.95);
    border-radius: 0.75rem;
    pointer-events: none;
}

.hero-v2-race-count-badge {
    position: absolute;
    right: 0.125rem;
    bottom: 0.125rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.2rem;
    border-radius: 62.4375rem;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text-primary);
    font-size: 0.66rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.0625rem solid rgba(255, 255, 255, 0.12);
}

.hero-v2-portrait-panel {
    position: relative;
    overflow: visible;
}

.hero-v2-hero-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    overflow-y: visible;
    max-height: none;
    height: auto;
    min-height: 0;
    padding-bottom: 0;
}

.hero-v2-hero-card {
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.125rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: var(--transition);
    min-width: 0;
    width: 100%;
    margin: 0;
}

.hero-v2-hero-card.has-guide {
    border-color: rgba(253, 224, 71, 0.48);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 0 0.0625rem rgba(253, 224, 71, 0.12);
}

.hero-v2-hero-card.has-review {
    border-color: rgba(96, 165, 250, 0.48);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 0 0.0625rem rgba(96, 165, 250, 0.12);
}

.hero-v2-hero-card.has-empty {
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(255, 255, 255, 0.03);
}

.hero-v2-hero-card:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-0.0625rem);
}

.hero-v2-hero-card.active {
    border-color: rgba(253, 224, 71, 0.95);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(120, 53, 15, 0.18));
    box-shadow:
        0 0 0 0.125rem rgba(251, 191, 36, 0.38),
        0 0.625rem 1.5rem rgba(245, 158, 11, 0.22);
}

.hero-v2-hero-card.active .hero-v2-hero-portrait {
    border-color: rgba(254, 240, 138, 0.9);
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 248, 220, 0.18);
}

.hero-v2-hero-portrait.has-guide {
    --hero-portrait-fill: rgba(120, 53, 15, 0.92);
    background: var(--hero-portrait-fill);
    border-color: rgba(253, 224, 71, 0.72);
}

.hero-v2-hero-portrait.has-review {
    --hero-portrait-fill: rgba(30, 64, 175, 0.9);
    background: var(--hero-portrait-fill);
    border-color: rgba(96, 165, 250, 0.72);
}

.hero-v2-hero-portrait.has-empty {
    --hero-portrait-fill: rgba(51, 65, 85, 0.78);
    background: var(--hero-portrait-fill);
    border-color: rgba(148, 163, 184, 0.42);
}

@property --hero-custom-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.hero-v2-hero-portrait {
    --hero-portrait-fill: rgba(15, 23, 42, 0.75);
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border-radius: 0.375rem;
    overflow: hidden;
    background: var(--hero-portrait-fill);
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.hero-v2-hero-portrait::before,
.hero-v2-hero-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.hero-v2-hero-portrait.has-guide::after {
    box-shadow: inset 0 0 0 0.125rem rgba(253, 224, 71, 0.68);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(120, 53, 15, 0.04));
}

.hero-v2-hero-portrait.has-review::after {
    box-shadow: inset 0 0 0 0.125rem rgba(96, 165, 250, 0.72);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), rgba(30, 64, 175, 0.04));
}

.hero-v2-hero-portrait.has-empty::after {
    box-shadow: inset 0 0 0 0.0625rem rgba(148, 163, 184, 0.38);
}

.hero-v2-hero-portrait.has-custom {
    --hero-custom-angle: 0deg;
    border: 0.125rem solid transparent;
    box-shadow:
        0 0 0 0.0625rem rgba(253, 224, 71, 0.4),
        0 0 0.5rem rgba(251, 191, 36, 0.25),
        0 0 0.875rem rgba(56, 189, 248, 0.18);
    background:
        linear-gradient(var(--hero-portrait-fill), var(--hero-portrait-fill)) padding-box,
        conic-gradient(
            from var(--hero-custom-angle),
            rgba(253, 224, 71, 0) 0deg,
            rgba(253, 224, 71, 0.9) 55deg,
            rgba(251, 191, 36, 0.28) 110deg,
            rgba(56, 189, 248, 0.82) 210deg,
            rgba(99, 102, 241, 0.3) 285deg,
            rgba(253, 224, 71, 0.9) 360deg
        ) border-box;
    animation: hero-custom-frame-spin 3.4s linear infinite;
}

.hero-v2-hero-card.has-custom {
    box-shadow:
        0 0 0 0.0625rem rgba(253, 224, 71, 0.16),
        0 0 0.875rem rgba(56, 189, 248, 0.08);
}

@keyframes hero-custom-frame-spin {
    to {
        --hero-custom-angle: 360deg;
    }
}

.hero-v2-hero-portrait img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-v2-hero-review-count {
    position: absolute;
    right: 0.25rem;
    bottom: 0.25rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.3125rem;
    border-radius: 62.4375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    border: 0.0625rem solid rgba(253, 224, 71, 0.55);
    color: rgba(254, 240, 138, 0.98);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 3;
}

.hero-v2-hero-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.45), rgba(30, 41, 59, 0.88));
}

.hero-v2-empty {
    grid-column: 1 / -1;
    padding: 1rem;
    border: 0.0625rem dashed var(--glass-border);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.hero-v2-detail {
    flex: 1;
    min-height: auto;
    min-width: 0;
    background: var(--bg-card);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-v2-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hero-v2-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.hero-v2-title-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-v2-detail-avatar {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;
    padding: 0;
    border: 0.0625rem solid rgba(253, 224, 71, 0.55);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.06));
    box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.22);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}


.hero-v2-detail-avatar.has-guide {
    border-color: rgba(253, 224, 71, 0.95);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(255, 255, 255, 0.08));
    box-shadow:
        0 0 0 0.125rem rgba(251, 191, 36, 0.2),
        0 0.625rem 1.5rem rgba(245, 158, 11, 0.2);
}

.hero-v2-detail-avatar.has-review {
    border-color: rgba(96, 165, 250, 0.95);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.26), rgba(255, 255, 255, 0.08));
    box-shadow:
        0 0 0 0.125rem rgba(59, 130, 246, 0.18),
        0 0.625rem 1.5rem rgba(59, 130, 246, 0.18);
}

.hero-v2-detail-avatar.has-empty {
    border-color: rgba(148, 163, 184, 0.85);
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.28), rgba(255, 255, 255, 0.05));
    box-shadow:
        0 0 0 0.125rem rgba(148, 163, 184, 0.14),
        0 0.625rem 1.5rem rgba(71, 85, 105, 0.16);
}

.hero-v2-detail-avatar:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(254, 240, 138, 0.95);
    box-shadow:
        0 0 0 0.125rem rgba(251, 191, 36, 0.22),
        0 0.625rem 1.5rem rgba(245, 158, 11, 0.18);
}

.hero-v2-detail-avatar-image,
.hero-v2-detail-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-v2-detail-avatar-image {
    object-fit: cover;
}

.hero-v2-detail-avatar-fallback {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: radial-gradient(circle at top, rgba(245, 158, 11, 0.45), rgba(30, 41, 59, 0.9));
}

.hero-v2-detail-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

/* Custom badge shown at top-right when a hero has a custom note */
.hero-v2-custom-badge {
    min-width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    color: rgba(252, 211, 77, 1);
    background: transparent;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    align-self: center;
    line-height: 1.35;
}

.hero-v2-custom-badge[hidden] { display: none; }

/* Visual tweaks requested by user */
/* Highlight only hero name, trait name and custom badge text */
#hero-name, .hero-v2-title-sub, #hero-custom-badge {
    color: #fde047 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 0.5rem rgba(253, 224, 71, 0.4);
}

/* Enlarge inner images */
.hero-v2-skill-icon-image, .hero-v2-skill-icon-fallback {
    width: 2rem !important;
    height: 2rem !important;
    object-fit: contain !important;
}

/* Keep existing toggle/section headings unchanged so fonts remain consistent */


/* Remove dashed border for custom badge — keep background and text */
.hero-v2-custom-badge {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.hero-v2-title-sub {
    color: rgba(254, 240, 138, 0.95);
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
    font-weight: 700;
}

.hero-v2-title-trait[hidden] {
    display: none;
}

.hero-v2-title-trait {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.hero-v2-title-trait-icon {
    width: 1.375rem;
    height: 1.375rem;
    flex: 0 0 1.375rem;
    object-fit: cover;
    border-radius: 0.3125rem;
    border: 0.0625rem solid rgba(253, 224, 71, 0.45);
    background: rgba(15, 23, 42, 0.78);
}

.hero-v2-meta {
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.hero-v2-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-v2-info-card {
    min-width: 0;
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
}

.hero-v2-info-title {
    color: rgba(254, 240, 138, 0.95);
    font-size: 1rem;
    font-weight: 700;
}

/* 固定标签样式 - 使用冷色调区分 */
.hero-v2-info-label {
    color: rgba(148, 163, 184, 0.95) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

/* 动态内容样式 - 使用暖色金色 */
.hero-v2-info-title:not(.hero-v2-info-label) {
    color: rgba(254, 240, 138, 0.98) !important;
    font-weight: 800 !important;
}

/* 控制台名标签和值的样式 */
.hero-v2-console-label {
    color: rgba(148, 163, 184, 0.95);
    font-weight: 600;
}

.hero-v2-console-value {
    color: rgba(254, 240, 138, 0.98);
    font-weight: 800;
}

.hero-v2-build-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.55rem;
    padding: 0.18rem 0.65rem;
    border-radius: 62.4375rem;
    border: 0.0625rem solid rgba(129, 140, 248, 0.48);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(139, 92, 246, 0.2));
    color: #e0e7ff !important;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    vertical-align: middle;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-v2-build-link:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(165, 180, 252, 0.78);
    box-shadow: 0 0.5rem 1.125rem rgba(79, 70, 229, 0.18);
}

.hero-v2-external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.55rem;
    padding: 0.18rem 0.65rem;
    border-radius: 62.4375rem;
    border: 0.0625rem solid rgba(74, 222, 128, 0.52);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(20, 184, 166, 0.18));
    color: #dcfce7 !important;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    vertical-align: middle;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-v2-external-link:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(134, 239, 172, 0.9);
    box-shadow: 0 0.5rem 1.125rem rgba(34, 197, 94, 0.2);
}

/* 英雄特长动态内容样式 */
.hero-v2-title-trait {
    color: rgba(254, 240, 138, 0.98);
    font-weight: 800;
}

.hero-v2-title-sub {
    color: rgba(254, 240, 138, 0.98);
    font-weight: 800;
}

.hero-v2-info-toggle {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 0;
    border-radius: 0.625rem;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: left;
}

.hero-v2-info-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}

.hero-v2-info-toggle::after {
    content: '+';
    color: rgba(254, 240, 138, 0.95);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
}

.hero-v2-info-toggle[aria-expanded='true']::after {
    content: '-';
}

.hero-v2-info-content {
    padding: 0 0.9rem 0.9rem;
}

.hero-v2-extra-info {
    overflow: hidden;
}

.hero-v2-extra-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.hero-v2-extra-table tr:not(:last-child) {
    border-bottom: 0.0625rem solid var(--glass-border);
}

.hero-v2-extra-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.45rem 0.6rem;
    width: 16.6667%;
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}



.hero-v2-skill-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hero-v2-skill-label {
    color: var(--text-secondary);
    white-space: nowrap;
}

.hero-v2-skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.hero-v2-summary-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 2.125rem;
}

.hero-v2-summary-stack {
    display: grid;
    gap: 0.35rem;
}

/* Attribute icon (used for 攻击/防御/咒力/知识/士气/幸运) */
.hero-attr-icon {
    width: 1.375rem;
    height: 1.375rem;
    flex: 0 0 1.375rem;
    object-fit: contain;
    display: inline-block;
    margin-right: 0.35rem;
}

/* Machine icon (initial war machines) */
.hero-machine-icon {
    width: 2.125rem;
    height: 2.125rem;
    flex: 0 0 2.125rem;
    object-fit: contain;
    display: inline-block;
    margin-right: 0.2rem;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(253, 224, 71, 0.35);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    padding: 0.125rem;
    box-sizing: border-box;
}

.hero-v2-summary-label {
    color: var(--text-secondary);
    white-space: nowrap;
}

.hero-v2-summary-value {
    color: var(--text-primary);
}

.hero-v2-skill-icon-btn {
    width: 2.125rem;
    height: 2.125rem;
    padding: 0;
    border: 0.0625rem solid rgba(253, 224, 71, 0.35);
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
}

.hero-v2-skill-icon-btn:hover,
.hero-v2-skill-icon-btn.is-pinned {
    border-color: rgba(254, 240, 138, 0.95);
    box-shadow:
        0 0 0 0.125rem rgba(251, 191, 36, 0.2),
        0 0.625rem 1.25rem rgba(245, 158, 11, 0.18);
}

.hero-v2-skill-icon-image,
.hero-v2-skill-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-v2-skill-icon-image {
    object-fit: cover;
}

.hero-v2-skill-icon-fallback {
    padding: 0.2rem;
    font-size: 0.7rem;
    line-height: 1.15;
    color: var(--text-primary);
    text-align: center;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.42), rgba(30, 41, 59, 0.92));
}

.hero-v2-skill-tooltip[hidden] {
    display: none;
}

.hero-v2-skill-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1300;
    width: min(22.5rem, calc(100vw - 1.5rem));
    padding: 0.8rem 0.9rem;
    border: 0.0625rem solid rgba(253, 224, 71, 0.38);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.38);
    pointer-events: none;
}

.hero-v2-skill-tooltip-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.hero-v2-skill-tooltip-main {
    margin-top: 0.35rem;
    color: rgba(254, 240, 138, 0.92);
    font-size: 0.88rem;
}

.hero-v2-skill-tooltip-text {
    margin: 0.55rem 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary);
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
    font-size: 0.9rem;
}

.hero-v2-pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary);
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    font-size: 0.95rem;
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.hero-v2-info-pre {
    flex: 1;
    min-height: 0;
}

.hero-v2-review-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.hero-v2-review-averages {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
    margin-left: 0.3rem;
    margin-right: 0.2rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.hero-v2-review-average-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.25rem 0.55rem;
    border: 0.0625rem solid rgba(96, 165, 250, 0.18);
    border-radius: 62.4375rem;
    background: rgba(15, 23, 42, 0.28);
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-v2-review-average-label {
    color: rgba(191, 219, 254, 0.92);
}

.hero-v2-review-average-value {
    color: rgba(254, 240, 138, 0.98);
    font-weight: 700;
}

.hero-v2-review-group {
    border: 0.0625rem solid rgba(96, 165, 250, 0.18);
    border-radius: 0.75rem;
    background: rgba(30, 41, 59, 0.4);
    overflow: hidden;
}

.hero-v2-review-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    background: rgba(30, 64, 175, 0.16);
}

.hero-v2-review-summary::-webkit-details-marker {
    display: none;
}

.hero-v2-review-summary::after {
    content: '+';
    margin-left: auto;
    color: rgba(191, 219, 254, 0.95);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

.hero-v2-review-group[open] .hero-v2-review-summary::after {
    content: '-';
}

.hero-v2-review-summary-title {
    font-weight: 700;
    color: rgba(219, 234, 254, 0.98);
}

.hero-v2-review-group-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
}

.hero-v2-review-item {
    padding: 0.7rem 0.8rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    border-radius: 0.625rem;
    background: rgba(15, 23, 42, 0.42);
}

.hero-v2-review-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.hero-v2-review-label {
    color: var(--text-primary);
    font-weight: 700;
}

.hero-v2-review-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 62.4375rem;
    background: rgba(245, 158, 11, 0.18);
    border: 0.0625rem solid rgba(253, 224, 71, 0.35);
    color: rgba(254, 240, 138, 0.98);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-v2-review-desc {
    line-height: 1.6;
}

.hero-v2-review-desc a {
    color: rgba(252, 211, 77, 0.98);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.125rem;
}

.hero-v2-review-desc a:hover {
    color: rgba(254, 240, 138, 1);
}

.hero-v2-review-actions {
    margin-top: 0.85rem;
}

.hero-v2-review-submit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.375rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.625rem;
    border: 0.0625rem solid rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.1));
    color: rgba(191, 219, 254, 0.98);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.hero-v2-review-submit-link:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(147, 197, 253, 0.8);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.16));
}

.hero-v2-guide {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.7;
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.hero-v2-guide p,
.hero-v2-guide h4 {
    margin: 0 0 0.75rem;
}

.hero-v2-guide h4 {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.hero-v2-guide p:last-child,
.hero-v2-guide h4:last-child {
    margin-bottom: 0;
}

.hero-guide-spacer {
    height: 0.25rem;
}

.hero-hover-preview[hidden] {
    display: none;
}

.hero-hover-preview {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    padding: 0.3rem;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(99, 102, 241, 0.45);
    background: rgba(16, 23, 42, 0.94);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.4);
}

.hero-hover-preview-image {
    display: block;
    width: 13.75rem;
    max-width: min(13.75rem, 38vw);
    height: auto;
    border-radius: 0.5rem;
}

@media (max-width: 70rem) {
    .hero-v2-layout {
        flex-direction: column;
    }

    .hero-v2-race-sidebar,
    .hero-v2-sidebar {
        width: 100%;
        min-width: 0;
    }

    .hero-v2-race-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-v2-review-averages {
        flex-wrap: wrap;
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-v2-hero-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: none;
    }

}

@media (max-width: 45rem) {
    .hero-v2-race-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-v2-hero-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 英雄评分入口样式 */
.hero-v2-review-help-btn {
    min-height: 1.5rem;
    padding: 0.1rem 0.55rem;
    border: 0.0625rem solid rgba(253, 224, 71, 0.45);
    border-radius: 62.4375rem;
    background: rgba(245, 158, 11, 0.15);
    color: rgba(254, 240, 138, 0.95);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hero-v2-review-help-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(253, 224, 71, 0.85);
    transform: translateY(-0.0625rem);
}

.hero-v2-modal[hidden] {
    display: none;
}

.hero-v2-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(0.25rem);
}

.hero-v2-modal-content {
    position: relative;
    max-width: 30rem;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 1.5rem;
    border: 0.0625rem solid rgba(253, 224, 71, 0.4);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.5);
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-v2-modal-content h4 {
    margin: 0 0 1rem;
    color: rgba(254, 240, 138, 0.98);
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-v2-modal-content p {
    margin: 0 0 0.8rem;
}

.hero-v2-modal-content p:last-child {
    margin-bottom: 0;
}

.hero-v2-modal-content ul {
    margin: 0 0 0.8rem;
    padding-left: 1.2rem;
}

.hero-v2-modal-content li {
    margin-bottom: 0.4rem;
}

.hero-v2-modal-content li:last-child {
    margin-bottom: 0;
}

.hero-v2-modal-content strong {
    color: rgba(254, 240, 138, 0.98);
}

.hero-v2-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hero-v2-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}
