:root {
  --ink: #1c1915;
  --muted: #6d655b;
  --line: #e3d9cc;
  --paper: #f7f3ec;
  --hot: #e23c1e;
  --sheet: #fbf7f1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: #d9cfc0;
  background-image:
    linear-gradient(90deg, rgba(28,25,21,.06) 1px, transparent 1px),
    linear-gradient(rgba(28,25,21,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  font: 15px/1.65 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.sheet {
  width: min(1880px, calc(100% - 16px));
  margin: 12px auto 24px;
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: end;
  padding: 22px 32px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.num {
  font-family: Georgia, "Palatino Linotype", "Songti SC", serif;
  font-size: 58px;
  line-height: .85;
  letter-spacing: -2px;
}
.seal {
  width: 26px; height: 26px;
  margin: -24px 0 0 -6px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hot); color: #fff;
  font-family: Georgia, "Songti SC", serif;
  font-size: 14px;
}
.brand-name { font-weight: 700; font-size: 15px; }
.brand-name small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.search { position: relative; }
.search input {
  width: 250px;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}
.search input:focus { box-shadow: 3px 3px 0 var(--hot); }
.hits {
  position: absolute; z-index: 5;
  top: calc(100% + 6px); right: 0;
  width: 320px; background: #fff;
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.hits a {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 10px; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.hits a:hover { background: #fff4ee; }
.hits img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; background: var(--line); }
.hits b { display: block; font-size: 14px; }
.hits small { color: var(--muted); }
.hits .empty { margin: 0; padding: 12px; color: var(--muted); }
.nav { grid-column: 1 / -1; display: flex; gap: 26px; border-bottom: 1px solid var(--ink); }
.nav a { text-decoration: none; padding: 12px 0 11px; }
.nav a.on { font-weight: 700; box-shadow: inset 0 -3px 0 var(--hot); }
.feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px; align-items: center;
  padding: 16px 0 18px;
}
.kicker { margin: 0 0 8px; color: var(--hot); font-size: 12px; letter-spacing: .16em; }
.feature h1, .pagehead h1, .detail h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 700;
  letter-spacing: -.5px;
}
.feature h1 { font-size: 42px; line-height: 1.15; }
.lead { margin: 12px 0; max-width: 46ch; }
.meta { margin: 0; color: var(--muted); font-size: 13px; }
.go, .dl {
  display: inline-block; margin-top: 16px;
  background: var(--hot); color: #fff;
  text-decoration: none; font-weight: 700;
  padding: 11px 18px;
}
.go:hover, .dl:hover { background: #c43218; }
.polaroid {
  display: block; background: #fff;
  padding: 10px 10px 14px;
  border: 1px solid var(--ink);
  transform: rotate(2.2deg);
  box-shadow: 6px 6px 0 var(--hot);
  text-decoration: none;
}
.stage {
  height: 210px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 18%, #fff 0%, #f4e4d8 72%);
  border: 1px solid var(--line);
}
.stage img { width: 112px; height: 112px; border-radius: 28px; object-fit: cover; background: #efe8dc; }
.cap { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.cap img, .row img, .mini img, .panel .icon { object-fit: cover; background: #efe8dc; }
.cap img { width: 28px; height: 28px; border-radius: 7px; }
.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 250px;
  align-items: start;
  border-top: 1px solid var(--ink);
}
.rail, .side {
  padding: 16px 14px 28px;
  min-height: 100%;
}
.rail { background: #f3ebe1; border-right: 1px solid var(--ink); }
.side { background: #f6f0e8; border-left: 1px solid var(--ink); }
.rail h2, .side h2 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--hot);
}
.lane, .kinds a, .tile {
  text-decoration: none;
}
.lane {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  font-weight: 700;
}
.lane em, .kinds em { font-style: normal; color: var(--muted); font-weight: 500; }
.lane.on { background: #fff; border-color: var(--ink); box-shadow: 3px 3px 0 var(--hot); }
.kinds { display: flex; flex-direction: column; margin-top: 12px; }
.kinds a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
}
.kinds a:hover, .tile:hover { color: var(--hot); }
.rail .note { margin: 14px 8px 0; }
.tile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.tile img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #efe8dc; }
.tile b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile small { color: var(--muted); font-size: 12px; }
.main { min-width: 0; padding: 8px 22px 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.shelf, .pagehead, .groups, .detail { padding: 6px 0 8px; }
.pagehead, .groups { padding-left: 0; padding-right: 0; }
.shelf { border-top: 1px solid var(--line); }
.shelf-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shelf h2, .group h2 { margin: 16px 0 4px; font-size: 20px; }
.more { color: var(--muted); text-decoration: none; font-size: 13px; }
.more:hover { color: var(--hot); }
.row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px; align-items: center;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
}
.row:hover { background: #fff; }
.row img { width: 48px; height: 48px; border-radius: 12px; }
.row > span { min-width: 0; }
.row b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.3;
}
.row small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-size: 12px; border: 1px solid var(--ink); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pagehead h1 { font-size: 36px; }
.pagehead p { margin: 6px 0 0; color: var(--muted); }
.crumb { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.crumb a { color: var(--muted); }
.detail-layout { grid-template-columns: 280px minmax(0, 1fr) 240px; }
.detail { display: block; }
.detail article { min-width: 0; }
.panel { position: sticky; top: 16px; border: 1px solid var(--ink); background: #fff; padding: 18px; margin: 16px 0 16px 16px; }
.panel .icon { width: 84px; height: 84px; border-radius: 20px; }
.panel h1 { font-size: 28px; margin: 12px 0 4px; }
.facts { margin: 14px 0 0; }
.facts div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.dl { display: block; text-align: center; }
.dl.alt { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.dl.alt:hover { background: #fff4ee; }
.note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.prose p { margin: 0 0 12px; }
.film { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; max-width: 100%; }
.film img { height: 220px; width: auto; border: 1px solid var(--line); background: #fff; }
.rel { margin-top: 22px; }
.rel h2 { font-size: 16px; margin: 0 0 8px; }
.mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); text-decoration: none; }
.mini img { width: 40px; height: 40px; border-radius: 10px; }
.mini b { display: block; }
.mini small { color: var(--muted); }
.foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 32px 18px; border-top: 1px solid var(--ink);
  color: var(--muted); font-size: 12px;
}
.common {
  padding: 22px 28px 26px;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}
.common h2 {
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--hot);
  font-size: 22px;
  line-height: 1;
}
.apps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 16px 8px 12px;
  background: var(--sheet);
  border: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
}
.app:hover { border-color: var(--ink); background: #fff; }
.app img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #efe8dc; }
.app b {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.app small { color: var(--muted); font-size: 12px; }
.billboard {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #f6f1e8;
  border-bottom: 1px solid var(--ink);
}
.slides { height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.slide.on { opacity: 1; pointer-events: auto; z-index: 1; }
.slide .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.slide-copy {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  max-width: min(360px, 42%);
  color: var(--ink);
}
.slide-copy b {
  display: block;
  font-family: Georgia, "Songti SC", serif;
  font-size: 32px;
  line-height: 1.15;
  color: var(--ink);
}
.slide-copy em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 18px;
  color: var(--muted);
}
.bill-btn {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 34px; height: 52px;
  border: 0; cursor: pointer;
  background: rgba(28,25,21,.45);
  color: #fff; font-size: 28px;
}
.bill-btn.prev { left: 0; }
.bill-btn.next { right: 0; }
.bill-btn:hover { background: var(--hot); }
.dots { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; gap: 8px; }
.dot { width: 26px; height: 4px; padding: 0; border: 0; background: rgba(28,25,21,.28); cursor: pointer; }
.dot.on { width: 46px; background: var(--ink); }
.foot a { color: var(--muted); }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 168px minmax(0, 1fr) 180px; }
  .detail-layout { grid-template-columns: 240px minmax(0, 1fr) 200px; }
}
@media (max-width: 720px) {
  .sheet { width: calc(100% - 12px); margin: 8px auto 16px; box-shadow: 4px 4px 0 var(--ink); }
  .head, .feature { grid-template-columns: 1fr; }
  .common { padding: 16px; }
  .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .billboard { height: 150px; }
  .slide-copy { left: 16px; max-width: 46%; }
  .slide-copy b { font-size: 22px; }
  .slide-copy em { margin-top: 6px; font-size: 14px; }
  .layout, .detail-layout { grid-template-columns: 1fr; }
  .rail, .side { border: 0; border-top: 1px solid var(--ink); }
  .layout .main { order: -1; }
  .detail-layout .panel { order: -1; }
  .detail-layout .main { order: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .head, .feature, .foot { padding-left: 16px; padding-right: 16px; }
  .main { padding-left: 16px; padding-right: 16px; }
  .search input, .hits { width: 100%; }
  .hits { right: auto; left: 0; }
  .num { font-size: 44px; }
  .feature h1 { font-size: 32px; }
  .panel { position: static; }
  .nav { gap: 18px; overflow-x: auto; }
  .pill { display: none; }
}
