/**
 * 全站版块统一布局（对齐桌游详情 #container：1200px 居中、段落层级）
 * 用于：教学、知识、工具、随机等子站
 */
:root {
  --site-max: 1200px;
  --site-pad: 20px;
  --site-text: #333;
  --site-muted: #666;
  --site-border: #e5e7eb;
  --site-accent: #f98206;
}

.site-main {
  max-width: var(--site-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--site-pad);
  box-sizing: border-box;
  min-height: 420px;
}

.site-heading-1 {
  font-size: 28px;
  font-weight: normal;
  color: var(--site-text);
  text-align: center;
  margin: 16px 0 14px;
  font-family: pingfang, "Microsoft Yahei", "HanHei SC", PingHei, "PingFang SC",
    "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Heiti SC",
    "WenQuanYi Micro Hei", sans-serif;
  line-height: 1.35;
}

.site-lead {
  font-size: 15px;
  color: var(--site-muted);
  line-height: 1.75;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 20px;
}

.site-prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--site-text);
}

.site-prose p {
  margin: 0 0 14px;
}

.site-card {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.site-hero {
  max-width: var(--site-max);
  width: 100%;
  margin: 0 auto;
  padding: 22px var(--site-pad);
  box-sizing: border-box;
  background: #fff;
  border-bottom: 3px solid var(--site-accent);
  text-align: center;
}

.site-hero h1 {
  font-size: 26px;
  font-weight: normal;
  color: var(--site-text);
  margin: 0 0 10px;
  font-family: pingfang, "Microsoft Yahei", "PingFang SC", sans-serif;
}

.site-hero p {
  font-size: 15px;
  color: var(--site-muted);
  margin: 0;
  line-height: 1.7;
}

.tools-wrap .site-card .section-title {
  font-size: 18px;
  margin-bottom: 12px;
  color: #111;
  font-weight: 600;
}

/* 工具版块（与桌游主色协调） */
.tools-wrap .tools-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}
.tools-wrap .tools-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.tools-wrap .tools-nav a:hover {
  border-color: #f98206;
  color: #333;
}
.tools-wrap .tools-nav .active {
  background: #f98206;
  border-color: #f98206;
  color: #fff;
  font-weight: 600;
}
.tools-wrap .tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.tools-wrap .tool-item {
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.tools-wrap .tool-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: normal;
  color: #333;
}
.tools-wrap .tool-item p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}
.tools-wrap .tool-ok {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 6px;
  background: #f98206;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
}
.tools-wrap .tool-ok:hover {
  background: #e67800;
  color: #fff !important;
}
.tools-wrap .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f5f5f5;
  color: #555;
  border: 1px solid #e5e7eb;
  margin-left: 6px;
}

/* 随机版块：按钮与桌游主色一致 */
.random-page .refresh-button {
  background: var(--site-accent);
  color: #fff;
}
.random-page .refresh-button:hover {
  background: #e67800;
  color: #fff;
}
.random-page .random-info .game-title-link:hover .game-title-text {
  color: var(--site-accent);
}

@media (max-width: 768px) {
  .site-heading-1 {
    font-size: 22px;
  }
  .site-hero h1 {
    font-size: 22px;
  }
}
