:root {
  --brand: #e4237a;
  --brand-deep: #c2185b;
  --brand-soft: #fff1f6;
  --brand-line: #ffd6e6;
  --ink: #1c1d2e;
  --ink-2: #5c6174;
  --ink-3: #9398aa;
  --bg: #f5f6f9;
  --card: #ffffff;
  --line: #eef0f5;
  --orange: #f08a2a;
  --shadow: 0 10px 28px rgba(48, 20, 48, 0.06);
  --radius: 16px;
  --header: 72px;
  --max: 1200px;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner,
.container,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  flex: none;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.auth-copy .brand-sub { color: rgba(255, 255, 255, 0.72); }
.main-nav {
  display: flex;
  gap: 6px;
  flex: none;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.main-nav a.active { background: var(--brand); color: #fff; }

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  height: 40px;
  background: #f3f4f8;
  border-radius: 999px;
  padding: 0 6px 0 14px;
  border: 1px solid transparent;
}
.header-search:focus-within {
  background: #fff;
  border-color: var(--brand-line);
  box-shadow: 0 0 0 4px rgba(228, 35, 122, 0.08);
}
.header-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
}
.header-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.header-search-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  place-items: center;
  color: var(--brand);
  flex: none;
}
.header-search-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  place-items: center;
  flex: none;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.msg-link, .avatar-link {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f8;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.msg-link em {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
}
.avatar-link .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd0e2, #e4237a);
}

.page { padding: 28px 0 64px; }
.site-footer {
  margin-top: 12px;
  border-top: 1px solid #f6d7e6;
  background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
  color: var(--ink-3);
  font-size: 13px;
}
.footer-main { padding: 18px 0 14px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-brand p {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid #f3d5e4;
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer-nav a {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #f8e4ee; padding: 12px 0 16px; font-size: 12px; }
.footer-bottom b { color: var(--brand); font-weight: 700; }
.footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  min-width: 0;
}
.footer-note p { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.footer-inner .brand-name { font-size: 16px; }
.footer-inner .brand-sub { font-size: 12px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 28px 0 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-logo,
.sec-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: none;
}
.sec-logo {
  border-radius: 50%;
  object-fit: cover;
}
.section-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.link-btn, .text-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-btn:hover, .text-btn:hover { opacity: 0.8; }
.shuffle-icon {
  font-size: 20px;
  line-height: 1;
}

.hero {
  position: relative;
  height: 300px;
  border-radius: 28px;
  overflow: visible;
  box-shadow: var(--shadow);
}
.hero-bg,
.hero-castle,
.hero-character {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}
.hero-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 28px;
}
.hero-castle,
.hero-character {
  bottom: 0;
  width: auto;
}
.hero-castle {
  z-index: 21;
  right: 25%;
  height: 118%;
}
.hero-character {
  z-index: 22;
  right: 0;
  height: 112%;
}
.hero-copy {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 52px;
}
.hero-copy h1 {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.1;
  color: var(--brand);
  letter-spacing: 0.04em;
}
.hero-copy p {
  margin: 0 0 18px;
  color: #c45b86;
  font-size: 16px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.notice {
  margin-top: 16px;
  background: linear-gradient(90deg, #ffe8f2 0%, #fff6fa 48%, #fff9fc 100%);
  border: 1px solid #ffd6e6;
  border-radius: 14px;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 12px;
}
.notice-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.notice-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}
.notice b { color: var(--brand); font-size: 14px; }
.notice span { color: var(--ink-2); font-size: 14px; }
.notice .spacer { flex: 1; }
.notice .chev { color: var(--ink-3); }

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 156px;
  gap: 16px;
  align-items: stretch;
}
.board-card {
  position: relative;
  display: block;
  height: 156px;
  min-height: 156px;
  max-height: 156px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  align-self: stretch;
}
.board-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.board-copy {
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.board-copy strong {
  font-size: 20px;
  line-height: 1.2;
}
.board-copy span {
  font-size: 12px;
  opacity: 0.9;
}
.board-go {
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: currentColor;
  display: grid;
  place-items: center;
}
.board-go svg {
  width: 16px;
  height: 16px;
  display: block;
}
.board-card.game { color: #e4237a; }
.board-card.portrait { color: #d4893a; }
.board-card.manga { color: #3b73c9; }
.board-card.drama { color: #7b49c9; }
.board-card:hover { transform: translateY(-2px); transition: 0.2s ease; }

.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rec-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.rec-card:hover { transform: translateY(-3px); transition: 0.2s ease; }
.cover {
  height: 148px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
  font-weight: 800;
}
.cover span.mark {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
}
.cover i {
  font-style: normal;
  font-size: 13px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.c0 { background: linear-gradient(145deg, #6a7cff, #9b5cff 50%, #ff7eb3); }
.c1 { background: linear-gradient(145deg, #ff8fab, #ff6b6b 45%, #845ec2); }
.c2 { background: linear-gradient(160deg, #2b2d42, #5c6b8a); }
.c3 { background: linear-gradient(160deg, #43b0f1, #6a5cff); }
.c4 { background: linear-gradient(160deg, #f7c59f, #e58c8a 40%, #6d597a); }
.c5 { background: linear-gradient(160deg, #7f5af0, #2cb67d); }
.rec-body { padding: 12px 14px 14px; }
.rec-body h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  height: 2.9em;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pills { display: flex; gap: 6px; margin-bottom: 10px; }
.pill {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}
.pill.ghost { background: #f2f3f7; color: var(--ink-2); }
.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12px;
}
.meta-acts { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.meta-acts span { display: inline-flex; align-items: center; gap: 4px; }
.meta-acts svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.page-title { margin: 0; font-size: 28px; }
.sub { margin: 6px 0 0; color: var(--ink-3); }

.search-wrap { max-width: 920px; margin: 12px auto 0; }
.search-box {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  padding: 0 12px;
}
.search-box button {
  width: 52px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #3d7eff;
  color: #fff;
  font-size: 18px;
}
.hot-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
}
.hot-head h2 { margin: 0; font-size: 18px; }
.hot-head small { color: var(--ink-3); }
.hot-head .spacer { flex: 1; }
.hot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hot-item {
  background: #fff;
  border-radius: 14px;
  min-height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  font-weight: 700;
}
.hot-item .name { flex: 1; }
.hot-item.top1 { background: linear-gradient(#fff, #fff6f6); box-shadow: inset 0 0 0 1px #ffd5d5; }
.hot-item.top2 { background: linear-gradient(#fff, #fff8f3); box-shadow: inset 0 0 0 1px #ffe0c8; }
.hot-item.top3 { background: linear-gradient(#fff, #fffdf3); box-shadow: inset 0 0 0 1px #ffe8b0; }
.no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #eceff5;
  color: #8b90a1;
}
.no.n1 { background: #ff5a73; color: #fff; }
.no.n2 { background: #ff8d3a; color: #fff; }
.no.n3 { background: #ffb020; color: #fff; }
.flame { color: #ff6a3d; font-size: 14px; }

.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 10px 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-3);
  position: relative;
}
.tabs button.active { color: #3d5afe; }
.tabs button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: #3d5afe;
}

.post-list { display: flex; flex-direction: column; gap: 16px; }
.post {
  background: #fff;
  border-radius: 16px;
  padding: 15px 10px;
  box-shadow: var(--shadow);
}
.post h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.post h3 em { font-style: normal; color: #e23b3b; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumbs.n1 { grid-template-columns: minmax(0, 1fr); }
.thumbs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thumbs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumb {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(145deg, #d9deea, #f7f8fb);
}
.thumb.c0 { background: linear-gradient(145deg, #6a7cff, #9b5cff 50%, #ff7eb3); }
.thumb.c1 { background: linear-gradient(145deg, #ff8fab, #ff6b6b 45%, #845ec2); }
.thumb.c2 { background: linear-gradient(160deg, #2b2d42, #5c6b8a); }
.thumb.c3 { background: linear-gradient(160deg, #43b0f1, #6a5cff); }
.thumb.c4 { background: linear-gradient(160deg, #f7c59f, #e58c8a 40%, #6d597a); }
.thumb.c5 { background: linear-gradient(160deg, #7f5af0, #2cb67d); }
.thumb.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
a.chip-btn { display: inline-flex; align-items: center; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: #f2f4f8;
  color: #667;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}
.chip.b { background: #e7f0ff; color: #3a6fd0; }
.chip.g { background: #e7f8ee; color: #2e9a5d; }
.chip.p { background: #fde8f1; color: #d4236e; }
.chip.v { background: #f1e9ff; color: #7a45c4; }
.chip.o { background: #fff1e3; color: #d9832b; }
.chip.t { background: #e5f7f6; color: #1a9b96; }
.post-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 13px;
}
.post-foot .spacer { flex: 1; }
.post-foot b { color: var(--ink-2); font-weight: 700; }
.post-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.post-who .post-logo { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }

.cat-hero {
  border-radius: 22px;
  min-height: 210px;
  padding: 28px 32px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(28, 16, 36, 0.55), rgba(28, 16, 36, 0.1)),
    linear-gradient(120deg, #3a2a4a, #8a6a9a 45%, #d7b8c8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  box-shadow: var(--shadow);
}
.cat-hero .logo-line { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.cat-hero h1 { margin: 8px 0 6px; font-size: 40px; }
.cat-hero .stats { opacity: 0.9; font-size: 14px; }
.pause {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.85);
}

.action-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.action {
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.action:last-child { border-right: 0; }
.action strong { display: block; margin-top: 6px; font-size: 14px; }
.action span { font-size: 22px; }

.pin-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pin {
  background: #fff;
  border-radius: 12px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.pin .tag {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 800;
}
.pin .spacer { flex: 1; }
.pin .chev { color: var(--ink-3); }

.layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.rank-row { display: flex; gap: 10px; }
.rank {
  flex: 1;
  height: 64px;
  border-radius: 14px;
  border: 0;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.rank.active { background: var(--brand); color: #fff; }
.tool-row {
  display: flex;
  align-items: center;
  margin: 16px 0 10px;
  gap: 18px;
}
.tool-row button {
  border: 0;
  background: transparent;
  font-weight: 800;
  color: var(--ink-3);
  font-size: 15px;
  padding: 0 0 6px;
}
.tool-row button.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.tool-row .spacer { flex: 1; }
.filter-btn {
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-weight: 700;
}
.filter-panel {
  display: none;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fafafc;
  border: 1px solid var(--line);
}
.filter-panel.show { display: block; }
.filter-panel p { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.chip-btn {
  border: 0;
  background: #f2f4f8;
  color: var(--ink-2);
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.chip-btn.active { background: var(--brand-soft); color: var(--brand); }

.side-card h3 { margin: 0 0 12px; font-size: 16px; }
.mini-hot { display: flex; flex-direction: column; gap: 8px; }
.mini-hot a {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.layout .drama {
  margin-top: 8px;
}
.drama h3 { margin: 0 0 10px; font-size: 16px; }
.h-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.h-card {
  height: 92px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, #fff 0 18px, transparent 19px), linear-gradient(180deg, #ff4b4b, #e1062f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.crumb { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }
.detail-top { position: relative; }
.detail-top h1 { margin: 0; font-size: 22px; line-height: 1.45; }
.detail-top .heart {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
}
.heart.on { background: var(--brand-soft); border-color: var(--brand-line); }

.article { padding: 15px; }
.author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.author .face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #222, #555);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.author b { font-size: 14px; }
.en-title { color: var(--ink-2); margin: 0 0 8px; }
.intro-label { margin: 0 0 8px; font-weight: 800; }
.intro {
  color: #e07a1a;
  line-height: 1.75;
  font-size: 15px;
}
.intro p { margin: 0 0 8px; }
.gallery {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #6d7a90, #d9c2b0 55%, #8d6a78);
  height: 360px;
  position: relative;
}
.gallery .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 36px;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.feedback {
  background: #fff8e8;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}
.feedback b { display: block; }
.invite {
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(100deg, #241b18, #3a2a28 40%, #1c2438);
  margin-bottom: 12px;
}
.invite .badge {
  display: inline-block;
  background: #ffb020;
  color: #3a2500;
  border-radius: 6px;
  font-size: 12px;
  padding: 2px 6px;
  margin-left: 6px;
}
.invite p { margin: 8px 0 0; color: #ffd56a; font-size: 13px; }
.tag-page-title { margin-bottom: 16px; }
.tag-panel {
  background: #fff7fb;
  border: 1px solid #f6d0e4;
  border-radius: 18px;
  padding: 18px 16px 22px;
}
.tag-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.all-tags-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff4f93;
  color: #fff;
  display: grid;
  place-items: center;
}
.all-tags-ico svg { width: 16px; height: 16px; fill: #fff; }
.tag-page-cloud { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.tag-page-cloud a { text-decoration: none; height: 28px; padding: 0 10px; border-radius: 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: #f4f6fb;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: #4d5670;
}
.tag-cloud a:nth-child(3n) { color: #2f86de; }
.tag-cloud a:nth-child(3n+1) { color: #2e9a5d; }
.tag-cloud a:nth-child(4n) { color: #d4236e; }
.tag-cloud a:nth-child(5n) { color: #7a45c4; }
.more-tags {
  float: right;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}
.ad {
  margin-top: 12px;
  height: 92px;
  border-radius: 14px;
  background: linear-gradient(90deg, #1b1230, #7a2ea8 50%, #ff4d8d);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.ad small { font-weight: 600; opacity: 0.85; letter-spacing: 0; }

.comment-head {
  display: flex;
  align-items: center;
  margin: 18px 0 10px;
}
.comment-head h2 { margin: 0; font-size: 18px; flex: 1; }
.sort {
  background: #f2f4f8;
  border-radius: 10px;
  padding: 3px;
  display: flex;
}
.sort button {
  border: 0;
  background: transparent;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-3);
  font-weight: 700;
}
.sort button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.comment {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comment .face {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(145deg, #ff4d8d, #7a2ea8);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.comment .face.gray { background: #d5d8e2; color: #fff; }
.comment .who { font-weight: 800; font-size: 14px; }
.vip {
  display: inline-block;
  margin-left: 6px;
  background: #2a2418;
  color: #f0d48a;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 6px;
}
.vip.year { background: #241c33; color: #d7c4ff; }
.comment .text { margin: 6px 0; line-height: 1.55; font-size: 14px; }
.reply-box {
  background: #f5f7fb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.reply-box a { color: #3d7eff; }
.comment .time { color: var(--ink-3); font-size: 12px; display: flex; justify-content: space-between; }
.like { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.composer {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  background: #f6f7fb;
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  align-items: center;
}
.composer input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; }
.composer button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 16px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background:
    radial-gradient(500px 320px at 70% 40%, rgba(255,255,255,.25), transparent 60%),
    linear-gradient(110deg, #3a2048, #a85a8a 55%, #f3c1d4);
  color: #fff;
}
.auth-copy { padding: 72px 80px; }
.auth-copy h1 { font-size: 56px; line-height: 1.15; margin: 18px 0; }
.auth-copy .line { width: 48px; height: 3px; background: #fff; border-radius: 3px; }
.auth-copy .bottom {
  margin-top: 80px;
  color: rgba(255,255,255,.85);
}
.auth-stage {
  display: grid;
  place-items: center;
  padding: 40px;
}
.modal {
  width: 420px;
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  padding: 28px 26px 24px;
  box-shadow: 0 30px 80px rgba(40, 10, 30, 0.28);
  text-align: center;
}
.ok {
  width: 64px; height: 64px; margin: 0 auto 10px;
  border-radius: 50%;
  background: #ffe4ef;
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 28px; font-weight: 800;
}
.modal h2 { margin: 0 0 16px; color: var(--brand-deep); }
.cred {
  text-align: left;
  background: #fff5f8;
  border-radius: 16px;
  padding: 6px 14px;
}
.cred div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
}
.cred div + div { border-top: 1px solid #ffd6e4; }
.cred small { display: block; color: var(--ink-3); }
.cred b { color: var(--ink); }
.cred .pw { color: #6a4cff; background: #efeaff; padding: 0 4px; border-radius: 4px; }
.warn {
  margin-top: 12px;
  background: #fff1f5;
  color: var(--brand);
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.go-home {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d8d, #e1065b);
  color: #fff;
  font-weight: 800;
}
.quick {
  margin-top: 22px;
  color: rgba(255,255,255,.9);
  text-align: center;
}
.quick a { color: #fff; font-weight: 800; }

.msg-list { display: flex; flex-direction: column; }
.msg-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.msg-item .face {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(145deg, #ff4d8d, #7a2ea8);
}
.msg-item p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.profile-hero {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
}
.profile-hero .face {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(145deg, #ffd0e2, #e4237a);
}
.stats { display: flex; gap: 28px; }
.stats b { display: block; font-size: 20px; }
.stats span { color: var(--ink-3); font-size: 12px; }
.menu { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu a {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-weight: 800;
  display: flex;
  justify-content: space-between;
}
.menu a span { color: var(--ink-3); font-weight: 600; font-size: 13px; }

.float-dock {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.to-vip,
.to-top {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}
.to-vip.show,
.to-top.show { display: grid; }
.to-vip {
  background: linear-gradient(180deg, #ffe08a, #f5b429);
  color: #7a4a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(230, 160, 30, 0.35);
}
.to-vip:hover { background: linear-gradient(180deg, #ffd56a, #e8a40e); }
.to-top {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(228, 35, 122, 0.28);
}
.to-top:hover { background: var(--brand-deep); }
.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar { display: none; }

@media (max-width: 980px) {
  .site-header { height: 64px; }
  .header-inner {
    height: 64px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-toggle { display: grid; }
  .brand { justify-self: center; min-width: 0; }
  .header-actions,
  .header-search { display: none; }
  .header-search-btn { display: grid; margin-left: 0; justify-self: end; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 8px 16px 14px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(40, 16, 40, 0.06);
  }
  .site-header.is-open .main-nav { display: flex; }
  .main-nav a { white-space: nowrap; }
  .page { padding: 16px 0 96px; }
  .site-footer { margin-bottom: 72px; }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #f2f3f6;
    box-shadow: 0 -6px 18px rgba(40, 16, 40, 0.05);
  }
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #c5c8d2;
    font-size: 12px;
    font-weight: 700;
  }
  .tabbar .tab-ico {
    width: 48px;
    height: 32px;
    display: grid;
    place-items: center;
  }
  .tabbar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
  }
  .tabbar a.active { color: var(--brand); }
  .tabbar a.active .tab-ico {
    background: #ffe4ef;
    border-radius: 16px;
  }
  .tabbar a.active svg { fill: currentColor; stroke: none; }
  .float-dock { right: 16px; bottom: 84px; }
  .hero {
    height: 168px;
    overflow: visible;
    border-radius: 18px;
  }
  .hero-bg { border-radius: 18px; }
  .hero-castle,
  .hero-character {
    z-index: 1;
    height: 115%;
  }
  .hero-castle { right: 18%; }
  .hero-copy { padding-left: 16px; max-width: 54%; }
  .hero-copy h1 { font-size: 26px; margin-bottom: 4px; }
  .hero-copy p { margin-bottom: 10px; font-size: 13px; }
  .hero-btn { height: 30px; font-size: 12px; padding: 0 12px; }
  .notice { height: 46px; padding: 0 12px; gap: 8px; }
  .notice > span:not(.spacer):not(.chev) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .board-grid,
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-grid { grid-auto-rows: 132px; }
  .board-card {
    height: 132px;
    min-height: 132px;
    max-height: 132px;
  }
  .board-copy { left: 12px; top: 12px; }
  .board-copy strong { font-size: 16px; }
  .board-go { left: 12px; bottom: 10px; }
  .layout,
  .auth-page { grid-template-columns: 1fr; }
  .action { padding: 14px 4px; }
  .action strong { font-size: 12px; }
  .hot-grid { grid-template-columns: 1fr; }
  .thumbs.n3,
  .thumbs.n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thumbs .thumb:nth-child(n + 4) { display: none; }
  .h-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank { height: 48px; font-size: 13px; }
  .cat-hero { min-height: 160px; padding: 20px; }
  .cat-hero h1 { font-size: 30px; }
  .detail-top h1,
  .page-title { font-size: 20px; }
  .profile-hero { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .profile-hero .face { width: 64px; height: 64px; }
  .profile-hero .page-title { font-size: 22px; }
  .gallery { height: 200px; }
  .comment { grid-template-columns: 36px minmax(0, 1fr); }
  .like { grid-column: 2; }
  .menu { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-brand { flex-wrap: wrap; gap: 8px; }
  .footer-brand p { padding-left: 0; border-left: 0; white-space: normal; }
  .footer-nav { justify-content: flex-start; }
  .footer-note { flex-direction: column; align-items: flex-start; gap: 4px; }
  .auth-copy { padding: 36px 20px 12px; }
  .auth-copy h1 { font-size: 36px; }
  .auth-copy .bottom { margin-top: 24px; }
  .auth-stage { padding: 12px 16px 32px; }
  .modal { width: min(420px, 100%); }
  .search-box input { min-width: 0; }
}
.cover.has-img,
.gallery.has-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.download-card {
  margin-top: 18px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #7a3df2 0%, #5a46f0 46%, #3d78ff 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(78, 62, 214, 0.18);
}
.download-head { display: flex; align-items: center; justify-content: space-between; }
.download-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
}
.download-title svg,
.download-points svg {
  width: 20px;
  height: 20px;
  fill: #ffd34d;
}
.download-title svg { fill: #ffe14a; }
.download-star {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}
.download-star svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, 0.85); }
.download-card p { margin: 16px 0; font-size: 15px; font-weight: 700; }
.download-vip,
.download-points {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}
a.download-vip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1c1d2e;
}
.download-vip { background: #ffc21a; color: #1c1d2e; }
.download-vip:hover { background: #ffb400; }
.download-points {
  position: relative;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-points > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.download-points svg { width: 16px; height: 16px; }
.download-gem {
  position: absolute;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}
.download-gem svg { width: 16px; height: 16px; fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 1.7; }
.intro.article-body { color: var(--ink); }
.intro.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.author .face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.empty-comment { color: var(--ink-3); font-size: 14px; margin: 8px 0 0; }
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
}
.pager a,
.pager span {
  min-width: 88px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.pager a:hover { color: var(--brand); }
.pager .off { opacity: 0.45; }
