﻿/* steam 蒸汽朋克 */
:root {
  --st-brass: #b08d57; --st-copper: #8b5a2b; --st-walnut: #3a2817;
  --st-bg: #1a1a1a; --st-bg-2: #2a2218; --st-paper: #e8d9b5;
  --st-cream: #f0e4c8; --st-ink: #1a1410; --st-mute: rgba(232,217,181,0.55);
  --st-rivet: #6b5a3a; --st-red: #a8332a; --st-green: #5a7d65;
  --st-serif: "Playfair Display", "Noto Serif SC", "Songti SC", Georgia, serif;
  --st-sans: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --st-mono: "Courier New", "IBM Plex Mono", monospace;
  --st-trans: 0.3s ease;
  --st-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { font-family: var(--st-serif); background: var(--st-bg); background-image: radial-gradient(ellipse at 20% 20%, rgba(176,141,87,0.08), transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(139,90,43,0.06), transparent 50%); color: var(--st-paper); line-height: 1.75; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: var(--st-trans); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
body { scrollbar-width: none; -ms-overflow-style: none; }
body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.st-header { background: var(--st-bg-2); position: sticky; top: 0; z-index: 100; }
.st-header-bar { display: none; }
.st-nav-search-item a { padding: 12px 14px; }
.st-nav-search-item svg { width: 18px; height: 18px; vertical-align: middle; }
.st-nav-search-item a:hover { color: var(--st-brass); background: var(--st-bg-2); }
.st-burger { display: none; width: 36px; height: 36px; border: 1px solid var(--st-brass); background: transparent; color: var(--st-brass); font-size: 18px; line-height: 1; padding: 0; flex-shrink: 0; }
.st-burger:hover { background: var(--st-brass); color: var(--st-bg); }
.st-mob-search { width: 36px; height: 36px; display: none; align-items: center; justify-content: center; color: var(--st-brass); border: 1px solid var(--st-brass); flex-shrink: 0; }
.st-mob-search svg { width: 18px; height: 18px; }
.st-mob-search:hover { background: var(--st-brass); color: var(--st-bg); }
.st-nav-rivet { display: none; }
.st-masthead { padding: 12px 0; }
.st-masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-logo { font-family: var(--st-serif); font-size: 38px; font-weight: 900; color: var(--st-brass); letter-spacing: 1px; flex: 1; text-align: center; }
.st-motto { display: block; font-family: var(--st-mono); font-size: 12px; color: var(--st-mute); letter-spacing: 6px; margin-top: 6px; text-align: center; }
.st-nav { background: var(--st-bg); position: relative; }
.st-nav .container { display: flex; align-items: center; justify-content: space-between; }
.st-nav-list { display: flex; list-style: none; gap: 0; flex-wrap: wrap; }
.st-nav-link { display: block; padding: 12px 18px; font-family: var(--st-serif); font-size: 15px; font-weight: 700; color: var(--st-paper); letter-spacing: 1px; position: relative; }
.st-nav-link:hover, .st-nav-link.active { color: var(--st-brass); background: var(--st-bg-2); }
.st-nav-link::before { content: '⚙'; margin-right: 6px; color: var(--st-copper); font-size: 11px; }
.st-nav-rivet { width: 8px; height: 8px; background: var(--st-copper); border-radius: 50%; align-self: center; box-shadow: inset 0 -1px 1px rgba(0,0,0,0.5); }
/* burger / mob-search styles moved above */

/* Mobile drawer */
.st-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.st-overlay.active { opacity: 1; pointer-events: all; }
.st-drawer { position: fixed; top: 0; left: 0; width: 280px; max-width: 80vw; height: 100%; background: var(--st-bg-2); z-index: 210; transform: translateX(-100%); transition: transform 0.3s; display: flex; flex-direction: column; border-right: 3px double var(--st-brass); }
.st-drawer.active { transform: translateX(0); }
.st-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--st-brass); }
.st-drawer-logo { font-family: var(--st-serif); font-size: 18px; font-weight: 700; color: var(--st-brass); }
.st-drawer-close { width: 36px; height: 36px; font-size: 22px; color: var(--st-brass); border: 1px solid var(--st-brass); background: var(--st-bg); }
.st-drawer-close:hover { background: var(--st-brass); color: var(--st-bg); }
.st-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.st-drawer-link { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-family: var(--st-serif); font-size: 15px; color: var(--st-paper); border-bottom: 1px solid rgba(176,141,87,0.2); }
.st-drawer-link:hover { background: var(--st-bg); color: var(--st-brass); }
.st-drawer-link.active { background: var(--st-brass); color: var(--st-bg); }
.st-drawer-num { font-family: var(--st-mono); font-size: 12px; color: var(--st-copper); font-weight: 700; }
.st-drawer-link.active .st-drawer-num { color: var(--st-bg); }
.st-drawer-text { flex: 1; }
.st-drawer-foot { padding: 16px; border-top: 1px solid var(--st-brass); display: flex; flex-direction: column; gap: 8px; }
.st-drawer-btn { display: block; text-align: center; padding: 10px; background: var(--st-brass); color: var(--st-bg); font-family: var(--st-serif); font-size: 14px; font-weight: 700; }
.st-drawer-btn:hover { background: var(--st-copper); color: var(--st-paper); }

/* Section common */
.st-section-title { font-family: var(--st-serif); font-size: 30px; font-weight: 900; text-align: center; margin-bottom: 28px; color: var(--st-brass); padding-bottom: 14px; border-bottom: 1px solid var(--st-copper); position: relative; }
.st-section-title em { font-style: italic; color: var(--st-copper); font-size: 18px; font-weight: 400; }
.st-section-title::after { content: '⚙ ⚙ ⚙'; display: block; font-size: 12px; color: var(--st-copper); letter-spacing: 8px; margin-top: 8px; }
.st-gear-icon { color: var(--st-copper); margin-right: 8px; }

/* 1. 蒸汽 Hero */
.st-hero { position: relative; padding: 24px 0 56px; background: linear-gradient(180deg, var(--st-bg) 0%, var(--st-bg-2) 100%); }
.st-hero-steam { position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 20%, rgba(232,217,181,0.06) 0%, transparent 30%), radial-gradient(circle at 70% 60%, rgba(232,217,181,0.04) 0%, transparent 30%); pointer-events: none; }
.st-hero-frame { position: relative; background: var(--st-bg-2); border: 3px solid var(--st-brass); padding: 32px; box-shadow: var(--st-shadow), inset 0 0 0 1px var(--st-copper); }
.st-hero-rivets { position: absolute; inset: 0; pointer-events: none; }
.st-rivet { position: absolute; width: 12px; height: 12px; background: radial-gradient(circle at 30% 30%, var(--st-brass) 0%, var(--st-copper) 70%, var(--st-walnut) 100%); border-radius: 50%; box-shadow: inset 0 -1px 2px rgba(0,0,0,0.5), 0 1px 1px rgba(232,217,181,0.2); }
.st-rivet:nth-child(1) { top: 8px; left: 8px; }
.st-rivet:nth-child(2) { top: 8px; right: 8px; }
.st-rivet:nth-child(3) { bottom: 8px; left: 8px; }
.st-rivet:nth-child(4) { bottom: 8px; right: 8px; }
.st-rivet:nth-child(5) { top: 8px; left: 50%; transform: translateX(-50%); }
.st-rivet:nth-child(6) { bottom: 8px; left: 50%; transform: translateX(-50%); }
.st-rivet:nth-child(7) { top: 50%; left: 8px; transform: translateY(-50%); }
.st-rivet:nth-child(8) { top: 50%; right: 8px; transform: translateY(-50%); }
.st-hero-track { position: relative; }
.st-hero-slide { display: none; }
.st-hero-slide.active { display: block; }
.st-hero-card { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.st-hero-pipe { grid-column: 1 / -1; height: 4px; background: linear-gradient(90deg, transparent, var(--st-copper) 20%, var(--st-brass) 50%, var(--st-copper) 80%, transparent); margin-bottom: 8px; }
.st-hero-img { position: relative; }
.st-hero-img img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 4px solid var(--st-brass); box-shadow: var(--st-shadow); }
.st-hero-info { padding: 8px 0; }
.st-hero-badge { display: inline-block; padding: 4px 12px; background: var(--st-brass); color: var(--st-bg); font-family: var(--st-mono); font-size: 12px; font-weight: 800; letter-spacing: 2px; margin-bottom: 12px; }
.st-hero-title { font-family: var(--st-serif); font-size: 38px; font-weight: 900; line-height: 1.15; margin-bottom: 8px; color: var(--st-paper); }
.st-hero-title a:hover { color: var(--st-brass); }
.st-hero-byline { font-family: var(--st-mono); font-size: 13px; color: var(--st-copper); margin-bottom: 12px; letter-spacing: 1px; }
.st-hero-quote { font-family: var(--st-serif); font-style: italic; font-size: 15px; line-height: 1.7; color: var(--st-cream); padding: 12px 16px; border-left: 3px solid var(--st-brass); background: rgba(176,141,87,0.06); margin-bottom: 18px; }
.st-hero-btn { display: inline-block; padding: 12px 32px; background: var(--st-brass); color: var(--st-bg); font-family: var(--st-serif); font-size: 16px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; box-shadow: 4px 4px 0 var(--st-copper); }
.st-hero-btn:hover { background: var(--st-copper); color: var(--st-paper); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--st-copper); }
.st-hero-dots { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
.st-hero-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--st-copper); cursor: pointer; transition: var(--st-trans); }
.st-hero-dot.active { background: var(--st-brass); transform: scale(1.3); box-shadow: 0 0 8px var(--st-brass); }

/* 2. 齿轮榜单 */
.st-rank { padding: 48px 0; background: var(--st-bg-2); border-top: 1px solid var(--st-copper); border-bottom: 1px solid var(--st-copper); }
.st-rank-list { list-style: none; columns: 2; column-gap: 40px; }
.st-rank-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--st-copper); break-inside: avoid; }
.st-rank-num { font-family: var(--st-mono); font-size: 28px; font-weight: 800; color: var(--st-copper); min-width: 50px; letter-spacing: 1px; }
.st-rank-item:nth-child(-n+3) .st-rank-num { color: var(--st-brass); text-shadow: 0 0 10px rgba(176,141,87,0.5); }
.st-rank-item img { width: 50px; height: 75px; object-fit: cover; border: 2px solid var(--st-brass); }
.st-rank-body { flex: 1; min-width: 0; }
.st-rank-body h3 { font-family: var(--st-serif); font-size: 16px; font-weight: 700; }
.st-rank-body h3 a:hover { color: var(--st-brass); }
.st-rank-body p { font-family: var(--st-mono); font-size: 12px; color: var(--st-mute); }
.st-rank-gear { color: var(--st-copper); font-size: 20px; }

/* 3. 铜制邮报 */
.st-bulletin { padding: 48px 0; }
.st-bulletin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.st-bulletin-card { display: flex; gap: 20px; background: var(--st-bg-2); border: 2px solid var(--st-copper); padding: 20px; box-shadow: var(--st-shadow); position: relative; }
.st-bulletin-card::before { content: ''; position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; background: radial-gradient(circle, var(--st-brass) 30%, var(--st-copper) 70%); border-radius: 50%; box-shadow: inset 0 -1px 2px rgba(0,0,0,0.5); }
.st-bulletin-card:hover { border-color: var(--st-brass); box-shadow: 6px 6px 0 var(--st-copper); }
.st-bulletin-img { flex-shrink: 0; width: 120px; }
.st-bulletin-img img { width: 120px; height: 180px; object-fit: cover; border: 3px solid var(--st-brass); }
.st-bulletin-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-bulletin-tag { display: inline-block; font-family: var(--st-mono); font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--st-brass); margin-bottom: 6px; }
.st-bulletin-body h3 { font-family: var(--st-serif); font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.st-bulletin-body h3 a:hover { color: var(--st-brass); }
.st-bulletin-from { font-family: var(--st-mono); font-size: 12px; color: var(--st-copper); margin-bottom: 8px; font-style: italic; }
.st-bulletin-text { font-size: 14px; line-height: 1.6; color: var(--st-cream); }

/* 4. 管道连载 */
.st-pipes { padding: 48px 0; background: linear-gradient(180deg, var(--st-bg-2) 0%, var(--st-bg) 100%); border-top: 1px solid var(--st-copper); }
.st-pipes-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.st-pipes-strip::-webkit-scrollbar { height: 6px; }
.st-pipes-strip::-webkit-scrollbar-thumb { background: var(--st-copper); }
.st-pipe-card { flex-shrink: 0; width: 180px; background: var(--st-bg-2); border: 2px solid var(--st-copper); padding: 10px; display: block; position: relative; box-shadow: var(--st-shadow); }
.st-pipe-card:hover { border-color: var(--st-brass); transform: translateY(-4px); }
.st-pipe-no { display: block; font-family: var(--st-mono); font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--st-brass); margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--st-copper); }
.st-pipe-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; margin-bottom: 8px; border: 2px solid var(--st-brass); }
.st-pipe-card h4 { font-family: var(--st-serif); font-size: 14px; font-weight: 700; margin-bottom: 2px; line-height: 1.2; }
.st-pipe-card p { font-family: var(--st-mono); font-size: 11px; color: var(--st-mute); margin-bottom: 6px; }
.st-pipe-tag { display: inline-block; font-family: var(--st-mono); font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 8px; background: var(--st-brass); color: var(--st-bg); }

/* 5. 新机上线 */
.st-new { padding: 48px 0; background: var(--st-bg-2); border-top: 1px solid var(--st-copper); }
.st-new-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.st-new-card { display: block; background: var(--st-bg); border: 1px solid var(--st-copper); padding: 10px; box-shadow: var(--st-shadow); transition: var(--st-trans); }
.st-new-card:hover { border-color: var(--st-brass); transform: translateY(-3px); box-shadow: 6px 6px 0 rgba(0,0,0,0.4); }
.st-new-img { overflow: hidden; margin-bottom: 8px; }
.st-new-img img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 2px solid var(--st-brass); }
.st-new-body { padding: 4px; }
.st-new-date { display: inline-block; font-family: var(--st-mono); font-size: 10px; font-weight: 800; color: var(--st-brass); letter-spacing: 1px; }
.st-new-body h4 { font-family: var(--st-serif); font-size: 13px; font-weight: 700; margin: 2px 0; line-height: 1.2; }
.st-new-body p { font-family: var(--st-mono); font-size: 11px; color: var(--st-mute); }

/* 6. 机柜书架 */
.st-shelf { padding: 48px 0; }
.st-shelf-block { margin-bottom: 32px; }
.st-shelf-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 10px 16px; background: var(--st-bg-2); border: 2px solid var(--st-brass); box-shadow: var(--st-shadow); }
.st-shelf-tag { display: inline-block; padding: 6px 16px; background: var(--st-brass); color: var(--st-bg); font-family: var(--st-serif); font-size: 18px; font-weight: 900; }
.st-shelf-more { font-family: var(--st-mono); font-size: 13px; color: var(--st-brass); font-weight: 700; letter-spacing: 1px; }
.st-shelf-more:hover { color: var(--st-paper); }
.st-shelf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.st-shelf-item { display: block; background: var(--st-bg-2); border: 1px solid var(--st-copper); padding: 8px; transition: var(--st-trans); }
.st-shelf-item:hover { border-color: var(--st-brass); background: var(--st-bg); }
.st-shelf-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; margin-bottom: 6px; border: 2px solid var(--st-copper); }
.st-shelf-item h5 { font-family: var(--st-serif); font-size: 13px; font-weight: 700; }
.st-shelf-item p { font-family: var(--st-mono); font-size: 11px; color: var(--st-mute); }

/* Footer */
.st-footer { background: var(--st-bg-2); border-top: 3px double var(--st-brass); padding: 48px 0 24px; margin-top: 40px; }
.st-footer-medal { text-align: center; font-family: var(--st-serif); font-size: 22px; color: var(--st-brass); letter-spacing: 8px; margin-bottom: 28px; }
.st-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--st-copper); }
.st-footer-col h4 { font-family: var(--st-serif); font-size: 18px; color: var(--st-brass); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--st-copper); }
.st-footer-col p { font-size: 13px; line-height: 1.7; color: var(--st-mute); }
.st-footer-col a { display: block; font-size: 13px; color: var(--st-mute); padding: 4px 0; font-family: var(--st-mono); }
.st-footer-col a:hover { color: var(--st-brass); padding-left: 4px; }
.st-footer-bot { padding-top: 20px; }
.st-friendlink { margin-bottom: 14px; font-size: 12px; }
.st-friendlink span { color: var(--st-brass); font-family: var(--st-mono); margin-right: 8px; }
.st-friendlink a { display: inline-block; color: var(--st-mute); margin-right: 12px; }
.st-friendlink a:hover { color: var(--st-brass); }
.st-copyright { font-family: var(--st-mono); font-size: 12px; color: var(--st-mute); text-align: center; line-height: 1.8; }
.st-copyright a { color: var(--st-mute); }
.st-copyright a:hover { color: var(--st-brass); }

/* Crumb */
.st-crumb { font-family: var(--st-mono); font-size: 13px; color: var(--st-mute); margin-bottom: 20px; padding: 12px 0; border-bottom: 1px dashed var(--st-copper); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-crumb a { color: var(--st-brass); font-weight: 700; }
.st-crumb a:hover { color: var(--st-paper); }
.st-crumb span { color: var(--st-mute); }

/* Detail */
.st-page { padding: 20px 24px 40px; max-width: 1080px; }
.st-detail { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 24px; padding: 32px; background: var(--st-bg-2); border: 3px solid var(--st-brass); box-shadow: var(--st-shadow); position: relative; }
.st-detail::before, .st-detail::after { content: '⚙'; position: absolute; font-size: 18px; color: var(--st-copper); }
.st-detail::before { top: 8px; left: 8px; }
.st-detail::after { top: 8px; right: 8px; }
.st-detail-img img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 4px solid var(--st-brass); }
.st-detail-title { font-family: var(--st-serif); font-size: 36px; font-weight: 900; margin-bottom: 14px; line-height: 1.2; color: var(--st-paper); }
.st-detail-meta { font-family: var(--st-mono); font-size: 13px; color: var(--st-mute); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--st-copper); }
.st-detail-meta strong { color: var(--st-brass); }
.st-detail-meta a { color: var(--st-brass); font-weight: 700; }
.st-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.st-tag { font-family: var(--st-mono); font-size: 12px; padding: 3px 10px; background: var(--st-copper); color: var(--st-paper); }
.st-detail-desc { font-size: 15px; line-height: 1.8; color: var(--st-cream); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-detail-btn { display: inline-block; padding: 12px 32px; background: var(--st-brass); color: var(--st-bg); font-family: var(--st-serif); font-size: 16px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; box-shadow: 4px 4px 0 var(--st-copper); }
.st-detail-btn:hover { background: var(--st-copper); color: var(--st-paper); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--st-copper); }
.st-bar { background: var(--st-ink); border-left: 4px solid var(--st-brass); padding: 14px 20px; margin-bottom: 24px; font-family: var(--st-mono); }
.st-bar span { color: var(--st-brass); font-weight: 800; margin-right: 8px; }
.st-bar a:hover { color: var(--st-brass); text-decoration: underline; }
.st-card { background: var(--st-bg-2); border: 2px solid var(--st-copper); padding: 28px; margin-bottom: 20px; box-shadow: var(--st-shadow); }
.st-card-title { font-family: var(--st-serif); font-size: 24px; font-weight: 900; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--st-brass); color: var(--st-brass); }
.st-excerpt { font-size: 16px; line-height: 1.9; color: var(--st-cream); }
.st-excerpt.collapsed { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.st-excerpt-btn { margin-top: 14px; text-align: center; }
.st-excerpt-btn button { font-family: var(--st-mono); padding: 8px 24px; border: 1px solid var(--st-brass); background: var(--st-bg); font-size: 13px; color: var(--st-brass); letter-spacing: 1px; }
.st-excerpt-btn button:hover { background: var(--st-brass); color: var(--st-bg); }
.st-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; }
.st-catalog a { display: block; padding: 10px 14px; border-bottom: 1px dashed var(--st-copper); font-size: 14px; }
.st-catalog a:hover { background: var(--st-bg); color: var(--st-brass); padding-left: 22px; }
.st-catalog-more { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--st-copper); }
.st-card-btn { display: inline-block; padding: 12px 32px; background: var(--st-brass); color: var(--st-bg); font-family: var(--st-serif); font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.st-card-btn:hover { background: var(--st-copper); }
.st-related { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.st-related a { display: block; background: var(--st-bg); border: 1px solid var(--st-copper); padding: 8px; transition: var(--st-trans); }
.st-related a:hover { border-color: var(--st-brass); transform: translateY(-3px); }
.st-related img { width: 100%; aspect-ratio: 2/3; object-fit: cover; margin-bottom: 6px; border: 2px solid var(--st-copper); }
.st-related h4 { font-family: var(--st-serif); font-size: 13px; font-weight: 700; }
.st-related p { font-family: var(--st-mono); font-size: 11px; color: var(--st-mute); }

/* Category */
.st-cat-title { font-family: var(--st-serif); font-size: 38px; font-weight: 900; margin: 24px 0 28px; padding-bottom: 14px; border-bottom: 3px double var(--st-brass); color: var(--st-brass); }
.st-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.st-cat-item { display: block; background: var(--st-bg-2); border: 1px solid var(--st-copper); padding: 10px; box-shadow: var(--st-shadow); transition: var(--st-trans); }
.st-cat-item:hover { border-color: var(--st-brass); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.5); }
.st-cat-img { overflow: hidden; margin-bottom: 8px; }
.st-cat-img img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 2px solid var(--st-brass); }
.st-cat-item h4 { font-family: var(--st-serif); font-size: 14px; font-weight: 700; }
.st-cat-item p { font-family: var(--st-mono); font-size: 12px; color: var(--st-mute); }

/* Search */
.st-search-hero { background: linear-gradient(180deg, var(--st-bg-2) 0%, var(--st-bg) 100%); padding: 48px 0 40px; border-bottom: 2px solid var(--st-brass); position: relative; }
.st-search-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.st-search-title { font-family: var(--st-serif); font-size: 36px; font-weight: 900; color: var(--st-brass); margin-bottom: 8px; letter-spacing: 4px; }
.st-search-deck { font-family: var(--st-mono); font-size: 13px; color: var(--st-mute); letter-spacing: 2px; margin-bottom: 24px; }
.st-search-form { display: flex; max-width: 560px; margin: 0 auto; border: 2px solid var(--st-brass); }
.st-search-input { flex: 1; padding: 14px 18px; border: none; background: var(--st-bg-2); font-family: var(--st-mono); font-size: 16px; color: var(--st-paper); outline: none; }
.st-search-input:focus { background: var(--st-bg); }
.st-search-submit { padding: 14px 28px; background: var(--st-brass); color: var(--st-bg); font-family: var(--st-serif); font-size: 16px; font-weight: 800; letter-spacing: 2px; border: none; cursor: pointer; }
.st-search-submit:hover { background: var(--st-copper); }
.st-search-hot { margin-top: 18px; }
.st-search-hot-item { display: inline-block; padding: 5px 14px; margin: 4px; border: 1px solid var(--st-copper); color: var(--st-paper); font-family: var(--st-mono); font-size: 13px; }
.st-search-hot-item:hover { border-color: var(--st-brass); color: var(--st-brass); }
.st-search-empty { text-align: center; padding: 60px 20px; color: var(--st-mute); font-family: var(--st-mono); }
.st-search-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; justify-content: center; }
.st-search-cat { display: inline-block; padding: 10px 20px; border: 2px solid var(--st-brass); font-family: var(--st-serif); font-size: 16px; color: var(--st-paper); }
.st-search-cat:hover { background: var(--st-brass); color: var(--st-bg); }

/* Form */
.st-form { max-width: 720px; margin: 40px auto; background: var(--st-bg-2); border: 3px solid var(--st-brass); padding: 48px 56px; box-shadow: var(--st-shadow); }
.st-form-intro { text-align: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px dashed var(--st-copper); color: var(--st-mute); font-size: 14px; line-height: 1.8; }
.st-form-intro strong { color: var(--st-brass); }
.st-form-field { margin-bottom: 24px; }
.st-form-label { display: block; font-family: var(--st-serif); font-size: 14px; font-weight: 700; color: var(--st-brass); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--st-copper); letter-spacing: 1px; }
.st-form-input, .st-form-textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--st-copper); background: var(--st-bg); font-family: var(--st-mono); font-size: 14px; color: var(--st-paper); outline: none; transition: var(--st-trans); }
.st-form-input:focus, .st-form-textarea:focus { border-color: var(--st-brass); background: var(--st-bg-2); }
.st-form-textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.st-form-btn { display: inline-block; padding: 14px 40px; background: var(--st-brass); color: var(--st-bg); border: 2px solid var(--st-brass); font-family: var(--st-serif); font-size: 18px; font-weight: 800; letter-spacing: 2px; cursor: pointer; box-shadow: 4px 4px 0 var(--st-copper); }
.st-form-btn:hover { background: var(--st-copper); color: var(--st-paper); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--st-copper); }
.st-form-footnote { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--st-copper); font-family: var(--st-mono); font-size: 12px; color: var(--st-mute); }

/* Read */
.st-read-body { background: var(--st-bg); }
.st-read { max-width: 720px; margin: 0 auto; padding: 32px 0 80px; }
.st-read-head { text-align: center; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid var(--st-brass); }
.st-read-head h1 { font-family: var(--st-serif); font-size: 32px; font-weight: 900; margin-bottom: 8px; line-height: 1.3; color: var(--st-paper); }
.st-read-meta { font-family: var(--st-mono); font-size: 13px; color: var(--st-copper); }
.st-read-content { font-size: 18px; line-height: 2; text-align: justify; color: var(--st-cream); }
.st-read-content p { margin-bottom: 1.2em; text-indent: 2em; }
.st-read-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--st-brass); }
.st-read-btn { font-family: var(--st-serif); padding: 10px 18px; border: 1px solid var(--st-brass); font-size: 14px; background: var(--st-bg-2); color: var(--st-paper); }
.st-read-mid { background: var(--st-brass); color: var(--st-bg); }
.st-read-btn:hover { background: var(--st-brass); color: var(--st-bg); }

/* Progress + Toolbar */
.st-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: var(--st-bg-2); }
.st-progress-bar { height: 100%; width: 0%; background: var(--st-brass); box-shadow: 0 0 8px var(--st-brass); }
.st-toolbar { position: fixed; bottom: 24px; right: 24px; z-index: 150; display: flex; flex-direction: column; gap: 6px; }
.st-tb-btn { width: 44px; height: 44px; border: 2px solid var(--st-brass); background: var(--st-bg-2); color: var(--st-brass); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.st-tb-btn:hover { background: var(--st-brass); color: var(--st-bg); }
.st-read-drawer { position: fixed; top: 0; left: 0; width: 300px; height: 100%; background: var(--st-bg-2); z-index: 220; transform: translateX(-100%); transition: transform 0.3s; border-right: 3px double var(--st-brass); pointer-events: auto; }
.st-read-drawer.active { transform: translateX(0); }
.st-read-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--st-brass); }
.st-read-drawer-head h4 { font-family: var(--st-serif); font-size: 18px; font-weight: 900; color: var(--st-brass); }
.st-read-drawer-head button { font-size: 22px; color: var(--st-brass); }
.st-read-drawer-body { overflow-y: auto; height: calc(100% - 56px); }
.st-read-drawer-body a { display: block; padding: 10px 20px; font-size: 14px; border-bottom: 1px dashed var(--st-copper); }
.st-read-drawer-body a.active { background: var(--st-brass); color: var(--st-bg); }
.st-bottom-sheet { position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 100%); transition: transform 0.3s; background: var(--st-bg-2); z-index: 220; width: 100%; max-width: 560px; border: 2px solid var(--st-brass); border-bottom: none; }
.st-bottom-sheet.active { transform: translate(-50%, 0); }
.st-sheet-head { padding: 14px 24px 8px; border-bottom: 1px solid var(--st-brass); display: flex; justify-content: space-between; align-items: center; }
.st-sheet-head h4 { font-family: var(--st-serif); font-size: 18px; font-weight: 900; color: var(--st-brass); }
.st-sheet-head button { font-size: 22px; color: var(--st-brass); }
.st-sheet-body { padding: 16px 24px 24px; }
.st-opt-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.st-opt-row span { font-family: var(--st-mono); font-size: 13px; color: var(--st-brass); }
.st-opt-btns { display: flex; gap: 6px; }
.st-opt-btns button { padding: 6px 16px; border: 1px solid var(--st-copper); background: var(--st-bg); color: var(--st-paper); font-size: 13px; }
.st-opt-btns button:hover { border-color: var(--st-brass); }
.st-opt-btns button.active { background: var(--st-brass); color: var(--st-bg); border-color: var(--st-brass); }
.st-theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.st-theme-item { padding: 14px 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.st-theme-item:hover { transform: translateY(-2px); }
.st-theme-item.active { box-shadow: 0 0 0 2px var(--st-brass); }

/* Read themes */
body.st-theme-paper { --st-bg: #e8d9b5; --st-bg-2: #d8c896; --st-paper: #3a2817; --st-cream: #4a3826; --st-mute: rgba(58,40,23,0.55); --st-copper: #8b5a2b; --st-brass: #b08d57; }
body.st-theme-dark { --st-bg: #0d0d0d; --st-bg-2: #1a1a1a; --st-paper: #c8b896; --st-cream: #b8a886; --st-mute: rgba(200,184,150,0.5); }
body.st-theme-green { --st-bg: #1a2418; --st-bg-2: #2c3e2d; --st-paper: #b8c8a8; --st-cream: #a8b898; --st-mute: rgba(184,200,168,0.5); }

/* Responsive */
@media (max-width: 991px) {
  .st-nav-list { display: none; }
  .st-burger { display: flex; align-items: center; justify-content: center; }
  .st-mob-search { display: flex; }
  .st-nav .container { padding: 8px 16px; }
  .st-logo { font-size: 26px; }
  .st-motto { display: none; }
  .st-hero-card { grid-template-columns: 200px 1fr; padding: 20px; gap: 20px; }
  .st-hero-title { font-size: 28px; }
  .st-rank-list { columns: 1; }
  .st-bulletin-grid { grid-template-columns: 1fr; }
  .st-new-grid { grid-template-columns: repeat(3, 1fr); }
  .st-shelf-grid { grid-template-columns: repeat(3, 1fr); }
  .st-footer-cols { grid-template-columns: 1fr; }
  .st-detail { grid-template-columns: 180px 1fr; gap: 24px; padding: 20px; }
  .st-related { grid-template-columns: repeat(4, 1fr); }
  .st-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .st-header-bar .st-bar-issue { display: none; }
}
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .st-page { padding: 16px 16px 32px; }
  .st-hero-card { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .st-hero-img { max-width: 160px; margin: 0 auto; }
  .st-hero-title { font-size: 24px; }
  .st-section-title { font-size: 22px; }
  .st-new-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .st-shelf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .st-detail { grid-template-columns: 1fr; }
  .st-detail-img { max-width: 160px; margin: 0 auto; }
  .st-detail-title { font-size: 26px; }
  .st-related { grid-template-columns: repeat(2, 1fr); }
  .st-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .st-cat-title { font-size: 28px; }
  .st-read-head h1 { font-size: 24px; }
  .st-read-content { font-size: 16px; }
  .st-read-nav { flex-wrap: wrap; }
  .st-read-btn { flex: 1; min-width: 90px; text-align: center; }
  .st-form { padding: 28px 20px; }
}