/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2b2b33;
  background-color: #f7f5f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: #3a6ea5;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2c5278;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

figure {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e1d8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #2b2b33;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: #6b6b76;
  margin-top: 2px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: #2b2b33;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #3a6ea5;
  background-color: #f0eee8;
}

.nav-item.is-current .nav-link,
.nav-link.is-current {
  background-color: #3a6ea5;
  color: #ffffff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 6px;
  background-color: transparent;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2b2b33;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1 0 auto;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
}

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b6b76;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #3a6ea5;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #b5b0a8;
}

.breadcrumb-current {
  color: #2b2b33;
  font-weight: 500;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e1d8;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #2b2b33;
  margin-bottom: 8px;
}

.page-description {
  font-size: 14px;
  color: #6b6b76;
  max-width: 760px;
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e1d8;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 20px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #2b2b33;
}

.footer-slogan {
  font-size: 13px;
  color: #6b6b76;
  margin-top: 4px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #e5e1d8;
  border-bottom: 1px solid #e5e1d8;
}

.link-group h3 {
  font-size: 14px;
  font-weight: 600;
  color: #2b2b33;
  margin-bottom: 10px;
}

.link-group ul li {
  margin-bottom: 6px;
}

.link-group a {
  font-size: 13px;
  color: #6b6b76;
}

.link-group a:hover {
  color: #3a6ea5;
}

.footer-bottom {
  padding-top: 16px;
  text-align: center;
}

.copyright {
  font-size: 12px;
  color: #9a968f;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 节标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #2b2b33;
  line-height: 1.4;
}

.section-desc {
  font-size: 14px;
  color: #6b6b76;
  margin-top: 6px;
}

.section-intro {
  font-size: 14px;
  color: #6b6b76;
  margin-top: 8px;
  max-width: 760px;
}

.section-note {
  font-size: 14px;
  color: #6b6b76;
  margin-top: 8px;
  max-width: 760px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.more-link {
  font-size: 14px;
  color: #3a6ea5;
  font-weight: 500;
  white-space: nowrap;
}

.more-link:hover {
  text-decoration: underline;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-purple {
  background-color: #ece7f5;
  color: #5a4a7a;
}

.tag-blue {
  background-color: #e2f0f1;
  color: #2f6670;
}

.tag-pink {
  background-color: #f7e8ec;
  color: #8a4a5e;
}

.tag-green {
  background-color: #e4efe7;
  color: #2e7d5b;
}

.tag-orange {
  background-color: #f5eadf;
  color: #a05b2c;
}

.tag-scifi {
  background-color: #e2f0f1;
  color: #2f6670;
}

.tag-adventure {
  background-color: #ece7f5;
  color: #5a4a7a;
}

.tag-fantasy {
  background-color: #f7e8ec;
  color: #8a4a5e;
}

.tag-romance {
  background-color: #f7e8ec;
  color: #8a4a5e;
}

.tag-suspense {
  background-color: #ece7f5;
  color: #5a4a7a;
}

.tag-school {
  background-color: #e2f0f1;
  color: #2f6670;
}

.tag-sports {
  background-color: #e4efe7;
  color: #2e7d5b;
}

.tag-healing {
  background-color: #f5eadf;
  color: #a05b2c;
}

.tag-daily {
  background-color: #e4efe7;
  color: #2e7d5b;
}

.tag-action {
  background-color: #ece7f5;
  color: #5a4a7a;
}

/* 状态 */
.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.status-updated {
  background-color: #e4efe7;
  color: #2e7d5b;
}

.status-pending {
  background-color: #f5eadf;
  color: #a05b2c;
}

.status-serial {
  background-color: #e2f0f1;
  color: #2f6670;
}

.status-finished {
  background-color: #ece7f5;
  color: #5a4a7a;
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.status-badge.is-updated {
  background-color: #e4efe7;
  color: #2e7d5b;
}

.status-badge.is-pending {
  background-color: #f5eadf;
  color: #a05b2c;
}

/* ==========================================================================
   pages
   ========================================================================== */

/* ---------- index ---------- */

.home-main .hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 28px 0 12px;
}

.hero-feature {
  min-width: 0;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e1d8;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #ece7f5;
}

.feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #2b2b33;
  margin-bottom: 10px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}

.feature-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #3a6ea5;
  align-self: flex-start;
}

.feature-link:hover {
  text-decoration: underline;
}

.hero-update-list {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 20px 20px 12px;
  display: flex;
  flex-direction: column;
}

.update-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.update-head .section-title {
  font-size: 20px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f0eee8;
}

.update-item:last-child {
  border-bottom: none;
}

.update-item img {
  width: 56px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #ece7f5;
}

.update-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-name {
  font-size: 15px;
  font-weight: 600;
  color: #2b2b33;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-chapter {
  font-size: 13px;
  color: #6b6b76;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-info .status {
  align-self: flex-start;
}

/* 题材标签条 */
.genre-tag-bar {
  padding: 28px 0 8px;
}

.genre-hint {
  font-size: 14px;
  color: #6b6b76;
  margin-bottom: 12px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tags .tag {
  padding: 6px 16px;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-tags .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(43, 43, 51, 0.08);
}

/* 编辑推荐网格 */
.editor-grid {
  padding: 24px 0 8px;
}

.grid-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.grid-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(43, 43, 51, 0.08);
}

.grid-card-wide {
  grid-column: span 7;
}

.grid-card-tall {
  grid-column: span 5;
}

.grid-card-normal {
  grid-column: span 4;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #ece7f5;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #2b2b33;
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: #3a6ea5;
  align-self: flex-start;
}

.card-link:hover {
  text-decoration: underline;
}

/* 日程预览 + 阅读辅助 */
.schedule-preview-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 24px 0 8px;
}

.schedule-preview,
.guide-preview {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 20px 20px 24px;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0eee8;
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-day {
  font-size: 13px;
  font-weight: 600;
  color: #3a6ea5;
  background-color: #e2f0f1;
  padding: 2px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 48px;
  text-align: center;
}

.preview-name {
  font-size: 14px;
  color: #2b2b33;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-item .status {
  flex-shrink: 0;
}

.guide-preview .section-title {
  margin-bottom: 16px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #3a6ea5;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  min-width: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #2b2b33;
  line-height: 1.4;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 13px;
  color: #6b6b76;
  line-height: 1.6;
}

.guide-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #3a6ea5;
}

.guide-link:hover {
  text-decoration: underline;
}

/* 反馈条 */
.feedback-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.feedback-text {
  min-width: 0;
}

.feedback-text .section-title {
  margin-bottom: 6px;
}

.feedback-desc {
  font-size: 14px;
  color: #6b6b76;
}

.feedback-desc a {
  color: #3a6ea5;
}

.feedback-desc a:hover {
  text-decoration: underline;
}

.feedback-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3a6ea5;
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.action-link:hover {
  background-color: #2c5278;
  color: #ffffff;
}

.action-secondary {
  background-color: #ece7f5;
  color: #5a4a7a;
}

.action-secondary:hover {
  background-color: #ddd5ec;
  color: #5a4a7a;
}

/* 首页底部相关链接 */
.related-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid #e5e1d8;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #2b2b33;
}

.related-links-item {
  font-size: 14px;
  color: #3a6ea5;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* ---------- library ---------- */

.filter-bar {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 20px;
  margin-bottom: 24px;
}

.filter-bar .section-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6b6b76;
  margin-bottom: 8px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #2b2b33;
  background-color: #f0eee8;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-tag:hover {
  background-color: #e2f0f1;
  color: #2f6670;
}

.manga-list {
  margin-bottom: 24px;
}

.manga-list > .section-title {
  margin-bottom: 20px;
}

.manga-item {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 16px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
  min-width: 0;
}

.manga-item:hover {
  box-shadow: 0 4px 16px rgba(43, 43, 51, 0.06);
}

.manga-cover {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background-color: #ece7f5;
}

.manga-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manga-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.manga-name {
  font-size: 18px;
  font-weight: 700;
  color: #2b2b33;
  line-height: 1.4;
  margin-bottom: 8px;
}

.manga-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.manga-desc {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 10px;
  flex: 1;
}

.manga-latest {
  font-size: 13px;
  color: #3a6ea5;
}

/* 相关入口（library / guide / schedule 等） */
.related-entry {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e1d8;
}

.related-entry .section-title,
.related-entry .related-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.related-cards,
.entry-cards,
.entry-grid,
.entry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-card,
.entry-card {
  display: block;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.related-card:hover,
.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(43, 43, 51, 0.08);
}

.related-name,
.related-title,
.entry-title,
.entry-name {
  font-size: 15px;
  font-weight: 600;
  color: #2b2b33;
  margin-bottom: 6px;
  display: block;
}

.related-desc,
.entry-desc,
.entry-text {
  font-size: 13px;
  color: #6b6b76;
  line-height: 1.6;
  display: block;
}

/* ---------- schedule ---------- */

.schedule-week {
  margin-bottom: 24px;
}

.schedule-week > .section-title {
  margin-bottom: 20px;
}

.day-block {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.day-title {
  font-size: 16px;
  font-weight: 700;
  color: #3a6ea5;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0eee8;
}

.day-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #f7f5f0;
  min-width: 0;
}

.schedule-item:last-child {
  border-bottom: none;
}

.item-cover {
  width: 48px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #ece7f5;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  color: #2b2b33;
  line-height: 1.4;
}

.item-chapter {
  font-size: 13px;
  color: #6b6b76;
  line-height: 1.4;
}

.schedule-item .status-badge {
  flex-shrink: 0;
}

.status-legend {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 20px;
  margin-bottom: 24px;
}

.status-legend .section-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-text {
  font-size: 14px;
  color: #2b2b33;
}

.legend-note {
  font-size: 13px;
  color: #6b6b76;
  padding-top: 12px;
  border-top: 1px solid #f0eee8;
}

.legend-note a {
  color: #3a6ea5;
}

.legend-note a:hover {
  text-decoration: underline;
}

/* ---------- guide ---------- */

.step-flow {
  margin-bottom: 32px;
}

.step-flow > .section-title,
.step-flow > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 8px;
}

.step-flow .section-intro {
  margin-bottom: 24px;
}

.step-flow .step-item {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 20px;
  margin-bottom: 16px;
  min-width: 0;
}

.step-number-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3a6ea5;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.step-label {
  font-size: 12px;
  color: #6b6b76;
  margin-top: 6px;
  text-align: center;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-figure {
  margin: 12px 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e1d8;
  background-color: #f7f5f0;
}

.step-figure img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.step-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #6b6b76;
  background-color: #ffffff;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #3a6ea5;
}

.text-link:hover {
  text-decoration: underline;
}

.environment-section {
  margin-bottom: 32px;
}

.environment-section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 8px;
}

.environment-section .section-intro {
  margin-bottom: 20px;
}

.environment-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.environment-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 20px;
  min-width: 0;
}

.environment-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 8px;
}

.environment-card > p {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 12px;
}

.env-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.env-list li {
  font-size: 14px;
  color: #2b2b33;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.env-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #3a6ea5;
}

/* ---------- faq ---------- */

.sidebar-left {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.faq-group-aside {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 16px;
  position: sticky;
  top: 84px;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0eee8;
}

.group-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #2b2b33;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.group-list a:hover {
  background-color: #f0eee8;
  color: #3a6ea5;
}

.faq-list {
  min-width: 0;
}

.faq-group {
  margin-bottom: 28px;
}

.group-heading {
  font-size: 18px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3a6ea5;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #2b2b33;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #3a6ea5;
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  border-bottom: 1px solid #f0eee8;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  background-color: #f9f8f5;
}

.faq-answer {
  padding: 14px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 10px;
}

.faq-answer .step-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

.faq-answer .step-list li {
  font-size: 14px;
  color: #2b2b33;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.faq-answer .step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #3a6ea5;
}

.general-tips {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 16px 18px;
  margin-top: 12px;
}

.tip-figure {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e1d8;
}

.tip-figure img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
}

.tip-figure figcaption {
  padding: 6px 12px;
  font-size: 13px;
  color: #6b6b76;
  background-color: #f7f5f0;
}

.general-tips p {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 8px;
}

.general-tips p:last-child {
  margin-bottom: 0;
}

/* ---------- feedback ---------- */

.feedback-types {
  margin-bottom: 32px;
}

.feedback-types .section-title {
  margin-bottom: 8px;
}

.feedback-types .section-intro {
  margin-bottom: 20px;
}

.feedback-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feedback-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 16px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.tag-error {
  background-color: #f7e8ec;
  color: #8a4a5e;
}

.tag-link {
  background-color: #e2f0f1;
  color: #2f6670;
}

.tag-suggest {
  background-color: #ece7f5;
  color: #5a4a7a;
}

.tag-copyright {
  background-color: #f5eadf;
  color: #a05b2c;
}

.card-head .card-title {
  font-size: 16px;
  font-weight: 700;
  color: #2b2b33;
  margin: 0;
}

.card-text {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 10px;
  flex: 1;
}

.card-path {
  font-size: 13px;
  color: #2b2b33;
  line-height: 1.6;
}

.card-path strong {
  color: #3a6ea5;
}

.prepare-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.prepare-content {
  min-width: 0;
}

.prepare-content .section-title {
  margin-bottom: 8px;
}

.prepare-content .section-intro {
  margin-bottom: 16px;
}

.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prepare-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.item-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #ece7f5;
  color: #5a4a7a;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.item-text {
  min-width: 0;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  color: #2b2b33;
  line-height: 1.4;
  margin-bottom: 2px;
}

.item-desc {
  font-size: 13px;
  color: #6b6b76;
  line-height: 1.6;
}

.prepare-figure {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e1d8;
  background-color: #f7f5f0;
}

.prepare-figure img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.prepare-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #6b6b76;
  background-color: #ffffff;
}

/* ---------- about ---------- */

.intro-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 24px;
  margin-bottom: 24px;
  align-items: center;
}

.intro-copy {
  min-width: 0;
}

.intro-copy h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 12px;
}

.intro-copy p {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.8;
  margin-bottom: 10px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.intro-figure {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e1d8;
}

.intro-figure img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
}

.intro-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #6b6b76;
  background-color: #f7f5f0;
}

.scope-section {
  margin-bottom: 24px;
}

.scope-section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 8px;
}

.scope-section .section-note {
  margin-bottom: 20px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scope-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 18px 20px;
  min-width: 0;
}

.scope-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 8px;
}

.scope-card p {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 10px;
}

.scope-card a {
  font-size: 14px;
  font-weight: 600;
  color: #3a6ea5;
}

.scope-card a:hover {
  text-decoration: underline;
}

.organize-block {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 24px;
  margin-bottom: 24px;
}

.organize-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 12px;
}

.organize-block p {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.8;
  margin-bottom: 10px;
}

.organize-block p:last-child {
  margin-bottom: 0;
}

.boundary-section {
  margin-bottom: 24px;
}

.boundary-section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 8px;
}

.boundary-section .section-note {
  margin-bottom: 16px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.boundary-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 16px 18px;
  min-width: 0;
}

.boundary-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
}

/* ---------- 404 ---------- */

.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
  max-width: 560px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e1d8;
  padding: 40px 32px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: #3a6ea5;
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: #6b6b76;
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-back {
  display: inline-block;
  padding: 10px 24px;
  background-color: #3a6ea5;
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease;
  margin-bottom: 20px;
}

.btn-back:hover {
  background-color: #2c5278;
  color: #ffffff;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 14px;
  color: #3a6ea5;
}

.error-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .home-main .hero-section {
    grid-template-columns: 1fr;
  }

  .schedule-preview-row {
    grid-template-columns: 1fr;
  }

  .feedback-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-card-wide,
  .grid-card-tall {
    grid-column: span 6;
  }

  .grid-card-normal {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 6px;
  }

  .home-main {
    padding: 0 16px 48px;
  }

  .inner-main {
    padding: 16px 16px 48px;
  }

  .hero-section {
    padding-top: 16px;
  }

  .feature-title {
    font-size: 20px;
  }

  .grid-wrap {
    grid-template-columns: 1fr;
  }

  .grid-card-wide,
  .grid-card-tall,
  .grid-card-normal {
    grid-column: span 1;
  }

  .schedule-preview-row {
    grid-template-columns: 1fr;
  }

  .feedback-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sidebar-left {
    grid-template-columns: 1fr;
  }

  .faq-group-aside {
    position: static;
    margin-bottom: 20px;
  }

  .group-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .group-list a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .environment-cards {
    grid-template-columns: 1fr;
  }

  .prepare-section {
    grid-template-columns: 1fr;
  }

  .intro-block {
    grid-template-columns: 1fr;
  }

  .scope-columns {
    grid-template-columns: 1fr;
  }

  .boundary-list {
    grid-template-columns: 1fr;
  }

  .manga-item {
    flex-direction: column;
  }

  .manga-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .step-flow .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .step-number-wrap {
    flex-direction: row;
    gap: 10px;
    width: auto;
  }

  .step-label {
    margin-top: 0;
  }

  .feedback-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .update-item img {
    width: 48px;
    height: 62px;
  }

  .related-cards,
  .entry-cards,
  .entry-grid,
  .entry-card-grid {
    grid-template-columns: 1fr;
  }

  .feedback-actions {
    flex-direction: column;
    width: 100%;
  }

  .action-link {
    text-align: center;
  }

  .footer-inner {
    padding: 28px 16px 16px;
  }

  .error-code {
    font-size: 48px;
  }
}
