﻿/* Neumorphic theme inspired by Example.html and shared across site */
:root {
    --bg-start: #e8eaf1;
    --bg-end: #f8f9fc;
    --card-start: #ffffff;
    --card-end: #eef1f7;
    --shadow-strong: #a3b1c6;
    --shadow-soft: #ffffff;
    --text-main: #1f2937;
    --text-sub: #5a6c7d;
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --success-start: #4caf50;
    --success-end: #45a049;
    --warning: #ff9800;
    --danger-start: #ff6b6b;
    --danger-end: #ee5a5a;

    --dark-bg-start: #0f1117;
    --dark-bg-end: #181d2a;
    --dark-card-start: #1f2432;
    --dark-card-end: #161a24;
    --dark-text-main: #e5e7f0;
    --dark-text-sub: #b0b7c5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: var(--text-main);
    font-family: 'Roboto Condensed', 'Noto Sans SC', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

body[data-theme="dark"] {
    background: linear-gradient(145deg, var(--dark-bg-start) 0%, var(--dark-bg-end) 100%);
    color: var(--dark-text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
}

.heading-gradient {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-subtle {
    color: var(--text-sub);
}

.text-strong {
    color: var(--text-main);
}

.text-danger {
    color: var(--danger-start);
}

body[data-theme="dark"] .text-subtle {
    color: var(--dark-text-sub);
}

body[data-theme="dark"] .text-strong {
    color: var(--dark-text-main);
}

/* Navigation */
.nav-shell {
    background: linear-gradient(145deg, var(--card-start) 0%, var(--card-end) 100%);
    box-shadow:
        0 14px 38px rgba(163, 177, 198, 0.35),
        0 -6px 18px rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 30;
}

body[data-theme="dark"] .nav-shell {
    background: linear-gradient(145deg, var(--dark-card-start) 0%, var(--dark-card-end) 100%);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.45),
        0 -6px 16px rgba(0, 0, 0, 0.25);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--text-sub);
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(145deg, #f3f5fb 0%, #e9ecf5 100%);
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.35),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.95);
    background: linear-gradient(145deg, #ffffff 0%, #f3f4f7 100%);
    color: var(--text-main);
}

.nav-link.active {
    background: linear-gradient(145deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    box-shadow:
        6px 6px 12px rgba(102, 126, 234, 0.35),
        -6px -6px 12px rgba(118, 75, 162, 0.25);
}

.nav-link.active:hover {
    box-shadow:
        8px 8px 16px rgba(102, 126, 234, 0.45),
        -8px -8px 16px rgba(118, 75, 162, 0.35);
}

body[data-theme="dark"] .nav-link {
    color: var(--dark-text-sub);
    background: linear-gradient(145deg, var(--dark-card-start) 0%, var(--dark-card-end) 100%);
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.55),
        -6px -6px 12px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .nav-link:hover {
    background: linear-gradient(145deg, #252c3b 0%, #1d2330 100%);
    color: var(--dark-text-main);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.6),
        -8px -8px 16px rgba(0, 0, 0, 0.35);
}

.theme-toggle {
    background: linear-gradient(145deg, #f3f5fb 0%, #e9ecf5 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.35),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
    color: var(--text-sub);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.95);
    background: linear-gradient(145deg, #ffffff 0%, #f3f4f7 100%);
    color: var(--text-main);
}

body[data-theme="dark"] .theme-toggle {
    background: linear-gradient(145deg, var(--dark-card-start) 0%, var(--dark-card-end) 100%);
    color: var(--dark-text-sub);
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.55),
        -6px -6px 12px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .theme-toggle:hover {
    background: linear-gradient(145deg, #252c3b 0%, #1d2330 100%);
    color: var(--dark-text-main);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.6),
        -8px -8px 16px rgba(0, 0, 0, 0.35);
}

.nav-link-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feedback-button {
    border: none;
    cursor: pointer;
}

/* Cards and surfaces */
.neo-card {
    background: linear-gradient(145deg, var(--card-start) 0%, var(--card-end) 100%);
    border: none;
    border-radius: 20px;
    box-shadow:
        12px 12px 28px rgba(163, 177, 198, 0.3),
        -10px -10px 24px rgba(255, 255, 255, 0.9);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.neo-card:hover {
    transform: translateY(-4px);
    box-shadow:
        16px 16px 34px rgba(163, 177, 198, 0.36),
        -12px -12px 28px rgba(255, 255, 255, 0.95);
}

body[data-theme="dark"] .neo-card {
    background: linear-gradient(145deg, var(--dark-card-start) 0%, var(--dark-card-end) 100%);
    box-shadow:
        12px 12px 28px rgba(0, 0, 0, 0.55),
        -10px -10px 24px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .neo-card:hover {
    box-shadow:
        16px 16px 32px rgba(0, 0, 0, 0.65),
        -12px -12px 28px rgba(0, 0, 0, 0.35);
}

.section-card {
    padding: 24px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.summary-card {
    background: linear-gradient(145deg, #f7f8fc 0%, #eef1f7 100%);
    border-radius: 16px;
    padding: 16px;
    box-shadow:
        8px 8px 18px rgba(163, 177, 198, 0.25),
        -8px -8px 18px rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body[data-theme="dark"] .summary-card {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        8px 8px 18px rgba(0, 0, 0, 0.55),
        -8px -8px 18px rgba(0, 0, 0, 0.32);
}

.hero-card,
.team-card,
.nature-section,
.skill-card,
.hero-detail-card,
.hero-visual-card {
    padding: 16px;
}

.hero-card,
.nature-section,
.skill-card {
    border-radius: 16px;
}

.hero-card:hover,
.skill-card:hover {
    transform: translateY(-3px);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.season-title {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%) 1;
    padding-bottom: 12px;
}

/* Inputs & buttons */
.neo-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #eef1f7 100%);
    box-shadow: inset 6px 6px 12px rgba(163, 177, 198, 0.25),
        inset -6px -6px 12px rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    transition: all 0.25s ease;
}

.neo-input:focus {
    outline: none;
    box-shadow: inset 8px 8px 16px rgba(163, 177, 198, 0.3),
        inset -8px -8px 16px rgba(255, 255, 255, 0.95);
}

body[data-theme="dark"] .neo-input {
    background: linear-gradient(145deg, var(--dark-card-start) 0%, var(--dark-card-end) 100%);
    color: var(--dark-text-main);
    box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.4),
        inset -6px -6px 12px rgba(0, 0, 0, 0.25);
}

.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    background: linear-gradient(145deg, #ffffff 0%, #eef1f7 100%);
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.35),
        -6px -6px 12px rgba(255, 255, 255, 0.95);
    color: var(--text-main);
}

.neo-btn:hover {
    box-shadow: inset 6px 6px 12px rgba(163, 177, 198, 0.25),
        inset -6px -6px 12px rgba(255, 255, 255, 0.9);
    transform: translateY(1px);
}

.neo-btn:active {
    transform: translateY(3px);
}

.neo-btn.primary {
    background: linear-gradient(145deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    box-shadow:
        6px 6px 12px rgba(102, 126, 234, 0.35),
        -6px -6px 12px rgba(118, 75, 162, 0.28);
}

.neo-btn.primary:hover {
    box-shadow: inset 6px 6px 12px rgba(102, 126, 234, 0.35),
        inset -6px -6px 12px rgba(118, 75, 162, 0.3);
}

.neo-btn.ghost {
    background: linear-gradient(145deg, #f3f5fb 0%, #e9ecf5 100%);
}

body[data-theme="dark"] .neo-btn {
    background: linear-gradient(145deg, var(--dark-card-start) 0%, var(--dark-card-end) 100%);
    color: var(--dark-text-main);
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.55),
        -6px -6px 12px rgba(0, 0, 0, 0.32);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f3f5fb 0%, #e9ecf5 100%);
    box-shadow:
        4px 4px 8px rgba(163, 177, 198, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.95);
    font-weight: 600;
    color: var(--text-sub);
}

body[data-theme="dark"] .chip {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    color: var(--dark-text-sub);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.5),
        -4px -4px 8px rgba(0, 0, 0, 0.32);
}

.filter-select,
.sort-button {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-select {
    padding: 10px 12px;
    min-width: 120px;
    background: linear-gradient(145deg, #ffffff 0%, #eef1f7 100%);
    color: var(--text-main);
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.2),
        -4px -4px 10px rgba(255, 255, 255, 0.9);
}

.filter-select:hover {
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.25),
        -6px -6px 12px rgba(255, 255, 255, 0.95);
}

body[data-theme="dark"] .filter-select {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    color: var(--dark-text-main);
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.55),
        -4px -4px 10px rgba(0, 0, 0, 0.32);
}

.sort-button {
    padding: 8px 16px;
    background: linear-gradient(145deg, #f3f5fb 0%, #e9ecf5 100%);
    color: var(--text-sub);
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.2),
        -4px -4px 10px rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sort-button:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.25),
        -6px -6px 12px rgba(255, 255, 255, 0.95);
}

.sort-button.active {
    background: linear-gradient(145deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    box-shadow:
        4px 4px 10px rgba(102, 126, 234, 0.35),
        -4px -4px 10px rgba(118, 75, 162, 0.28);
}

body[data-theme="dark"] .sort-button {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    color: var(--dark-text-sub);
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.55),
        -4px -4px 10px rgba(0, 0, 0, 0.32);
}

.filter-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-sub);
    white-space: nowrap;
}

body[data-theme="dark"] .filter-label {
    color: var(--dark-text-sub);
}

.filter-controls,
.sort-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tables */
.table-shell {
    box-shadow:
        14px 14px 28px rgba(163, 177, 198, 0.3),
        -10px -10px 20px rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #f9fafc 0%, #eef1f7 100%);
    padding: 8px;
    border-radius: 20px;
}

body[data-theme="dark"] .table-shell {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        14px 14px 28px rgba(0, 0, 0, 0.55),
        -10px -10px 20px rgba(0, 0, 0, 0.32);
}

.table-header {
    background: linear-gradient(145deg, #e6eaf0 0%, #dce2e8 100%);
    border: none;
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.25),
        -8px -8px 16px rgba(255, 255, 255, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 16px 16px 0 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 2px solid rgba(163, 177, 198, 0.2);
}

.table-header th {
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

body[data-theme="dark"] .table-header {
    background: linear-gradient(145deg, #252a35 0%, #1a1f29 100%);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.55),
        -8px -8px 16px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}

.table-row {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fc 100%);
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.15),
        -4px -4px 10px rgba(255, 255, 255, 0.8);
}

/* 主页特殊处理：因为有schedule-row，所以使用4n模式 */
#table-body tr.table-row:nth-of-type(4n+2),
#table-body tr.table-row:nth-of-type(4n+3) {
    background: linear-gradient(145deg, #f0f2f5 0%, #e6e9f0 100%);
}

/* 英雄榜和选手榜：简单的奇偶行交替 */
#rank-body tr.table-row:nth-child(even),
#player-body tr.table-row:nth-child(even) {
    background: linear-gradient(145deg, #f0f2f5 0%, #e6e9f0 100%);
}

body[data-theme="dark"] .table-row {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.5),
        -4px -4px 10px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] #table-body tr.table-row:nth-of-type(4n+2),
body[data-theme="dark"] #table-body tr.table-row:nth-of-type(4n+3) {
    background: linear-gradient(145deg, #161a24 0%, #0f1219 100%);
}

body[data-theme="dark"] #rank-body tr.table-row:nth-child(even),
body[data-theme="dark"] #player-body tr.table-row:nth-child(even) {
    background: linear-gradient(145deg, #161a24 0%, #0f1219 100%);
}

.table-row:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        8px 8px 24px rgba(102, 126, 234, 0.35),
        -8px -8px 20px rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #e8edff 0%, #d4e0ff 100%) !important;
    z-index: 10;
    position: relative;
}

body[data-theme="dark"] .table-row:hover {
    background: linear-gradient(145deg, #2d3a5c 0%, #243049 100%) !important;
    box-shadow:
        8px 8px 20px rgba(102, 126, 234, 0.25),
        -8px -8px 16px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.table-cell {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: none;
    color: inherit;
}

.table-row:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.table-row:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-name {
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.2s ease;
}

body[data-theme="dark"] .team-name {
    color: var(--dark-text-main);
}

.team-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
}

.team-cell:hover .team-logo {
    transform: scale(1.08) rotate(2deg);
}

.matrix-wrap {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0;
}

.matrix-cell {
    width: 24px;
    height: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

.matrix-cell:hover {
    transform: scale(1.22);
    z-index: 10;
    box-shadow:
        4px 4px 8px rgba(163, 177, 198, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.95);
}

.matrix-cell.self {
    position: relative;
    background: linear-gradient(145deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 0 0.75px rgba(118, 75, 162, 0.4),
        3px 3px 6px rgba(0, 0, 0, 0.16),
        inset -1px -1px 2px rgba(255, 255, 255, 0.35);
}

.matrix-cell.self::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.matrix-cell.played {
    background: linear-gradient(145deg, var(--success-start) 0%, var(--success-end) 100%);
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.12),
        -2px -2px 4px rgba(255, 255, 255, 0.7);
}

.matrix-cell.not-played {
    background: linear-gradient(145deg, #f2f4f8 0%, #e0e5ee 100%);
    box-shadow:
        inset 2px 2px 4px rgba(163, 177, 198, 0.25),
        inset -2px -2px 4px rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .matrix-cell.self {
    background: linear-gradient(145deg, #a9c1ee 0%, #729cf7 100%);
    box-shadow:
        0 0 0 0.75px rgba(127, 166, 240, 0.55),
        3px 3px 6px rgba(0, 0, 0, 0.6),
        inset -1px -1px 2px rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .matrix-cell.played {
    background: linear-gradient(145deg, #2e7d32 0%, #1b5e20 100%);
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.6),
        -2px -2px 4px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .matrix-cell.not-played {
    background: linear-gradient(145deg, #1b2030 0%, #151a27 100%);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.55),
        inset -2px -2px 4px rgba(0, 0, 0, 0.35);
}

.schedule-row {
    display: none;
    background: rgba(255, 255, 255, 0.94);
    transition: background 0.3s ease;
}

body[data-theme="dark"] .schedule-row {
    background: rgba(31, 36, 50, 0.9);
}

.schedule-cell {
    padding: 0.25rem 1rem 0.75rem;
    border-bottom: none;
}

.schedule-col {
    display: table-cell;
}

.schedule-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 0.25rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

body[data-theme="dark"] .schedule-label {
    color: var(--dark-text-sub);
}

/* Hero list and detail */
.nature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%) 1;
}

.nature-title.力量 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) 1;
}

.nature-title.敏捷 {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-image: linear-gradient(135deg, #4caf50 0%, #45a049 100%) 1;
}

.nature-title.智力 {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-image: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.hero-card {
    text-align: center;
    cursor: pointer;
    background: linear-gradient(145deg, #fafbfe 0%, #f2f4f9 100%);
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.25),
        -6px -6px 14px rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .hero-card {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.55),
        -6px -6px 14px rgba(0, 0, 0, 0.32);
}

.hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 12px;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.28),
        -4px -4px 10px rgba(255, 255, 255, 0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover .hero-avatar {
    transform: scale(1.08) rotate(2deg);
}

.hero-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

body[data-theme="dark"] .hero-name {
    color: var(--dark-text-main);
}

.hero-avatar-sm {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow:
        3px 3px 6px rgba(163, 177, 198, 0.25),
        -3px -3px 6px rgba(255, 255, 255, 0.9);
}

.hero-meta {
    font-size: 0.9rem;
    color: var(--text-sub);
}

body[data-theme="dark"] .hero-meta {
    color: var(--dark-text-sub);
}

.hero-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-bottom: 24px;
}

.hero-detail-card,
.hero-visual-card {
    box-shadow:
        10px 10px 20px rgba(163, 177, 198, 0.28),
        -10px -10px 20px rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #fafbfe 0%, #f2f4f9 100%);
}

body[data-theme="dark"] .hero-detail-card,
body[data-theme="dark"] .hero-visual-card {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.55),
        -10px -10px 20px rgba(0, 0, 0, 0.32);
}

.hero-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.28),
        -6px -6px 12px rgba(255, 255, 255, 0.95);
}

.hero-character-gif {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    margin-top: 20px;
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.28),
        -6px -6px 12px rgba(255, 255, 255, 0.95);
}

.hero-name-large {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-short-name {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 16px;
    text-align: center;
}

body[data-theme="dark"] .hero-short-name {
    color: var(--dark-text-sub);
}

.hero-nature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    height: 32px;
    line-height: 1;
}

.hero-nature.力量 {
    background: linear-gradient(145deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    box-shadow: 4px 4px 8px rgba(238, 90, 90, 0.35);
}

.hero-nature.敏捷 {
    background: linear-gradient(145deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    box-shadow: 4px 4px 8px rgba(76, 175, 80, 0.35);
}

.hero-nature.智力 {
    background: linear-gradient(145deg, #2196f3 0%, #1976d2 100%);
    color: #fff;
    box-shadow: 4px 4px 8px rgba(33, 150, 243, 0.35);
}

.hero-basic-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f3f5fb 0%, #e9ecf5 100%);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    height: 32px;
    line-height: 1;
    box-shadow:
        4px 4px 8px rgba(163, 177, 198, 0.28),
        -4px -4px 8px rgba(255, 255, 255, 0.95);
    transition: all 0.25s ease;
}

body[data-theme="dark"] .info-badge {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    color: var(--dark-text-main);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.55),
        -4px -4px 8px rgba(0, 0, 0, 0.32);
}

.info-section {
    margin-bottom: 24px;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e4ed;
}

.info-content {
    color: var(--text-sub);
    line-height: 1.8;
    font-size: 0.95rem;
}

body[data-theme="dark"] .info-title {
    color: var(--dark-text-main);
    border-bottom-color: #2a3140;
}

body[data-theme="dark"] .info-content {
    color: var(--dark-text-sub);
}

.info-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.info-content table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e4ed;
}

.info-content table td:first-child {
    color: var(--text-sub);
    font-weight: 700;
    width: 40%;
}

body[data-theme="dark"] .info-content table td {
    border-bottom-color: #2a3140;
    color: var(--dark-text-sub);
}

body[data-theme="dark"] .info-content table td:first-child {
    color: var(--dark-text-sub);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.skill-card {
    background: linear-gradient(145deg, #fafbfe 0%, #f2f4f9 100%);
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.25),
        -6px -6px 14px rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .skill-card {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.55),
        -6px -6px 14px rgba(0, 0, 0, 0.32);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e4ed;
}

body[data-theme="dark"] .skill-header {
    border-bottom-color: #2a3140;
}

.skill-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow:
        4px 4px 8px rgba(163, 177, 198, 0.25),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.skill-desc {
    color: var(--text-sub);
    line-height: 1.8;
    font-size: 0.9rem;
}

body[data-theme="dark"] .skill-name {
    color: var(--dark-text-main);
}

body[data-theme="dark"] .skill-desc {
    color: var(--dark-text-sub);
}

/* Badges & win bars */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f3f5fb 0%, #e9ecf5 100%);
    box-shadow:
        3px 3px 6px rgba(163, 177, 198, 0.25),
        -3px -3px 6px rgba(255, 255, 255, 0.9);
    color: var(--text-sub);
    font-weight: 700;
    font-size: 0.9rem;
}

body[data-theme="dark"] .hero-badge {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    color: var(--dark-text-sub);
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.55),
        -3px -3px 6px rgba(0, 0, 0, 0.32);
}

.winrate-bar {
    width: 100%;
    height: 10px;
    border-radius: 8px;
    background: linear-gradient(145deg, #eef1f7 0%, #dfe3ec 100%);
    overflow: hidden;
    box-shadow:
        inset 2px 2px 4px rgba(163, 177, 198, 0.22),
        inset -2px -2px 4px rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .winrate-bar {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.55),
        inset -2px -2px 4px rgba(0, 0, 0, 0.32);
}

.winrate-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-start) 0%, #67c23a 100%);
}

/* Toast & modal */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, var(--danger-start) 0%, var(--danger-end) 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow:
        10px 10px 20px rgba(238, 90, 90, 0.3),
        -6px -6px 14px rgba(255, 255, 255, 0.25);
    z-index: 1000;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 999;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.team-modal,
.feedback-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #ffffff 0%, #eef1f7 100%);
    border: none;
    border-radius: 24px;
    padding: 32px;
    z-index: 1000;
    box-shadow:
        20px 20px 40px rgba(163, 177, 198, 0.35),
        -14px -14px 28px rgba(255, 255, 255, 0.9);
    min-width: 320px;
    animation: modalFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="dark"] .team-modal,
body[data-theme="dark"] .feedback-modal {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, 0.6),
        -14px -14px 28px rgba(0, 0, 0, 0.35);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Utility layout (tailwind-lite for index page) */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

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

.text-left {
    text-align: left;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.w-full {
    width: 100%;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.border-none {
    border: none;
}

.border-collapse {
    border-collapse: collapse;
}

.hidden {
    display: none;
}

.overflow-x-auto {
    overflow-x: auto;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
}

.object-contain {
    object-fit: contain;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition-property: all;
}

.duration-300 {
    transition-duration: 0.3s;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (max-width: 1024px) {
    .table-cell {
        padding: 0.65rem 0.8rem;
        font-size: 0.9rem;
    }

    .team-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .hero-avatar {
        width: 70px;
        height: 70px;
    }

    .nature-section,
    .hero-detail-card,
    .hero-visual-card {
        padding: 16px;
    }

    .table-cell {
        padding: 0.5rem 0.65rem;
    }

    .team-cell {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-name {
        text-align: center;
    }

    .matrix-cell {
        width: 18px;
        height: 18px;
        border-radius: 4px;
    }

    table {
        font-size: 0.85rem;
    }

    .team-logo {
        width: 36px;
        height: 36px;
    }

    .feedback-button {
        display: none;
    }

    .nav-shell {
        position: static;
    }

    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link-group {
        justify-content: flex-start;
        width: 100%;
    }

    .schedule-row {
        display: table-row;
    }

    .schedule-col {
        display: none !important;
    }

    .hero-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-avatar-large {
        width: 120px;
        height: 120px;
    }

    .hero-name-large {
        font-size: 1.5rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f3f9;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #d1d9e6, #a3b1c6);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #a3b1c6, #8a9bb3);
}

/* Player tags */
.player-tag {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f3f5fb 0%, #e9ecf5 100%);
    box-shadow:
        4px 4px 8px rgba(163, 177, 198, 0.25),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    cursor: default;
}

.player-tag:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.3),
        -6px -6px 12px rgba(255, 255, 255, 0.95);
}

body[data-theme="dark"] .player-tag {
    background: linear-gradient(145deg, #1f2432 0%, #161a24 100%);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.5),
        -4px -4px 8px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .player-tag:hover {
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.6),
        -6px -6px 12px rgba(0, 0, 0, 0.35);
}

.more-players-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    box-shadow:
        4px 4px 8px rgba(102, 126, 234, 0.3),
        -4px -4px 8px rgba(118, 75, 162, 0.25);
    transition: all 0.2s ease;
    cursor: help;
    position: relative;
}

.more-players-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 12px rgba(102, 126, 234, 0.4),
        -6px -6px 12px rgba(118, 75, 162, 0.3);
}

.more-players-btn:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(31, 41, 55, 0.95);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: pre-line;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    text-align: left;
    line-height: 1.5;
}

body[data-theme="dark"] .more-players-btn:hover::after {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}