/* Info 模块：正文排版（作用于 .prose-skywall） */
.prose-skywall h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 2.25rem 0 .9rem;
    padding-left: .75rem;
    border-left: 3px solid #efca72;
    line-height: 1.4;
}
.prose-skywall h3 {
    color: #e8e6e1;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.75rem 0 .6rem;
}
.prose-skywall p { margin: .9rem 0; }
.prose-skywall ul { margin: .9rem 0; padding-left: 1.25rem; list-style: disc; }
.prose-skywall ol { margin: .9rem 0; padding-left: 1.25rem; list-style: decimal; }
.prose-skywall li { margin: .35rem 0; }
.prose-skywall strong { color: #f3f3f3; font-weight: 700; }
.prose-skywall a { color: #efca72; text-decoration: none; border-bottom: 1px solid rgba(239,202,114,.3); }
.prose-skywall a:hover { border-bottom-color: #efca72; }
.prose-skywall code {
    padding: 1px 6px; border-radius: 4px;
    background: rgba(255,255,255,.06); color: #efca72; font-size: .88em;
}
.prose-skywall pre {
    margin: 1rem 0; padding: 14px 16px; border-radius: 8px;
    background: #1a1a1a; border: 1px solid rgba(255,255,255,.08);
    color: #d8d8d8; font-size: .85rem; overflow-x: auto;
}
.prose-skywall pre code { background: none; padding: 0; color: inherit; }

/* 21 职业对照表 */
.info-table {
    width: 100%; margin: 1.25rem 0 1rem;
    border-collapse: collapse; font-size: .82rem;
}
.info-table thead th {
    text-align: left; padding: 10px 12px;
    color: #929292; font-size: 10px; font-weight: 800;
    letter-spacing: .15em; text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.12);
    white-space: nowrap;
}
.info-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    vertical-align: top;
}
.info-table tbody tr:hover { background: rgba(255,255,255,.03); }
.info-table .c-name { color: #f3f3f3; font-weight: 700; white-space: nowrap; }
.info-table .c-en { display: block; color: #6b7280; font-size: 10px; font-weight: 400; letter-spacing: .04em; }
.info-table .c-num { color: #efca72; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.info-table .c-desc { color: #9c9c9c; }

.info-note { color: #6b7280; font-size: .78rem; }
.info-todo {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    background: rgba(239,202,114,.12); border: 1px dashed rgba(239,202,114,.4);
    color: #efca72; font-size: .78em;
}

@media (max-width: 767px) {
    .info-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* 职业对照表：图标列与专精双行 */
.info-table--class td { vertical-align: middle; }
.info-table--class .c-icon { width: 60px; padding-left: 8px; padding-right: 4px; }
.info-table--class .c-icon img {
    width: 32px; height: 32px; border-radius: 6px;
    /* tokens.css 里有全局 img{max-width:100%}，会把格子里的图标按内容宽度压扁、再被 object-fit 裁边 */
    max-width: none;
    object-fit: contain; display: block;
    border: 1px solid rgba(255,255,255,.12);
}
.info-table--class .c-role { color: #b9b9b9; white-space: nowrap; }
.info-table--class .c-spec { min-width: 190px; }
.info-table--class .c-spec-en { display: block; color: #efca72; font-size: .8rem; }
.info-table--class .c-spec-zh { display: block; color: #6b7280; font-size: .72rem; margin-top: 2px; }
@media (max-width: 767px) {
    .info-table--class .c-icon img { width: 26px; height: 26px; }
}

/* ===== 职业详情页 ===== */
.class-hero {
    display: flex; gap: 20px; align-items: center;
    padding: 22px; margin: 1rem 0 2rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}
.class-hero__icon {
    width: 72px; height: 72px; border-radius: 10px; object-fit: cover;
    border: 1px solid rgba(239,202,114,.35); flex-shrink: 0;
}
.class-hero__name { color: #fff; font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.class-hero__name span { color: #6b7280; font-size: .9rem; font-weight: 500; margin-left: 8px; }
.class-hero__role { color: #efca72; font-size: .85rem; font-weight: 700; margin: 0 0 6px; }
.class-hero__desc { color: #9c9c9c; font-size: .88rem; margin: 0; line-height: 1.6; }

.info-table--spec .c-spec-name { color: #f3f3f3; font-weight: 700; white-space: nowrap; }
.info-table--spec .c-spec-en { display: block; color: #6b7280; font-size: 10px; letter-spacing: .05em; font-weight: 400; }
.info-table--spec .c-spec-desc { color: #9c9c9c; }

.class-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.class-btn {
    display: inline-block; padding: 10px 18px; border-radius: 8px;
    font-size: .8rem; font-weight: 700; text-decoration: none;
    color: #cfcfcf; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    transition: all .2s;
}
.class-btn:hover { color: #fff; background: rgba(255,255,255,.10); border-color: rgba(239,202,114,.35); }
.class-btn--primary {
    background: #efca72; color: #111; border-color: #efca72;
}
.class-btn--primary:hover { background: #ffe4a2; color: #111; }

/* 列表页卡片图标：职业详情页的 PNG 图标 */
.info-table--class .c-name a { color: inherit; text-decoration: none; }
.info-table--class .c-name a:hover { color: #efca72; }
.info-table--class .c-icon a { display: block; line-height: 0; }

@media (max-width: 767px) {
    .class-hero { flex-direction: column; text-align: center; }
    .class-hero__name span { display: block; margin: 4px 0 0; }
}

/* 三列说明表（开放世界风险模式等）：首列不换行 */
.info-table--modes td:first-child,
.info-table--modes th:first-child { white-space: nowrap; }
.info-table--modes td { vertical-align: top; }

/* ===== 正文插图 ===== */
.info-figure { margin: 1.8rem 0 2rem; }
.info-figure img {
    display: block; width: 100%; height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.02);
}
.info-figure figcaption {
    margin-top: .7rem; text-align: center;
    font-size: .78rem; line-height: 1.6; color: #6b7280;
}
.info-figure--narrow { max-width: 560px; margin-left: auto; margin-right: auto; }


/* ===== 坐骑收藏指南：四列表格 ===== */
.info-table-scroll {
    margin: 1.25rem 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.info-table-scroll .info-table {
    display: table;
    min-width: 760px;
    margin: 0;
    white-space: normal;
}
.info-table--mounts { table-layout: fixed; }
.info-table--mounts th:nth-child(1),
.info-table--mounts td:nth-child(1) { width: 24%; }
.info-table--mounts th:nth-child(2),
.info-table--mounts td:nth-child(2) { width: 25%; }
.info-table--mounts th:nth-child(3),
.info-table--mounts td:nth-child(3) { width: 15%; }
.info-table--mounts th:nth-child(4),
.info-table--mounts td:nth-child(4) { width: 36%; }
.info-table--mounts td {
    padding: 11px 12px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}
.info-table--mounts .c-name { white-space: normal; }
.info-table--mounts .c-en {
    margin-top: 4px;
    color: #7f8794;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: .02em;
}
.info-table--mounts .c-source { color: #c9c9c9; }
.info-table--mounts .c-cost {
    color: #efca72;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.info-table--mounts .c-note { color: #9c9c9c; }
.info-table--mounts tr.is-retired td { opacity: .55; }
.info-table--mounts tr.is-retired .c-name a { text-decoration: line-through; }
.info-retired {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid rgba(224, 122, 122, .35);
    border-radius: 4px;
    color: #e07a7a;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.info-mount-summary .c-num {
    width: 64px;
    text-align: left;
}
.prose-skywall h2[id] { scroll-margin-top: 96px; }

@media (max-width: 767px) {
    .info-table-scroll { margin-left: -4px; margin-right: -4px; }
    .info-table--mounts th,
    .info-table--mounts td { padding: 9px 10px; }
    .info-table-scroll .info-table { min-width: 700px; }
}



/* ===== 试炼指南：对比表与区域表 ===== */
.info-table--trials { table-layout: fixed; }
.info-table--trials th,
.info-table--trials td {
    vertical-align: top;
    white-space: normal;
    line-height: 1.65;
}
.info-table--trials td:first-child {
    width: 18%;
    color: #f3f3f3;
    font-weight: 700;
}
.info-table--compare { min-width: 760px; }
.info-table--compare th:nth-child(1),
.info-table--compare td:nth-child(1) { width: 16%; }
.info-table--compare th:nth-child(2),
.info-table--compare td:nth-child(2),
.info-table--compare th:nth-child(3),
.info-table--compare td:nth-child(3) { width: 42%; }
.info-table--zones { min-width: 760px; }
.info-table--zones th,
.info-table--zones td { width: 33.33%; }
.info-table--zones td:first-child {
    width: 33.33%;
    color: inherit;
    font-weight: 400;
}
.prose-skywall .info-zone-list {
    margin: 0;
    padding-left: 1.05rem;
    list-style: disc;
}
.prose-skywall .info-zone-list li {
    margin: 2px 0;
    color: #c9c9c9;
    font-size: .8rem;
    line-height: 1.55;
}


/* Revelation 主题的 .rv-article .info-table td 优先级更高，单独加固 */
.rv-article .info-table.info-table--trials th,
.rv-article .info-table.info-table--trials td { vertical-align: top; }
.rv-article .info-table.info-table--trials td:first-child {
    color: #f3f3f3;
    font-weight: 700;
}
.rv-article .info-table.info-table--zones td:first-child {
    color: inherit;
    font-weight: 400;
}
.rv-article .prose-skywall .info-zone-list li {
    margin: 2px 0;
    color: #c9c9c9;
    font-size: .8rem;
    line-height: 1.55;
}


/* 主题在窄屏把 .rv-article .info-table 改成 block；试炼表需要保持真正的表格布局，
   由外层 .info-table-scroll 负责横向滚动。 */
@media (max-width: 768px) {
    .rv-article .info-table-scroll .info-table.info-table--trials {
        display: table;
        overflow: visible;
        white-space: normal;
        font-size: .8rem;
    }
}


/* 区域表/对比表通常只有一行；主题会去掉最后一行底边，补回来让表格闭合 */
.rv-article .info-table.info-table--trials tbody tr:last-child td {
    border-bottom: 1px solid var(--rv-line);
}


/* ===== 铁人独行工匠指南 ===== */
.prose-skywall h4 {
    color: #e8e6e1;
    font-size: .98rem;
    font-weight: 700;
    margin: 1.4rem 0 .45rem;
}
.info-callout {
    margin: 1.4rem 0;
    padding: 14px 18px;
    border: 1px solid rgba(239,202,114,.28);
    border-left: 3px solid #efca72;
    border-radius: 8px;
    background: rgba(239,202,114,.06);
    color: #c9c9c9;
    font-size: .86rem;
    line-height: 1.75;
}
.info-callout strong { color: #efca72; }
.info-callout ul { margin: .55rem 0 0; padding-left: 1.1rem; }
.info-callout li { margin: .3rem 0; }
.info-callout--danger {
    border-color: rgba(224,122,122,.35);
    border-left-color: #e07a7a;
    background: rgba(224,122,122,.06);
}
.info-callout--danger strong { color: #f0a0a0; }
.info-callout--tip {
    border-color: rgba(126,190,255,.30);
    border-left-color: #7ebeff;
    background: rgba(126,190,255,.05);
}
.info-callout--tip strong { color: #a8d4ff; }

.info-figure--small { max-width: 560px; margin-left: auto; margin-right: auto; }
.info-figure--small img { width: 100%; height: auto; }

.info-table-scroll .info-table.info-table--caps { min-width: 640px; }
.info-table--caps th:nth-child(1), .info-table--caps td:nth-child(1) { width: 26%; }
.info-table--caps th:nth-child(2), .info-table--caps td:nth-child(2) { width: 18%; }
.info-table--caps th:nth-child(3), .info-table--caps td:nth-child(3) { width: 56%; }

.info-table-scroll .info-table.info-table--recipe { min-width: 900px; }
.info-table--recipe th:nth-child(1), .info-table--recipe td:nth-child(1) { width: 22%; }
.info-table--recipe th:nth-child(2), .info-table--recipe td:nth-child(2) { width: 9%; }
.info-table--recipe th:nth-child(3), .info-table--recipe td:nth-child(3) { width: 35%; }
.info-table--recipe th:nth-child(4), .info-table--recipe td:nth-child(4) { width: 16%; }
.info-table--recipe th:nth-child(5), .info-table--recipe td:nth-child(5) { width: 18%; }
.info-table--recipe td:nth-child(4) { color: #efca72; white-space: nowrap; }
.info-table--recipe td { white-space: normal; overflow-wrap: anywhere; }

.info-table-scroll .info-table.info-table--herb { min-width: 720px; }
.info-table--herb th:nth-child(1), .info-table--herb td:nth-child(1) { width: 26%; }
.info-table--herb th:nth-child(2), .info-table--herb td:nth-child(2) { width: 14%; }
.info-table--herb th:nth-child(3), .info-table--herb td:nth-child(3) { width: 18%; }
.info-table--herb th:nth-child(4), .info-table--herb td:nth-child(4) { width: 42%; }

.info-table-scroll .info-table.info-table--bs { min-width: 760px; }
.info-table--bs th:nth-child(1), .info-table--bs td:nth-child(1) { width: 14%; }
.info-table--bs th:nth-child(2), .info-table--bs td:nth-child(2) { width: 28%; }
.info-table--bs th:nth-child(3), .info-table--bs td:nth-child(3) { width: 30%; }
.info-table--bs th:nth-child(4), .info-table--bs td:nth-child(4) { width: 28%; }

.info-table-scroll .info-table.info-table--route { min-width: 680px; }
.info-table--route th:nth-child(1), .info-table--route td:nth-child(1) { width: 12%; }
.info-table--route th:nth-child(2), .info-table--route td:nth-child(2) { width: 28%; }
.info-table--route th:nth-child(3), .info-table--route td:nth-child(3) { width: 60%; }

.rv-article .info-table.info-table--recipe td:first-child,
.rv-article .info-table.info-table--caps td:first-child,
.rv-article .info-table.info-table--herb td:first-child,
.rv-article .info-table.info-table--bs td:first-child,
.rv-article .info-table.info-table--route td:first-child {
    color: #f3f3f3;
    font-weight: 700;
}
.rv-article .info-table.info-table--route td:first-child { color: #efca72; }
.rv-article .info-table.info-table--recipe td:nth-child(2) { color: #9c9c9c; }
.rv-article .info-table.info-table--recipe td:nth-child(4) { color: #efca72; }

@media (max-width: 767px) {
    .info-callout { padding: 12px 14px; font-size: .82rem; }
    .info-figure--small { max-width: 100%; }
    .info-table--recipe td:nth-child(4) { white-space: normal; }
}

/* recipe table: fit desktop reader (808px), still scroll on mobile */
.info-table-scroll .info-table.info-table--recipe { min-width: 760px; }
.info-table--recipe th:nth-child(1), .info-table--recipe td:nth-child(1) { width: 24%; }
.info-table--recipe th:nth-child(2), .info-table--recipe td:nth-child(2) { width: 9%; }
.info-table--recipe th:nth-child(3), .info-table--recipe td:nth-child(3) { width: 31%; }
.info-table--recipe th:nth-child(4), .info-table--recipe td:nth-child(4) { width: 15%; }
.info-table--recipe th:nth-child(5), .info-table--recipe td:nth-child(5) { width: 21%; }
