:root {
    --page-blue: #0750c7;
    --page-deep: #032b86;
    --panel-blue: rgba(4, 38, 120, 0.72);
    --line: rgba(85, 205, 255, 0.5);
    --cyan: #12d8ff;
    --cyan-soft: #78e8ff;
    --yellow: #ffe100;
    --link-hover: #ffe76a;
    --white: #f7fbff;
    --muted: #a3cbf5;
    --header-height: 88px;
    --content-width: 1460px;
    --feature-panel-width: clamp(600px, 47vw, 760px);
    --page-gutter: clamp(72px, 5.6vw, 96px);
    /* Modern Glassmorphism & UI tokens */
    --glass-bg: linear-gradient(150deg, rgba(6, 38, 122, 0.74) 0%, rgba(2, 22, 80, 0.82) 100%);
    --glass-border: rgba(120, 232, 255, 0.28);
    --glass-border-hover: rgba(120, 232, 255, 0.48);
    --glass-shadow: 0 16px 40px -8px rgba(0, 14, 56, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 24px rgba(18, 216, 255, 0.08);
    --glow-cyan: 0 0 20px rgba(18, 216, 255, 0.3);
    --glow-yellow: 0 0 16px rgba(255, 225, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #032b86; }
body { margin: 0; min-width: 320px; color: var(--white); overflow-x: hidden; background: #043c9c; position: relative; isolation: isolate; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 34, 112, .22), transparent 18%, transparent 79%, rgba(0, 24, 87, .24)),
        url("../images/shared/noise.png") repeat,
        radial-gradient(circle at 44% 43%, rgba(13, 125, 255, .8) 0, rgba(8, 81, 202, .75) 31%, transparent 58%),
        radial-gradient(circle at 8% 88%, rgba(12, 116, 252, .72), transparent 34%),
        linear-gradient(118deg, #0648b4 0%, #0656c8 43%, #063ba5 74%, #03257e 100%);
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ==========================================================================
   Header & Navigation (现代毛玻璃悬浮顶栏)
   ========================================================================== */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header-height);
    width: 100%; max-width: 100vw;
    background: rgba(3, 27, 88, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(120, 232, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 16, 68, 0.42);
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
.header-shell {
    position: relative;
    width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(540px, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: clamp(22px, 3vw, 52px);
}
.site-logo { display: block; width: min(286px, 100%); height: 78px; transition: transform .2s ease; }
.site-logo:hover { transform: scale(1.02); }
.site-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; display: block; }

.site-nav { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 2vw, 34px); }
.site-nav a {
    position: relative;
    display: grid;
    place-items: center;
    height: 100%;
    padding: 0 5px 0;
    color: #edf5ff;
    font-size: 20px;
    white-space: nowrap;
    transition: color .2s ease;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 13px;
    width: 0;
    height: 4px;
    border-radius: 4px;
    background: var(--yellow);
    transform: translateX(-50%);
    box-shadow: 0 0 13px rgba(255, 226, 0, .55);
    transition: width .22s ease;
}
.site-nav a:hover, .site-nav a.active {
    color: var(--yellow);
}
.site-nav a:hover::after,
.site-nav a.active::after {
    width: 54px;
}

.header-account {
    display: flex;
    min-width: 0;
    height: 42px;
    align-items: center;
    white-space: nowrap;
    padding: 0 16px;
    border-radius: 9999px;
    background: rgba(8, 48, 148, 0.45);
    border: 1px solid rgba(120, 232, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 10px rgba(0, 15, 60, 0.25);
    backdrop-filter: blur(10px);
    transition: all .2s ease;
}
.header-account:hover {
    border-color: rgba(120, 232, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 16px rgba(18, 216, 255, 0.18);
}
.header-account-guest, .header-account-user { display: flex; min-width: 0; align-items: center; gap: 11px; }
.header-account-guest { color: var(--cyan-soft); font-size: 15px; font-weight: 500; }
.header-account-guest button { border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; }
.header-account-guest a, .header-account-guest button { transition: color .18s ease, text-shadow .18s ease; }
.header-account-guest a:hover, .header-account-guest button:hover { color: var(--link-hover); text-shadow: 0 0 10px rgba(255, 225, 76, .5); }
.header-account-guest i, .header-account-user i { color: rgba(151, 216, 255, .45); font-style: normal; }

.header-profile-link { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--cyan-soft); transition: color .18s ease, text-shadow .18s ease; }
.header-profile-link:hover { color: var(--link-hover); text-shadow: 0 0 10px rgba(255, 225, 76, .5); }
.header-account-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    background-image: url("../images/ui/ui-common-atlas.png?v=20260722c");
    background-repeat: no-repeat;
    background-size: 615px 504px;
    background-position: -223px -434px;
    transition: transform .2s ease;
}
.header-profile-link:hover .header-account-icon { transform: scale(1.1); }
.header-account-name, .header-account-logout { font-family: inherit; font-size: 14px; font-weight: 500; line-height: 20px; }
.header-account-name { display: inline-flex; align-items: center; }
.header-account-logout {
    display: inline-flex; height: 20px; align-items: center; justify-content: center;
    border: 0; padding: 0; color: var(--cyan-soft); background: transparent;
    cursor: pointer; appearance: none; -webkit-appearance: none;
    transition: color .18s ease, text-shadow .18s ease;
}
.header-account-logout:hover { color: var(--link-hover); text-shadow: 0 0 10px rgba(255, 225, 76, .5); }

/* ==========================================================================
   Page Sections & Original Background Scenes (完全保留原背景图)
   ========================================================================== */
.site-pages { position: relative; }
.page-section {
    position: relative; height: 100vh; height: 100svh; min-height: 760px;
    scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden;
    background: transparent;
}
.page-section::before { content: none; }
.page-home::after, .page-download::after, .page-ranking::after, .page-weapons::after, .page-maps::after, .page-guilds::after {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 1;
    filter: none;
    transform: none;
}
.page-home::after {
    inset: 0;
    background-image: url("../images/heroes/home-scene-wide-2d.jpg?v=20260722e");
    background-position: center top;
    background-size: cover;
}
@property --home-wind-1 { syntax: "<length>"; inherits: true; initial-value: 0vw; }
@property --home-wind-2 { syntax: "<length>"; inherits: true; initial-value: 0vw; }
@property --home-wind-3 { syntax: "<length>"; inherits: true; initial-value: 0vw; }
.home-fall { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; contain: layout paint; transition: --home-wind-1 2s ease-in-out, --home-wind-2 2s ease-in-out, --home-wind-3 2s ease-in-out; }
.home-fall-leaf {
    position: absolute;
    top: 0;
    left: var(--leaf-left);
    width: var(--leaf-size);
    aspect-ratio: 1;
    opacity: 0;
    background: url("../images/effects/falling-leaf.gif?v=20260722b") center / contain no-repeat;
    filter: drop-shadow(0 2px 2px rgba(22, 61, 18, .28));
    will-change: transform, opacity;
    animation: home-leaf-fall var(--leaf-duration) linear var(--leaf-delay) infinite;
}
@keyframes home-leaf-fall {
    0% { opacity: 0; transform: translate3d(0, -12vh, 0) rotate(var(--leaf-rotate-0)) scale(.76) scaleX(var(--leaf-flip)); }
    8% { opacity: var(--leaf-opacity); }
    32% { transform: translate3d(calc(var(--leaf-sway-1) + var(--home-wind-1)), 30vh, 0) rotate(var(--leaf-rotate-1)) scale(1) scaleX(var(--leaf-flip)); }
    62% { transform: translate3d(calc(var(--leaf-sway-2) + var(--home-wind-2)), 66vh, 0) rotate(var(--leaf-rotate-2)) scale(.88) scaleX(var(--leaf-flip)); }
    92% { opacity: var(--leaf-opacity); }
    100% { opacity: 0; transform: translate3d(calc(var(--leaf-sway-3) + var(--home-wind-3)), 112vh, 0) rotate(var(--leaf-rotate-3)) scale(.72) scaleX(var(--leaf-flip)); }
}
@media (prefers-reduced-motion: reduce) { .home-fall { display: none; } }

.page-download::after {
    inset: 0;
    background-image: url("../images/heroes/download-scene-wide-2d.jpg?v=20260722a");
    background-position: center top;
}
.page-ranking::after {
    inset: 0;
    background-image: url("../images/heroes/ranking-scene-wide-2d.jpg?v=20260722a");
    background-position: center top;
}
.page-weapons::after {
    inset: 0;
    background-image: url("../images/heroes/weapons-scene-wide-2d.jpg?v=20260722a");
    background-position: center top;
}
.page-maps::after {
    inset: 0;
    background-image: url("../images/heroes/maps-scene-wide-2d.jpg?v=20260722a");
    background-position: center top;
}
.page-guilds::after {
    inset: 0;
    background-image: url("../images/heroes/guild-scene-wide-2d.jpg?v=20260722a");
    background-position: center top;
}
.page-inner {
    position: relative;
    z-index: 2;
    width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
    height: 100%;
    min-height: 760px;
    margin: 0 auto;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 72px;
}

/* ==========================================================================
   Modern Glassmorphic Panels (现代超高清毛玻璃卡片体系)
   ========================================================================== */
.glow-panel {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(6, 38, 122, 0.74) 0%, rgba(2, 22, 80, 0.82) 100%);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(120, 232, 255, 0.28);
    box-shadow:
        0 16px 40px -8px rgba(0, 14, 56, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 24px rgba(18, 216, 255, 0.08);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.glow-panel:hover {
    border-color: rgba(120, 232, 255, 0.42);
    box-shadow:
        0 20px 48px -8px rgba(0, 14, 56, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 32px rgba(18, 216, 255, 0.14);
}
.glow-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, rgba(18, 216, 255, 0.12), transparent 68%);
}
.glow-panel::after { content: none; }
.glow-panel > * { position: relative; z-index: 2; }

/* ==========================================================================
   Section Title (栏目标题)
   ========================================================================== */
.section-title { display: flex; align-items: center; gap: 12px; min-height: 78px; white-space: nowrap; }
.section-title span {
    font-size: clamp(43px, 3.45vw, 57px);
    line-height: 1;
    font-weight: 900;
    font-style: italic;
    color: #65ffff;
    text-shadow: 0 3px 12px rgba(18, 216, 255, 0.5), 0 4px 0 rgba(1, 50, 137, 0.7);
}
.section-title i {
    flex: 0 0 auto;
    width: clamp(36px, 3.2vw, 52px);
    height: 18px;
    transform: skewX(-20deg);
    background: repeating-linear-gradient(90deg, #65ffff 0 8px, transparent 8px 13px);
    opacity: .8;
    filter: drop-shadow(0 0 6px rgba(18, 216, 255, 0.5));
}
.section-title h2 {
    margin: 0;
    font-size: clamp(43px, 3.45vw, 57px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 4px 0 rgba(0, 35, 116, .75), 0 2px 14px rgba(0, 120, 255, 0.4);
}
.illustration-side > .section-title,
.ranking-toolbar,
.weapons-title,
.maps-toolbar,
.guild-art-side > .section-title { transform: translateY(-16px); }

/* ==========================================================================
   Button System (现代微光立体渐变按钮)
   ========================================================================== */
.button {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 30px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    background: none;
    overflow: hidden;
    transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s ease, filter .2s ease;
    user-select: none;
}
.button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid rgba(120, 232, 255, 0.65);
    background: linear-gradient(135deg, #18d2ff 0%, #0084ff 52%, #054ecc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 30, 110, 0.4), 0 4px 14px rgba(0, 110, 255, 0.35);
    transition: all .2s ease;
}
.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}
.button:hover::before {
    border-color: #ffffff;
    background: linear-gradient(135deg, #3ae0ff 0%, #1693ff 52%, #115ee8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(18, 160, 255, 0.55), 0 0 18px rgba(18, 216, 255, 0.4);
}
.button:active {
    transform: translateY(1px);
}
.button:active::before {
    box-shadow: inset 0 2px 4px rgba(0, 20, 80, 0.6), 0 2px 6px rgba(0, 90, 220, 0.4);
}

.button-bright:hover::before, .button-submit:hover::before {
    background: linear-gradient(135deg, #4ce4ff 0%, #1a9cff 52%, #186bf4 100%);
}

.button-dark::before, .button-quiet::before {
    border-color: rgba(90, 195, 255, 0.45);
    background: linear-gradient(135deg, rgba(28, 108, 224, 0.85) 0%, rgba(12, 60, 160, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 20, 80, 0.4), 0 4px 14px rgba(0, 20, 90, 0.3);
}
.button-dark:hover::before, .button-quiet:hover::before {
    border-color: var(--cyan);
    background: linear-gradient(135deg, rgba(40, 128, 255, 0.9) 0%, rgba(18, 76, 192, 0.95) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 20px rgba(18, 140, 255, 0.4);
}

.button-danger { color: #fff; }
.button-danger::before {
    border-color: rgba(255, 140, 160, 0.8);
    background: linear-gradient(135deg, #ff4d6d 0%, #e01e40 50%, #b80d2b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 220, 225, 0.5), inset 0 -2px 4px rgba(90, 0, 20, 0.5), 0 4px 14px rgba(220, 20, 60, 0.4);
}
.button-danger:hover::before {
    background: linear-gradient(135deg, #ff6b85 0%, #f02d4e 50%, #c91836 100%);
    box-shadow: inset 0 1px 0 rgba(255, 240, 245, 0.6), 0 8px 24px rgba(230, 20, 60, 0.55);
}
.button:disabled { opacity: .48; cursor: default; transform: none !important; filter: none !important; }
.glow-panel .button { z-index: 3; }

/* ==========================================================================
   Home Layout & Account Card (首页与登录/概况卡片)
   ========================================================================== */
.home-layout {
    display: grid;
    grid-template-columns: minmax(440px, .9fr) minmax(330px, .72fr) minmax(420px, 510px);
    align-items: start;
    gap: 0;
    padding-top: calc(var(--header-height) + 24px);
}
.home-copy { position: relative; z-index: 4; padding: 30px 0 0 14px; }
.home-copy h1 { margin: 0 0 12px; line-height: 1; }
.home-slogan img { display: block; width: min(520px, 100%); height: auto; margin-bottom: 0; filter: drop-shadow(0 8px 18px rgba(0, 18, 70, 0.4)); }
.home-copy p { margin: 0 0 40px 18px; font-size: 20px; line-height: 1.75; color: #cceaff; font-weight: 600; text-shadow: 0 2px 4px rgba(0, 18, 70, 0.6); }
.home-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 20px; margin: 114px 0 0 129px; }
.home-actions .button { width: 180px; min-height: 52px; padding-inline: 16px; white-space: nowrap; }

.home-account-column {
    position: relative;
    z-index: 5;
    display: flex;
    grid-column: 3;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    align-self: center;
}

.home-notices {
    width: 100%;
    margin: 0;
    padding: 14px 18px 12px;
    border: 1px solid rgba(120, 232, 255, 0.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(3, 35, 110, 0.72) 0%, rgba(2, 22, 80, 0.8) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 16, 64, 0.35);
}
.home-notices-heading { display: flex; min-height: 22px; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.home-notices h2 { margin: 0; color: #e5f6ff; font-size: 15px; font-weight: 700; letter-spacing: 1px; text-align: left; }
.home-notices-more { flex: 0 0 auto; color: var(--cyan-soft); font-size: 12px; transition: color .18s ease; }
.home-notices-more:hover { color: var(--yellow); }
.home-notices ul { margin: 0; padding: 0; list-style: none; }
.home-notices li { border-top: 1px solid rgba(120, 210, 255, 0.15); }
.home-notices li:first-child { border-top: 0; }
.home-notices a {
    display: flex;
    min-width: 0;
    height: 32px;
    align-items: center;
    gap: 8px;
    color: #eef9ff;
    font-size: 13px;
    padding: 0 4px;
    border-radius: 6px;
    transition: color .18s ease, transform .18s ease, background-color .18s ease;
}
.home-notices a:hover {
    color: var(--yellow);
    transform: translateX(3px);
    background-color: rgba(18, 140, 255, 0.12);
}
.home-notices strong { min-width: 0; flex: 1; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.home-notices time { flex: 0 0 auto; color: #8fd3ff; font-size: 12px; }
.home-notice-badge {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 38px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.home-notice-badge.badge-event { background: linear-gradient(135deg, #1d68ff, #0044cc); box-shadow: 0 0 8px rgba(29, 104, 255, 0.4); }
.home-notice-badge.badge-maintenance { background: linear-gradient(135deg, #ff8800, #d95e00); box-shadow: 0 0 8px rgba(255, 136, 0, 0.4); }
.home-notice-badge.badge-update { background: linear-gradient(135deg, #00c9a7, #009688); box-shadow: 0 0 8px rgba(0, 201, 167, 0.4); }
.home-notice-badge.badge-notice { background: linear-gradient(135deg, #5c7cfa, #4263eb); box-shadow: 0 0 8px rgba(92, 124, 250, 0.4); }
.home-notice-empty { padding: 20px 0; color: var(--muted); font-size: 13px; text-align: center; }

.home-hero {
    position: absolute;
    z-index: 1;
    left: 30%;
    top: calc(var(--header-height) + 35px);
    width: min(770px, 48vw);
    height: min(760px, calc(100% - var(--header-height) - 42px));
    pointer-events: none;
}
.home-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 24px rgba(0, 21, 92, .28));
}

.account-card {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 422px;
    min-height: 0;
    margin: 0;
    padding: 28px 40px 24px;
}
.account-card > #loginView, .account-card > #profileView { display: flex; height: 100%; flex-direction: column; justify-content: center; }
.account-card h2 { margin: 0 0 18px; text-align: center; font-size: 32px; font-weight: 800; font-style: italic; color: #fff; text-shadow: 0 2px 10px rgba(0, 50, 150, 0.6); }

/* ==========================================================================
   Form Controls & Modern Inputs (统一现代扁平暗晶输入体系)
   ========================================================================== */
.account-card label, .modal-card label { display: grid; gap: 8px; margin-bottom: 20px; color: #dcecff; font-size: 16px; font-weight: 500; }
.account-card input, .modal-card input, .modal-card select, .guild-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(85, 195, 255, 0.32);
    border-radius: 12px;
    outline: none;
    color: #fff;
    background: rgba(3, 20, 68, 0.6);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28);
    font-size: 16px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.account-card input:hover, .modal-card input:hover, .modal-card select:hover, .guild-search input:hover {
    border-color: rgba(120, 220, 255, 0.5);
    background: rgba(3, 24, 80, 0.7);
}
.account-card input:focus, .modal-card input:focus, .modal-card select:focus, .guild-search input:focus {
    border-color: var(--cyan);
    background: rgba(3, 28, 92, 0.85);
    box-shadow: 0 0 0 3px rgba(18, 216, 255, 0.22), inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 16px rgba(18, 216, 255, 0.18);
}
input::placeholder, textarea::placeholder { color: rgba(132, 218, 255, .6); opacity: 1; }
select { color: #fff; cursor: pointer; }
select option { color: #0b2b70; background: #f2f7ff; }
select option:checked { color: #fff; background: #2865c2; }
select option:disabled { color: #7590bd; background: #e5edfa; }

.account-card label { gap: 6px; margin-bottom: 12px; font-size: 15px; }
.account-card input { height: 48px; }
.account-card .password-toggle { top: 1px; right: 4px; width: 46px; height: 46px; }

.login-form label { position: relative; }
.login-form label:nth-of-type(1)::after, .login-form label:nth-of-type(2)::after {
    content: ""; position: absolute; left: 15px; bottom: 10px; z-index: 4; width: 28px; height: 28px;
    pointer-events: none; background-image: url("../images/ui/ui-common-atlas.png?v=20260722c"); background-repeat: no-repeat; background-size: 820px 672px;
}
.login-form label:nth-of-type(1)::after { background-position: -296px -580px; }
.login-form label:nth-of-type(2)::after { background-position: -344px -580px; }
.login-form label:nth-of-type(1) input { padding-left: 54px; }
.login-form label:nth-of-type(2) input { padding: 0 54px; }
.login-form .password-toggle { color: transparent; }

.password-field { position: relative; display: block; }
.password-toggle {
    position: absolute; right: 4px; top: 4px; z-index: 4; width: 44px; height: 44px; padding: 0;
    border: 0; appearance: none; -webkit-appearance: none; background-color: transparent;
    background-image: url("../images/ui/ui-common-atlas.png?v=20260730d"); background-repeat: no-repeat;
    background-size: 820px 672px; background-position: -382px -570px;
    box-shadow: none; cursor: pointer; color: transparent;
    transition: opacity .18s ease;
}
.password-toggle:hover { opacity: .85; }
.password-toggle.is-visible { background-position: -430px -570px; }

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #0a347f inset !important;
    box-shadow: 0 0 0 1000px #0a347f inset !important;
}

.account-card .button-submit { width: 100%; min-height: 48px; margin-top: 4px; font-size: 18px; }
.account-links { display: flex; justify-content: space-between; margin-top: 14px; }
.account-links button { font-size: 14px; font-weight: 500; }
.account-links button, .copy-link, .text-action {
    border: 0; padding: 0; background: transparent; color: var(--cyan); cursor: pointer; font-size: 16px;
    transition: color .18s ease, text-shadow .18s ease;
}
.account-links button:hover, .copy-link:hover, .text-action:hover { color: var(--link-hover); text-shadow: 0 0 10px rgba(255, 225, 76, .5); }

.login-modal-card { width: min(500px, 100%); padding: 34px 40px 30px; }
.login-modal-card h2 { margin-bottom: 22px; text-align: center; }
.login-modal-card .login-form label { gap: 8px; margin-bottom: 18px; font-size: 16px; }
.login-modal-card .login-form .button-submit { width: 100%; min-height: 52px; margin-top: 4px; font-size: 19px; }
.login-modal-links { margin-top: 17px; }

.profile-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 28px; }
.summary-item {
    padding: 14px;
    border: 1px solid rgba(120, 232, 255, 0.22);
    border-radius: 12px;
    background: rgba(2, 30, 96, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.summary-item small { display: block; color: var(--muted); margin-bottom: 6px; font-size: 13px; }
.summary-rank .rank-cell { justify-content: flex-start; gap: 8px; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-actions .button { min-height: 46px; padding: 0 15px; font-size: 16px; }
.profile-actions .text-action { min-height: 34px; }
.profile-actions .personal-center-entry, .profile-actions .text-action { grid-column: 1 / -1; }
#profileView .profile-summary { gap: 10px; margin: 12px 0 18px; }
#profileView .summary-item { padding: 11px 13px; }
#profileView .profile-actions { gap: 6px; }
#profileView .profile-actions .text-action { min-height: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); letter-spacing: 3px; font-size: 14px; text-transform: uppercase; font-weight: 700; text-shadow: 0 0 10px rgba(18, 216, 255, 0.4); }

@media (min-width: 1201px) {
    .page-home .page-inner { width: min(1386px, calc(100% - 80px)); }
}
@media (min-width: 1101px) {
    html { scroll-snap-type: y mandatory; }
}
@media (max-width: 1540px) {
    .section-dots { display: none; }
}
@media (max-width: 900px) {
    .page-home::after { background-position: center top; }
}

/* ==========================================================================
   Download Section (下载模块)
   ========================================================================== */
.page-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--feature-panel-width); align-items: start; gap: clamp(42px, 4vw, 68px); }
.illustration-side { position: relative; align-self: stretch; }
.download-hero {
    position: absolute;
    left: 50%;
    top: 155px;
    width: min(650px, 48vw);
    max-height: 660px;
    transform: translateX(-53%);
    object-fit: contain;
    filter: drop-shadow(0 22px 24px rgba(0, 21, 92, .3));
}
.download-panel { width: 100%; margin-top: 36px; padding: 44px 50px 38px; text-align: center; }
.download-panel h3 { margin: 0 0 14px; font-size: 38px; font-weight: 800; text-shadow: 0 2px 12px rgba(0, 40, 140, 0.5); }
.download-panel > p { margin: 0 0 25px; font-size: 18px; color: #e0efff; }

.qq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 72px;
    border: 1px solid rgba(120, 232, 255, 0.45);
    border-radius: 14px;
    background: rgba(3, 36, 118, 0.45);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0, 20, 80, 0.3);
    font-size: 29px;
    padding-left: 20px;
    transition: all .2s ease;
}
.qq-number:hover {
    border-color: rgba(120, 232, 255, 0.7);
    box-shadow: 0 0 20px rgba(18, 216, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.qq-number strong { color: #ffe76a; text-shadow: 0 0 16px rgba(255, 231, 106, 0.6); letter-spacing: 1px; }
.qq-number button {
    margin-left: auto; width: 65px; align-self: stretch; border: 0; color: #d9efff; background: transparent;
    cursor: pointer; font-size: 25px; transition: color .18s ease, transform .18s ease;
}
.qq-number button:hover { color: var(--yellow); transform: scale(1.15); }
.qq-join { width: 93%; margin: 18px auto 12px; }
.copy-link { display: block; margin: 0 auto 28px; }

.download-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(22px, 4vw, 48px) minmax(0, 1fr) clamp(22px, 4vw, 48px) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    padding: 34px clamp(8px, 2vw, 20px) 16px;
    overflow: hidden;
    border: 1px solid rgba(120, 232, 255, 0.28);
    border-radius: 14px;
    background: rgba(2, 28, 92, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.download-steps div { position: relative; display: grid; min-width: 0; justify-items: center; gap: 9px; }
.download-steps b {
    position: absolute;
    top: -30px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #18d2ff, #0066ee);
    box-shadow: 0 0 14px rgba(24, 210, 255, 0.6);
    font-size: 16px;
    font-weight: 800;
}
.step-icon {
    display: grid;
    place-items: center;
    width: clamp(58px, 8vw, 80px);
    height: clamp(58px, 8vw, 80px);
    border: 2px solid rgba(120, 232, 255, 0.55);
    border-radius: 50%;
    font-size: clamp(27px, 4vw, 35px);
    background: rgba(6, 44, 138, 0.45);
    box-shadow: 0 0 16px rgba(18, 216, 255, 0.2);
    transition: transform .25s ease, border-color .25s ease;
}
.download-steps div:hover .step-icon { transform: scale(1.08); border-color: var(--cyan); box-shadow: 0 0 22px rgba(18, 216, 255, 0.45); }
.download-steps strong { max-width: 100%; line-height: 1.35; text-align: center; overflow-wrap: anywhere; font-weight: 600; }
.download-steps em { color: var(--cyan); font-size: clamp(24px, 4vw, 40px); font-style: normal; text-align: center; text-shadow: 0 0 10px rgba(18, 216, 255, 0.5); }
.safe-note { margin-top: 18px; color: #b9ddff; font-size: 14px; }

/* ==========================================================================
   Ranking Section (排行榜模块)
   ========================================================================== */
.ranking-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--feature-panel-width); grid-template-rows: auto auto; gap: 22px clamp(40px, 4vw, 62px); align-items: start; }
.ranking-toolbar { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) var(--feature-panel-width); align-items: center; gap: clamp(40px, 4vw, 62px); }
.ranking-control-stack { display: flex; min-width: 0; flex-direction: column; gap: 10px; }
.ranking-left { grid-column: 1; grid-row: 2; }
.ranking-table-column { grid-column: 2; grid-row: 2; width: 100%; min-width: 0; }
.ranking-period-bar { display: flex; width: 100%; max-width: 100%; align-items: center; justify-content: center; gap: 14px; margin: 0; }
.segmented.ranking-scope-tabs { display: grid; grid-template-columns: repeat(var(--ranking-period-count, 2), 125px); width: auto; height: 44px; margin: 0; }
.segmented.ranking-scope-tabs button { width: 125px; min-width: 0; font-size: 15px; }
.ranking-month-select {
    width: 160px; height: 44px; padding: 0 40px 0 14px; border: 1px solid rgba(120, 232, 255, 0.35);
    border-radius: 10px; outline: none; appearance: none; -webkit-appearance: none;
    background: url("../images/ui/select-arrow.png") right 13px center / 18px 12px no-repeat, rgba(3, 28, 92, 0.7);
    color: #fff; cursor: pointer; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.ranking-month-select:hover { border-color: rgba(120, 232, 255, 0.6); }
.ranking-month-select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18, 216, 255, 0.25); }

.ranking-table-panel { display: flex; flex-direction: column; width: 100%; height: auto; min-height: 0; margin-top: 0; padding: 20px 24px 16px; }

/* Segmented Tabs (胶囊分段控制器) */
.segmented {
    display: flex;
    height: 52px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(120, 232, 255, 0.32);
    border-radius: 14px;
    background: rgba(2, 26, 86, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 15, 60, 0.2);
    backdrop-filter: blur(10px);
    padding: 3px;
    gap: 3px;
}
.segmented button {
    position: relative;
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    padding: 0;
    color: #dcefff;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.segmented button:hover { color: #fff; background: rgba(45, 131, 239, 0.18); }
.segmented button.active {
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #18d2ff 0%, #0072ff 100%);
    box-shadow: 0 2px 10px rgba(0, 114, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.podium { position: relative; container-type: inline-size; height: 470px; }
.podium::before {
    content: ""; position: absolute; z-index: 1; left: 50%; bottom: 38px; width: 100%; aspect-ratio: 2021 / 778;
    transform: translateX(-50%); background: url("../images/ui/podium-stage-floating.png?v=20260722a") center / contain no-repeat; pointer-events: none;
}
.podium-entry { position: absolute; z-index: 2; top: 0; bottom: 0; width: 32%; min-width: 0; }
.podium-entry.first { --podium-frame-bottom: calc(30px + 32.3cqi); --podium-frame-height: 200px; left: 50%; transform: translateX(-50%); }
.podium-entry.second { --podium-frame-bottom: calc(30px + 26.4cqi); --podium-frame-height: 181.25px; left: 19.2%; transform: translateX(-50%); }
.podium-entry.third { --podium-frame-bottom: calc(30px + 21.9cqi); --podium-frame-height: 181.25px; left: 81.2%; transform: translateX(-50%); }

.fashion-frame {
    position: absolute; left: 50%; top: auto; bottom: var(--podium-frame-bottom); width: 160px;
    aspect-ratio: 4 / 5; overflow: hidden; border: 0; transform: translateX(-50%); background: none;
    filter: drop-shadow(0 0 16px rgba(0, 210, 255, .5));
    transition: transform .25s ease;
}
.fashion-frame:hover { transform: translateX(-50%) scale(1.04); }
.fashion-frame::after { content: ""; position: absolute; z-index: 6; inset: 0; background: url("../images/ui/fashion-frame.png") center / 100% 100% no-repeat; pointer-events: none; }
.avatar-canvas { position: absolute; inset: 5px 4px; overflow: hidden; }
.fashion-frame .avatar-canvas { z-index: 1; inset: 3.6667% 4.5833%; background: #2458b8; }
.avatar-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; image-rendering: auto; }
.podium-entry.second .fashion-frame, .podium-entry.third .fashion-frame { width: 145px; }

.podium-name {
    position: absolute; left: 50%; bottom: calc(var(--podium-frame-bottom) + var(--podium-frame-height) + 8px);
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: 210px; min-width: 0;
    transform: translateX(-50%); white-space: nowrap; color: var(--cyan); font-size: 18px; font-weight: 700;
}
.podium-name img { flex: 0 0 auto; width: 31px; height: 37px; object-fit: contain; }
.podium-name span {
    min-width: 0; overflow: hidden; text-overflow: ellipsis;
    -webkit-text-stroke: 1px rgba(3, 35, 105, .96); paint-order: stroke fill;
    text-shadow: -1px 0 rgba(3, 35, 105, .96), 1px 0 rgba(3, 35, 105, .96), 0 -1px rgba(3, 35, 105, .96), 0 1px rgba(3, 35, 105, .96), 0 2px 4px rgba(0, 20, 78, .78);
}
.ranking-note { color: var(--cyan); }

/* Data Tables (数据表格) */
.ranking-table-panel .ranking-table { display: flex; flex: 0 0 auto; min-height: 0; flex-direction: column; }
#rankingRows { flex: 0 0 500px; height: 500px; min-height: 500px; }
.data-table { width: 100%; }
.table-row {
    display: grid; min-height: 50px; align-items: center;
    border-bottom: 1px solid rgba(120, 200, 255, 0.16);
    transition: background-color .15s ease;
}
.table-row:not(.table-head):hover { background-color: rgba(18, 140, 255, 0.1); border-radius: 8px; }
.table-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-head { color: #e7f4ff; font-weight: 700; border-bottom: 2px solid rgba(120, 232, 255, 0.35); }
.ranking-table .table-row { grid-template-columns: .65fr 54px .65fr 1.55fr 1.25fr; text-align: center; font-size: 17px; }
.ranking-table .table-row > span:nth-child(4) { text-align: left; }
.ranking-guild-cell { display: grid; min-width: 0; place-items: center; }
.ranking-guild-cell .ranking-guild-icon { width: 24px; height: 24px; }
.rank-cell { display: flex; align-items: center; justify-content: center; gap: 7px; }
.rank-icon { display: inline-block; flex: 0 0 37px; width: 37px; height: 20px; background-image: url("../images/ranks/rank-strip.png?v=20260723a"); background-repeat: no-repeat; background-size: 740px 20px; image-rendering: pixelated; }
.ranking-position-badge { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 44px; }
.ranking-position-badge img { display: block; width: 31px; height: 37px; object-fit: contain; }

.player-link, .guild-link {
    border: 0; padding: 4px; color: var(--cyan); background: transparent; cursor: pointer;
    text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px;
    font-weight: 500;
    transition: color .18s ease, text-shadow .18s ease;
}
.player-link:hover, .guild-link:hover { color: var(--link-hover); text-shadow: 0 0 10px rgba(255, 225, 76, .5); }

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 46px;
    margin: 16px auto 0;
    padding: 5px 14px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 9999px;
    background: rgba(3, 22, 74, 0.65);
    border: 1px solid rgba(120, 232, 255, 0.28);
    box-shadow: 0 4px 18px rgba(0, 12, 44, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.pager label {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
}
.pager span {
    font-size: 14px;
    font-weight: 600;
    color: #d8ebff;
    letter-spacing: 0.5px;
    padding: 0 4px;
    user-select: none;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
}
.pager select, .pager button { height: 38px; border: 0; border-radius: 10px; color: #fff; cursor: pointer; flex-shrink: 0; }
.pager select {
    min-width: 105px; padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none;
    background: url("../images/ui/select-arrow.png") right 12px center / 16px 11px no-repeat, rgba(3, 28, 92, 0.7);
    border: 1px solid rgba(120, 232, 255, 0.35); transition: border-color .2s ease;
    white-space: nowrap;
}
.pager select:hover { border-color: rgba(120, 232, 255, 0.6); }
.pager button {
    position: relative; z-index: 0; isolation: isolate; width: 40px; padding: 0 0 4px 0;
    overflow: hidden; border-radius: 10px; font-size: 24px; line-height: 1; background: none;
    transition: transform .15s ease;
}
.pager button::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border: 1px solid rgba(120, 232, 255, 0.55); border-radius: inherit;
    background: linear-gradient(135deg, #18a0ff 0%, #0056d6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 40, 130, 0.3);
}
.pager button:hover:not(:disabled) { transform: scale(1.06); }
.pager button:hover:not(:disabled)::before {
    border-color: #fff;
    background: linear-gradient(135deg, #30b4ff 0%, #166ae8 100%);
    box-shadow: 0 0 12px rgba(18, 216, 255, 0.4);
}
.pager button:disabled { color: rgba(255,255,255,.35); cursor: default; }
.pager button:disabled::before {
    border-color: rgba(91, 151, 209, .25);
    background: rgba(15, 45, 110, 0.5);
    box-shadow: none;
}

.mini-button::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border: 1px solid rgba(120, 232, 255, 0.45); border-radius: inherit;
    background: linear-gradient(135deg, #2475e0 0%, #134dae 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.mini-button:hover::before {
    border-color: var(--cyan);
    background: linear-gradient(135deg, #328bf5 0%, #1a5ec4 100%);
    box-shadow: 0 0 10px rgba(18, 216, 255, 0.35);
}
.table-hint { margin: 0; text-align: right; color: var(--cyan); font-size: 13px; }

/* ==========================================================================
   Weapons Showcase (武器图鉴模块)
   ========================================================================== */
.page-weapons .page-inner { width: min(1600px, calc(100% - 40px)); }
.weapons-layout {
    --weapon-panel-height: 652px;
    display: grid;
    grid-template-columns: minmax(300px, 500px) minmax(820px, 1fr);
    grid-template-areas: "title title" "detail list";
    align-items: start;
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 12px;
}
.weapons-title { grid-area: title; }
.weapon-detail-shell { grid-area: detail; width: min(520px, 100%); min-width: 0; }
.weapons-main { grid-area: list; min-width: 0; }
.weapon-list-panel { width: 100%; height: var(--weapon-panel-height); padding: 22px 24px; }
.weapon-grid {
    overflow: hidden;
    border: 1px solid rgba(120, 232, 255, 0.3);
    border-radius: 16px;
    background: rgba(2, 34, 108, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.weapon-row { display: grid; grid-template-columns: 88px repeat(4, 1fr); min-height: 51px; border-bottom: 1px solid rgba(120, 200, 255, 0.2); }
.weapon-row:last-child { border-bottom: 0; }
.weapon-key {
    display: grid; place-items: center; border-right: 1px solid rgba(120, 200, 255, 0.3);
    font-size: 24px; font-weight: 800; color: #b8e2ff; background: rgba(3, 24, 76, 0.35);
}
.weapon-key.active { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 10px; text-shadow: 0 0 12px var(--yellow); }
.weapon-button {
    display: grid; grid-template-columns: 48px minmax(6em, 1fr); align-items: center; gap: 6px;
    min-width: 0; border: 0; border-right: 1px solid rgba(120, 200, 255, 0.16); padding: 4px 10px;
    color: #eaf6ff; background: transparent; cursor: pointer; text-align: left; font-size: 16px; font-weight: 500;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.weapon-button:hover, .weapon-button.active {
    background: rgba(18, 216, 255, 0.18);
    color: var(--cyan);
    box-shadow: inset 0 0 0 1px rgba(18, 216, 255, 0.4);
}
.weapon-button img { width: 43px; height: 43px; object-fit: contain; border-radius: 8px; image-rendering: auto; filter: drop-shadow(0 2px 4px rgba(0, 15, 60, 0.4)); }
.weapon-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.weapon-detail { width: min(490px, 100%); height: var(--weapon-panel-height); min-height: var(--weapon-panel-height); margin-top: 0; padding: 34px 38px 30px; }
.weapon-detail h3 { margin: 0 0 12px; text-align: center; font-size: 44px; font-weight: 800; text-shadow: 0 3px 12px rgba(0, 40, 140, 0.6); }
.weapon-large-icon {
    display: block; width: 180px; height: 180px; margin: 2px auto 16px; object-fit: contain; border-radius: 18px;
    image-rendering: auto; filter: drop-shadow(0 15px 20px rgba(0, 15, 70, 0.5));
}
.weapon-facts { margin: 0 0 16px; }
.weapon-facts div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(120, 200, 255, 0.2); font-size: 15px; }
.weapon-detail h4 { margin: 16px 0 8px; color: var(--cyan); font-size: 20px; font-weight: 700; text-shadow: 0 0 8px rgba(18, 216, 255, 0.4); }
.weapon-detail p { margin: 0; line-height: 1.75; color: #dcecff; }
.weapon-detail h4 + p { min-height: 3.5em; }
.empty-state { color: var(--muted); text-align: center; margin-top: 235px; font-size: 16px; }

/* ==========================================================================
   Maps Showcase (地图图鉴模块)
   ========================================================================== */
.maps-layout { display: grid; grid-template-rows: auto 1fr auto; }
.maps-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.map-tabs { width: min(820px, 62vw); }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; align-content: center; }
.map-card { min-width: 0; }
.map-card img {
    display: block; width: 100%; aspect-ratio: 480 / 174; object-fit: cover;
    border: 2px solid rgba(120, 232, 255, 0.45);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 20, 90, 0.35);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease, border-color .3s ease;
}
.map-card:hover img {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--cyan);
    box-shadow: 0 14px 32px rgba(0, 20, 90, 0.5), 0 0 20px rgba(18, 216, 255, 0.35);
}
.map-card h3 { margin: 12px 0 4px; text-align: center; font-size: 20px; font-weight: 600; }
.map-card p { margin: 0; text-align: center; color: #99dfff; font-size: 14px; }
.map-pager { min-height: 54px; }

/* ==========================================================================
   Guild Section (军团模块)
   ========================================================================== */
.guild-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--feature-panel-width); align-items: start; gap: clamp(42px, 4vw, 64px); }
.guild-art-side { align-self: stretch; position: relative; min-width: 0; }
.guild-art-side > p { margin: -2px 0 0 6px; font-size: 22px; text-shadow: 0 2px 6px rgba(0, 20, 80, 0.5); }
.guild-art-side img {
    position: absolute; left: 46%; top: 116px; width: min(690px, 52vw); max-height: calc(100svh - 250px);
    transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 24px 26px rgba(0, 20, 85, .3));
}
.guild-list-panel {
    display: flex; flex-direction: column; width: 100%; height: auto; min-height: 0;
    margin-top: 24px; padding: 26px 24px 16px;
}
.guild-list-panel .guild-table { display: flex; flex: 0 0 auto; min-height: 0; flex-direction: column; }
#guildRows { flex: 0 0 500px; height: 500px; min-height: 500px; }
.guild-search { display: flex; justify-content: flex-end; gap: 14px; }
.guild-search input { max-width: 320px; height: 48px; }
.guild-search .button { min-height: 48px; padding: 0 32px; border-radius: 12px; }
.sort-caption { margin: 15px 4px 6px; color: #c7e6ff; font-size: 14px; }
.guild-table .table-row { grid-template-columns: .62fr 1.45fr 1.1fr .8fr 1.1fr; text-align: center; font-size: 17px; }
.guild-table .table-head { min-height: 53px; }
.guild-table .table-row > span:nth-child(2),
.guild-table .table-row > span:nth-child(3) { text-align: left; }
.guild-list-foot { display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 14px; }

/* Section Dots (侧边栏目指示器) */
.section-dots { position: fixed; z-index: 70; right: clamp(18px, 1vw, 34px); top: 50%; display: grid; gap: 24px; transform: translateY(-45%); }
.section-dots a {
    width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 20, 80, 0.4);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.section-dots a:hover { border-color: #fff; transform: scale(1.25); }
.section-dots a.active {
    border-color: #fff; background: var(--yellow);
    box-shadow: 0 0 0 3px #0775df, 0 0 16px var(--yellow);
    transform: scale(1.3);
}

/* ==========================================================================
   Modals & Popups (现代毛玻璃弹窗体系)
   ========================================================================== */
.modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; }
#playerModal { z-index: 140; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 14, 52, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 38px 44px 34px;
    border-radius: 22px;
}
.modal-wide { width: min(880px, 100%); }
.modal-card h2 { margin: 0 0 25px; font-size: 32px; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 40, 140, 0.6); }
.modal-close {
    position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%;
    z-index: 20;
    color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.1); cursor: pointer; font-size: 24px; line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    display: flex; align-items: center; justify-content: center;
    padding: 0 0 3px 0; margin: 0; box-sizing: border-box; text-align: center;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.modal-close:hover { background-color: rgba(255, 255, 255, 0.25); color: #fff; box-shadow: 0 0 14px rgba(18, 216, 255, 0.4); transform: none; }
.modal-card form:not(.form-grid) label { margin-bottom: 18px; }
.modal-card .button-submit { width: 100%; min-height: 52px; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 0 18px; }
.form-grid label { align-self: start; align-content: start; min-width: 0; width: 100%; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.form-grid .registration-identity-field small { display: block; min-height: 1.25em; }
.form-grid .registration-security-field { min-width: 0; }

.hint-question {
    margin: 0 0 18px; padding: 16px; border: 1px solid rgba(120, 232, 255, 0.4);
    border-radius: 12px; color: var(--cyan); background: rgba(0, 37, 122, 0.45); font-size: 15px;
}
.profile-modal-card { width: min(660px, calc(100vw - 32px)); box-sizing: border-box; }
.profile-sheet {
    display: grid;
    grid-template-columns: 210px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    row-gap: 8px;
}
.profile-avatar-box {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: relative; height: 280px; overflow: hidden; border: 4px solid #10a5ff; border-radius: 16px;
    background: linear-gradient(#5946bd, #173993); box-shadow: inset 0 0 0 2px #64efff, 0 8px 24px rgba(0, 20, 90, 0.4);
}
.profile-avatar-box .avatar-canvas img { width: 100%; height: 100%; }
.profile-header-group { grid-column: 2; grid-row: 1; min-width: 0; }
.profile-header-group:empty { display: none; }
.profile-title, .profile-header-rank, .profile-header-fields { display: none; }
.profile-data { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-data div { padding: 12px; border-bottom: 1px solid rgba(120, 200, 255, 0.2); }
.profile-data small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.profile-data .rank-cell { justify-content: flex-start; gap: 7px; }
.profile-data .rank-cell .rank-name { display: inline; }
.profile-register-time strong { white-space: nowrap; font-size: 13px; }
.profile-result-win { color: #ff6f7d; }
.profile-result-draw { color: #ffb84d; }
.profile-result-loss { color: #69e995; }
.profile-data strong > i { margin: 0 6px; color: #a9cbed; font-style: normal; font-weight: 400; }

/* Player Profile Modal (#playerModal) - PC default */
#playerModal .profile-modal-card {
    width: min(520px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 24px 22px 20px;
}
#playerModal .profile-header-sheet {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
}
#playerModal .profile-avatar-box {
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    height: 160px;
    margin: 0;
    position: relative;
    overflow: hidden;
    border: 3px solid #10a5ff;
    border-radius: 14px;
    background: linear-gradient(#5946bd, #173993);
    box-shadow: inset 0 0 0 2px #64efff, 0 8px 24px rgba(0, 20, 90, 0.4);
}
#playerModal .profile-avatar-box .avatar-canvas img {
    width: 100%;
    height: 100%;
}
#playerModal .profile-header-group {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    min-height: 160px;
    padding-right: 36px;
    padding-top: 2px;
}
#playerModal .profile-header-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
#playerModal .profile-meta-field {
    padding: 4px 0 6px;
    border-bottom: 1px solid rgba(120, 200, 255, 0.2);
}
#playerModal .profile-meta-field small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 3px;
}
#playerModal .profile-meta-field strong {
    display: block;
    font-size: 16px;
    line-height: 1.3;
    color: #fff;
    word-break: break-all;
}
#playerModal .profile-header-rank {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
}
#playerModal .profile-header-rank .rank-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#playerModal .profile-header-rank .rank-icon {
    display: inline-block;
    width: 37px;
    height: 20px;
}
#playerModal .profile-header-rank .rank-name {
    font-size: 15px;
    color: #ffd700;
    font-weight: 700;
    line-height: 1;
}
#playerModal .profile-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0 0;
    min-height: 0;
}
#playerModal .profile-view-tabs {
    display: flex;
    gap: 24px;
    margin: 16px 0 14px 0;
    border-bottom: 1px solid rgba(160, 206, 255, 0.35);
}
#playerModal .profile-view-tabs button {
    color: #b9ddff;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 8px 4px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}
#playerModal .profile-view-tabs button[aria-selected="true"] {
    color: #ffe600;
    border-bottom-color: #ffe600;
}
#playerModal .profile-tab-content {
    position: relative;
    width: 100%;
    height: 250px;
    min-height: 250px;
    box-sizing: border-box;
    overflow: hidden;
}
#playerModal #profileBasicPanel,
#playerModal #profileBattlePanel,
#playerModal #profileRecordsPanel {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

#playerModal .profile-battle-wrap {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
#playerModal .profile-battle-wrap::-webkit-scrollbar {
    display: none;
}
#playerModal .profile-battle-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}
#playerModal .profile-battle-table th,
#playerModal .profile-battle-table td {
    padding: 7px 4px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.35;
    box-sizing: border-box;
    white-space: nowrap;
}
#playerModal .profile-battle-table th:first-child,
#playerModal .profile-battle-table td:first-child {
    text-align: left;
    padding-left: 8px;
    width: 25%;
}
#playerModal .profile-battle-table th:last-child,
#playerModal .profile-battle-table td:last-child {
    text-align: right;
    padding-right: 8px;
    width: 23%;
}
#playerModal .profile-battle-table thead th {
    color: #78e8ff;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid rgba(120, 200, 255, 0.25);
    padding-top: 4px;
    padding-bottom: 7px;
}
#playerModal .profile-battle-table tbody td {
    font-size: 13.5px;
    color: #dceaff;
    border-bottom: 1px solid rgba(120, 200, 255, 0.1);
}
#playerModal .profile-battle-table tbody tr:last-child td {
    border-bottom: none;
}
#playerModal .profile-battle-table .profile-stat-rate {
    color: #ffe100;
    font-weight: 600;
}
#playerModal .profile-battle-table .profile-battle-total-row {
    background: rgba(120, 200, 255, 0.08);
}
#playerModal .profile-battle-table .profile-battle-total-row td {
    font-weight: 600;
    color: #ffffff;
    border-top: 1px solid rgba(120, 200, 255, 0.28);
    border-bottom: none;
    padding-top: 7px;
    padding-bottom: 7px;
}
#playerModal .profile-battle-table .profile-battle-total-row td:first-child {
    padding-left: 8px;
}
#playerModal .profile-battle-table .profile-battle-total-row td:last-child {
    padding-right: 8px;
}
#playerModal .profile-battle-table .profile-mode-private-msg {
    text-align: center;
    color: var(--muted, #8bb6e0);
    font-size: 14px;
    padding: 65px 10px;
    border-bottom: none;
}
#playerModal #profileBasicPanel .profile-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    margin: 0;
}
#playerModal #profileBasicPanel .profile-data div {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(120, 200, 255, 0.2);
}
#playerModal #profileBasicPanel .profile-data small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}
#playerModal #profileBasicPanel .profile-data strong {
    display: block;
    font-size: 16px;
    color: #fff;
}
#playerModal #profileBasicPanel .profile-register-time strong {
    font-size: 14px;
    white-space: nowrap;
}
#playerModal #profileRecordsPanel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#playerModal .profile-records-empty {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}
#playerModal .profile-records-empty .empty-row {
    padding: 0;
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}
#playerModal .profile-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}
#playerModal .profile-achievements li {
    height: 52px;
    min-height: 52px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(160, 206, 255, 0.22);
    box-sizing: border-box;
}
#playerModal .profile-achievements .profile-achievement-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 12px;
}
#playerModal .profile-achievements .profile-achievement-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#playerModal .profile-achievements strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
}
#playerModal .profile-achievements .profile-tournament-link {
    color: #78e8ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(120, 232, 255, 0.45);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
    cursor: pointer;
}
#playerModal .profile-achievements .profile-tournament-link:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
    text-shadow: 0 0 10px rgba(120, 232, 255, 0.6);
}
#playerModal .profile-achievements .profile-achievement-date,
#playerModal .profile-achievements small {
    display: block;
    margin-top: 3px;
    color: #b9ddff;
    font-size: 12px;
    line-height: 1.2;
}
#playerModal .profile-achievements .profile-achievement-badge {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
}
#playerModal .profile-achievements .profile-achievement-trophy {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}
#playerModal .profile-achievements .profile-achievement-trophy .profile-trophy {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
}
#playerModal .profile-achievements .profile-achievement-rank {
    width: 48px;
    min-width: 48px;
    flex: 0 0 48px;
    text-align: right;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
#playerModal .profile-achievement-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
    flex: 0 0 auto;
}
#playerModal .profile-achievement-pages button {
    border: 1px solid #83b5ff;
    color: #fff;
    background: transparent;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}
#playerModal .profile-achievement-pages button:disabled {
    opacity: .4;
    cursor: default;
}
#playerModal #profileBasicPanel[hidden],
#playerModal #profileRecordsPanel[hidden] {
    display: none !important;
}
#playerModal .profile-trophy {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 7px;
    vertical-align: middle;
}

.profile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; min-height: 0; }
.profile-tag { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.4; border-radius: 6px; white-space: nowrap; cursor: pointer; user-select: none; transition: filter .15s ease, transform .15s ease; }
.profile-tag:hover { filter: brightness(1.25); transform: translateY(-1px); }
.profile-tag.tag-red { background: rgba(235,47,47,.22); border: 1px solid rgba(255,77,79,.65); color: #ff8e8b; box-shadow: 0 0 8px rgba(255,77,79,.2); }
.profile-tag.tag-orange { background: rgba(250,140,22,.22); border: 1px solid rgba(255,169,64,.65); color: #ffc27a; box-shadow: 0 0 8px rgba(255,169,64,.2); }
.profile-tag.tag-green { background: rgba(82,196,26,.22); border: 1px solid rgba(115,209,61,.65); color: #9ced70; box-shadow: 0 0 8px rgba(115,209,61,.2); }
.profile-tag.tag-cyan { background: rgba(19,194,194,.22); border: 1px solid rgba(54,207,201,.65); color: #63ece4; box-shadow: 0 0 8px rgba(54,207,201,.2); }
.profile-tag.tag-blue { background: rgba(24,144,255,.22); border: 1px solid rgba(64,169,255,.65); color: #7ecef4; box-shadow: 0 0 8px rgba(64,169,255,.2); }
.profile-tag.tag-purple { background: rgba(114,46,209,.22); border: 1px solid rgba(146,84,222,.65); color: #c799ff; box-shadow: 0 0 8px rgba(146,84,222,.2); }
.profile-tag.tag-black { background: rgba(20,32,55,.6); border: 1px solid rgba(130,160,200,.45); color: #d2e4f8; }
.profile-tag.tag-gray { background: rgba(120,130,150,.22); border: 1px solid rgba(160,175,200,.45); color: #c0cde0; }
.site-tag-tooltip {
    position: fixed; z-index: 999999; max-width: 320px; padding: 8px 14px;
    background: rgba(3, 18, 56, 0.96); border: 1px solid #45c4ff; border-radius: 8px;
    color: #eaf5ff; font-size: 12px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0,0,0,.6), inset 0 0 8px rgba(69,196,255,.2);
    pointer-events: none; word-break: break-all; white-space: normal;
}
.modal-card select {
    padding-right: 46px; appearance: none; -webkit-appearance: none;
    background: url("../images/ui/select-arrow.png") right 17px center / 18px 12px no-repeat, rgba(3, 20, 68, 0.6);
}

/* Guild Modal Content (军团弹窗) */
.guild-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.guild-detail-head > .button { width: 150px; min-height: 45px; flex: 0 0 150px; margin-right: 16px; padding: 0 18px; font-size: 16px; white-space: nowrap; }
.guild-detail-identity, .guild-name-cell { display: flex; min-width: 0; align-items: center; gap: 10px; }
.guild-icon {
    display: inline-block; width: 32px; height: 32px; flex: 0 0 auto;
    background-image: url("../images/guild/guild-icons.gif?v=2026072612"); background-repeat: no-repeat;
    background-size: 1600% 1000%; image-rendering: pixelated;
}
.guild-icon.small { width: 27px; height: 27px; }
.guild-icon.large {
    width: 56px; height: 56px; padding: 6px; border: 1px solid rgba(120, 232, 255, 0.65);
    border-radius: 12px; background-color: rgba(4, 52, 145, .5); background-origin: content-box; background-clip: content-box;
    box-shadow: 0 0 12px rgba(18, 216, 255, 0.3);
}
.guild-members { margin-top: 18px; }
.guild-member-table { margin-top: 8px; }
.guild-member-head, .guild-member-row {
    display: grid; grid-template-columns: minmax(110px,.8fr) minmax(150px,1.35fr) 128px minmax(100px,1fr) minmax(72px,.7fr);
    gap: 12px; align-items: center;
}
.guild-member-head { min-height: 40px; border-bottom: 2px solid rgba(120, 200, 255, 0.35); color: #d9eeff; font-weight: 700; }
.guild-member-row { min-height: 48px; border-bottom: 1px solid rgba(120, 200, 255, 0.16); }
.guild-member-head > span, .guild-member-row > span { min-width: 0; text-align: center; }
.guild-member-head > span:nth-child(2), .guild-member-name { text-align: left; }
.guild-member-name { justify-self: stretch; min-width: 0; }
.guild-member-rank .rank-cell { justify-content: center; }

#guildModalContent .guild-member-head, #guildModalContent .guild-member-row { grid-template-columns: minmax(110px,.8fr) 128px minmax(150px,1.35fr) minmax(100px,1fr) minmax(72px,.7fr); }
#guildModalContent .guild-member-head > span:first-child, #guildModalContent .guild-member-row > span:first-child { text-align: left; }
#guildModalContent .guild-member-head > span:nth-child(2) { text-align: center; }
#guildModalContent .guild-member-head > span:nth-child(3) { text-align: left; }
#guildModalContent .guild-member-pager { min-height: 52px; margin-top: 8px; }
#guildModalContent .guild-member-pager[hidden] { display: none; }
#guildModalContent .guild-member-pager > span { min-width: 145px; text-align: center; color: #c7e6ff; }
#guildModalContent .guild-member-empty { display: grid; min-height: 160px; place-items: center; color: var(--muted); }

.guild-manager-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.guild-manager-actions .button { min-height: 45px; font-size: 16px; }
.inline-form { display: flex; gap: 10px; align-items: end; }
.inline-form label { flex: 1; margin: 0 !important; }
.guild-create-form, .guild-icon-form { display: grid; gap: 13px; margin: 18px 0; }
.guild-icon-picker-label { display: grid; gap: 8px; }
.guild-icon-picker {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); max-height: 210px; padding: 10px;
    overflow-y: auto; border: 1px solid rgba(120, 232, 255, 0.35); border-radius: 12px; background: rgba(2, 32, 104, 0.45);
    scrollbar-width: thin; scrollbar-color: #5bd8ff rgba(3,44,124,.5);
}
.guild-icon-option { display: grid; min-width: 42px; height: 42px; place-items: center; padding: 5px; border: 1px solid transparent; border-radius: 8px; background: rgba(22, 85, 178, 0.32); cursor: pointer; transition: all .15s ease; }
.guild-icon-option:hover { border-color: rgba(120, 232, 255, 0.7); background: rgba(30, 100, 200, 0.4); }
.guild-icon-option.selected { border-color: #ffea61; background: rgba(72, 128, 238, 0.72); box-shadow: 0 0 10px rgba(255, 224, 58, 0.5), inset 0 0 0 1px #fff5ab; }
.guild-icon-option .guild-icon { width: 30px; height: 30px; }
.guild-icon-form .button, .guild-create-form .button { justify-self: end; min-width: 160px; }
.application-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; align-items: center; min-height: 48px; border-bottom: 1px solid rgba(120, 200, 255, 0.2); }
.mini-button { position: relative; z-index: 0; isolation: isolate; min-height: 34px; padding: 0 14px; overflow: hidden; border: 0; border-radius: 8px; background: none; cursor: pointer; }

#guildModalContent .guild-detail-head { display: block; }
#guildModal .modal-card { padding-top: 28px; padding-bottom: 16px; }
#guildModalContent .guild-detail-head > .eyebrow { margin: 0 0 12px 70px; }
#guildModalContent .guild-detail-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 24px; }
#guildModalContent .guild-detail-identity { flex: 1 1 auto; gap: 14px; }
#guildModalContent .guild-detail-copy { display: flex; min-width: 0; flex: 1 1 auto; justify-content: center; gap: 7px; flex-direction: column; }
#guildModalContent .guild-detail-copy h2 { max-width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 28px; line-height: 1.15; }
#guildModalContent .guild-detail-meta { margin: 0; color: #dcecff; font-size: 17px; white-space: nowrap; }
#guildModalContent .guild-detail-row > .button { width: 150px; min-height: 45px; flex: 0 0 150px; margin-right: 16px; padding: 0 18px; font-size: 16px; white-space: nowrap; }
#guildModalContent .guild-members { margin-top: 12px; }
#guildModalContent .guild-member-head { min-height: 36px; }
#guildModalContent .guild-member-row { min-height: 38px; }
#guildModalContent .guild-member-pager { min-height: 44px; margin-top: 4px; }

/* Toast (现代浮动提示框) */
.toast {
    position: fixed; z-index: 200; left: 50%; top: 50%; display: grid; place-items: center;
    width: min(480px, calc(100% - 40px)); min-height: 96px; padding: 22px 36px;
    border: 1px solid rgba(120, 232, 255, 0.45); border-radius: 18px; transform: translate(-50%, -50%);
    text-align: center; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.55;
    background: linear-gradient(150deg, rgba(6, 38, 122, 0.9) 0%, rgba(2, 22, 80, 0.95) 100%);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0, 14, 56, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 24px rgba(18, 216, 255, 0.25);
    pointer-events: none;
}
.toast::after { content: none; }

/* ==========================================================================
   Notice Detail & Notice List Pages (公告详情与列表)
   ========================================================================== */
.notice-detail-page { min-height: 100vh; }
.notice-detail-page::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(3, 43, 134, .3), rgba(2, 30, 103, .72)), url("../images/heroes/home-scene-wide-2d.jpg?v=20260722e") center top / cover no-repeat; }
.notice-detail-main { position: relative; z-index: 2; width: min(1120px, calc(100% - (var(--page-gutter) * 2))); margin: 0 auto; padding: calc(var(--header-height) + 54px) 0 80px; }
.notice-article { min-height: 560px; padding: 42px 48px 52px; }
.notice-article-inner { position: relative; z-index: 4; }
.notice-back { display: inline-block; margin-bottom: 32px; color: var(--cyan-soft); font-size: 15px; font-weight: 500; transition: color .18s ease; }
.notice-back:hover { color: var(--yellow); }
.notice-heading-meta { display: flex; align-items: center; gap: 12px; color: #9ed7ff; font-size: 14px; }
.notice-article h1 { margin: 15px 0 22px; color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.35; font-weight: 800; text-shadow: 0 3px 0 rgba(0, 35, 116, .55); }
.notice-divider { height: 1px; margin-bottom: 30px; background: linear-gradient(90deg, rgba(64, 211, 255, .72), rgba(64, 211, 255, .08)); }
.notice-body { color: #e5f4ff; font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.notice-body > :first-child { margin-top: 0; }
.notice-body > :last-child { margin-bottom: 0; }
.notice-body p, .notice-body div { margin: 0 0 1em; }
.notice-body h1, .notice-body h2, .notice-body h3, .notice-body h4, .notice-body h5, .notice-body h6 { margin: 1.35em 0 .65em; color: #fff; line-height: 1.4; }
.notice-body h1 { font-size: 2em; }.notice-body h2 { font-size: 1.7em; }.notice-body h3 { font-size: 1.45em; }.notice-body h4 { font-size: 1.25em; }.notice-body h5 { font-size: 1.1em; }.notice-body h6 { font-size: 1em; }
.notice-body ul, .notice-body ol { margin: .7em 0 1em; padding-left: 2em; }
.notice-body li { margin: .25em 0; }
.notice-body a { color: #6fe7ff; text-decoration: underline; text-underline-offset: 3px; }
.notice-body a:hover { color: var(--yellow); }
.notice-body blockquote { margin: 1em 0; padding: .65em 1em; border-left: 4px solid rgba(94, 221, 255, .78); background: rgba(1, 38, 120, .35); color: #d4ecff; border-radius: 0 8px 8px 0; }
.notice-body pre { max-width: 100%; margin: 1em 0; overflow-x: auto; padding: 14px 16px; border: 1px solid rgba(104, 205, 255, .26); border-radius: 10px; background: rgba(0, 20, 76, .55); font: 14px/1.7 Consolas, Monaco, monospace; white-space: pre-wrap; }
.notice-body code { padding: .12em .35em; border-radius: 4px; background: rgba(0, 20, 76, .48); font-family: Consolas, Monaco, monospace; }
.notice-body pre code { padding: 0; background: transparent; }
.notice-body figure { max-width: 100%; margin: 1.25em auto; }
.notice-body figcaption { margin-top: .45em; color: #a8d5f6; font-size: .85em; text-align: center; }
.notice-body img, .notice-body video { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px; }
.notice-body .image-style-align-left, .notice-body .image-style-block-align-left { margin-right: auto; margin-left: 0; }
.notice-body .image-style-align-right, .notice-body .image-style-block-align-right, .notice-body .image-style-side { margin-right: 0; margin-left: auto; }
.notice-body .image-style-align-center { margin-right: auto; margin-left: auto; }
.notice-body table { width: 100%; margin: 1.2em 0; border-spacing: 0; border-collapse: collapse; background: rgba(0, 33, 104, .32); border-radius: 8px; overflow: hidden; }
.notice-body th, .notice-body td { padding: 9px 12px; border: 1px solid rgba(111, 205, 255, .32); text-align: left; vertical-align: top; }
.notice-body th { background: rgba(20, 100, 204, .38); color: #fff; }
.notice-body hr { height: 1px; margin: 1.4em 0; border: 0; background: rgba(94, 221, 255, .35); }

.notice-list-panel { min-height: 560px; padding: 40px 48px 46px; }
.notice-list-inner { position: relative; z-index: 4; }
.notice-list-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(83, 199, 255, .34); }
.notice-list-head h1 { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; font-weight: 800; text-shadow: 0 3px 0 rgba(0, 35, 116, .55); }
.notice-list-head p { margin: 8px 0 0; color: #9ed7ff; font-size: 14px; }
.notice-list-back { flex: 0 0 auto; padding-bottom: 4px; color: var(--cyan-soft); font-size: 15px; font-weight: 500; }
.notice-list-back:hover { color: var(--yellow); }
.notice-list { margin: 0; padding: 8px 0 0; list-style: none; }
.notice-list-item { border-bottom: 1px solid rgba(120, 206, 255, .16); }
.notice-list-item > a {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 62px; align-items: center;
    gap: 14px; color: #eef9ff; border-radius: 8px;
    transition: color .18s ease, background .18s ease, padding .18s ease;
}
.notice-list-item > a:hover { padding-inline: 12px; color: var(--yellow); background: rgba(48, 142, 255, .14); }
.notice-list-title { min-width: 0; overflow: hidden; font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.notice-list time { color: #8fd3ff; font-size: 13px; }
.notice-list-empty { padding: 90px 20px; color: #9ed7ff; text-align: center; font-size: 15px; }

.notice-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.notice-pagination a, .notice-pagination span {
    display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center;
    padding: 0 12px; border: 1px solid rgba(120, 232, 255, .4); border-radius: 8px; color: #dff5ff;
    background: rgba(9, 55, 150, .6); backdrop-filter: blur(6px); transition: all .18s ease;
}
.notice-pagination a:hover, .notice-pagination .current {
    border-color: var(--yellow); color: #102768; background: var(--yellow); font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 225, 0, 0.4);
}
.notice-pagination .disabled { opacity: .42; cursor: default; }
.loading-row, .empty-row { padding: 50px 20px; text-align: center; color: var(--muted); }
#rankingRows > .loading-row, #rankingRows > .empty-row, #guildRows > .loading-row, #guildRows > .empty-row {
    display: grid; height: 100%; min-height: 180px; place-items: center; padding: 20px;
}

/* ==========================================================================
   Responsive Adaptations (多端响应式断点)
   ========================================================================== */
@media (max-width: 1360px) {
    :root { --header-height: 80px; --page-gutter: 48px; }
    .header-shell { grid-template-columns: 230px minmax(500px, 1fr) auto; gap: clamp(18px, 2.4vw, 34px); }
    .site-logo { height: 70px; }
    .site-nav { gap: 18px; }
    .site-nav a { font-size: 17px; }
    .site-nav a::after { bottom: 8px; }
    .header-account-user { gap: 8px; }
    .header-account-name, .header-account-logout, .header-account-guest { font-size: 13px; }
    .home-layout { grid-template-columns: minmax(390px, .9fr) minmax(245px, .64fr) minmax(370px, 410px); }
    .home-copy { padding-top: 52px; }
    .home-copy h1 { font-size: 63px; }
    .account-card { margin-top: 0; padding: 26px 30px 22px; }
    .home-hero { left: 31%; width: 45vw; }
    .page-split { grid-template-columns: minmax(0, 1fr) var(--feature-panel-width); gap: 42px; }
    .download-hero { width: 49vw; }
    .download-panel { padding: 36px 38px 30px; }
    .download-panel h3 { font-size: 33px; }
    .ranking-layout { grid-template-columns: minmax(0, 1fr) var(--feature-panel-width); column-gap: 34px; }
    .ranking-toolbar { grid-template-columns: minmax(0, 1fr) var(--feature-panel-width); gap: 34px; }
    .podium { height: 420px; }
    .podium::before { bottom: 34px; }
    .fashion-frame { width: 150px; }
    .podium-entry.first { --podium-frame-bottom: calc(24px + 32.3cqi); --podium-frame-height: 187.5px; }
    .podium-entry.second { --podium-frame-bottom: calc(24px + 26.4cqi); --podium-frame-height: 170px; }
    .podium-entry.third { --podium-frame-bottom: calc(24px + 21.9cqi); --podium-frame-height: 170px; }
    .podium-entry.second .fashion-frame, .podium-entry.third .fashion-frame { width: 136px; }
    .weapons-layout { grid-template-columns: minmax(250px, 1fr) minmax(730px, 820px); gap: 24px; }
    .weapon-button { grid-template-columns: 42px minmax(6em, 1fr); font-size: 14px; }
    .weapon-button img { width: 38px; height: 38px; }
    .weapon-detail { padding: 28px 32px; }
    .guild-layout { grid-template-columns: minmax(0, 1fr) var(--feature-panel-width); gap: 42px; }
    .guild-art-side img { width: min(610px, 50vw); }
    .guild-list-panel { padding-inline: 18px; }
}

@media (max-width: 1100px) {
    :root { --header-height: 118px; --page-gutter: 20px; }
    .site-header { height: var(--header-height); }
    .header-shell { width: 100%; display: grid; grid-template: 56px 62px / 1fr; gap: 0; }
    .site-logo { width: 210px; height: 54px; margin: 1px auto 0; }
    .site-logo img { object-position: center; }
    .site-nav {
        min-width: 0; width: 100%; height: 62px; padding: 0 12px; gap: 0; overflow-x: auto;
        justify-content: flex-start; scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav a { flex: 1 1 96px; height: 62px; padding-top: 0; font-size: 16px; }
    .site-nav a::after { bottom: 6px; }
    .header-account { position: absolute; z-index: 2; top: 7px; right: 16px; height: 42px; }
    .page-section {
        height: auto; min-height: 100vh; min-height: 100svh; overflow: hidden;
        scroll-snap-align: none; scroll-snap-stop: normal;
    }
    .page-inner {
        width: calc(100% - 40px); height: auto; min-height: 100vh; min-height: 100svh;
        padding-top: calc(var(--header-height) + 26px); padding-bottom: 64px;
    }
    .section-dots { display: none; }
    .section-title { min-height: 68px; }
    .section-title span, .section-title h2 { font-size: 39px; }
    .section-title i { width: 28px; }
    .illustration-side > .section-title, .ranking-toolbar, .weapons-title, .maps-toolbar, .guild-art-side > .section-title { transform: translateY(-10px); }
    .home-layout, .page-split, .ranking-layout, .weapons-layout, .guild-layout { display: block; }
    .home-copy { margin-bottom: 40px; padding: 22px 0 0; text-align: center; }
    .home-copy h1 { font-size: clamp(48px, 9vw, 72px); }
    .home-slogan img { margin-inline: auto; }
    .home-copy p { max-width: 680px; margin-inline: auto; }
    .home-actions { align-items: center; margin: 32px 0 0; }
    .home-hero {
        position: relative; left: auto; top: auto; width: min(720px, 100%); height: auto;
        aspect-ratio: 915 / 832; margin: -50px auto -25px;
    }
    .home-account-column { max-width: 620px; margin: 0 auto 30px; gap: 14px; }
    .account-card { min-height: 0; max-width: none; margin: 0; }
    .home-notices { margin: 0; text-align: left; }
    .illustration-side { min-height: 0; margin-bottom: 36px; }
    .download-hero { top: 115px; width: min(650px, 94vw); }
    .download-panel { position: relative; z-index: 2; max-width: 760px; margin: 0 auto 30px; padding: 32px 24px; }
    .download-steps { overflow: hidden; }
    .ranking-toolbar {
        display: flex; align-items: stretch; flex-direction: column; gap: 16px;
        max-width: 760px; margin: 0 auto 24px;
    }
    .ranking-control-stack { width: 100%; }
    .ranking-left { max-width: 760px; margin: clamp(32px, calc(34.8485vw - 212px), 67px) auto 40px; }
    .ranking-table-column { width: 100%; max-width: 760px; margin: 0 auto 35px; }
    .ranking-table-panel { width: 100%; height: auto; min-height: 0; margin: 0; }
    .weapon-detail-shell { margin-bottom: 36px; }
    .weapons-main { overflow-x: auto; }
    .weapon-grid { min-width: 760px; }
    .weapon-button { grid-template-columns: 42px minmax(6em, 1fr); padding-inline: 6px; font-size: 14px; }
    .weapon-detail, .weapon-list-panel { height: auto; }
    .weapon-detail { max-width: 760px; min-height: 500px; margin: 0 auto; }
    .maps-toolbar { align-items: stretch; flex-direction: column; margin-bottom: 36px; }
    .map-tabs { width: 100%; }
    .map-grid { grid-template-columns: 1fr 1fr; margin-top: 0; }
    .page-guilds { background: #1745ad; }
    .page-guilds::after { background-size: 100% auto; background-position: center top; }
    .guild-art-side { min-height: 0; margin-bottom: 36px; }
    .guild-art-side img { left: 50%; top: 120px; width: min(720px, 96vw); max-height: none; }
    .guild-list-panel {
        position: relative; z-index: 2; display: flex; height: auto; min-height: 0;
        max-width: 820px; margin: 0 auto 30px; overflow-x: auto;
    }
    .guild-list-panel > * { min-width: 680px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .profile-sheet { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 12px; }
    .profile-avatar-box { grid-column: 1; grid-row: auto; width: 220px; margin: auto; }
    .profile-header-group { grid-column: 1; grid-row: auto; }
    .profile-data { grid-column: 1; grid-row: auto; }
    .notice-detail-main { width: calc(100% - 40px); }
    .notice-article { padding: 34px 28px 44px; }
    .notice-list-panel { padding: 34px 28px 42px; }
}

@media (max-width: 700px) {
    .site-logo { width: 160px; margin-left: 12px; margin-right: 0; }
    .header-account { right: 11px; padding: 0 10px; }
    .header-account-user { gap: 7px; }
    .header-account-icon { width: 18px; height: 18px; flex-basis: 18px; background-size: 615px 504px; background-position: -224px -435px; border: none; border-radius: 0; background-color: transparent; box-shadow: none; }
    .header-account-name, .header-account-logout, .header-account-guest { font-size: 12px; }
    .site-nav { padding: 0 4px; }
    .site-nav a { display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center; padding: 0 2px 4px; font-size: 13.5px; line-height: 1; }
    .site-nav a:hover::after,
    .site-nav a.active::after { width: 28px; }
    .modal-close { right: 14px; top: 14px; width: 40px; height: 40px; font-size: 24px; z-index: 20; }
    .page-inner { width: calc(100% - 28px); }
    .section-title span, .section-title h2 { font-size: 34px; }
    .section-title i { width: 22px; }
    .home-slogan { display: none; }
    .page-home .home-copy { padding-top: clamp(300px, 66vw, 390px); }
    .page-home .home-actions { margin-top: 0; }
    .home-copy h1 { font-size: 49px; }
    .home-copy p { font-size: 17px; }
    .home-hero { margin-top: -20px; }
    .account-card { padding: 30px 22px; }
    .home-notices { width: 100%; }
    .home-notices time { display: none; }
    .notice-detail-main { width: calc(100% - 28px); }
    .notice-article { padding: 28px 20px 36px; }
    .notice-body { font-size: 16px; }
    .notice-list-panel { padding: 28px 20px 36px; }
    .notice-list-head { align-items: flex-start; flex-direction: column; }
    .notice-list-item > a { gap: 9px; }
    .notice-list time { font-size: 11px; }
    .button { min-height: 50px; padding-inline: 20px; font-size: 18px; border-radius: 12px; }
    .illustration-side { min-height: 0; }
    .download-panel h3 { font-size: 28px; }
    .download-panel > p { font-size: 16px; }
    .qq-number { gap: 6px; padding-left: 12px; font-size: 20px; white-space: nowrap; height: 60px; }
    .qq-number span, .qq-number strong { white-space: nowrap; }
    .qq-number button { width: 44px; flex: 0 0 44px; font-size: 20px; }
    .download-steps { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); }
    .download-steps strong { overflow-wrap: normal; white-space: nowrap; font-size: clamp(11px, 3vw, 14px); letter-spacing: -.2px; }
    .download-steps em { font-size: 22px; }
    .segmented { height: 48px; border-radius: 12px; }
    .segmented button { font-size: 15px; border-radius: 8px; }
    .map-tabs button { padding-inline: 3px; font-size: 14px; }
    .ranking-left { margin-top: max(0px, calc(34.8485vw - 196px)); margin-bottom: 12px; }
    .podium { gap: 2px; height: 380px; }
    .fashion-frame { width: 128px; }
    .podium-entry.first { --podium-frame-height: 160px; }
    .podium-entry.second, .podium-entry.third { --podium-frame-height: 140px; }
    .podium-entry:not(.first) .fashion-frame { width: 112px; }
    .podium-base { font-size: 45px; }
    .ranking-period-bar { flex-wrap: wrap; gap: 8px; margin-top: 0; }
    .segmented.ranking-scope-tabs { grid-template-columns: repeat(var(--ranking-period-count, 2), 95px); }
    .segmented.ranking-scope-tabs button { width: 95px; font-size: 13px; }
    .ranking-month-select { width: 136px; padding-left: 10px; padding-right: 34px; background-position: right 10px center, center; font-size: 13px; }
    .ranking-table-panel { padding: 14px 10px; }
    .ranking-table .table-row { grid-template-columns: 42px 30px 44px minmax(0, 1fr) 64px; font-size: 14px; }
    .ranking-table .ranking-guild-cell .ranking-guild-icon { width: 20px; height: 20px; }
    .rank-cell { gap: 2px; }
    .rank-cell .rank-name { display: none; }
    .weapons-main { overflow-x: hidden; }
    .weapon-list-panel { padding: 14px 10px; }
    .weapon-grid { width: 100%; min-width: 0; }
    .weapon-row { grid-template-columns: 62px repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 46px); min-height: 92px; }
    .weapon-key { grid-row: 1 / span 2; font-size: 20px; }
    .weapon-button { grid-template-columns: 36px minmax(0, 1fr); min-height: 46px; gap: 4px; padding: 3px 5px; font-size: 13px; }
    .weapon-button:nth-of-type(1), .weapon-button:nth-of-type(2) { border-bottom: 1px solid rgba(120, 200, 255, .2); }
    .weapon-button img { width: 34px; height: 34px; }
    .guild-list-panel { padding: 16px 10px 12px; overflow-x: hidden; }
    .guild-list-panel > * { width: 100%; min-width: 0; }
    .guild-search { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; }
    .guild-search input { width: 100%; min-width: 0; max-width: none; height: 42px; padding-inline: 13px; font-size: 13px; }
    .guild-search .button { min-width: 0; min-height: 42px; padding: 0 8px; font-size: 15px; }
    .sort-caption { margin: 10px 2px 4px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .guild-table .table-row { grid-template-columns: 32px minmax(0, 1.35fr) minmax(0, 1fr) 42px 58px; min-height: 44px; font-size: 12px; }
    .guild-table .table-head { min-height: 42px; }
    .guild-table .table-head > span:nth-child(3) { text-align: left; }
    .guild-table .table-row > span { min-width: 0; overflow: hidden; padding-inline: 2px; text-overflow: ellipsis; white-space: nowrap; }
    .guild-table .table-row > span:first-child { padding-inline: 0; }
    .guild-table .ranking-position-badge img { width: 27px; height: 33px; }
    .guild-table .guild-link, .guild-table .player-link { display: block; max-width: 100%; overflow: hidden; padding: 2px; text-overflow: ellipsis; white-space: nowrap; }
    #guildRows { flex: 0 0 440px; height: 440px; min-height: 440px; }
    .pager {
        gap: 8px;
        min-height: 40px;
        margin-top: 12px;
        padding: 4px 10px;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: nowrap;
    }
    .pager label {
        flex-shrink: 0;
        margin: 0;
    }
    .pager select {
        min-width: 88px;
        height: 34px;
        padding: 0 28px 0 10px;
        font-size: 13px;
        background-position: right 8px center;
        background-size: 14px 9px;
        flex-shrink: 0;
    }
    .pager span {
        font-size: 13px;
        padding: 0 2px;
        white-space: nowrap;
        word-break: keep-all;
        flex-shrink: 0;
    }
    .pager button {
        width: 36px;
        height: 34px;
        font-size: 20px;
        flex-shrink: 0;
    }
    .guild-list-foot .pager { min-height: 40px; }
    #guildModal .modal-card { padding-inline: 16px; }
    #guildModal .modal-close { z-index: 3; }
    #guildModalContent .guild-detail-head > .eyebrow { margin-left: 64px; padding-right: 44px; }
    #guildModalContent .guild-detail-row { gap: 10px; }
    #guildModalContent .guild-detail-identity { flex: 1 1 auto; gap: 8px; }
    #guildModalContent .guild-detail-copy { gap: 4px; }
    #guildModalContent .guild-detail-copy h2 { font-size: 22px; }
    #guildModalContent .guild-detail-meta { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
    #guildModalContent .guild-detail-row > .button { width: 112px; min-height: 44px; flex: 0 0 112px; margin: 0; padding: 0 10px; font-size: 14px; }
    #guildModalContent .guild-member-head, #guildModalContent .guild-member-row { grid-template-columns: 50px 42px minmax(74px, 1fr) 56px 38px; gap: 4px; font-size: 12px; }
    #guildModalContent .guild-member-head > span, #guildModalContent .guild-member-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #guildModalContent .guild-member-name { overflow: hidden; padding: 2px; text-overflow: ellipsis; white-space: nowrap; }
    .map-grid { grid-template-columns: 1fr; }
    .guild-art-side { min-height: 0; }
    .guild-art-side > p { font-size: 17px; }
    .modal { display: flex; align-items: flex-start; justify-content: center; padding: 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .modal-card { flex: 0 0 auto; max-height: none; margin: auto 0; padding: 28px 20px; overflow: visible; }
    #playerModal { align-items: center; padding: 8px; }
    #playerModal .profile-modal-card {
        width: min(440px, 100%);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 18px 16px 14px;
        border-radius: 18px;
        overflow: hidden;
        box-sizing: border-box;
    }
    #playerModal .modal-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 22px; z-index: 30; }
    #playerModal .profile-header-sheet {
        display: grid;
        grid-template-columns: 106px minmax(0, 1fr);
        column-gap: 12px;
        align-items: start;
    }
    #playerModal .profile-avatar-box {
        grid-column: 1;
        grid-row: 1;
        width: 106px;
        height: 142px;
        margin: 0;
        border-width: 2.5px;
        border-radius: 10px;
    }
    #playerModal .profile-header-group {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-width: 0;
        min-height: 142px;
        padding-right: 36px;
        padding-top: 1px;
    }
    #playerModal .profile-header-fields {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 6px;
    }
    #playerModal .profile-meta-field {
        padding: 3px 0 5px;
        border-bottom: 1px solid rgba(120, 200, 255, 0.18);
    }
    #playerModal .profile-meta-field small {
        display: block;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    #playerModal .profile-meta-field strong {
        display: block;
        font-size: 14.5px;
        line-height: 1.25;
        color: #fff;
        word-break: break-all;
    }
    #playerModal .profile-header-rank {
        display: inline-flex;
        align-items: center;
        min-height: 20px;
    }
    #playerModal .profile-header-rank .rank-cell {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    #playerModal .profile-header-rank .rank-icon {
        display: inline-block;
        width: 37px;
        height: 20px;
    }
    #playerModal .profile-header-rank .rank-name {
        font-size: 14px;
        color: #ffd700;
        font-weight: 700;
        line-height: 1;
    }
    #playerModal .profile-tags {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        margin: 4px 0 0 0;
        min-height: 0;
    }
    #playerModal .profile-tag {
        padding: 2px 6px;
        font-size: 11px;
        line-height: 1.3;
    }
    #playerModal .profile-view-tabs {
        margin: 12px 0 10px 0;
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    #playerModal .profile-view-tabs::-webkit-scrollbar {
        display: none;
    }
    #playerModal .profile-view-tabs button {
        padding: 4px 2px 6px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    #playerModal .profile-tab-content {
        position: relative;
        width: 100%;
        height: 215px;
        min-height: 215px;
        box-sizing: border-box;
        overflow: hidden;
    }
    #playerModal #profileBasicPanel,
    #playerModal #profileBattlePanel,
    #playerModal #profileRecordsPanel {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }
    #playerModal .profile-battle-wrap {
        overflow-y: hidden;
    }
    #playerModal .profile-battle-table th,
    #playerModal .profile-battle-table td {
        padding: 5.8px 2px;
        font-size: 12.5px;
        line-height: 1.35;
        white-space: nowrap;
    }
    #playerModal .profile-battle-table th:first-child,
    #playerModal .profile-battle-table td:first-child {
        width: 26%;
        padding-left: 6px;
        text-align: left;
    }
    #playerModal .profile-battle-table th:last-child,
    #playerModal .profile-battle-table td:last-child {
        width: 22%;
        padding-right: 6px;
        text-align: right;
    }
    #playerModal .profile-battle-table thead th {
        font-size: 12.5px;
        padding-top: 4px;
        padding-bottom: 6px;
    }
    #playerModal .profile-battle-table tbody td {
        font-size: 12.5px;
    }
    #playerModal .profile-battle-table .profile-battle-total-row td {
        padding-top: 6.2px;
        padding-bottom: 6.2px;
    }
    #playerModal .profile-battle-table .profile-battle-total-row td:first-child {
        padding-left: 6px;
    }
    #playerModal .profile-battle-table .profile-battle-total-row td:last-child {
        padding-right: 6px;
    }
    #playerModal .profile-battle-table .profile-mode-private-msg {
        padding: 45px 5px;
        font-size: 12px;
    }
    #playerModal #profileBasicPanel .profile-data {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 12px;
        margin-top: 0;
    }
    #playerModal #profileBasicPanel .profile-data div {
        padding: 9px 5px;
        border-bottom: 1px solid rgba(120, 200, 255, 0.18);
    }
    #playerModal #profileBasicPanel .profile-data small {
        display: block;
        font-size: 12px;
        margin-bottom: 3px;
        color: var(--muted);
    }
    #playerModal #profileBasicPanel .profile-data strong {
        display: block;
        font-size: 14.5px;
        line-height: 1.25;
        color: #fff;
    }
    #playerModal #profileBasicPanel .profile-register-time strong {
        font-size: 12px;
        letter-spacing: -0.2px;
        white-space: normal;
        line-height: 1.2;
    }
    #playerModal #profileBasicPanel .profile-data strong > i {
        margin: 0 3px;
    }
    #playerModal #profileRecordsPanel {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    #playerModal .profile-achievements {
        list-style: none;
        padding: 0;
        margin: 0;
        flex: 0 0 auto;
    }
    #playerModal .profile-achievements li {
        height: 44px;
        min-height: 44px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 3px 0;
        border-bottom: 1px solid rgba(160, 206, 255, 0.2);
        box-sizing: border-box;
    }
    #playerModal .profile-achievements .profile-achievement-title,
    #playerModal .profile-achievements strong { font-size: 13px; line-height: 1.2; }
    #playerModal .profile-achievements .profile-achievement-date,
    #playerModal .profile-achievements small { font-size: 11px; margin-top: 2px; }
    #playerModal .profile-achievements .profile-achievement-badge { margin-left: auto; }
    #playerModal .profile-achievements .profile-achievement-trophy { width: 18px; height: 18px; flex: 0 0 18px; margin-right: 4px; }
    #playerModal .profile-achievements .profile-achievement-trophy .profile-trophy { width: 18px; height: 18px; }
    #playerModal .profile-achievements .profile-achievement-rank { font-size: 13px; width: 44px; min-width: 44px; flex: 0 0 44px; text-align: right; }
    #playerModal .profile-achievement-pages { margin-top: auto; padding-top: 6px; gap: 10px; font-size: 12px; flex: 0 0 auto; }
    #playerModal .profile-achievement-pages button { padding: 4px 8px; font-size: 12px; }
}

@media (max-width: 430px) {
    .site-nav { padding: 0 2px; }
    .site-nav a { flex: 1 1 0; min-width: 0; font-size: 12.5px; padding: 0 1px 4px; }
    .site-nav a:hover::after,
    .site-nav a.active::after { width: 26px; }
    .section-title span, .section-title h2 { font-size: 29px; }
    .section-title { gap: 7px; }
    .section-title i { width: 18px; }
    .home-copy h1 { font-size: 42px; }
    .home-actions { display: grid; }
    .home-actions .button { width: 100%; }
    .home-hero { margin-bottom: 0; }
    .account-card { padding-inline: 18px; }
    .profile-actions { grid-template-columns: 1fr; }
    .illustration-side { min-height: 0; }
    .download-steps { grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr); padding-inline: 8px; }
    .guild-art-side { min-height: 0; }
    .qq-number { gap: 4px; padding-left: 8px; font-size: 18px; }
    .qq-number button { width: 38px; flex-basis: 38px; }
    .weapon-row { grid-template-columns: 56px repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 44px); min-height: 88px; }
    .weapon-key { font-size: 18px; }
    .weapon-button { grid-template-columns: 32px minmax(0, 1fr); min-height: 44px; gap: 3px; padding-inline: 3px; font-size: 12px; }
    .weapon-button img { width: 31px; height: 31px; }
    .guild-table .table-row { grid-template-columns: 30px minmax(0, 1.35fr) minmax(0, 1fr) 40px 54px; font-size: 11px; }
    #guildModalContent .guild-icon.large { width: 48px; height: 48px; padding: 5px; }
    #guildModalContent .guild-detail-head > .eyebrow { margin-left: 54px; }
    #guildModalContent .guild-detail-row { gap: 6px; }
    #guildModalContent .guild-detail-identity { gap: 6px; }
    #guildModalContent .guild-detail-copy h2 { font-size: 20px; }
    #guildModalContent .guild-detail-meta { font-size: 11px; }
    #guildModalContent .guild-detail-row > .button { width: 94px; min-height: 42px; flex-basis: 94px; padding: 0 6px; font-size: 13px; }
    #guildModalContent .guild-member-row { min-height: 38px; }
}

@media (max-width: 360px) {
    .site-nav { padding: 0; }
    .site-nav a { font-size: 11.5px; padding: 0 1px 4px; }
    .site-nav a:hover::after,
    .site-nav a.active::after { width: 22px; }
    .pager { gap: 5px; padding: 3px 8px; }
    .pager select { min-width: 80px; padding: 0 24px 0 8px; font-size: 12px; }
    .pager span { font-size: 12px; padding: 0 1px; }
    .pager button { width: 32px; height: 32px; font-size: 18px; }
}

@media (max-height: 820px) and (min-width: 1101px) {
    :root { --header-height: 76px; }
    .site-logo { height: 68px; }
    .site-nav a::after { bottom: 6px; }
}

@media (min-width: 1101px) {
    html { scroll-snap-type: y mandatory; }
    .page-section { min-height: 0; }
    .page-inner {
        min-height: 0;
        padding-top: var(--header-height);
        padding-bottom: 0;
        transform: scale(var(--desktop-layout-scale, 1));
        transform-origin: center var(--desktop-layout-origin-y, 50%);
        will-change: transform;
    }
    .home-layout, .page-split, .ranking-layout, .weapons-layout, .maps-layout, .guild-layout { align-content: center; }
    .home-layout, .page-split, .ranking-layout, .weapons-layout, .guild-layout { align-items: center; }
    .ranking-layout { row-gap: 10px; }
    .ranking-toolbar { transform: none; }
    .ranking-left, .ranking-table-column { align-self: center; }
    .ranking-table-panel .pager, .guild-list-foot .pager { min-height: 56px; padding-top: 4px; }
    .home-copy { padding-top: 0; transform: translateY(clamp(-140px, calc(-13.5vh + 50px), -50px)); }
    .account-card, .download-panel, .ranking-table-panel, .weapon-detail, .guild-list-panel { margin-top: 0; }
    .maps-layout { grid-template-rows: auto auto auto; }
    .page-section.desktop-fit-scroll { overflow-y: auto; scrollbar-width: thin; }
    .page-section.desktop-fit-scroll .page-inner { height: auto; min-height: 100vh; transform-origin: center var(--header-height); }
    .page-section.desktop-fit-scroll .home-layout,
    .page-section.desktop-fit-scroll .page-split,
    .page-section.desktop-fit-scroll .ranking-layout,
    .page-section.desktop-fit-scroll .weapons-layout,
    .page-section.desktop-fit-scroll .maps-layout,
    .page-section.desktop-fit-scroll .guild-layout { align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
