@charset "UTF-8";
/* ACG Cafe：内容优先的深色门户。所有图片、标题和页面变体由数据驱动。 */
.artwork-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.artwork-image.artwork-contain { object-fit: contain; background: var(--night); }
.artwork-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100px; overflow: hidden; background: var(--panel-raised); color: var(--muted); font-size: clamp(16px,3vw,32px); line-height: 1.2; font-weight: 650; letter-spacing: .08em; }
.artwork-placeholder > b { width: 28px; height: 2px; background: var(--accent); font-size: 0; margin-top: 12px; }
.cafe-hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.4fr); column-gap: 32px; row-gap: 18px; padding: 26px; margin: 26px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-media { grid-row: span 2; overflow: hidden; border-radius: 4px; min-height: 220px; }
.hero-media .artwork-image { max-height: 380px; }
.hero-copy { min-width: 0; align-self: end; }
.banner-title { font-size: clamp(26px,3vw,40px); line-height: 1.35; }
.banner-title > span { display: block; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.hero-actions { display: flex; align-items: center; align-self: start; flex-wrap: wrap; gap: 8px 24px; }
.hero-secondary { color: var(--muted); }
.cafe-hero--compact { grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 0; margin: 24px 0; border: 0; background: transparent; }
.cafe-hero--compact .hero-media { grid-row: auto; width: 64px; height: 64px; min-height: 0; border-radius: 4px; }
.cafe-hero--compact .hero-copy { align-self: center; }
.cafe-hero--compact .hero-kicker { font-size: 9px; margin-bottom: 5px; }
.cafe-hero--compact .banner-title { font-size: 24px; }
.cafe-hero--compact .banner-title > span { display: inline; }
.cafe-hero--compact .banner-title > span + span::before { content: " "; }
.cafe-hero--compact .hero-description { font-size: 12px; margin-top: 6px; max-width: 66ch; white-space: normal; }
.cafe-hero--compact .hero-actions { align-self: center; flex-direction: column; align-items: start; gap: 0; }
.cafe-hero--compact .hero-actions a { min-height: 36px; }

/* 同一个文章组件的标准、主推、次级、横向展示。 */
.story-card { min-width: 0; display: flex; flex-direction: column; }
.story-image { display: block; position: relative; aspect-ratio: 16/10; background: var(--panel-raised); overflow: hidden; border-radius: 5px; }
.story-image img { width: 100%; height: 100%; transition: transform .25s; }
.story-card:hover .story-image img { transform: scale(1.025); }
.story-content { display: flex; flex-direction: column; min-width: 0; flex: 1; padding-top: 16px; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.story-kind { color: var(--accent-hover); font-weight: 600; }
.story-meta time { font-variant-numeric: tabular-nums; }
.story-content h3 { margin: 10px 0 9px; font-size: 19px; line-height: 1.5; }
.story-content h3 a:hover { color: var(--accent-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-summary { color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 12px; overflow-wrap: anywhere; }
.story-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.story-credit { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.story-card--standard { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.spotlight-grid { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: 16px; }
.spotlight-single { grid-template-columns: 1fr; }
.side-stories { display: grid; gap: 16px; }
.story-card--feature, .story-card--supporting { display: grid; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); isolation: isolate; }
.story-card--feature { min-height: 470px; }
.story-card--supporting { min-height: 225px; }
.story-card--feature .story-image, .story-card--supporting .story-image { grid-area: 1/1; aspect-ratio: auto; min-height: 0; height: 100%; border-radius: 0; }
.story-card--feature .story-image > *, .story-card--supporting .story-image > * { position: absolute; inset: 0; }
.story-card--feature .story-content, .story-card--supporting .story-content { grid-area: 1/1; z-index: 1; align-self: end; padding: 65px 28px 18px; background: linear-gradient(0deg,var(--overlay-strong) 0%,var(--overlay-mid) 58%,var(--overlay-clear) 100%); pointer-events: none; }
.story-card--feature .story-content a, .story-card--feature .story-content button, .story-card--supporting .story-content a, .story-card--supporting .story-content button { pointer-events: auto; }
.story-card--feature .story-content h3 { font-size: clamp(23px,2.3vw,33px); margin-block: 10px; line-height: 1.4; max-width: 28em; }
.story-card--feature .story-meta, .story-card--feature .story-summary, .story-card--feature .story-credit, .story-card--supporting .story-meta, .story-card--supporting .story-credit { color: var(--overlay-ink); }
.story-card--feature .story-kind, .story-card--supporting .story-kind { background: var(--kind-badge-bg); color: var(--kind-badge-ink); padding: 3px 6px; border-radius: 3px; }
.story-card--feature .story-summary { max-width: 64ch; }
.story-card--feature .bookmark-button, .story-card--supporting .bookmark-button { color: var(--overlay-ink); }
.story-card--feature .sample-tag, .story-card--supporting .sample-tag { color: var(--sample-tag-ink); border-color: var(--sample-tag-line); }
.story-card--supporting .story-content { padding: 42px 18px 10px; }
.story-card--supporting .story-content h3 { font-size: 18px; line-height: 1.45; margin: 8px 0 2px; }
.story-card--supporting .story-summary, .story-card--supporting .story-meta time, .story-card--supporting .editor { display: none; }
.story-list { display: grid; }
.story-card--row { display: grid; grid-template-columns: clamp(150px,18vw,232px) minmax(0,1fr); align-items: start; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.story-card--row:first-child { padding-top: 0; }
.story-card--row:last-child { border-bottom: 0; }
.story-card--row .story-image { aspect-ratio: 1.55; }
.story-card--row .story-content { padding-top: 0; }
.story-card--row .story-content h3 { font-size: 19px; margin: 7px 0 8px; }
.story-card--row .story-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: 5px; }
.story-card--row .story-credit .editor { display: none; }
.story-card--row .story-bottom { min-height: 36px; }

/* 首页、资讯列表共用信息布局。 */
.channel-tabs { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 20px 0 26px; }
.channel-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 3px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; }
.channel-tabs a:hover, .channel-tabs .active { color: var(--accent-hover); border-bottom-color: var(--accent); }
.channel-tabs .channel-more { margin-left: auto; font-size: 12px; gap: 10px; }
.portal-columns { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: start; }
.portal-columns > * { min-width: 0; }
.feed-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.feed-panel .section-heading { margin-bottom: 22px; }
.discovery-sidebar { display: grid; gap: 20px; }
.sidebar-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.sidebar-heading { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.sidebar-heading h2 { font-size: 21px; }
.sidebar-heading p:not(.eyebrow) { font-size: 12px; color: var(--muted); margin-top: 8px; }
.sidebar-panel > .text-link { margin-top: 14px; }
.tool-symbol { color: var(--accent-hover); margin: 0 0 12px; padding: 5px; width: 42px; height: 42px; background: var(--accent-soft); border-radius: 6px; }
.tool-panel > p { color: var(--muted); font-size: 13px; margin: 10px 0 20px; }
.tool-panel > .button { width: 100%; }
.tool-panel > .text-link { display: flex; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 20px; }
.save-callout { display: flex; align-items: center; gap: 14px; color: var(--muted); padding: 8px 3px; }
.save-callout svg { flex-shrink: 0; color: var(--accent-hover); }
.save-callout strong { display: block; font-size: 13px; color: var(--ink); font-weight: 550; }
.save-callout small { display: block; font-size: 11px; margin-top: 4px; }
.save-callout > span:last-child { margin-left: auto; }
.save-callout:hover strong { color: var(--accent-hover); }
.news-intro { border: 0; margin-bottom: 0; }
.filter-panel { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-group { display: flex; align-items: baseline; gap: 18px; }
.filter-group + .filter-group { margin-top: 12px; }
.filter-label { flex: 0 0 48px; font-size: 12px; color: var(--muted); }
.filter-group .category-row { margin: 0; gap: 6px; }
.filter-group .category { border-color: transparent; min-height: 38px; }
.filter-group .category.active { border-color: var(--accent); }
.listing-stories { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* 作品卡片同样复用；紧凑变体用于侧栏。 */
.worlds-section { padding-top: 28px; border-top: 1px solid var(--line); }
.worlds-section .section-heading { border: 0; padding: 0; }
.game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.game-card { position: relative; min-width: 0; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.game-art { grid-area: 1/1; position: relative; aspect-ratio: .88; overflow: hidden; }
.game-art .artwork-image { width: 100%; height: 100%; transition: transform .25s; }
.game-card:hover .artwork-image { transform: scale(1.035); }
.game-copy { grid-area: 1/1; align-self: end; position: relative; padding: 60px 18px 18px; background: linear-gradient(0deg,#10131af5,#10131aaf 65%,transparent); }
.game-kind { color: #bbd8ff; font-size: 10px; }
.game-copy h3 { margin-top: 5px; font-size: 20px; }
.game-copy p { color: #bfc5d3; font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.shelf-list { display: grid; gap: 18px; }
.game-card--compact { grid-template-columns: 64px minmax(0,1fr); gap: 14px; align-items: center; border: 0; border-radius: 0; background: transparent; }
.game-card--compact .game-art { grid-area: auto; aspect-ratio: .8; border-radius: 4px; }
.game-card--compact .game-copy { grid-area: auto; padding: 0; background: none; }
.game-card--compact .game-kind { color: var(--accent-hover); font-size: 9px; }
.game-card--compact h3 { font-size: 14px; margin-top: 3px; }
.game-card--compact p { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }

/* 文章阅读：文字行宽独立于封面，侧栏不挤压正文。 */
.article-columns { display: grid; grid-template-columns: minmax(0,1fr) var(--article-sidebar-width); gap: var(--article-column-gap); align-items: start; }
.article-reading { min-width: 0; }
.article-heading { padding: 12px 0 24px; }
.article-heading .eyebrow { display: flex; flex-wrap: wrap; gap: 8px; color: var(--accent-hover); }
.article-heading h1 { font-size: clamp(28px,3.2vw,44px); line-height: 1.4; margin-top: 15px; }
.article-deck { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 18px 0 22px; overflow-wrap: anywhere; }
.article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 11px; }
.article-byline strong { color: var(--ink); font-weight: 600; }
.article-byline .button { margin-left: auto; padding: 8px 12px; font-size: 11px; }
.article-cover-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.article-cover { width: 100%; height: auto; aspect-ratio: 16/9; }
.article-cover.artwork-placeholder { height: auto; min-height: 180px; }
.article-body { max-width: 760px; margin: 30px auto 0; padding: 0 12px; overflow-wrap: anywhere; }
.article-body > p, .rich-content { font-size: 17px; line-height: 1.95; color: var(--reading-ink); }
.article-body > p { margin: 0 0 26px; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 1.6em 0 .7em; color: var(--ink); line-height: 1.4; }
.rich-content h2 { font-size: 26px; }
.rich-content h3 { font-size: 21px; }
.rich-content p, .rich-content ul, .rich-content ol { margin: 0 0 1.5em; }
.rich-content li { margin: .45em 0; }
.rich-content ul, .rich-content ol { padding-left: 1.4em; }
.rich-content blockquote { margin: 25px 0; padding: 18px 22px; background: var(--panel); border-left: 3px solid var(--accent); color: var(--ink); }
.rich-content blockquote > :last-child { margin-bottom: 0; }
.rich-content a, .source-note a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.rich-content img { max-width: 100%; height: auto; border-radius: 4px; }
.rich-content pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; background: var(--night); border: 1px solid var(--line); font-size: 14px; }
.rich-content table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; margin: 25px 0; }
.rich-content th, .rich-content td { padding: 12px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.rich-content th { background: var(--panel-raised); }
.source-note { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 22px 0; margin: 30px 0; border-block: 1px solid var(--line); font-size: 13px; }
.editor-note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 28px 0; }
.editor-note strong { font-size: 13px; font-weight: 600; }
.editor-note p { color: var(--muted); font-size: 12px; margin-top: 7px; }
.article-sidebar { display: grid; gap: 22px; position: sticky; top: 105px; }
.related-game { display: block; }
.related-game > img, .related-game > .artwork-placeholder { aspect-ratio: 1.35; height: auto; border-radius: 4px; }
.related-game h3 { font-size: 19px; margin-top: 15px; }
.related-game > p { color: var(--muted); font-size: 12px; margin: 7px 0; overflow-wrap: anywhere; }
.reading-links { padding: 0 20px; }
.reading-links h2 { font-size: 14px; margin-bottom: 10px; }
.reading-links a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--night-line); }
.reading-links a:hover { color: var(--accent-hover); }
.side-tool { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.side-tool .tool-symbol { display: block; margin-bottom: 10px; }
.side-tool strong { display: block; font-size: 15px; margin-top: 8px; }
.side-tool p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.article-conversation { width: calc(100% - var(--article-sidebar-width) - var(--article-column-gap)); }
.component-example { margin: 35px 0; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.component-caption { font-size: 12px; color: var(--accent-hover); margin-bottom: 18px; }
.component-cards { display: grid; gap: 24px; }
.component-example .story-card { max-width: 100%; }
.component-example .story-card--row { border-bottom: 1px solid var(--line); }

@media(max-width:1100px) {
  .portal-columns { grid-template-columns: minmax(0,1fr) 270px; gap: 20px; }
  .feed-panel, .filter-panel, .listing-stories { padding: 20px; }
  .story-card--row { gap: 16px; grid-template-columns: 160px minmax(0,1fr); }
  .story-card--row .story-content h3 { font-size: 17px; }
  :root { --article-sidebar-width: 250px; --article-column-gap: 28px; }
}
@media(max-width:980px) {
  .portal-columns { grid-template-columns: 1fr; }
  .discovery-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
  .save-callout { grid-column: 1/-1; }
  .spotlight-grid { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
  .story-card--feature { min-height: 450px; }
  .story-card--feature .story-content { padding-inline: 22px; }
  .story-card--supporting .story-content { padding-inline: 15px; }
  .story-card--supporting .story-content h3 { font-size: 17px; }
  .story-card--row { grid-template-columns: 220px minmax(0,1fr); gap: 22px; }
  .story-card--row .story-content h3 { font-size: 19px; }
  .game-grid { gap: 16px; }
  .game-copy { padding-inline: 13px; }
  .game-copy h3 { font-size: 17px; }
  .article-columns { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .article-sidebar .sidebar-panel { grid-row: span 2; }
  .article-sidebar .related-game > img, .article-sidebar .related-game > .artwork-placeholder { aspect-ratio: 1.8; }
  .article-conversation { width: 100%; }
}
@media(max-width:700px) {
  .cafe-hero { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .hero-media { grid-row: auto; min-height: 0; aspect-ratio: 16/10; }
  .hero-media .artwork-image { height: 100%; max-height: none; }
  .cafe-hero--compact { grid-template-columns: 48px minmax(0,1fr); padding: 0; margin: 20px 0; gap: 12px; }
  .cafe-hero--compact .hero-media { width: 48px; height: 48px; }
  .cafe-hero--compact .banner-title { font-size: 21px; }
  .cafe-hero--compact .hero-kicker { font-size: 8px; }
  .cafe-hero--compact .hero-description { font-size: 12px; }
  .cafe-hero--compact .hero-actions { grid-column: 1/-1; flex-direction: row; gap: 10px 24px; }
  .cafe-hero--compact .hero-actions a { min-height: 36px; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .story-card--feature { min-height: 370px; }
  .story-card--feature .story-content { padding: 65px 20px 14px; }
  .story-card--feature .story-content h3 { font-size: 24px; }
  .side-stories { grid-template-columns: 1fr 1fr; gap: 12px; }
  .story-card--supporting { min-height: 220px; }
  .story-card--supporting .story-content { padding: 48px 13px 6px; }
  .story-card--supporting .story-content h3 { font-size: 16px; }
  .story-card--supporting .sample-tag { display: none; }
  .channel-tabs { gap: 0 20px; margin: 17px 0 22px; }
  .channel-tabs a { min-height: 46px; font-size: 13px; }
  .channel-tabs .channel-more { display: none; }
  .feed-panel, .listing-stories, .filter-panel { padding: 18px; }
  .story-card--row { grid-template-columns: 145px minmax(0,1fr); gap: 16px; padding-block: 20px; }
  .story-card--row .story-content h3 { font-size: 17px; }
  .story-card--row .story-meta { font-size: 9px; gap: 4px 8px; }
  .story-card--row .story-meta time { display: none; }
  .story-card--row .story-image { aspect-ratio: 1.15; }
  .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .game-copy h3 { font-size: 18px; }
  .game-copy p { font-size: 10px; }
  .filter-group { gap: 6px; }
  .filter-label { flex-basis: 36px; font-size: 11px; }
  .filter-group .category { padding-inline: 9px; font-size: 11px; }
  .article-heading { padding-top: 4px; }
  .article-heading h1 { font-size: 29px; line-height: 1.45; }
  .article-deck { font-size: 15px; margin: 16px 0 20px; }
  .article-byline { gap: 8px 10px; }
  .article-byline .button { margin: 8px 0 0; width: 100%; }
  .article-body { padding: 0 3px; margin-top: 24px; }
  .article-body > p, .rich-content { font-size: 16px; line-height: 1.95; }
  .rich-content h2 { font-size: 23px; }
  .rich-content th, .rich-content td { padding: 8px; }
  .article-sidebar { gap: 18px; }
}
@media(max-width:540px) {
  .discovery-sidebar { grid-template-columns: 1fr; }
  .story-card--row { grid-template-columns: 100px minmax(0,1fr); gap: 14px; }
  .story-card--row .story-content h3 { font-size: 15px; line-height: 1.6; margin-block: 6px; }
  .story-card--row .story-summary { display: none; }
  .story-card--row .story-credit { gap: 4px; font-size: 9px; }
  .story-card--row .story-credit .sample-tag { display: none; }
  .story-card--row .story-image { aspect-ratio: .92; }
  .story-card--row .story-bottom { gap: 2px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card--standard .story-image { aspect-ratio: 1.6; }
  .story-card--supporting .story-meta > span:nth-child(2) { display: none; }
  .story-card--supporting .story-credit { font-size: 9px; gap: 2px; }
  .story-card--supporting .bookmark-button { width: 44px; }
  .story-card--supporting .story-bottom { gap: 2px; }
  .story-card--supporting .story-content h3 { font-size: 14px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .article-sidebar .sidebar-panel { grid-row: auto; }
  .article-sidebar .related-game > img, .article-sidebar .related-game > .artwork-placeholder { aspect-ratio: 2; }
  .reading-links { padding-inline: 5px; }
}
@media(max-width:360px) {
  .feed-panel, .listing-stories, .filter-panel { padding: 14px; }
  .story-card--row { grid-template-columns: 85px minmax(0,1fr); gap: 11px; }
  .side-stories { grid-template-columns: 1fr; }
  .story-card--supporting { min-height: 210px; }
  .story-card--supporting .story-content h3 { font-size: 18px; }
  .filter-group { display: block; }
  .filter-label { display: block; margin-bottom: 8px; }
  .channel-tabs { gap: 0 15px; }
}
