/* ============================================================
   血战无极 官方网站 · 视觉系统
   风格：明快商业门户（浅底 · 品牌红 · 琥珀金 · 彩色功能块）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    /* 底色系 */
    --bg:      #f4f1ea;
    --white:   #ffffff;
    --bg-soft: #faf8f4;
    --bg-warm: #fdf6e8;
    /* 线 */
    --line:    #e7e1d6;
    --line-2:  #f1ede4;
    /* 文字 */
    --ink:     #262320;
    --ink-2:   #55504a;
    --ink-3:   #948d80;
    /* 品牌 */
    --brand:    #d63a26;
    --brand-2:  #ec5b41;
    --brand-dk: #ad2a1a;
    --brand-bg: #fdeeea;
    /* 辅色（功能块） */
    --gold:     #d99b2b;
    --gold-lt:  #f8ecd2;
    --blue:     #2f7fc1;
    --blue-lt:  #e8f2fb;
    --jade:     #2e9e78;
    --jade-lt:  #e6f5ef;
    --purple:   #7b5cc4;
    --purple-lt:#f0ebfa;
    --orange:   #e8862c;

    --radius:    6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 3px rgba(38, 35, 32, .06);
    --shadow:    0 2px 10px rgba(38, 35, 32, .07);
    --shadow-md: 0 8px 26px rgba(38, 35, 32, .1);

    --font-display: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
    --font-kai:     "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
    --font-body:    "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;

    --w: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--ink-2);
    background-color: var(--bg);
    /* 顶部提亮 + 极淡斜纹肌理，避免整页纯平显得空 */
    background-image:
        radial-gradient(ellipse 95% 48% at 50% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 62%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M0 46 L46 0' stroke='%23d3cbb9' stroke-opacity='.32' stroke-width='1'/%3E%3C/svg%3E");
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-body);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 .5em;
}

.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: linear-gradient(90deg, var(--brand-dk), var(--brand) 45%, var(--brand-2));
    color: rgba(255, 255, 255, .88);
    font-size: 12.5px; line-height: 28px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
/* 顶条左侧被冒上来的 logo 占住，内容整体右移让位（宽度对应上面 logo 的显示宽度） */
.topbar-l { padding-left: 185px; }
.topbar a { color: rgba(255, 255, 255, .88); }
.topbar a:hover { color: #fff; }
.topbar-l, .topbar-r { display: flex; gap: 16px; align-items: center; }
.topbar .sep { color: rgba(255, 255, 255, .4); }
/* 口号靠右显示，不折行（窄屏直接隐藏，见下方媒体查询） */
.topbar-slogan { white-space: nowrap; text-align: right; }
/* 顶部条里「首页 / 游戏下载」是主入口，当前所在页加亮 */
.topbar a.active { color: #fff; font-weight: 700; }
/* 窗口偏窄时口号让位给主入口（手机端整条隐藏的口径见 768px） */
@media (max-width: 980px) {
    .topbar-slogan { display: none; }
}
/* 手机端整条顶部信息条是隐藏的（见 768px 媒体查询），
   首页/游戏下载在主导航里补回来，只在手机上显示 */
.nav-only-mobile { display: none; }
@media (max-width: 768px) {
    .nav-only-mobile { display: block; }
}

/* 仅供搜索引擎与读屏软件使用的隐藏标题（视觉上不显示，但仍会被索引） */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 主导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; height: 76px; gap: 30px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* logo 只往上冒：贴住页头下沿，多出来的高度全压到顶部信息条上，
   不侵占下方的社区内容。负值 = 往上挪 (108-84)/2 + 5 */
/* 没滚动时：logo 尽量大，往上冒到顶部信息条上（上沿会被屏幕切掉一点） */
.site-header .logo { position: relative; top: -21px; transition: top .25s ease; }
/* 吸顶后：顶部信息条被滚走，logo 若还这么大，冒上去的部分就全跑到屏幕外了
   （实测会被切掉 42px），所以滚动时把 logo 收缩到页头高度内 */
.site-header.is-scrolled .logo { top: 0; }
.logo-seal {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 8px;
    background: linear-gradient(150deg, var(--brand-2), var(--brand));
    color: #fff; font-family: var(--font-kai); font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(214, 58, 38, .3);
}
.logo-text { line-height: 1.15; }
.logo-name { font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: .1em; }
.logo-sub { font-size: 10px; letter-spacing: .3em; color: var(--ink-3); text-transform: uppercase; }
/* 后台设置了站点 LOGO 时，页头品牌位整块换成图片。
   页头只有 84px，但 logo 放到 118px：下沿贴住页头下沿（不侵占下方内容），
   多出来的高度全部往上顶到页面最上沿。页头是 sticky + z-index 40，会盖在
   顶部信息条之上，所以冒出的部分不会被压住。 */
.logo-img { display: block; height: 118px; width: auto; max-width: 480px; object-fit: contain;
    transition: height .25s ease; }
.site-header.is-scrolled .logo-img { height: 64px; }

.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a {
    position: relative; padding: 10px 20px; border-radius: var(--radius);
    font-size: 15.5px; color: var(--ink-2); letter-spacing: .06em;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.main-nav a.active { color: var(--brand); font-weight: 700; }
.main-nav a.active::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
    width: 20px; height: 3px; border-radius: 2px; background: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
    display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink-2); display: block; border-radius: 1px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 26px; font-size: 14.5px; font-family: var(--font-body); font-weight: 600;
    border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
    letter-spacing: .06em; transition: all .22s ease; white-space: nowrap; text-align: center;
}
.btn-primary {
    background: linear-gradient(150deg, var(--brand-2), var(--brand));
    color: #fff; box-shadow: 0 3px 12px rgba(214, 58, 38, .28);
}
.btn-primary:hover { color: #fff; background: linear-gradient(150deg, var(--brand), var(--brand-dk)); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(214, 58, 38, .35); }
.btn-gold { background: linear-gradient(150deg, #f0b445, var(--gold)); color: #5a3c05; }
.btn-gold:hover { color: #5a3c05; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(217, 155, 43, .35); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3b3733; color: #fff; }
.btn-outline { background: var(--white); border-color: var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, .9); border-color: rgba(38, 35, 32, .12); color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 40px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- 首页 KV ---------- */
.hero {
    position: relative; min-height: 640px;
    display: flex; align-items: center; overflow: hidden;
    background: linear-gradient(180deg, #fffaf0 0%, #f9eed6 52%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.banner-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 8s ease;
}
.banner-slide.active { opacity: 1; transform: scale(1); }
.hero-veil {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(253, 249, 240, .96) 0%, rgba(253, 249, 240, .82) 40%, rgba(253, 249, 240, .25) 72%, rgba(253, 249, 240, .55) 100%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; padding: 108px 0 120px; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12.5px; letter-spacing: .36em; color: var(--brand);
    text-transform: uppercase; font-weight: 700; margin-bottom: 22px;
    background: var(--brand-bg); border: 1px solid rgba(214, 58, 38, .18);
    border-radius: 20px; padding: 6px 18px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 100px; font-weight: 700; line-height: 1.02;
    letter-spacing: .12em; margin: 0 0 20px; color: var(--ink);
    text-shadow: 0 2px 20px rgba(255, 255, 255, .8);
}
.hero h1 .accent { color: var(--brand); }
.hero-sub {
    font-family: var(--font-kai); font-size: 25px; color: var(--ink-2);
    letter-spacing: .34em; margin: 0 0 42px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn-lg { padding: 15px 46px; font-size: 16.5px; }
.hero-note { margin-top: 26px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 22px; flex-wrap: wrap; }
.hero-note b { color: var(--brand); font-size: 15px; }

/* KV 右侧大印章：压住右侧留白，增加画面重量 */
.hero-emblem {
    position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
    z-index: 2; pointer-events: none;
    width: 240px; height: 240px; border-radius: 50%;
    border: 2px solid rgba(214, 58, 38, .16);
    background: radial-gradient(circle at 50% 35%, rgba(214, 58, 38, .1), rgba(214, 58, 38, .03) 70%);
    display: flex; align-items: center; justify-content: center;
}
.hero-emblem::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 1px solid rgba(214, 58, 38, .13); }
.hero-emblem .ch {
    writing-mode: vertical-rl;
    font-family: var(--font-display); font-size: 46px; font-weight: 700;
    color: rgba(214, 58, 38, .3); line-height: 1.1; letter-spacing: .06em;
}
@media (max-width: 1400px) { .hero-emblem { display: none; } }

.banner-dots { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 4; }
.banner-dots .container { display: flex; gap: 8px; }
.banner-dot {
    width: 26px; height: 4px; border: 0; padding: 0; cursor: pointer; border-radius: 2px;
    background: rgba(38, 35, 32, .18); transition: all .25s ease;
}
.banner-dot.active { background: var(--brand); width: 40px; }

/* ---------- 首页主体：左侧快捷区 + 右侧资讯 ---------- */
.home-main { padding: 28px 0 8px; }
.home-grid { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 22px; align-items: start; }

/* 左侧彩色功能块 */
.quick-nav { display: flex; flex-direction: column; gap: 10px; }
.quick-item {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 16px; border-radius: var(--radius-lg);
    color: #fff; box-shadow: var(--shadow-sm); transition: all .22s ease;
}
.quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.quick-item .ic {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
    background: rgba(255, 255, 255, .22);
    display: flex; align-items: center; justify-content: center;
}
.quick-item .ic svg { width: 18px; height: 18px; }
.quick-item .tx b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.quick-item .tx span { font-size: 11.5px; opacity: .85; }
.q-red    { background: linear-gradient(140deg, #ec5b41, #d63a26); }
.q-orange { background: linear-gradient(140deg, #f0994a, #e8862c); }
.q-blue   { background: linear-gradient(140deg, #4a95d1, #2f7fc1); }
.q-jade   { background: linear-gradient(140deg, #3fb78e, #2e9e78); }
.q-purple { background: linear-gradient(140deg, #9276d4, #7b5cc4); }
.q-gold   { background: linear-gradient(140deg, #eab44f, #d99b2b); }

/* 右侧资讯双栏 */
.news-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.panel-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--line-2); background: var(--bg-soft);
}
.panel-card-head h3 {
    margin: 0; font-size: 16px; letter-spacing: .04em; color: var(--ink);
    display: flex; align-items: center; gap: 9px;
}
.panel-card-head h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--brand); }
.panel-card-head a { font-size: 12.5px; color: var(--ink-3); }
.panel-card-head a:hover { color: var(--brand); }
.panel-card-body { padding: 6px 20px 14px; }

/* 资讯条目 */
.news-list { display: flex; flex-direction: column; }
.news-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 13px 0;
    border-bottom: 1px dashed var(--line-2); transition: all .2s ease;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover .news-body h3 { color: var(--brand); }
.news-date { flex-shrink: 0; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.news-body h3 {
    flex: 1; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-meta { flex-shrink: 0; font-size: 12px; color: var(--ink-3); }

/* 区服行 */
.server-row {
    display: flex; align-items: center; gap: 14px; padding: 13px 0;
    border-bottom: 1px dashed var(--line-2);
}
.server-row:last-child { border-bottom: 0; }
.server-row .n { font-size: 15px; font-weight: 600; color: var(--ink); min-width: 88px; }
.server-row .g { font-size: 12.5px; color: var(--ink-3); flex: 1; }
.server-row .s { flex-shrink: 0; }
.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); display: inline-block; }
.status-dot.s4 i { background: var(--brand); animation: pulse 1.8s infinite; }
.status-dot.s3 i { background: var(--orange); }
.status-dot.s2 i { background: var(--gold); }
.status-dot.s0 i { background: var(--ink-3); }
.status-dot.s4 { color: var(--brand); }
.status-dot.s3 { color: var(--orange); }
.status-dot.s1 { color: var(--jade); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; position: relative; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 {
    margin: 0; font-size: 24px; letter-spacing: .04em; color: var(--ink);
    display: flex; align-items: center; gap: 10px;
}
.section-head h2::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--brand); }
.section-head p { margin: 6px 0 0; color: var(--ink-3); font-size: 13.5px; }
.section-head .eyebrow { display: none; }
.section-head .num { display: none; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 18px; min-width: 0; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow-sm); transition: all .25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-title { font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.card-desc { color: var(--ink-2); font-size: 13.5px; margin: 0; }

/* ---------- 下载区 ---------- */
.dl-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.dl-main {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 36px 34px;
    background: linear-gradient(140deg, #fff6e8 0%, #ffeadf 100%);
    border: 1px solid #f4dfcd;
}
.dl-main .ver { font-size: 12.5px; color: var(--brand); font-weight: 700; letter-spacing: .1em; }
.dl-main h3 { font-size: 26px; margin: 10px 0 10px; color: var(--ink); }
.dl-main p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 22px; max-width: 400px; }
.dl-side { display: flex; flex-direction: column; gap: 12px; }
.dl-item {
    flex: 1; display: flex; align-items: center; gap: 14px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 16px 20px; box-shadow: var(--shadow-sm); transition: all .22s ease;
}
.dl-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.dl-item .ic {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 9px;
    background: var(--brand-bg); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
}
.dl-item .tx { flex: 1; min-width: 0; }
.dl-item .tx b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.dl-item .tx span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 图片下载卡（下载中心页） ---------- */
.download-card { display: flex; flex-direction: column; gap: 14px; }
.dc-head { display: flex; align-items: center; gap: 14px; }
.dc-icon {
    width: 50px; height: 50px; flex-shrink: 0; border-radius: 10px;
    background: var(--brand-bg); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
}
.dc-icon svg { width: 22px; height: 22px; }
.dc-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 标签 ---------- */
.tag { display: inline-block; padding: 1px 9px; font-size: 11.5px; border-radius: 4px; font-weight: 600; line-height: 1.7; }
.tag-red  { background: var(--brand-bg); color: var(--brand); }
.tag-gold { background: var(--gold-lt); color: #9a6b0a; }
.tag-jade { background: var(--jade-lt); color: var(--jade); }
.tag-ink  { background: var(--bg); color: var(--ink-3); }
.tag-blue { background: var(--blue-lt); color: var(--blue); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap.card::before, .table-wrap.card::after { display: none; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.data th { background: var(--bg-soft); color: var(--ink-2); font-size: 13px; font-weight: 600; }
table.data tr:hover td { background: var(--bg-soft); }
table.data a:hover { color: var(--brand); }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.form-label .req { color: var(--brand); margin-left: 2px; }
.input, .textarea, .select {
    width: 100%; padding: 11px 14px; font-size: 14.5px; font-family: var(--font-body);
    color: var(--ink); background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(214, 58, 38, .1); }
.input::placeholder, .textarea::placeholder { color: #b3aca0; }
.textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.form-tip { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.form-error { color: var(--brand); font-size: 13px; margin-top: 6px; min-height: 18px; }

.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input { flex: 1; }
.captcha-img { height: 44px; width: 124px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; object-fit: cover; background: #fff; }

/* 注册选头像：单选按钮隐藏，整块头像就是点击区，选中描红边 */
.avatar-picker {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 8px; max-height: 232px; overflow-y: auto; margin-top: 12px;
    padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-soft);
}
.avatar-picker .ap-item {
    position: relative; display: block; cursor: pointer;
    border: 2px solid transparent; border-radius: var(--radius);
    background: var(--white); overflow: hidden; transition: all .18s ease;
}
.avatar-picker .ap-item:hover { border-color: rgba(214, 58, 38, .35); transform: translateY(-1px); }
.avatar-picker .ap-item input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-picker .ap-item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.avatar-picker .ap-item:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(214, 58, 38, .14); }
.avatar-picker .ap-item:has(input:focus-visible) { border-color: var(--brand); }

/* 基本资料：默认只看当前头像 + 一个「修改头像」按钮 */
.avatar-current { display: flex; align-items: center; gap: 16px; }

/* ---------- 认证页 ---------- */
.auth-wrap {
    min-height: calc(100vh - 112px); display: flex; align-items: center; justify-content: center;
    padding: 56px 20px;
    background: linear-gradient(160deg, #fdf9f0, var(--bg) 60%, #f2ece1);
}
.auth-card {
    width: 100%; max-width: 440px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: 42px 38px;
}
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-head h1 { font-size: 25px; margin: 0 0 8px; color: var(--ink); }
.auth-head p { color: var(--ink-3); font-size: 12px; letter-spacing: .3em; margin: 0; text-transform: uppercase; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--ink-3); }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-deco { display: none; }

/* ---------- 个人中心 ---------- */
.profile-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.side-nav {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 10px; position: sticky; top: 100px; box-shadow: var(--shadow-sm);
}
.side-nav a { display: block; padding: 11px 16px; border-radius: var(--radius); font-size: 14.5px; color: var(--ink-2); }
.side-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.side-nav a.active { background: var(--brand-bg); color: var(--brand); font-weight: 700; }
.profile-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); min-height: 320px; }
.profile-head { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; }
.avatar {
    width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%;
    background: var(--bg) center/cover no-repeat; border: 2px solid var(--white);
    box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: var(--brand);
}
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }
/* 头像用图片时（列表里的发帖人头像） */
img.avatar { object-fit: cover; background: var(--bg); }

/* ---------- 论坛 ---------- */
/* 社区页尺寸照搬 wool2006 论坛：1000px 容器 + 12px 基准字号，
   大屏靠下面那条 zoom 规则整体放大（字、间距、图一起变）。 */
body.page-forum { --w: 1000px; --forum-zoom: 1; }

/* 与 wool2006 forum.css 同名同值：
   1920 及以下保持原始比例（1000px 容器 + 12px 字号）
   1921~2879 按视口宽度线性放大（基准 1600px），窗口拖动实时生效
   2880 以上封顶 1.8 倍 */
@media (min-width: 1921px) and (max-width: 2879px) {
    body.page-forum { --forum-zoom: calc(100vw / 1600px); zoom: calc(100vw / 1600px); }
}
@media (min-width: 2880px) {
    body.page-forum { --forum-zoom: 1.8; zoom: 1.8; }
}

/* 整页 zoom 会把弹窗的 90vh 一起放大（1.6 倍时就是 144vh），
   弹窗一顶到高度上限，底部的「发布/取消」就被挤出屏幕，够不到。
   这里把上限按缩放倍数折算回来 —— 弹窗始终装得进屏幕，内部照旧滚动。 */
body.page-forum .modal-box { max-height: calc(90vh / var(--forum-zoom)); }

.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.forum-layout > * { min-width: 0; }

/* 工具行：排序靠左，发表主题靠右（版块不再是页签，发帖时按身份自动归版） */
.forum-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 6px 8px; margin-bottom: 12px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
/* 排序做成小号标签，别跟主按钮抢眼 */
.forum-nav .fn-sorts { display: flex; gap: 4px; flex-wrap: wrap; }
.forum-nav .fn-sorts .btn {
    padding: 3px 9px; font-size: 11px; font-weight: 500;
    letter-spacing: 0; border-radius: 4px;
}
/* 选中的排序跟「发表主题」用同一套红色渐变；小标签不需要大按钮那层投影和上浮 */
.forum-nav .fn-sorts .btn-primary { box-shadow: none; }
.forum-nav .fn-sorts .btn-primary:hover { transform: none; box-shadow: none; }
.forum-nav .btn-primary { padding: 6px 18px; font-size: 13px; }

/* 正文卡片：只装列表和分页（工具行是上面单独的一张卡） */
.forum-panel {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.forum-body { transition: opacity .18s ease; }
.forum-body.is-loading { opacity: .45; pointer-events: none; }
.forum-body .empty { padding: 30px 16px; }
.forum-body .pager { padding: 14px 16px 16px; margin-top: 0; }

/* 社区右栏：一张宣传图（跟随滚动，避免长列表时右侧空成一片） */
.forum-side { position: sticky; top: 20px; }

/* 右栏小面板（每日金币获取排行等） */
.side-panel {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    padding: 12px 12px 6px; margin-bottom: 14px;
}
.side-panel-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    font-size: 13.5px; font-weight: 700; color: var(--ink);
    padding: 0 2px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2);
}
.side-panel-head::before { content: ""; width: 4px; height: 13px; border-radius: 2px; background: var(--brand); margin-right: -2px; align-self: center; }
.side-panel-sub { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.side-panel-foot { font-size: 11px; color: var(--ink-4); padding: 8px 2px 6px; border-top: 1px dashed var(--line-2); text-align: center; }
.side-panel-empty { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 22px 0; }

/* 排行列表：名次 + 角色名(职业·等级) + 金额 */
.gold-rank { list-style: none; margin: 0; padding: 0; }
.gold-rank li { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed var(--line-2); }
.gold-rank li:last-child { border-bottom: 0; }
.gold-rank .no {
    flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px;
    background: var(--bg); color: var(--ink-3);
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.gold-rank li:nth-child(1) .no { background: var(--brand); color: #fff; }
.gold-rank li:nth-child(2) .no { background: var(--orange); color: #fff; }
.gold-rank li:nth-child(3) .no { background: var(--gold); color: #fff; }
.gold-rank .who { flex: 1; min-width: 0; }
.gold-rank .nm { display: block; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gold-rank .meta { display: block; font-size: 11px; color: var(--ink-3); }
.gold-rank .amt { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.forum-poster {
    display: block; width: 100%; height: auto;
    border-radius: var(--radius-lg); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); background: var(--white);
}
.topic-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line-2); transition: background .2s ease; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: var(--bg-soft); }
.topic-avatar { flex-shrink: 0; }
.topic-main { flex: 1; min-width: 0; }
.topic-main h3 { font-size: 14px; margin: 0 0 3px; font-weight: 500; letter-spacing: .2px; }
.topic-main h3 a { color: var(--ink); }
.topic-main h3 a:hover { color: var(--brand); }
.topic-main .sub { font-size: 11px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.topic-stats { flex-shrink: 0; display: flex; gap: 14px; text-align: center; font-size: 11px; color: var(--ink-3); }
.topic-stats .n { display: block; font-size: 12px; font-weight: 700; color: var(--ink); }

.floor { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.floor-side { flex-shrink: 0; width: 120px; text-align: center; }
.floor-side .name { font-size: 13.5px; color: var(--ink); margin-top: 10px; font-weight: 600; }
.floor-side .role { font-size: 11.5px; color: var(--ink-3); }
.floor-body { flex: 1; min-width: 0; }
.floor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12.5px; color: var(--ink-3); }
.floor-content { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); word-break: break-word; }
.floor-op { background: var(--bg-soft); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding-left: 18px; }
.floor-actions { display: flex; gap: 16px; margin-top: 14px; }
.floor-actions button {
    background: none; border: 0; cursor: pointer; color: var(--ink-3);
    font-size: 13px; font-family: var(--font-body); padding: 0;
    display: inline-flex; align-items: center; gap: 5px; transition: color .2s ease;
}
.floor-actions button:hover { color: var(--brand); }
.floor-actions button.on { color: var(--brand); font-weight: 600; }

.bb-quote { margin: 10px 0; padding: 12px 16px; border-left: 3px solid var(--line); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); font-size: 13.5px; }
.bb-code { margin: 10px 0; padding: 14px 18px; background: #2b2a28; color: #e8e3d9; border-radius: var(--radius); font-size: 13px; overflow-x: auto; font-family: Consolas, monospace; }
.bb-img { margin: 10px 0; border-radius: var(--radius); max-width: 100%; }

/* ---------- 侧栏面板 ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel-title {
    font-size: 15.5px; margin: 0 0 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line-2); color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.panel-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--brand); margin-right: -6px; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 7px; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius);
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: var(--white); font-size: 14px; color: var(--ink-2);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* ---------- 内页页头 ---------- */
.page-hero {
    position: relative; padding: 44px 0 38px; overflow: hidden;
    background: linear-gradient(150deg, #fdf9f0, #f6efe2);
    border-bottom: 1px solid var(--line);
}
.page-hero .container { text-align: center; }
.page-hero h1 { font-size: 30px; margin: 0 0 8px; color: var(--ink); letter-spacing: .06em; }
.page-hero p { color: var(--ink-3); font-size: 12px; letter-spacing: .3em; margin: 0; text-transform: uppercase; }
.crumb { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { margin: 0 7px; color: #c9c2b6; }

/* ---------- 内容排版 ---------- */
.article { font-size: 15px; line-height: 2; color: var(--ink-2); }
.article p { margin: 0 0 1.2em; }
.article img { margin: 1em auto; border-radius: var(--radius); }
.article h2, .article h3 { margin-top: 1.5em; color: var(--ink); }
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.article ul li { list-style: disc; }
.article ol li { list-style: decimal; }
.article a { color: var(--brand); }

.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); font-size: 14px; }
.empty svg { width: 48px; height: 48px; opacity: .3; margin: 0 auto 14px; display: block; color: var(--brand); }

/* ---------- 页脚 ---------- */
.site-footer { background: #33302c; color: rgba(255, 255, 255, .62); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; padding: 48px 0 34px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub { color: rgba(255, 255, 255, .4); }
.footer-brand p { font-size: 13px; line-height: 1.9; margin: 16px 0 0; color: rgba(255, 255, 255, .5); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-col li { margin-bottom: 9px; font-size: 13.5px; }
.footer-col a { color: rgba(255, 255, 255, .62); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0;
    font-size: 12.5px; color: rgba(255, 255, 255, .42);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, .5); }

/* ---------- 提示浮层 ---------- */
.toast {
    position: fixed; left: 50%; top: 96px; transform: translate(-50%, -12px);
    background: var(--ink); color: #fff; padding: 12px 26px; border-radius: var(--radius);
    font-size: 14px; z-index: 9999; opacity: 0; pointer-events: none;
    transition: all .3s ease; box-shadow: var(--shadow-md); max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--brand); }
.toast.ok { background: var(--jade); }

.to-top {
    position: fixed; right: 26px; bottom: 30px; z-index: 50;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--white); color: var(--ink-2); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; pointer-events: none; transition: all .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }

/* ---------- 弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(38, 35, 32, .5); }
.modal-box {
    position: relative; width: 100%; max-width: 620px; max-height: 90vh;
    background: var(--white); border-radius: var(--radius-lg);
    display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(38, 35, 32, .25);
    animation: modalIn .24s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line-2); flex: 0 0 auto; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-3); }
.modal-close:hover { color: var(--brand); }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; flex: 0 0 auto; }

/* ---------- 工具类 ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--ink-3); }
.text-red { color: var(--brand); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.hide { display: none !important; }
.ml-auto { margin-left: auto; }

/* ---------- 滚动入场 ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .home-grid { grid-template-columns: 1fr; }
    .quick-nav { flex-direction: row; flex-wrap: wrap; }
    .quick-item { flex: 1 1 180px; }
    .news-two { grid-template-columns: 1fr; }
    .forum-layout { grid-template-columns: 1fr; }
    /* 单列时右栏会撑满整宽，宣传图要收窄居中，否则会变成近千像素高的大图 */
    .forum-poster { max-width: 300px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dl-layout { grid-template-columns: 1fr; }
    .hero h1 { font-size: 68px; }
}

@media (max-width: 900px) {
    .main-nav {
        position: fixed; inset: 76px 0 auto 0; background: var(--white);
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
        flex-direction: column; padding: 8px 20px 16px; gap: 0;
        display: none; margin-left: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
    .main-nav a.active::after { display: none; }
    .nav-toggle { display: flex; order: 3; }
    .header-actions { margin-left: auto; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .site-header .container { height: 72px; gap: 14px; }
    .logo-seal { width: 40px; height: 40px; font-size: 21px; }
    .logo-name { font-size: 19px; }
    .logo-img { height: 52px; max-width: 260px; }
    /* 手机上顶条本来就隐藏，logo 不需要往上冒，否则会被屏幕顶端切掉 */
    .site-header .logo { top: 0; }
    /* 滚动收缩那条优先级更高，这里覆盖回来，手机上不要被放大 */
    .site-header.is-scrolled .logo-img { height: 46px; }
    .main-nav { inset: 72px 0 auto 0; }
    .hero { min-height: 460px; }
    .hero-inner { padding: 64px 0 76px; }
    .hero h1 { font-size: 44px; }
    .hero-sub { font-size: 15px; letter-spacing: .18em; margin-bottom: 26px; }
    .hero-cta .btn { flex: 1; padding: 12px 18px; }
    .section { padding: 40px 0; }
    .section-head h2 { font-size: 20px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .side-nav { position: static; display: flex; overflow-x: auto; gap: 6px; }
    .side-nav a { white-space: nowrap; }
    .board-count, .board-last { display: none; }
    .floor { flex-direction: column; gap: 12px; }
    .floor-side { width: auto; text-align: left; display: flex; align-items: center; gap: 10px; }
    .floor-side .name { margin-top: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 24px; }
    .page-hero { padding: 30px 0 26px; }
    .page-hero h1 { font-size: 22px; }
    .auth-card { padding: 30px 22px; }
    .card { padding: 20px; }
    .container { padding: 0 16px; }
}

/* ============================================================
   三大入口卡片（下载 / 注册 / 登录）
   ============================================================ */
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.entry-card {
    position: relative; overflow: hidden; text-align: center; border-radius: 14px;
    padding: 50px 32px 44px; color: #fff; background: var(--ec-grad);
    box-shadow: 0 10px 28px var(--ec-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}
/* 斜向高光 + 两个装饰圆，做出层次不做"白卡片" */
.entry-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 46%);
    pointer-events: none;
}
.entry-card::after {
    content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    right: -110px; top: -110px; border: 34px solid rgba(255, 255, 255, .1); pointer-events: none;
}
.entry-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px var(--ec-shadow); }
.entry-card .ec-ring {
    position: absolute; width: 180px; height: 180px; border-radius: 50%;
    left: -80px; bottom: -90px; border: 26px solid rgba(255, 255, 255, .08); pointer-events: none;
}
.entry-card .ec-ic {
    position: relative; z-index: 1;
    width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 26px;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3);
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.entry-card .ec-ic svg { width: 40px; height: 40px; }
.entry-card h3 { position: relative; z-index: 1; font-size: 26px; margin: 0 0 12px; color: #fff; letter-spacing: .08em; }
.entry-card p { position: relative; z-index: 1; color: rgba(255, 255, 255, .88); font-size: 14px; margin: 0 0 28px; line-height: 1.8; }
.entry-card .ec-btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 164px; padding: 13px 32px; border-radius: 28px;
    background: #fff; color: var(--ec-text); font-size: 15.5px; font-weight: 700;
    letter-spacing: .08em; box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    transition: all .22s ease;
}
.entry-card:hover .ec-btn { color: var(--ec-text); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }

.e-download { --ec-grad: linear-gradient(150deg, #f2603f 0%, #cf2f1d 100%); --ec-shadow: rgba(207, 47, 29, .4); --ec-text: #c92b1a; }
.e-register { --ec-grad: linear-gradient(150deg, #f6a23c 0%, #dc7a11 100%); --ec-shadow: rgba(220, 122, 17, .4); --ec-text: #c86c09; }
.e-forum    { --ec-grad: linear-gradient(150deg, #3fbf94 0%, #1f8a66 100%); --ec-shadow: rgba(31, 138, 102, .4); --ec-text: #1f8a66; }

/* 首页底部说明条 */
.home-tips {
    margin-top: 30px; padding: 20px 26px; border-radius: var(--radius-lg);
    background: var(--white); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap;
    font-size: 13.5px; color: var(--ink-3); box-shadow: var(--shadow-sm);
}
.home-tips span { display: inline-flex; align-items: center; gap: 7px; }
.home-tips svg { width: 16px; height: 16px; color: var(--brand); }

@media (max-width: 900px) {
    .entry-grid { grid-template-columns: 1fr; gap: 14px; }
    .entry-card { padding: 28px 22px 24px; }
    .entry-card .ec-ic { width: 62px; height: 62px; border-radius: 18px; margin-bottom: 14px; }
    .entry-card .ec-ic svg { width: 28px; height: 28px; }
    .home-tips { gap: 14px; font-size: 12.5px; }
}

/* ============================================================
   账号后台
   ============================================================ */

/* 概览统计 */
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.acct-stat {
    background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius);
    padding: 18px 12px; text-align: center;
}
.acct-stat .n { font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.acct-stat .l { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

/* 二级区块标题 */
.acct-sub {
    font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 14px;
    padding-left: 11px; position: relative;
}
.acct-sub::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--brand); }
.acct-block { margin-bottom: 28px; }
.acct-block:last-child { margin-bottom: 0; }

/* 新人礼包激活码（活动期间注册的账号自动发放；老账号可联系客服补发） */
.newbie-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.newbie-code {
    display: inline-block; padding: 9px 16px; border-radius: var(--radius);
    background: var(--brand-bg); border: 1px dashed rgba(214, 58, 38, .45);
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 17px; font-weight: 700; letter-spacing: 1px; color: var(--brand-dk);
    word-break: break-all;
}
.newbie-empty { font-size: 13px; color: var(--ink-3); line-height: 1.9; }

/* 安全状态 */
.security-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 15px 0; border-bottom: 1px dashed var(--line-2);
}
.security-list li:last-child { border-bottom: 0; }
.security-list .sk { font-size: 14px; color: var(--ink-2); }
.security-list .sk small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.sec-ok, .sec-warn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.sec-ok { color: var(--jade); }
.sec-warn { color: var(--orange); }
.sec-ok i, .sec-warn i { width: 14px; height: 14px; display: inline-block; }
.sec-ok svg, .sec-warn svg { width: 14px; height: 14px; }

/* 角色卡 */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 14px; }
.role-card {
    position: relative; overflow: hidden;
    background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius);
    padding: 18px 20px; transition: all .22s ease;
}
.role-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.role-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.role-card .rn { font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.role-card .rn .role-name { min-width: 0; }
.role-card .rm { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.9; }
.role-card .rm b { color: var(--ink-2); font-weight: 600; }
.role-card .rm .role-gold { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 职业徽章：颜色对应服务端 CHAR_CLASS_TYPE */
.role-cls {
    flex-shrink: 0; font-size: 11.5px; font-weight: 700; line-height: 1.7;
    padding: 1px 8px; border-radius: 4px; letter-spacing: .04em;
}
.cls-0 { background: rgba(214, 58, 38, .1);  color: #c92b1a; }  /* 战士 */
.cls-1 { background: rgba(47, 127, 193, .12); color: #1f6fb8; } /* 法师 */
.cls-2 { background: rgba(123, 92, 196, .12); color: #6a4bb5; } /* 刺客 */
.cls-3 { background: rgba(46, 158, 120, .12); color: #248263; } /* 弓箭手 */
.cls-4 { background: rgba(217, 155, 43, .14); color: #a8761a; } /* 道士 */

/* 角色卡：转移入口 */
.role-card .role-act { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.role-card .role-act .btn { width: 100%; }

/* ---------- 角色转移 ---------- */
.nav-dot {
    display: inline-block; width: 7px; height: 7px; margin-left: 7px;
    border-radius: 50%; background: var(--brand); vertical-align: middle;
}
.tab-count {
    display: inline-block; min-width: 17px; margin-left: 6px; padding: 0 5px;
    border-radius: 9px; background: rgba(255, 255, 255, .26);
    font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
}

.tf-role {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    padding: 12px 15px; margin-bottom: 14px;
    background: var(--bg-soft); border: 1px solid var(--line-2);
    border-left: 3px solid var(--brand); border-radius: var(--radius);
}
.tf-role .role-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.tf-role-meta { font-size: 12.5px; color: var(--ink-3); }

.tf-tip { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; line-height: 1.85; }
.tf-tip b { color: var(--ink-2); }

.form-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.tf-facts { margin: 0 0 14px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.tf-facts > div { display: flex; align-items: baseline; gap: 12px; padding: 9px 15px; font-size: 13px; }
.tf-facts > div + div { border-top: 1px solid var(--line-2); }
.tf-facts dt { flex: 0 0 112px; color: var(--ink-3); margin: 0; }
.tf-facts dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.tf-on, .tf-off {
    display: inline-block; padding: 0 7px; border-radius: 3px;
    font-size: 11.5px; font-weight: 700; line-height: 1.75; vertical-align: 1px;
}
.tf-on  { background: var(--brand-bg); color: var(--brand); }
.tf-off { background: var(--jade-lt); color: var(--jade); }

.tf-bad  { color: var(--brand); font-weight: 700; }
.tf-near { color: #9a6b0a; font-weight: 700; }
.tf-ago  { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* 等对方离开游戏时的倒计时块（转移列表里） */
.tf-wait-line {
    margin-top: 6px; padding: 7px 10px; border-radius: 3px;
    background: var(--bg-soft); border: 1px solid var(--line-2);
    font-size: 12.5px; color: var(--ink-3); line-height: 1.75;
}
.tf-wait-line b { color: var(--brand); font-variant-numeric: tabular-nums; }

.tf-note, .tf-warn, .tf-block {
    padding: 10px 14px; margin-bottom: 10px; border-radius: var(--radius);
    font-size: 12.8px; line-height: 1.8;
}
.tf-note  { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line-2); }
.tf-warn  { background: var(--gold-lt); color: #8a5f08; }
.tf-block { background: var(--brand-bg); color: var(--brand-dk); font-weight: 600; }

.tf-code {
    font-family: var(--font-body);
    font-size: 40px; font-weight: 800; letter-spacing: .22em;
    text-align: center; padding: 20px 0 20px .22em;
    color: var(--brand); background: var(--brand-bg);
    border: 1px dashed rgba(214, 58, 38, .34); border-radius: var(--radius);
    font-variant-numeric: tabular-nums; user-select: all;
}
.tf-left { color: var(--brand); font-variant-numeric: tabular-nums; }
.tf-code-input { font-size: 20px; letter-spacing: .34em; text-align: center; font-variant-numeric: tabular-nums; }

.tf-row {
    display: flex; align-items: center; gap: 16px; justify-content: space-between;
    padding: 14px 16px; background: var(--white);
    border: 1px solid var(--line-2); border-radius: var(--radius);
}
.tf-row + .tf-row { margin-top: 10px; }
.tf-row-main { min-width: 0; }
.tf-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tf-row-title .role-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.tf-row-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.tf-row-meta b { color: var(--ink-2); font-weight: 600; }
.tf-row-extra { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.tf-row-extra b { color: var(--brand); font-weight: 700; }
.tf-row-act { flex-shrink: 0; }
.tf-hint { color: var(--jade); }

/* 角色卡：转移中 */
.role-busy {
    flex-shrink: 0; padding: 1px 8px; border-radius: 4px;
    font-size: 11.5px; font-weight: 700; line-height: 1.7; letter-spacing: .04em;
    background: var(--gold-lt); color: #9a6b0a;
}
.role-card.is-busy { background: var(--bg-warm); }
.role-card.is-busy::before { background: linear-gradient(180deg, #e8bc63, var(--gold)); }

/* 转移完成 */
.tf-done { text-align: center; padding: 8px 0 4px; }
.tf-done-ico {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--jade-lt); color: var(--jade);
}
.tf-done-ico svg { width: 26px; height: 26px; }
.tf-done h4 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.tf-done p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.tf-done p b { color: var(--ink); }

.tf-steps {
    margin: 18px 0 14px; padding: 16px 18px 16px 34px;
    background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius);
    font-size: 13px; color: var(--ink-2); line-height: 2;
}
.tf-steps li b { color: var(--brand); }

@media (max-width: 1024px) {
    .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .tf-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .tf-row-act .btn { width: 100%; }
}
@media (max-width: 768px) {
    .acct-stats { gap: 10px; }
    .acct-stat .n { font-size: 21px; }
    .role-grid { grid-template-columns: 1fr; }
    .tf-code { font-size: 31px; }
    .tf-facts dt { flex-basis: 96px; }
    .modal { padding: 12px; }
}
