/* =========================================================
   17吃瓜 · 全站样式表
   版本：1.0
   说明：本样式表覆盖全站所有页面，按 base / layout /
   components / pages / responsive 分组编写。
   ========================================================= */

/* =========================================================
   1. base — 基础变量、重置、字体、通用元素
   ========================================================= */

:root {
  --color-bg: #F5F1E8;
  --color-primary: #3E4A3F;
  --color-accent: #C48B5E;
  --color-card: #E8DCC8;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-border: rgba(62, 74, 63, 0.12);
  --color-white: #FFFFFF;
  --font-title: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: Georgia, "Times New Roman", "Songti SC", serif;
  --container-width: 1200px;
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 2px 8px rgba(44, 44, 44, 0.06);
  --shadow-hover: 0 6px 20px rgba(44, 44, 44, 0.1);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

p {
  margin-bottom: 1em;
}

time {
  color: var(--color-text-light);
  font-size: 14px;
}

/* 通用容器 */
.site-home .hero-section > *,
.site-home .channel-nav-section,
.site-home .latest-section,
.site-home .topic-section,
.site-home .editor-picks-section,
.site-home .source-section,
.inner-main,
.error-main {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* =========================================================
   2. layout — 全站统一外壳：页头、页脚、内页布局骨架
   ========================================================= */

/* ---------- 页头 ---------- */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.brand-slogan {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
}

/* 主导航 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav .nav-list a {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 0;
  position: relative;
}

.site-nav .nav-list a:hover {
  color: var(--color-accent);
}

.site-nav .nav-list a.is-current {
  color: var(--color-primary);
  font-weight: 700;
}

.site-nav .nav-list a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.footer-link-group h3 {
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-link-group ul li {
  margin-bottom: 10px;
}

.footer-link-group ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-link-group ul a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-note {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 内页统一骨架 ---------- */
.inner-main {
  padding-top: 32px;
  padding-bottom: 48px;
  min-height: 60vh;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--color-text-light);
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--color-primary);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
  line-height: 1.8;
}

/* 内页两栏布局 */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.content-area {
  min-width: 0;
}

/* 侧栏通用 */
.sidebar,
.sidebar-right {
  min-width: 0;
}

.sidebar-block,
.sidebar-card {
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-block h2,
.sidebar-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.sidebar-list li,
.recent-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(62, 74, 63, 0.08);
}

.sidebar-list li:last-child,
.recent-list li:last-child {
  border-bottom: none;
}

.sidebar-list a,
.recent-list a {
  font-size: 15px;
  font-weight: 500;
  display: block;
  line-height: 1.5;
}

.sidebar-meta {
  display: block;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* =========================================================
   3. components — 跨页面通用组件
   ========================================================= */

/* ---------- 频道标签 ---------- */
.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: all var(--transition);
}

.channel-tag:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ---------- 资讯列表项 ---------- */
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.news-item img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.news-body {
  flex: 1;
  min-width: 0;
}

.news-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-body h3 a {
  color: var(--color-text);
}

.news-body h3 a:hover {
  color: var(--color-accent);
}

.news-summary {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 专题卡片 ---------- */
.topic-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-body,
.topic-content {
  padding: 20px;
}

.topic-body h3,
.topic-title {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.topic-summary {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.topic-link,
.pick-link {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  position: relative;
}

.topic-link::after,
.pick-link::after {
  content: "→";
  margin-left: 4px;
  transition: margin-left var(--transition);
}

.topic-link:hover::after,
.pick-link:hover::after {
  margin-left: 8px;
}

/* ---------- 编辑推荐条 ---------- */
.pick-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.pick-item:last-child {
  border-bottom: none;
}

.pick-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pick-body,
.pick-content {
  flex: 1;
  min-width: 0;
}

.pick-body h3,
.pick-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1.5;
}

.pick-reason {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ---------- 来源与反馈 ---------- */
.source-content {
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 15px;
  line-height: 1.8;
}

.source-content p:last-child {
  margin-bottom: 0;
}

.source-content a {
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- 指南卡片 ---------- */
.guide-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.guide-card:hover {
  box-shadow: var(--shadow-card);
}

.guide-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

.guide-card a {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- 通用 section 标题 ---------- */
.section-title {
  font-size: 24px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 24px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* =========================================================
   4. pages — 各页面专属样式
   ========================================================= */

/* ---------- 首页 ---------- */
.home-main {
  padding-bottom: 48px;
}

/* Hero 区 */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-cta {
  margin-bottom: 0;
}

.hero-cta a {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--transition);
}

.hero-cta a:hover {
  background-color: var(--color-accent);
}

.hero-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* 快捷入口 */
.quick-entry {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.quick-text {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* 频道导航区 */
.channel-nav-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.channel-nav-section h2,
.latest-section h2,
.topic-section h2,
.editor-picks-section h2,
.source-section h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* 最新资讯 */
.latest-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* 专题推荐 */
.topic-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 编辑推荐 */
.editor-picks-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.editor-picks {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 8px 24px;
  box-shadow: var(--shadow-card);
}

/* 来源与反馈 */
.source-section {
  padding-top: 40px;
  padding-bottom: 24px;
}

/* ---------- 频道分类页 ---------- */
.page-channels .channel-list {
  margin-bottom: 48px;
}

.channel-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.channel-item:last-child {
  border-bottom: none;
}

.channel-media {
  flex-shrink: 0;
  width: 160px;
}

.channel-media img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.channel-content {
  flex: 1;
  min-width: 0;
}

.channel-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.channel-content p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.channel-content a {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.channel-guide {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.channel-guide h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.channel-guide > p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- 内容专题页 ---------- */
.page-topics .topic-list {
  margin-bottom: 48px;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.topic-meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.topic-guide {
  margin-top: 48px;
  padding: 32px;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
}

.guide-intro p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
}

.guide-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.guide-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.guide-item a {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- 角色观察页 ---------- */
.page-characters .intro-section {
  margin-bottom: 48px;
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.intro-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.intro-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.intro-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.article-list-section {
  margin-bottom: 48px;
}

.article-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.article-item img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.article-meta {
  flex: 1;
  min-width: 0;
}

.article-meta h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-meta h3 a {
  color: var(--color-text);
}

.article-meta h3 a:hover {
  color: var(--color-accent);
}

.article-excerpt {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-date {
  font-size: 13px;
  color: var(--color-text-light);
}

.list-footer-link,
.picks-more {
  text-align: center;
  margin-top: 24px;
}

.list-footer-link a,
.picks-more a {
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition);
}

.list-footer-link a:hover,
.picks-more a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.editor-picks {
  margin-bottom: 48px;
}

.picks-list {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 8px 24px;
  box-shadow: var(--shadow-card);
}

.source-feedback {
  margin-top: 48px;
}

/* ---------- 内容归档页 ---------- */
.page-archives .archive-index {
  min-width: 0;
}

.archive-section {
  margin-bottom: 40px;
}

.archive-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.archive-group {
  margin-bottom: 24px;
}

.archive-group h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.archive-month-list li {
  margin-bottom: 8px;
}

.archive-month-list a {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.archive-month-list a::before {
  content: "·";
  color: var(--color-accent);
  font-weight: 700;
}

.archive-note {
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 40px;
}

.archive-note h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.archive-note p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.archive-note p:last-child {
  margin-bottom: 0;
}

.sidebar-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.sidebar-figure figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
  padding: 8px;
  background-color: var(--color-white);
}

/* ---------- 404 页 ---------- */
.site-error .error-main {
  padding-top: 80px;
  padding-bottom: 80px;
}

.error-panel {
  text-align: center;
  padding: 48px 24px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}

.error-code {
  font-family: var(--font-title);
  font-size: 72px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto 24px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-home,
.btn-channel {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-home {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-home:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-channel {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-channel:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.error-suggest {
  max-width: 640px;
  margin: 0 auto;
}

.error-suggest h2 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.error-suggest ul {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.error-suggest ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.error-suggest ul li:last-child {
  border-bottom: none;
}

.error-suggest ul a {
  font-size: 15px;
  font-weight: 500;
}

/* =========================================================
   5. responsive — 响应式断点
   ========================================================= */

/* ---------- 平板及以下 ---------- */
@media (max-width: 992px) {
  .layout-shell,
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar,
  .sidebar-right {
    order: 2;
  }

  .guide-grid,
  .guide-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    gap: 32px;
  }

  .hero-figure img {
    height: 280px;
  }
}

/* ---------- 手机端 ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    width: 100%;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li {
    width: 100%;
  }

  .site-nav .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .site-nav .nav-list a.is-current::after {
    display: none;
  }

  .site-nav .nav-list a.is-current {
    color: var(--color-accent);
  }

  /* 首页 hero */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-figure img {
    height: 220px;
  }

  .quick-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quick-card {
    padding: 16px 20px;
  }

  /* 首页列表 */
  .news-item {
    flex-direction: column;
    gap: 12px;
  }

  .news-item img {
    width: 100%;
    height: 180px;
  }

  .topic-cards,
  .topic-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .editor-picks {
    padding: 8px 16px;
  }

  .pick-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pick-item img {
    width: 100%;
    height: 160px;
  }

  /* 内页 */
  .inner-main {
    padding-top: 24px;
    padding-bottom: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  /* 频道页 */
  .channel-item {
    flex-direction: column;
    gap: 12px;
  }

  .channel-media,
  .channel-media img {
    width: 100%;
    height: 180px;
  }

  .guide-grid,
  .guide-list {
    grid-template-columns: 1fr;
  }

  /* 角色观察 */
  .intro-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro-figure img {
    height: 200px;
  }

  .article-item {
    flex-direction: column;
    gap: 12px;
  }

  .article-item img {
    width: 100%;
    height: 180px;
  }

  /* 归档页 */
  .archive-group h3 {
    font-size: 16px;
  }

  .sidebar-figure img {
    height: 160px;
  }

  /* 页脚 */
  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  /* 404 */
  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-home,
  .btn-channel {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 390px) {
  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .topic-card img {
    height: 160px;
  }

  .channel-tag {
    padding: 8px 16px;
    font-size: 13px;
  }

  .source-content {
    padding: 20px;
  }
}
