* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #fff8ee 0%, #ffe9da 35%, #f9dec8 100%);
  color: #3a1d12;
}

a {
  color: #8e2a0d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.header {
  background: linear-gradient(135deg, #fffaf5 0%, #ffe9d8 70%, #ffd9be 100%);
  border: 1px solid #efbf9f;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(142, 42, 13, 0.16);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  right: -36px;
  top: -46px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 220, 185, 0.45) 58%, rgba(255, 220, 185, 0) 100%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.hero-main {
  min-width: 0;
}

.hero-side {
  justify-self: end;
  width: 100%;
  max-width: 260px;
  border: 1px solid #e8b28f;
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.92);
  padding: 10px 12px;
  box-shadow: 0 5px 14px rgba(142, 42, 13, 0.12);
}

.hero-side-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #7b3f24;
  border-bottom: 1px solid #dca07c;
  padding-bottom: 2px;
  margin-bottom: 8px;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", "SimSun", serif;
}

.hero-side-quote {
  font-size: 16px;
  line-height: 1.75;
  color: #6f3920;
  margin-bottom: 6px;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", "SimSun", serif;
}

.hero-side-meta {
  font-size: 12px;
  color: #9a6a50;
  letter-spacing: 0.06em;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", "SimSun", serif;
}

.channel-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e8b28f;
  background: #fff5ec;
  color: #8a3718;
  font-size: 13px;
}

.channel-nav-item:hover {
  text-decoration: none;
  background: #ffe9d8;
}

.channel-nav-item.active {
  background: #a62d0d;
  border-color: #a62d0d;
  color: #fff;
}

.pager-bar {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #efbf9f;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff4e9 0%, #ffe8d7 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.action-bar {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #efbf9f;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff4e9 0%, #ffe8d7 100%);
}

.channel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-search input {
  min-width: 240px;
  border: 1px solid #e8b28f;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fffdfb;
}

.title {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #7f250a;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.subtitle {
  margin: 0;
  color: #7a442b;
  font-size: 16px;
}

.subtitle.slogan {
  display: inline-block;
  margin-top: 2px;
  font-size: 18px;
  color: #8f3b1b;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e8b28f;
  background: rgba(255, 247, 238, 0.92);
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.top-corner-actions {
  position: fixed;
  right: 16px;
  top: 14px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.corner-switch {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff7ef;
  border-color: #e8b28f !important;
  color: #7f2a0f !important;
}

.corner-user {
  font-size: 12px;
  line-height: 1.2;
  color: #8f573a;
  background: rgba(255, 250, 245, 0.95);
  border: 1px solid #e8b28f;
  padding: 4px 8px;
  border-radius: 999px;
}

.hero-accent {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.accent-chip {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7f2a0f;
  background: #ffe7d4;
  border: 1px solid #eeb590;
  border-radius: 999px;
  padding: 4px 10px;
}

.actions .button.muted {
  background: #fff1e3;
  color: #8a3718;
  border: 1px solid #eeb590;
}

.button {
  display: inline-block;
  background: linear-gradient(135deg, #b93510 0%, #8d2408 100%);
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid #8d2408;
  box-shadow: 0 6px 16px rgba(141, 36, 8, 0.25);
}

.button.secondary {
  background: #fff8f1;
  color: #8d2408;
  border: 1px solid #e8b28f;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.card {
  background: linear-gradient(180deg, #fffaf5 0%, #fff4ea 100%);
  border: 1px solid #efbf9f;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(142, 42, 13, 0.09);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  border-left: none;
  padding-left: 0;
}

.card h3 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.section-title-link:hover {
  text-decoration: none;
}

.enter-inline {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e8b28f;
  background: #fff0e1;
  color: #a62d0d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.enter-inline:hover {
  text-decoration: none;
  background: #ffe2cc;
}

.section-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a2411f;
  font-size: 16px;
  border-radius: 999px;
  background: #ffe6d1;
  border: 1px solid #e8b28f;
  box-shadow: 0 2px 6px rgba(162, 65, 31, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: #8f573a;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #e8b28f;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

.field textarea {
  min-height: 96px;
}

.field.full {
  grid-column: 1 / -1;
}

.alert {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.alert.error {
  background: #fde8e8;
  color: #8f2525;
  border: 1px solid #f7c9c9;
}

.alert.success {
  background: #e8f7ec;
  color: #206b34;
  border: 1px solid #bfe5c8;
}

.list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.list li {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #f3d6c0;
  line-height: 1.45;
}

.list li:first-child {
  border-top: none;
}

.meta {
  color: #8f5d43;
  font-size: 12px;
}

.article {
  margin-top: 18px;
  background: #fffaf5;
  border: 1px solid #efbf9f;
  border-radius: 14px;
  padding: 22px;
  line-height: 1.75;
}

.article h1 {
  margin: 0 0 10px;
  font-size: 30px;
}

.article-meta-bar {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #efbf9f;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff4e9 0%, #ffe8d7 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a3718;
  font-size: 13px;
}

.legacy-return-home {
  margin: 18px 0 8px;
  text-align: center;
}

.footer-note {
  margin-top: 16px;
  font-size: 13px;
  color: #846f63;
}

.footer-links {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #efbf9f;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pager {
  margin-top: 0;
  display: flex;
  gap: 12px;
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.board-tab {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e8b28f;
  background: #fff6ee;
  color: #8a3718;
  font-size: 13px;
}

.board-tab.active {
  background: #a62d0d;
  border-color: #a62d0d;
  color: #fff;
}

.thread-list {
  margin-top: 12px;
}

.thread-item {
  border-top: 1px solid #f0d2bd;
  padding: 10px 0;
}

.thread-item:first-child {
  border-top: none;
}

.thread-title {
  font-size: 16px;
}

.thread-meta {
  margin-top: 4px;
  font-size: 13px;
  color: #8f5d43;
}

@media (max-width: 720px) {
  .title {
    font-size: 34px;
  }
  .container {
    padding: 18px 12px 28px;
  }
  .header {
    padding: 20px 16px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pager-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .channel-search input {
    min-width: 0;
    width: 100%;
  }
  .hero-side {
    justify-self: start;
    max-width: none;
  }
  .top-corner-actions {
    right: 8px;
    top: 8px;
  }
  .corner-switch {
    padding: 6px 8px;
    font-size: 12px;
  }
  .corner-user {
    font-size: 11px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .article h1 {
    font-size: 24px;
  }
  .article-meta-bar {
    gap: 8px;
  }
}

