:root {
    --bg: #06080c;
    --panel: rgba(12, 16, 24, .72);
    --panel-solid: #0b1018;
    --gold: #e8c574;
    --gold-2: #b88a3d;
    --text: #f4ecdd;
    --muted: #9a948a;
    --line: rgba(232, 197, 116, .18);
    --cyan: #7fe3ff;
    --green: #58d68d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; }
.page-bg { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: #06080c; }
.page-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.48) saturate(1.08) contrast(1.05);
    opacity: .78;
}
.page-bg .vignette {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(4,6,10,.72) 0%, rgba(4,6,10,.42) 42%, rgba(4,6,10,.18) 100%),
        radial-gradient(1200px 700px at 20% 10%, rgba(20, 55, 95, .34), transparent 65%),
        radial-gradient(900px 700px at 88% 78%, rgba(120, 72, 20, .18), transparent 66%),
        linear-gradient(180deg, rgba(4,6,10,.55) 0%, rgba(4,6,10,.22) 38%, rgba(4,6,10,.88) 100%);
}
.page-bg .grain {
    position: absolute; inset: 0; opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 70%);
}
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 5vw;
    transition: background .3s, border-color .3s, padding .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    padding-top: 13px;
    padding-bottom: 13px;
    background: rgba(6, 8, 12, .82);
    border-bottom-color: rgba(232,197,116,.12);
    backdrop-filter: blur(14px);
}
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 18px; letter-spacing: .18em; }
.logo-text em { margin-top: 4px; color: var(--gold); font-style: normal; font-size: 9px; letter-spacing: .38em; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a {
    position: relative;
    color: #d9d2c4;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: .06em;
    transition: color .2s;
}
.site-header nav a:after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
    height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .25s;
}
.site-header nav a:hover { color: var(--gold); }
.site-header nav a:hover:after { transform: scaleX(1); }
.header-right { color: var(--muted); font-size: 12px; letter-spacing: .05em; white-space: nowrap; }
.header-right b { color: var(--gold); font-size: 14px; }
.live-dot {
    display: inline-block;
    width: 7px; height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(88,214,141,.12), 0 0 12px rgba(88,214,141,.8);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(88,214,141,.12), 0 0 12px rgba(88,214,141,.8); }
    50% { box-shadow: 0 0 0 8px rgba(88,214,141,.02), 0 0 18px rgba(88,214,141,.35); }
}
.hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
    max-width: 1440px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 150px 5vw 90px;
}
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; }
.hero h1 {
    margin: 0;
    font-family: "SimSun", "Songti SC", serif;
    font-size: clamp(46px, 6.4vw, 88px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: .06em;
    text-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.hero h1 span {
    display: inline-block;
    margin-top: 8px;
    background: linear-gradient(100deg, #fff0c6 0%, var(--gold) 38%, #9b7233 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: .48em;
    letter-spacing: .2em;
}
.hero h1 .hero-name {
    display: inline;
    margin-top: 0;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: var(--text);
    font-size: 1em;
    letter-spacing: .06em;
}
.lead {
    max-width: 620px;
    margin: 26px 0 30px;
    color: #c3bcb0;
    font-size: 15px;
    line-height: 2;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid transparent;
    color: #1a1409;
    background: linear-gradient(135deg, #f6e0a5, #c99645);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, filter .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn.ghost { color: var(--gold); background: rgba(255,255,255,.02); border-color: rgba(232,197,116,.45); }
.btn.ghost:hover { background: rgba(232,197,116,.08); }
.btn.primary { box-shadow: 0 12px 36px rgba(201,150,69,.22); }
.btn.block { width: 100%; }
.hero-stats { display: flex; gap: 38px; margin: 42px 0 0; padding: 0; list-style: none; }
.hero-stats b { display: block; color: var(--gold); font-family: "SimSun", serif; font-size: 27px; font-weight: 600; }
.hero-stats span { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.server-card, .notice-card {
    position: relative;
    padding: 26px 26px 24px;
    background: linear-gradient(160deg, rgba(16,21,31,.86), rgba(8,11,17,.9));
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.server-card:before {
    content: ""; position: absolute; left: 0; top: 0; width: 42%; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.server-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.server-head em { margin-left: auto; color: var(--green); font-style: normal; }
.server-card h3 { margin: 16px 0 6px; font-family: "SimSun", serif; font-size: 28px; font-weight: 600; letter-spacing: .08em; }
.server-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.server-meta { display: flex; gap: 18px; margin: 18px 0 20px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.08); color: #b9b2a6; font-size: 12px; }
.notice-card { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.notice-card > span { flex: none; padding: 3px 7px; color: #1a1409; background: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.notice-card p { margin: 0; color: #b8b1a5; font-size: 12px; line-height: 1.8; }
.games-section, .server-section { max-width: 1440px; margin: 0 auto; padding: 100px 5vw; scroll-margin-top: 82px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-family: "SimSun", serif; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: .08em; }
.section-head > p { max-width: 420px; margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: right; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.game-card {
    position: relative;
    height: clamp(190px, 17vw, 248px);
    overflow: hidden;
    background: #0a0e15;
    border: 1px solid rgba(255,255,255,.07);
    text-decoration: none;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.game-card:nth-child(1) { border-color: rgba(232,197,116,.35); }
.game-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.68) saturate(1.08);
    transition: transform .7s ease, filter .4s;
}
.game-card:after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,5,9,.02) 30%, rgba(3,5,9,.92) 100%);
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(232,197,116,.55); box-shadow: 0 22px 54px rgba(0,0,0,.45); }
.game-card:hover img { transform: scale(1.06); filter: brightness(.82) saturate(1.15); }
.game-badge {
    position: absolute; z-index: 2; top: 14px; left: 14px;
    padding: 4px 8px;
    color: #1a1409;
    background: linear-gradient(135deg, #f6e0a5, #c99645);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}
.game-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 18px 17px; }
.game-content h3 { margin: 0 0 5px; font-size: 19px; letter-spacing: .06em; }
.game-content p { margin: 0; color: #b8b1a5; font-size: 12px; letter-spacing: .04em; }
.game-enter {
    position: absolute; z-index: 2; right: 15px; bottom: 16px;
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border: 1px solid rgba(232,197,116,.55);
    border-radius: 50%;
    color: var(--gold);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s, transform .25s;
}
.game-card:hover .game-enter { opacity: 1; transform: translateX(0); }
.server-section { padding-top: 30px; }
.server-table { border: 1px solid rgba(255,255,255,.07); background: rgba(8,11,17,.55); }
.server-row {
    display: grid;
    grid-template-columns: 1.2fr .9fr 1.3fr .7fr .6fr;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #c9c2b6;
    font-size: 13px;
}
.server-row:last-child { border-bottom: 0; }
.server-row.head { color: var(--muted); font-size: 11px; letter-spacing: .14em; background: rgba(255,255,255,.025); }
.server-row .status { color: var(--green); }
.server-row a { justify-self: end; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(232,197,116,.35); padding-bottom: 2px; }
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 34px 5vw 46px;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #77736b;
    font-size: 12px;
    line-height: 1.8;
}
.site-footer div { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #999286; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 130px; }
    .hero-side { max-width: 560px; }
    .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .site-header { padding: 16px 18px; }
    .site-header nav { display: none; }
    .header-right { display: none; }
    .hero { padding: 118px 18px 60px; gap: 34px; }
    .hero h1 { font-size: clamp(40px, 13vw, 62px); }
    .hero-stats { gap: 24px; margin-top: 30px; }
    .hero-stats b { font-size: 22px; }
    .games-section, .server-section { padding: 64px 18px; }
    .section-head { display: block; }
    .section-head h2 { font-size: 26px; letter-spacing: .05em; }
    .section-head > p { margin-top: 12px; text-align: left; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .game-card { height: 168px; }
    .game-content { padding: 14px; }
    .game-content h3 { font-size: 16px; }
    .game-content p { font-size: 11px; }
    .game-enter { display: none; }
    .server-row { grid-template-columns: 1.2fr 1fr .9fr .7fr; gap: 8px; padding: 14px; font-size: 12px; }
    .server-row span:nth-child(2) { display: none; }
    .site-footer { display: block; padding: 28px 18px 38px; }
    .site-footer div { margin-top: 10px; }
}
@media (max-width: 420px) {
    .game-grid { grid-template-columns: 1fr; }
    .game-card { height: 190px; }
}
