/* ==========================================================================
   yy漫画 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #23272b;
  --text-soft: #5c636b;
  --brand: #2f6f7a;
  --brand-deep: #24565f;
  --accent: #c96a4a;
  --line: #e2e0da;
  --line-strong: #cfccc4;
  --radius: 6px;
  --radius-sm: 4px;
  --main-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 事实说明条 / 页头 / 侧栏骨架
   -------------------------------------------------------------------------- */

.fact-bar,
.site-note {
  margin: 0;
  padding: 8px 24px;
  background: #eceae4;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 8px;
  border-left: 2px solid #f6f5f2;
  border-right: 2px solid #f6f5f2;
  border-bottom: 2px solid #f6f5f2;
  border-radius: 0 0 3px 3px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
}

.brand-slogan {
  color: var(--text-soft);
  font-size: 12px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 14px;
}

.nav-list a:hover {
  background: #f0efea;
  color: var(--text);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--brand-deep);
  font-weight: 600;
  background: #e8f0f1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 24px;
}

.page-layout.sidebar-left,
.sidebar-left .page-layout {
  grid-template-columns: 200px minmax(0, 1fr);
}

.site-main {
  min-width: 0;
}

.site-sidebar,
.sidebar,
.layout-aside {
  min-width: 0;
  align-self: start;
}

.sidebar-title,
.aside-title {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-size: 14px;
}

.sidebar-list a:hover {
  background: #eceae4;
  color: var(--text);
  text-decoration: none;
}

.sidebar-list a.is-current {
  border-left-color: var(--accent);
  background: #e8f0f1;
  color: var(--brand-deep);
  font-weight: 600;
}

.sidebar-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 13px;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}

.page-description {
  margin-top: 10px;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 15px;
}

.site-footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.footer-desc {
  margin-top: 8px;
  max-width: 340px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.footer-group a:hover {
  color: var(--brand-deep);
}

.footer-copy {
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   components · 按钮 / 标签 / 章节标题 / 表格 / 图片容器
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  text-decoration: none;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 13.5px;
  cursor: pointer;
}

.tag-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.tag-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

.section {
  margin-bottom: 36px;
}

.section-head {
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.section-desc,
.section-lead,
.section-intro {
  margin-top: 6px;
  max-width: 780px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.section-more,
.section-foot,
.section-note {
  margin-top: 14px;
  font-size: 14px;
}

.section-more a,
.section-foot a,
.section-note a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-right: 16px;
  font-weight: 600;
}

.col-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.field-list {
  margin: 0;
  padding: 0;
}

.field-list dt {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.field-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption,
.field-caption,
.field-table-caption {
  padding: 12px 16px;
  background: #f0efea;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  text-align: left;
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.field-table thead th {
  background: #f8f7f4;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.field-table tbody th {
  width: 32%;
  font-weight: 600;
  color: var(--text);
}

.field-table tbody td {
  color: var(--text-soft);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.hero-media,
.pick-cover,
.topic-cover,
.topic-media,
.work-cover,
.update-cover,
.section-media,
.field-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: #eceae4;
}

.hero-media img,
.pick-cover img,
.topic-cover img,
.topic-media img,
.work-cover img,
.update-cover img,
.section-media img,
.field-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages · index
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  margin-bottom: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}

.hero-summary {
  margin-top: 12px;
  max-width: 560px;
  color: var(--text-soft);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hero-media {
  aspect-ratio: 16 / 10;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pick-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pick-item:hover {
  border-color: var(--line-strong);
  background: #fbfaf8;
}

.pick-cover {
  flex: 0 0 88px;
  width: 88px;
  aspect-ratio: 3 / 4;
}

.pick-body {
  min-width: 0;
}

.pick-name {
  font-size: 16px;
  font-weight: 600;
}

.pick-meta {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.pick-genre {
  color: var(--brand);
}

.pick-date {
  margin-left: 8px;
}

.pick-note {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-box {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-name {
  font-size: 16px;
  font-weight: 600;
}

.genre-desc {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.genre-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.genre-items li {
  color: var(--text-soft);
  font-size: 13.5px;
}

.update-rows {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 96px minmax(140px, 1fr) 96px minmax(0, 1.4fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row:hover {
  background: #fbfaf8;
}

.update-row .update-date {
  color: var(--text-soft);
  font-size: 13px;
}

.update-row .update-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.update-row .update-genre {
  color: var(--brand);
  font-size: 13px;
}

.update-row .update-note {
  color: var(--text-soft);
  font-size: 13.5px;
}

.rank-topic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: baseline;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  background: #fbfaf8;
}

.rank-item .rank-no {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.rank-item .rank-name {
  font-size: 14.5px;
  font-weight: 600;
}

.rank-item .rank-genre {
  color: var(--text-soft);
  font-size: 13px;
  text-align: right;
}

.topic-col .topic-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-col .topic-card + .topic-card {
  margin-top: 16px;
}

.topic-col .topic-card:hover {
  border-color: var(--line-strong);
}

.topic-col .topic-cover {
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
}

.topic-col .topic-name {
  font-size: 15.5px;
  font-weight: 600;
}

.topic-col .topic-scope {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.guide-col {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-text {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.guide-text + .guide-text {
  margin-top: 10px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.feedback-list li {
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 13.5px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 108px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

.index-item a:hover {
  border-color: var(--brand);
  text-decoration: none;
}

.index-name {
  font-size: 15px;
  font-weight: 600;
}

.index-desc {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   pages · inner shared
   -------------------------------------------------------------------------- */

.inner-main {
  min-width: 0;
}

.layout-aside .aside-block {
  padding: 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.layout-aside .aside-text {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.layout-aside .aside-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.layout-aside .aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   pages · genre-directory
   -------------------------------------------------------------------------- */

.genre-overview {
  margin-bottom: 32px;
}

.genre-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.genre-brief {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-brief-name {
  font-size: 16px;
  font-weight: 600;
}

.genre-brief-text {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.genre-entries {
  margin-bottom: 32px;
}

.genre-group {
  padding: 20px;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-group-name {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-item:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.work-cover {
  flex: 0 0 72px;
  width: 72px;
  aspect-ratio: 3 / 4;
}

.work-info {
  min-width: 0;
}

.work-name {
  font-size: 15px;
  font-weight: 600;
}

.work-genre {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8f0f1;
  color: var(--brand-deep);
  font-size: 12.5px;
}

.work-note {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.genre-fields {
  margin-bottom: 32px;
}

.genre-fields .field-table {
  margin-top: 16px;
}

.genre-next {
  margin-bottom: 32px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.next-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
}

.next-links a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · update-calendar
   -------------------------------------------------------------------------- */

.update-list-section {
  margin-bottom: 32px;
}

.update-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-item {
  display: grid;
  grid-template-columns: 110px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.update-item:last-child {
  border-bottom: 0;
}

.update-item:hover {
  background: #fbfaf8;
}

.update-item .update-date {
  color: var(--text-soft);
  font-size: 13px;
}

.update-item .update-cover {
  width: 76px;
  aspect-ratio: 3 / 4;
}

.update-body {
  min-width: 0;
}

.update-body .update-name {
  font-size: 15.5px;
  font-weight: 600;
}

.update-body .update-meta {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.tag-genre {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8f0f1;
  color: var(--brand-deep);
  font-size: 12.5px;
}

.field-guide-section {
  margin-bottom: 32px;
}

.field-guide-section .field-table {
  margin-top: 16px;
}

.genre-back-section {
  margin-bottom: 32px;
}

.genre-back-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.genre-back-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-back-name {
  font-size: 15px;
  font-weight: 600;
}

.genre-back-desc {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   pages · ranking-topics
   -------------------------------------------------------------------------- */

.ranking-section {
  margin-bottom: 36px;
}

.ranking-section .section-media {
  aspect-ratio: 21 / 9;
  margin: 16px 0 20px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background: #fbfaf8;
}

.ranking-item .rank-no {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 15.5px;
  font-weight: 600;
}

.ranking-meta {
  margin-top: 4px;
  color: var(--brand);
  font-size: 13px;
}

.ranking-desc {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.topic-section {
  margin-bottom: 36px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.topic-grid .topic-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-grid .topic-card:hover {
  border-color: var(--line-strong);
}

.topic-grid .topic-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
}

.topic-grid .topic-name {
  font-size: 15.5px;
  font-weight: 600;
}

.topic-grid .topic-scope {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.topic-grid .topic-note {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.rule-section {
  margin-bottom: 36px;
}

.rule-section .field-table {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   pages · reading-guide
   -------------------------------------------------------------------------- */

.field-figure {
  aspect-ratio: 21 / 9;
  margin-bottom: 28px;
}

.guide-section {
  margin-bottom: 32px;
}

.faq-item {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: #fbfaf8;
}

.faq-item p {
  padding: 0 18px 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.guide-note {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.guide-next {
  margin-bottom: 32px;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.next-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
}

.next-list a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.error-panel {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.error-lead {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 15px;
}

.error-hint {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-links {
  margin-top: 32px;
}

.error-links h2 {
  font-size: 18px;
  font-weight: 600;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
}

.error-link-list a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-layout,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .genre-grid,
  .genre-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-grid,
  .next-links,
  .next-list,
  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 12px;
  }

  .fact-bar,
  .site-note {
    padding: 8px 16px;
    font-size: 12.5px;
    text-align: left;
  }

  .page-layout {
    padding: 16px;
  }

  .page-title {
    font-size: 23px;
  }

  .hero {
    padding: 20px;
  }

  .hero-title {
    font-size: 23px;
  }

  .pick-list,
  .guide-grid,
  .rank-topic-grid,
  .work-list,
  .genre-back-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-grid,
  .genre-overview-grid,
  .index-grid,
  .topic-grid,
  .next-links,
  .next-list,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px 12px;
  }

  .update-row .update-note {
    grid-column: 2 / 3;
  }

  .update-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .update-item .update-cover {
    width: 64px;
  }

  .ranking-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .rank-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .rank-item .rank-genre {
    grid-column: 2 / 3;
    text-align: left;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  .field-table tbody th {
    width: 38%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px 16px 16px;
  }

  .footer-copy {
    padding: 12px 16px 20px;
  }

  .error-main {
    padding: 28px 16px 16px;
  }

  .error-panel {
    padding: 22px;
  }
}
