:root {
    --bg: #05060a;
    --bg-soft: #0a0c12;
    --panel: #0d1017;
    --panel-2: #12161f;
    --gold: #d8b45a;
    --gold-bright: #f3d98f;
    --gold-dark: #8f6f27;
    --text: #ece9e2;
    --muted: #9a9ca3;
    --line: rgba(216, 180, 90, .22);
    --line-soft: rgba(255, 255, 255, .08);
    --danger: #e2685c;
    --success: #6fbf8a;
    --radius: 14px;
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1100px 600px at 8% -10%, rgba(216, 180, 90, .10), transparent 60%),
        radial-gradient(900px 600px at 100% 0%, rgba(70, 110, 180, .10), transparent 55%),
        linear-gradient(180deg, #05060a 0%, #070910 55%, #05060a 100%);
}

main {
    position: relative;
    z-index: 1;
    padding-top: 76px;
}

body.home main {
    padding-top: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--gold-bright);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    letter-spacing: .02em;
}

p {
    margin: 0;
}

.wrap {
    width: min(1200px, 100% - 48px);
    margin-inline: auto;
}

.narrow {
    max-width: 720px;
}

.muted {
    color: var(--muted);
}

.gold {
    color: var(--gold);
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(800px 400px at 50% 110%, rgba(216, 180, 90, .06), transparent 70%);
}

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
    transition: all .22s ease;
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-dark));
    color: #1a1406;
    box-shadow: 0 8px 24px rgba(216, 180, 90, .22);
}

.btn-gold:hover {
    color: #120e03;
    filter: brightness(1.08);
    box-shadow: 0 12px 32px rgba(216, 180, 90, .34);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, .02);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
    background: rgba(216, 180, 90, .08);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 34px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ---------- 顶部导航 ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding: 14px 0;
    transition: background .3s ease, padding .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    padding: 8px 0;
    background: rgba(5, 6, 10, .86);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand:hover {
    color: var(--text);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gold-bright);
    background: linear-gradient(160deg, rgba(216, 180, 90, .18), rgba(216, 180, 90, .03));
    box-shadow: inset 0 0 18px rgba(216, 180, 90, .18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-family: var(--font-serif);
    font-size: 17px;
    letter-spacing: .08em;
}

.brand-text small {
    font-size: 10px;
    letter-spacing: .32em;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.nav-links a {
    position: relative;
    color: rgba(236, 233, 226, .82);
    font-size: 14px;
    padding: 6px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .25s ease;
}

.nav-links a:hover {
    color: var(--gold-bright);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1px;
    width: 18px;
    margin: 0 auto;
    background: var(--gold);
}

/* ---------- 首页 Hero ---------- */

.hero {
    position: relative;
    height: 94vh;
    min-height: 640px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: var(--slide-image);
    background-size: cover;
    background-position: center 35%;
    transform: scale(1.06);
    filter: saturate(.95) contrast(1.03);
}

.hero-slide.is-active .hero-media {
    animation: kenburns 14s ease-out forwards;
}

@keyframes kenburns {
    from { transform: scale(1.02); }
    to { transform: scale(1.12); }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 5, 8, .94) 0%, rgba(4, 5, 8, .72) 38%, rgba(4, 5, 8, .12) 72%, rgba(4, 5, 8, .35) 100%),
        linear-gradient(180deg, rgba(4, 5, 8, .7) 0%, transparent 26%, transparent 62%, rgba(5, 6, 10, .96) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
}

.kicker {
    font-size: 12px;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 78px);
    letter-spacing: .04em;
    margin-bottom: 20px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}

.hero-title .gold {
    background: linear-gradient(120deg, #f7e3aa 0%, var(--gold) 45%, #a8822f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 520px;
    color: rgba(236, 233, 226, .82);
    font-size: 16px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 44px;
    margin: 54px 0 0;
    padding-top: 26px;
    border-top: 1px solid rgba(216, 180, 90, .22);
    max-width: 560px;
}

.hero-meta dt {
    font-size: 11px;
    letter-spacing: .24em;
    color: var(--muted);
    margin-bottom: 4px;
}

.hero-meta dd {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--gold-bright);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dots button {
    width: 34px;
    height: 3px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
    transition: background .25s ease;
}

.hero-dots button.is-active {
    background: var(--gold);
}

.scroll-hint {
    position: absolute;
    right: 40px;
    bottom: 34px;
    width: 26px;
    height: 42px;
    border: 1px solid rgba(216, 180, 90, .4);
    border-radius: 14px;
    z-index: 3;
}

.scroll-hint span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 4px;
    background: var(--gold);
    animation: scrollhint 1.8s infinite;
}

@keyframes scrollhint {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* ---------- 数据条 ---------- */

.stats-strip {
    position: relative;
    z-index: 2;
    margin-top: -46px;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(180deg, rgba(18, 22, 31, .92), rgba(10, 12, 18, .96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
    border-right: 1px solid var(--line-soft);
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 34px);
    color: var(--gold-bright);
    letter-spacing: .04em;
}

.stat span {
    font-size: 12px;
    letter-spacing: .22em;
    color: var(--muted);
}

/* ---------- 通用区块 ---------- */

.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent 60%);
    border-block: 1px solid var(--line-soft);
}

.section-tight {
    padding: 54px 0 90px;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 54px;
    text-align: center;
}

.section-head-left {
    margin: 0 0 30px;
    text-align: left;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: .06em;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-head-left h2::after {
    margin-left: 0;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-desc {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- 特色 ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    position: relative;
    padding: 34px 28px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(165deg, rgba(20, 24, 34, .85), rgba(10, 12, 18, .9));
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px 160px at 20% 0%, rgba(216, 180, 90, .12), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--line);
    box-shadow: 0 26px 50px rgba(0, 0, 0, .45);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--gold);
    background: rgba(216, 180, 90, .07);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
}

/* ---------- 职业 ---------- */

.class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.class-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.class-media {
    position: absolute;
    inset: 0;
    background-image: var(--class-image);
    background-size: cover;
    background-position: center 18%;
    transform: scale(1.01);
    transition: transform .6s ease;
}

.class-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 10, 0) 30%, rgba(5, 6, 10, .55) 60%, rgba(5, 6, 10, .96) 100%);
}

.class-card:hover {
    transform: translateY(-8px);
    border-color: var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}

.class-card:hover .class-media {
    transform: scale(1.08);
}

.class-body {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 24px 20px;
}

.class-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--gold);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 10px;
}

.class-body h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.class-body p {
    font-size: 12.5px;
    color: rgba(236, 233, 226, .72);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease;
}

.class-card:hover .class-body p {
    max-height: 90px;
    opacity: 1;
}

/* ---------- 新闻 + 排行 ---------- */

.news-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-item {
    display: flex;
    gap: 22px;
    padding: 24px 4px;
    border-bottom: 1px solid var(--line-soft);
    transition: background .25s ease, padding-left .25s ease;
}

.news-item:hover {
    background: rgba(216, 180, 90, .03);
    padding-left: 14px;
}

.news-date {
    flex: 0 0 62px;
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--gold);
    padding-top: 2px;
}

.news-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--gold);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 8px;
    margin-bottom: 8px;
}

.news-body h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.news-body p {
    font-size: 13.5px;
    color: var(--muted);
}

.rank-panel {
    position: sticky;
    top: 100px;
    padding: 28px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(170deg, rgba(20, 24, 34, .8), rgba(9, 11, 16, .92));
}

.rank-mini {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.rank-mini li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    grid-template-areas: "no name level" "no class level";
    align-items: center;
    gap: 0 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.rank-mini li:last-child {
    border-bottom: none;
}

.rank-no {
    grid-area: no;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--line-soft);
}

.rank-no.is-top {
    color: #1a1406;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    border-color: transparent;
}

.rank-name {
    grid-area: name;
    font-size: 14px;
    color: var(--text);
}

.rank-class {
    grid-area: class;
    font-size: 11.5px;
    color: var(--muted);
}

.rank-level {
    grid-area: level;
    font-family: var(--font-serif);
    color: var(--gold-bright);
    font-size: 14px;
}

/* ---------- 开始游戏 ---------- */

.join-section {
    border-top: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(5, 6, 10, .9), rgba(10, 12, 18, .94)),
        radial-gradient(800px 400px at 50% 0%, rgba(216, 180, 90, .08), transparent 70%);
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.join-step {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(13, 16, 23, .8);
    transition: border-color .3s ease, transform .3s ease;
}

.join-step:hover {
    border-color: var(--line);
    transform: translateY(-4px);
}

.step-no {
    font-family: var(--font-serif);
    font-size: 34px;
    color: rgba(216, 180, 90, .35);
    line-height: 1;
}

.join-step h3 {
    font-size: 19px;
    margin: 14px 0 10px;
}

.join-step p {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 18px;
}

.server-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: rgba(216, 180, 90, .05);
}

.server-box code {
    font-size: 13px;
    color: var(--gold-bright);
    letter-spacing: .06em;
}

.copy-btn {
    margin-left: auto;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--gold);
    font-size: 11.5px;
    cursor: pointer;
    transition: all .2s ease;
}

.copy-btn:hover {
    background: var(--gold);
    color: #1a1406;
}

/* ---------- 页脚 ---------- */

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line-soft);
    background: #04050a;
    padding: 54px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 320px;
}

.footer-brand strong {
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: .06em;
}

.footer-brand p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-links h4 {
    font-size: 13px;
    letter-spacing: .18em;
    color: var(--gold);
    margin-bottom: 14px;
}

.footer-links a,
.footer-links span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    font-size: 12px;
    color: rgba(154, 156, 163, .7);
}

/* ---------- 登录 / 注册 ---------- */

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: calc(100vh - 76px);
}

.auth-visual {
    position: relative;
    background-image: var(--auth-image);
    background-size: cover;
    background-position: center;
    padding: 80px 64px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 10, .55), rgba(5, 6, 10, .2) 60%, rgba(5, 6, 10, .95)),
        linear-gradient(180deg, rgba(5, 6, 10, .5), transparent 40%, rgba(5, 6, 10, .95));
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.auth-visual-content h1 {
    font-size: clamp(30px, 3.6vw, 46px);
    margin-bottom: 18px;
}

.auth-visual-content p {
    color: rgba(236, 233, 226, .76);
    font-size: 14px;
}

.auth-points {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.auth-points li {
    position: relative;
    padding-left: 20px;
    color: rgba(236, 233, 226, .78);
    font-size: 13.5px;
    margin-bottom: 10px;
}

.auth-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: var(--gold);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    background: linear-gradient(200deg, #0a0c12, #06070c);
}

.auth-card {
    width: min(420px, 100%);
}

.auth-card header h2 {
    font-size: 30px;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.auth-card header p {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 28px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field > span {
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--muted);
}

.field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.field input::placeholder {
    color: rgba(154, 156, 163, .55);
}

.field input:focus {
    border-color: var(--gold);
    background: rgba(216, 180, 90, .05);
    box-shadow: 0 0 0 3px rgba(216, 180, 90, .12);
}

.auth-alt {
    margin-top: 24px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 6px;
    border: 1px solid transparent;
}

.alert-error {
    color: #f0a79f;
    background: rgba(226, 104, 92, .1);
    border-color: rgba(226, 104, 92, .35);
}

.alert-success {
    color: #a9e0be;
    background: rgba(111, 191, 138, .1);
    border-color: rgba(111, 191, 138, .35);
}

/* ---------- 内页标题 ---------- */

.page-banner {
    padding: 66px 0 40px;
    border-bottom: 1px solid var(--line-soft);
    background:
        radial-gradient(700px 300px at 12% 0%, rgba(216, 180, 90, .12), transparent 60%),
        linear-gradient(180deg, rgba(12, 15, 22, .9), transparent);
}

.page-banner h1 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 14px;
}

.page-banner p {
    color: var(--muted);
    max-width: 620px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--muted);
}

.back-link:hover {
    color: var(--gold);
}

/* ---------- 角色管理 ---------- */

.account-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: start;
}

.panel {
    padding: 30px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(170deg, rgba(19, 23, 32, .82), rgba(9, 11, 16, .94));
}

.panel-label {
    display: block;
    font-size: 11px;
    letter-spacing: .26em;
    color: var(--gold);
    margin-bottom: 14px;
}

.panel-label-spaced {
    margin-top: 34px;
}

.account-side {
    position: sticky;
    top: 100px;
}

.account-card h2 {
    font-size: 24px;
    margin-bottom: 22px;
    word-break: break-all;
}

.meta-list {
    margin: 0;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
}

.meta-list dt {
    color: var(--muted);
}

.meta-list dd {
    margin: 0;
    color: var(--text);
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
}

.block-head h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.block-head p {
    font-size: 13px;
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.char-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(19, 23, 32, .8), rgba(9, 11, 16, .95));
    transition: border-color .3s ease, transform .3s ease;
}

.char-card:hover {
    border-color: var(--line);
    transform: translateY(-3px);
}

.char-media {
    position: relative;
    height: 150px;
    background-image: var(--class-image);
    background-size: cover;
    background-position: center 22%;
}

.char-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(9, 11, 16, .95));
}

.char-level,
.char-master {
    position: absolute;
    z-index: 2;
    top: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .06em;
    background: rgba(5, 6, 10, .72);
    border: 1px solid var(--line);
    color: var(--gold-bright);
}

.char-level {
    left: 14px;
}

.char-master {
    right: 14px;
    color: var(--text);
    border-color: var(--line-soft);
}

.char-body {
    padding: 18px 20px 20px;
}

.char-body h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.char-class {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 16px;
}

.bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
    box-shadow: 0 0 12px rgba(216, 180, 90, .45);
    transition: width .6s ease;
}

.bar-master .bar-fill {
    background: linear-gradient(90deg, #5b7fc7, #a9c8ff);
    box-shadow: 0 0 12px rgba(120, 160, 240, .4);
}

.bar-lg {
    height: 10px;
}

.bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--muted);
}

.char-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 18px 0;
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.char-stats div {
    text-align: center;
}

.char-stats span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 2px;
}

.char-stats strong {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--gold-bright);
}

.char-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rename-box {
    position: relative;
}

.rename-box summary {
    list-style: none;
    cursor: pointer;
}

.rename-box summary::-webkit-details-marker {
    display: none;
}

.rename-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.rename-form input {
    width: 130px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.rename-form input:focus {
    border-color: var(--gold);
}

.empty-state {
    padding: 56px 30px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(216, 180, 90, .03);
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 22px;
}

/* ---------- 角色详情 ---------- */

.char-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.char-hero-media {
    position: absolute;
    inset: 0;
    background-image: var(--class-image);
    background-size: cover;
    background-position: center 20%;
    transform: scale(1.02);
}

.char-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 10, .95) 0%, rgba(5, 6, 10, .7) 45%, rgba(5, 6, 10, .2) 100%),
        linear-gradient(180deg, rgba(5, 6, 10, .5), transparent 40%, rgba(5, 6, 10, .96));
}

.char-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 44px;
}

.char-hero-content h1 {
    font-size: clamp(34px, 5vw, 54px);
    margin-bottom: 10px;
}

.char-hero-sub {
    color: rgba(236, 233, 226, .78);
    font-size: 14px;
}

.char-hero-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(5, 6, 10, .6);
    color: var(--gold-bright);
    font-size: 12.5px;
    letter-spacing: .08em;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    margin-bottom: 24px;
}

.level-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.level-big {
    font-family: var(--font-serif);
    font-size: 40px;
    color: var(--gold-bright);
    line-height: 1;
}

.level-row span {
    color: var(--muted);
    font-size: 13px;
}

.bar-caption {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 22px;
    margin: 0;
}

.stat-grid div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
}

.stat-grid dt {
    color: var(--muted);
}

.stat-grid dd {
    margin: 0;
    text-align: right;
}

.tip-panel {
    padding: 28px;
    border: 1px solid var(--line-soft);
    border-left: 2px solid var(--gold);
    border-radius: var(--radius);
    background: rgba(216, 180, 90, .04);
}

.tip-panel h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.tip-panel p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 18px;
}

/* ---------- 属性洗点 ---------- */

.respec-panel {
    margin-top: 22px;
    padding: 28px;
}

.respec-panel h2 {
    font-size: 20px;
    margin: 8px 0 10px;
}

.respec-intro {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted);
}

.respec-intro strong {
    color: var(--gold);
}

.attr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.attr-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
}

.attr-name {
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--muted);
}

.attr-item strong {
    font-size: 22px;
}

.attr-meta {
    font-size: 11.5px;
    color: var(--muted);
}

.respec-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--muted);
}

.respec-summary strong {
    font-size: 24px;
}

.respec-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.check-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}

.check-line input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}

.respec-hint {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .attr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- 排行榜 ---------- */

.rank-table-wrap {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(11, 13, 19, .85);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rank-table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 11px;
    letter-spacing: .2em;
    font-weight: 500;
    color: var(--gold);
    border-bottom: 1px solid var(--line);
    background: rgba(216, 180, 90, .05);
}

.rank-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
}

.rank-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-table tbody tr {
    transition: background .2s ease;
}

.rank-table tbody tr:hover {
    background: rgba(216, 180, 90, .04);
}

.rank-table tr.is-top td {
    background: rgba(216, 180, 90, .05);
}

.rank-cell {
    width: 70px;
}

.name-cell {
    font-family: var(--font-serif);
    font-size: 15.5px;
    color: var(--gold-bright);
}

.level-cell {
    font-family: var(--font-serif);
    color: var(--gold-bright);
    font-size: 16px;
}

/* ---------- 动效 ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
    .class-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

    .account-side {
        position: static;
    }

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

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 24px;
        right: 24px;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
        background: rgba(6, 8, 12, .97);
        border: 1px solid var(--line);
        border-radius: 12px;
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        margin-left: auto;
    }

    .feature-grid,
    .join-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 300px;
        padding: 56px 32px;
    }

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

    .hero-meta {
        gap: 26px;
        margin-top: 36px;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: calc(100% - 32px);
    }

    .brand-text small {
        letter-spacing: .22em;
    }

    .nav-actions .btn-ghost {
        display: none;
    }

    .hero {
        height: 88vh;
        min-height: 560px;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 18px 32px;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stats-strip {
        margin-top: -30px;
    }

    .section {
        padding: 70px 0;
    }

    .feature-grid,
    .join-grid,
    .class-grid {
        grid-template-columns: 1fr;
    }

    .class-card {
        aspect-ratio: 4 / 5;
    }

    .news-item {
        gap: 14px;
    }

    .news-date {
        flex-basis: 48px;
        font-size: 16px;
    }

    .rank-table th,
    .rank-table td {
        padding: 12px 10px;
        font-size: 12.5px;
    }

    .rank-table .muted {
        display: none;
    }

    .char-hero {
        min-height: 320px;
    }

    .footer-links {
        gap: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 客户端下载 ---------- */

.download-panel {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 26px;
    align-items: start;
}

.download-main {
    padding: 38px 34px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(216, 180, 90, .09), transparent 70%),
        rgba(13, 16, 23, .85);
}

.download-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold);
    font-size: 11.5px;
    letter-spacing: .18em;
}

.download-main h2 {
    font-size: 28px;
    margin: 18px 0 12px;
}

.download-desc {
    color: var(--muted);
    font-size: 13.5px;
    max-width: 46ch;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 24px 0 28px;
}

.download-meta dt {
    color: var(--muted);
    font-size: 11.5px;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

.download-meta dd {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--gold-bright);
}

.download-hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12.5px;
}

.download-side {
    padding: 32px 28px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(13, 16, 23, .8);
}

.download-side h3 {
    font-size: 18px;
    margin-bottom: 18px;
}

.download-steps {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.download-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.download-steps .step-no {
    font-size: 22px;
    line-height: 1.1;
}

.download-steps strong {
    display: block;
    font-size: 14.5px;
    margin-bottom: 4px;
}

.download-steps p {
    color: var(--muted);
    font-size: 12.8px;
}

.server-label {
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--muted);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.faq-item {
    padding: 26px 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(13, 16, 23, .8);
}

.faq-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .download-panel,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.download-note {
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    background: rgba(216, 180, 90, .05);
}

.download-note strong {
    display: block;
    font-size: 14px;
    color: var(--gold-bright);
    margin-bottom: 10px;
}

.download-note ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.download-note li {
    color: var(--muted);
    font-size: 12.8px;
    line-height: 1.7;
}
