/* =====================================================================
   皮肤布局：editorial —— 亮色杂志（居中报头 + 非对称栅格 + 目录）
   ---------------------------------------------------------------------
   与影院/终端完全不同的骨架：报头三格对位、双线分隔、目录式条目、点线索引。
   通用组件仍由 site.css 提供，色板由 themes/editorial.css 提供。
   ===================================================================== */

.skin-editorial { line-height: 1.65; }

/* ---------- 报头 ---------- */
.ed-masthead {
    padding: 0 var(--gutter);
    background: var(--bg);
    border-bottom: 3px double var(--text);
}
.ed-mast-meta {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: baseline; gap: 16px;
    padding: 14px 0 10px;
}
.ed-mast-date {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
}
.ed-mast-name {
    font-family: var(--font-display);
    font-size: 44px; font-weight: 700; line-height: 1;
    letter-spacing: -.02em; color: var(--text);
    text-align: center;
}
.ed-mast-name:hover { color: var(--accent); }
.ed-mast-edition {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); text-align: right;
}

.ed-nav {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 18px;
    padding: 0 0 12px;
    border-top: 1px solid var(--line-soft);
    padding-top: 10px;
}
.ed-nav .nav-links { flex: 0 1 auto; justify-content: center; gap: 22px; }
.ed-nav .nav-links a {
    font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text); opacity: .85; padding: 2px 0;
    border-radius: 0; background: none;
}
.ed-nav .nav-links a::after { display: none; }
.ed-nav .nav-links a:hover { color: var(--accent); opacity: 1; background: none; }
.ed-account { gap: 12px; font-size: 12px; letter-spacing: .06em; }
.ed-account a { color: var(--text-soft); }
.ed-account a:hover { color: var(--accent); }
.ed-nav .lang-switch {
    background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 0;
}
.ed-nav .lang-switch a { border-radius: 0; padding: 3px 8px; letter-spacing: .1em; }
.ed-nav .lang-switch a.is-current { background: var(--text); color: var(--bg); }

/* ---------- 版心 ---------- */
.ed-main { max-width: var(--max-width); padding: 0 var(--gutter) 24px; }
.ed-wrap { display: block; }

/* ---------- 头条：左 2/3 视频 + 右 1/3 榜位 ---------- */
.ed-lead {
    display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 32px; align-items: start;
    padding: 30px 0 24px;
    border-bottom: 1px solid var(--text);
}
.ed-side-index {
    margin-top: 18px; padding-top: 14px;
    border-top: 3px double var(--text);
    /* 占满右栏剩余高度：行高均分，栏底不留空白 */
    flex: 1; display: flex; flex-direction: column;
}
.ed-side-index h3 {
    margin: 0 0 8px; font-size: 11px; letter-spacing: .18em;
    text-transform: uppercase; font-family: var(--font-body);
}
.ed-side-index .ed-index { flex: 1; display: flex; flex-direction: column; }
.ed-side-index .ed-index li { flex: 1; display: flex; }
.ed-side-index .ed-index a { flex: 1; align-items: center; }
.ed-lead-main { min-width: 0; }
.ed-hero {
    margin: 0; min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    background: var(--hero-fallback);
}
.ed-hero-content { padding: 28px 30px; gap: 10px; max-width: 520px; }
.ed-hero-content h1 { font-size: 34px; line-height: 1.14; }
.ed-hero .hero-description { font-size: 15px; color: rgba(255, 255, 255, .8); }
.ed-hero-link {
    display: inline-block; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px;
}
.ed-hero-link:hover { color: #fff; border-color: #fff; }
.ed-hero-plain { display: flex; align-items: flex-end; background: var(--bg-soft); }
.ed-hero-plain .ed-hero-content { color: var(--text); }
.ed-hero-plain .ed-hero-content h1 { color: var(--text); }
.ed-hero-plain .hero-description { color: var(--muted); }

.ed-search {
    display: flex; align-items: stretch; gap: 0;
    margin: 18px 0 0; padding: 0 0 0 12px;
    border: 1px solid var(--text);
}
.ed-search input {
    flex: 1; min-width: 0; border: 0; background: transparent;
    padding: 10px 0; font: inherit; font-size: 15px; color: var(--text);
}
.ed-search input:focus { outline: none; }
.ed-search button {
    border: 0; border-left: 1px solid var(--text); background: transparent; cursor: pointer;
    font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent); padding: 10px 16px;
}
.ed-search button:hover { color: var(--text); }

.ed-lead-side {
    min-width: 0;
    display: flex; flex-direction: column;
    align-self: stretch;
}
.ed-side-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding-bottom: 8px; border-bottom: 3px double var(--text);
}
.ed-side-head h2 {
    margin: 0; font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
    font-family: var(--font-body); font-weight: 700;
}
.ed-side-head a { font-size: 11px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.ed-side-list { list-style: none; margin: 0; padding: 0; }
.ed-side-list li { border-bottom: 1px solid var(--line-soft); }
.ed-side-list a {
    display: grid; grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px; align-items: baseline; padding: 11px 0;
}
.ed-side-no {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px; color: var(--accent); line-height: 1;
}
.ed-side-name {
    font-size: 14px; font-weight: 600; line-height: 1.3;
    display: flex; flex-direction: column; gap: 3px;
}
.ed-side-name em {
    font-style: normal; font-size: 11px; font-weight: 400;
    letter-spacing: .04em; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-side-list a:hover .ed-side-name { color: var(--accent); }
.ed-side-foot {
    margin: 10px 0 0; font-size: 10.5px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
}

/* ---------- 区块：栏题 + 内容 ---------- */
.ed-band { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.ed-band-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 16px;
}
.ed-band-head h2 {
    margin: 0; font-size: 22px; font-weight: 700;
    letter-spacing: -.01em;
}
.ed-band-head h2::before {
    content: ""; display: inline-block;
    width: 8px; height: 8px; margin-right: 10px;
    background: var(--accent); vertical-align: 2px;
}
.ed-band-head a {
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
}
.ed-band-head a:hover { color: var(--text); }

/* 三栏短讯 */
.ed-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }

/* 目录（两栏） */
.ed-directory {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
}

/* 目录条目 */
.ed-entry {
    display: grid; grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
.ed-trio .ed-entry { grid-template-columns: 54px minmax(0, 1fr); }
.ed-trio .ed-entry-price { grid-column: 2; justify-self: start; }
.ed-entry-art {
    width: 54px; height: 54px; overflow: hidden;
    background: var(--bg-soft); display: block;
}
.ed-entry-art img { width: 100%; height: 100%; object-fit: cover; }
.ed-entry-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; font-size: 18px; font-weight: 700; color: var(--muted);
}
.ed-entry-body { min-width: 0; }
.ed-entry-body h3 {
    margin: 0 0 3px; font-size: 15px; font-weight: 600; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-entry-body h3 a:hover { color: var(--accent); }
.ed-entry-meta {
    margin: 0; display: flex; gap: 10px; flex-wrap: wrap;
    font-size: 11.5px; letter-spacing: .02em; color: var(--muted);
}
.ed-entry-price {
    font-size: 12.5px; font-weight: 600; color: var(--text);
    white-space: nowrap; font-variant-numeric: tabular-nums;
}
.ed-entry-price.is-free { color: var(--accent); }

/* ---------- 双栏索引：年份 / 厂商（点线） ---------- */
.ed-cols {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    padding: 28px 0 12px;
    border-top: 3px double var(--text);
    margin-top: 8px;
}
.ed-col-title {
    margin: 0 0 12px; font-size: 13px; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
}
.ed-index { list-style: none; margin: 0; padding: 0; }
.ed-index li { border-bottom: 1px dotted var(--line); }
.ed-index a {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: baseline; gap: 8px; padding: 6px 0;
    font-size: 13px;
}
.ed-index-label {
    max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ed-index-dots { border-bottom: 1px dotted var(--line-soft); transform: translateY(-2px); }
.ed-index-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.ed-index a:hover .ed-index-label { color: var(--accent); }

/* ---------- 页脚 ---------- */
.ed-foot { padding: 0 var(--gutter) 56px; }
.ed-foot-rule {
    max-width: var(--max-width); margin: 0 auto;
    border-top: 3px double var(--text);
}
.ed-foot-grid {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.2fr;
    gap: 32px; padding-top: 22px;
}
.ed-foot-brand p {
    margin: 8px 0 0; font-size: 12px; color: var(--muted); max-width: 34ch;
}
.ed-foot-name {
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    letter-spacing: -.02em;
}
.ed-foot-col { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.ed-foot-title {
    font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 2px;
}
.ed-foot-col a { color: var(--text-soft); }
.ed-foot-col a:hover { color: var(--accent); }
.ed-foot-note { color: var(--muted); line-height: 1.5; }

/* ---------- 内页适配：杂志化（目录式、无卡片感） ---------- */
.skin-editorial .section { padding: 26px 0; }
.skin-editorial .section-heading {
    align-items: baseline; padding-bottom: 10px;
    border-bottom: 3px double var(--text); margin-bottom: 16px;
}
.skin-editorial .section-heading h1,
.skin-editorial .section-heading h2 {
    font-size: 24px; letter-spacing: -.01em;
}
.skin-editorial .section-kicker {
    font-size: 10.5px; letter-spacing: .2em; color: var(--accent);
}
.skin-editorial .game-grid,
.skin-editorial .rank-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0 34px;
}
.skin-editorial .game-card,
.skin-editorial .rank-item .game-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px; padding: 12px 0;
    background: transparent; border: 0; border-bottom: 1px solid var(--line-soft);
}
.skin-editorial .game-card:hover {
    background: transparent; box-shadow: none; border-color: var(--text); transform: none;
}
.skin-editorial .game-card-icon,
.skin-editorial .rank-item .game-card-icon {
    width: 46px; border-radius: 0;
    box-shadow: inset 0 0 0 1px var(--line-soft);
}
.skin-editorial .game-card-body { gap: 4px; }
.skin-editorial .game-card-title { font-size: 14.5px; min-height: 0; -webkit-line-clamp: 1; }
.skin-editorial .game-card-price {
    background: transparent; border: 0; padding: 0; font-size: 12px;
}
.skin-editorial .game-card-price.is-free { background: transparent; color: var(--accent); }
.skin-editorial .game-card-badge {
    left: auto; right: -2px; bottom: -2px;
    border-radius: 0; background: var(--accent);
}
.skin-editorial .rank-item { padding-left: 0; }
.skin-editorial .rank-no {
    top: 8px; left: 8px; transform: none;
    font-size: 24px; color: var(--bg);
    -webkit-text-stroke: 0; text-shadow: 0 0 6px rgba(255, 255, 255, .9);
}
.skin-editorial .filter-bar { border-radius: 0; border-color: var(--line); }
.skin-editorial .content-page,
.skin-editorial .auth-card { border-radius: 0; border-color: var(--line); }
.skin-editorial .chip,
.skin-editorial .filter-option,
.skin-editorial .pager-link,
.skin-editorial .year-chip,
.skin-editorial .month-chip,
.skin-editorial .search-box,
.skin-editorial .game-card-price { border-radius: 0; }
.skin-editorial .detail-hero { border-radius: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .ed-lead { grid-template-columns: 1fr; gap: 24px; }
    .ed-lead-side { border-top: 1px solid var(--line-soft); padding-top: 18px; }
    .ed-hero-content h1 { font-size: 28px; }
    .ed-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .ed-masthead { border-bottom-width: 2px; }
    .ed-mast-meta { grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0 8px; }
    .ed-mast-name { grid-column: 1 / -1; grid-row: 2; font-size: 32px; text-align: left; }
    .ed-mast-edition { display: none; }
    .ed-nav { flex-wrap: wrap; justify-content: space-between; padding: 8px 0 10px; }
    .ed-nav .nav-toggle { display: inline-block; order: 2; }
    .ed-nav .nav-links {
        order: 4; flex-basis: 100%;
        position: absolute; z-index: 2;
        top: calc(100% + 4px); left: 10px; right: 10px;
        background: var(--panel); border: 1px solid var(--line);
        padding: 8px 12px; flex-direction: column; gap: 0;
        box-shadow: none;
    }
    .ed-nav .nav-links a {
        padding: 11px 0; border-top: 1px solid var(--line-soft);
        font-size: 13px; letter-spacing: .1em;
    }
    .ed-nav .nav-links a:first-child { border-top: 0; }
    .ed-nav { position: relative; }
    .ed-nav::after {
        content: ''; position: absolute; z-index: 1;
        top: 100%; left: 0; right: 0; height: 100vh;
        background: rgba(22, 19, 15, .35);
        opacity: 0; pointer-events: none; transition: opacity .18s ease;
    }
    .ed-nav.is-open::after { opacity: 1; pointer-events: auto; }

    .ed-lead { padding: 18px 0 16px; }
    .ed-hero { aspect-ratio: 4 / 3; }
    .ed-hero-content { padding: 16px 18px; }
    .ed-hero-content h1 { font-size: 22px; }
    .ed-hero .hero-description { font-size: 13px; }
    .ed-trio { grid-template-columns: 1fr; gap: 0; }
    .ed-directory { grid-template-columns: 1fr; }
    .ed-cols { grid-template-columns: 1fr; gap: 24px; }
    .ed-band { padding: 20px 0; }
    .ed-band-head h2 { font-size: 18px; }
    .ed-entry { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; }
    .ed-entry-art { width: 46px; height: 46px; }
    .ed-foot-grid { grid-template-columns: 1fr; gap: 22px; }
    .skin-editorial .game-grid,
    .skin-editorial .rank-list { grid-template-columns: 1fr; }
}
