/* ============================================================
   tianyude.cn · 麻豆映像传媒官网 整站样式
   知识库风：纸张白背景、墨黑正文、靛蓝强调、琥珀辅助
   ============================================================ */

/* ------------------------------------------------------------
   Base · 基础变量与重置
   ------------------------------------------------------------ */
:root {
  --paper: #f7f6f2;
  --ink: #1f2328;
  --indigo: #2f5d8a;
  --amber: #c47a22;
  --line: #e2e0da;
  --dark-bg: #16191d;
  --dark-text: #d8d4cd;
  --white: #ffffff;
  --muted: #6b7280;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas,
    "Liberation Mono", Menlo, monospace;
  --container: 1100px;
  --text-width: 720px;
  --radius: 8px;
  --header-h: 64px;
  --space: 16px;
}

*,
*::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: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber);
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-size: 28px;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 22px;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 18px;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 0.8em;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--line);
  border: 1px solid #d0cec6;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.1em 0.5em;
  display: inline-block;
  margin: 0 0.2em;
}

.sr-only,
.visually-hidden {
  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-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.home-main {
  width: 100%;
}

/* ------------------------------------------------------------
   Header · 页头与导航
   ------------------------------------------------------------ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-list li {
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 4px;
  line-height: 1.4;
}

.nav-list a:hover {
  background: var(--paper);
  color: var(--indigo);
  text-decoration: none;
}

.nav-list a.is-current {
  background: var(--indigo);
  color: var(--white);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

/* ------------------------------------------------------------
   Breadcrumb · 面包屑
   ------------------------------------------------------------ */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  padding: 14px 0 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--indigo);
}

.breadcrumb-sep {
  color: var(--muted);
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* ------------------------------------------------------------
   Page Header · 内页标题区
   ------------------------------------------------------------ */
.page-header {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--muted);
  max-width: var(--text-width);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Components · 通用组件
   ------------------------------------------------------------ */

/* 内容图片 */
.content-media {
  margin: 24px 0;
}

.content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.content-media figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px 0;
  text-align: center;
}

.content-media-primary {
  max-width: 640px;
}

.content-media-inline {
  max-width: 560px;
  margin: 24px auto;
}

/* 版块卡片 */
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.board-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.board-card:hover {
  border-color: var(--indigo);
  box-shadow: 0 2px 8px rgba(47, 93, 138, 0.12);
}

.board-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.board-content {
  flex: 1;
  min-width: 0;
}

.board-content h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.board-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.board-question {
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border-left: 3px solid var(--amber);
  padding: 6px 12px;
  border-radius: 0 4px 4px 0;
  margin-top: 8px;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--indigo);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  padding: 14px 20px;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* 规则提示框 */
.rule-reminder {
  background: #fdf8ef;
  border: 1px solid #ead9bf;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.reminder-list {
  margin: 12px 0 12px 20px;
}

.reminder-list li {
  margin-bottom: 6px;
  font-size: 15px;
}

/* 流程步骤 */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.flow-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}

.flow-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--indigo);
}

.flow-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* 公告时间线 */
.announcement-timeline {
  position: relative;
  padding-left: 32px;
}

.announcement-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.timeline-date {
  font-size: 13px;
  color: var(--amber);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* 页脚 */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  font-size: 14px;
  color: #a8a49c;
  line-height: 1.7;
  margin: 0;
}

.footer-nav h3,
.footer-help h3,
.footer-legal h3 {
  font-size: 15px;
  color: var(--dark-text);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-nav ul,
.footer-help ul,
.footer-legal ul {
  list-style: none;
}

.footer-nav li,
.footer-help li,
.footer-legal li {
  list-style: none;
  margin-bottom: 8px;
}

.footer-nav a,
.footer-help a,
.footer-legal a {
  color: #a8a49c;
  font-size: 14px;
}

.footer-nav a:hover,
.footer-help a:hover,
.footer-legal a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #2a2e34;
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #8a8680;
  margin: 0;
}

/* ------------------------------------------------------------
   Pages · 首页
   ------------------------------------------------------------ */

/* 首屏 */
.hero-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 40px 24px;
}

.hero-section {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-media img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-content h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta-link {
  display: inline-block;
  background: var(--indigo);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s ease;
}

.cta-link:hover {
  background: #254a70;
  color: var(--white);
  text-decoration: none;
}

/* 首屏三入口 */
.entry-cards {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.entry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-card:hover {
  border-color: var(--indigo);
  box-shadow: 0 2px 8px rgba(47, 93, 138, 0.1);
}

.entry-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--indigo);
}

.entry-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.entry-card a {
  font-size: 14px;
  font-weight: 500;
}

/* 版块地图 + 最新话题 */
.forum-overview {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.map-column,
.latest-column {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.map-column h2,
.latest-column h2 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.forum-map-list,
.latest-topics {
  list-style: none;
}

.forum-map-list li,
.latest-topics li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.forum-map-list li:last-child,
.latest-topics li:last-child {
  border-bottom: none;
}

.forum-map-list a {
  font-weight: 500;
  font-size: 15px;
}

.forum-map-list p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

.latest-topics a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.latest-topics span {
  font-size: 13px;
  color: var(--muted);
}

/* 热帖列表 */
.hot-threads {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.hot-threads h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.hot-list {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 24px;
}

.hot-list li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list a {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}

.reply-count {
  font-size: 13px;
  color: var(--amber);
  background: #fdf8ef;
  border: 1px solid #ead9bf;
  border-radius: 4px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 新手指南 + 规则摘要 */
.guide-and-rules {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.guide-preview,
.rules-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.guide-preview h2,
.rules-summary h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.guide-preview p,
.rules-summary p {
  font-size: 14px;
  color: var(--muted);
}

.guide-steps {
  margin: 12px 0 16px 20px;
}

.guide-steps li {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

.guide-preview a,
.rules-summary a {
  font-size: 14px;
  font-weight: 500;
}

/* ------------------------------------------------------------
   Pages · 讨论版块
   ------------------------------------------------------------ */
.section-block {
  margin-bottom: 32px;
}

.section-block h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

/* ------------------------------------------------------------
   Pages · 话题索引
   ------------------------------------------------------------ */
.index-intro {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.index-intro p {
  font-size: 15px;
  margin: 0;
  line-height: 1.7;
}

.index-intro strong {
  color: var(--indigo);
}

.index-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.alpha-index,
.topic-index {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.alpha-index h2,
.topic-index h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.index-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.alpha-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  list-style: none;
}

.alpha-list li {
  list-style: none;
}

.alpha-list a {
  display: block;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.alpha-list a:hover {
  background: var(--indigo);
  color: var(--white);
  text-decoration: none;
}

.topic-category-list {
  list-style: none;
  margin-bottom: 12px;
}

.topic-category-list li {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.topic-category-list li:last-child {
  border-bottom: none;
}

.topic-category-list a {
  font-size: 15px;
  font-weight: 500;
}

.index-figure {
  margin-top: 12px;
}

.index-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.topic-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.topic-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.topic-block h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--indigo);
}

.topic-block p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.page-links {
  margin: 24px 0;
}

.page-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-links li {
  list-style: none;
}

.page-links a {
  font-size: 14px;
  font-weight: 500;
}

/* ------------------------------------------------------------
   Pages · 新手指南
   ------------------------------------------------------------ */
.guide-flow {
  margin-bottom: 32px;
}

.guide-flow h2,
.rule-reminder h2,
.faq-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.flow-intro,
.faq-intro {
  font-size: 15px;
  color: var(--muted);
}

.faq-section {
  margin-bottom: 32px;
}

.related-links {
  margin: 24px 0;
}

.related-links p {
  font-size: 15px;
}

.related-links a {
  font-weight: 500;
  margin-right: 16px;
}

.guide-media {
  margin: 24px 0;
}

.guide-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.guide-media figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
}

/* ------------------------------------------------------------
   Pages · 社区规则
   ------------------------------------------------------------ */
.rule-toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 24px;
}

.rule-toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.rule-toc li {
  list-style: none;
}

.rule-toc a {
  font-size: 14px;
  font-weight: 500;
}

.rule-content {
  max-width: var(--text-width);
}

.rule-section {
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}

.rule-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rule-section h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}

.rule-section p {
  font-size: 15px;
  line-height: 1.8;
}

.rule-section ul {
  margin: 12px 0 12px 20px;
}

.rule-section li {
  font-size: 15px;
  margin-bottom: 6px;
}

/* ------------------------------------------------------------
   Pages · 站务公告
   ------------------------------------------------------------ */
.feedback-guide {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.feedback-guide h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feedback-guide p {
  font-size: 15px;
  color: var(--muted);
}

.feedback-list {
  margin: 12px 0 0 20px;
}

.feedback-list li {
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-path {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.contact-path h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.contact-path p {
  font-size: 15px;
  color: var(--muted);
}

.contact-steps {
  margin: 12px 0 0 20px;
}

.contact-steps li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* ------------------------------------------------------------
   Pages · 隐私政策
   ------------------------------------------------------------ */
.content-layout {
  max-width: var(--text-width);
}

.privacy-article .content-section {
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}

.content-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.content-section p {
  font-size: 15px;
  line-height: 1.8;
}

.policy-list {
  margin: 12px 0 12px 20px;
}

.policy-list li {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.policy-list strong {
  color: var(--indigo);
}

.policy-links {
  margin: 24px 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.policy-links p {
  font-size: 14px;
  margin: 0;
}

.policy-links a {
  font-weight: 500;
  margin-right: 16px;
}

/* ------------------------------------------------------------
   Pages · 服务条款
   ------------------------------------------------------------ */
.terms-section {
  max-width: var(--text-width);
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}

.terms-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.terms-section p {
  font-size: 15px;
  line-height: 1.8;
}

.terms-list {
  margin: 12px 0 12px 20px;
}

.terms-list li {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Pages · 辅助功能说明
   ------------------------------------------------------------ */
.content-wrap {
  max-width: var(--text-width);
}

.access-section {
  margin-bottom: 32px;
}

.section-text h2 {
  font-size: 20px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.section-text p {
  font-size: 15px;
  line-height: 1.8;
}

.key-list {
  margin: 12px 0 12px 20px;
}

.key-list li {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Pages · 404
   ------------------------------------------------------------ */
.error-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  flex: 1;
}

.error-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.btn-home {
  display: inline-block;
  background: var(--indigo);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}

.btn-home:hover {
  background: #254a70;
  color: var(--white);
  text-decoration: none;
}

.error-links {
  max-width: 480px;
  width: 100%;
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.error-links h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.error-links ul {
  list-style: none;
}

.error-links li {
  list-style: none;
  padding: 6px 0;
}

.error-links a {
  font-size: 15px;
  font-weight: 500;
}

/* ------------------------------------------------------------
   Responsive · 响应式
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-content {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }

  .forum-overview {
    grid-template-columns: 1fr;
  }

  .guide-and-rules {
    grid-template-columns: 1fr;
  }

  .index-layout {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .inner-main {
    padding: 0 16px 32px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 2px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
  }

  .nav-list a.is-current {
    background: var(--paper);
    color: var(--indigo);
    font-weight: 600;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .topic-sections {
    grid-template-columns: 1fr;
  }

  .alpha-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .hot-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .guide-and-rules {
    gap: 20px;
  }

  .entry-cards {
    padding: 24px 16px;
  }

  .hero-section {
    padding: 24px 16px;
  }

  .forum-overview {
    padding: 0 16px 24px;
  }

  .hot-threads {
    padding: 0 16px 24px;
  }

  .guide-and-rules {
    padding: 0 16px 32px;
  }

  .page-header {
    padding: 16px 0;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 16px 16px;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  .alpha-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .board-card {
    padding: 16px;
  }

  .entry-card {
    padding: 20px 16px;
  }

  .map-column,
  .latest-column,
  .guide-preview,
  .rules-summary {
    padding: 16px;
  }

  .timeline-content {
    padding: 16px;
  }

  .announcement-timeline {
    padding-left: 28px;
  }

  .timeline-marker {
    left: -28px;
  }

  .error-panel,
  .error-links {
    padding: 24px 16px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* 打印样式 */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .breadcrumb {
    display: none;
  }

  .site-main {
    padding: 0;
  }

  body {
    background: var(--white);
  }
}
