:root {
  color: #24221f;
  background: #fbfaf7;
  font: 15px/1.75 Inter, system-ui, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

h1 { margin-bottom: 4px; font-size: clamp(30px, 7vw, 44px); line-height: 1.18; }
h2 { margin: 30px 0 6px; font-size: 19px; }
a { color: #87351c; }
.meta { margin-top: 0; color: #6d675f; }
.notice { padding: 14px 16px; background: #f3f0e9; border: 1px solid #d8d2c8; border-radius: 10px; }
.links { margin-top: 36px; }

/* Modified: BeadPlanet — 广告条款用到了列表 */
ul { margin: 8px 0 0; padding-left: 20px; }
li { margin: 5px 0; }

.centered { display: grid; min-height: 100vh; place-items: center; background: #ece9e2; }
.error-card { max-width: 480px; padding: 32px; text-align: center; background: #fbfaf7; border: 1px solid #d8d2c8; border-radius: 18px; box-shadow: 0 18px 50px #342d241f; }
.error-code { display: block; font-size: 54px; line-height: 1; }
.primary-link { display: inline-block; min-height: 44px; margin-top: 12px; padding: 10px 16px; color: #fff; background: #a94726; border-radius: 8px; text-decoration: none; font-weight: 700; }

/* ---------- 内容页（guides）---------- */
/* 内容页与法律页共用 legal.css，追加这一层即可，不额外引入文件。 */

.guide-list { margin: 22px 0 0; padding: 0; list-style: none; }
.guide-list li { margin: 0 0 12px; padding: 0; }
.guide-list a {
  display: block;
  padding: 14px 16px;
  color: inherit;
  background: #fff;
  border: 1px solid #e2dcd1;
  border-radius: 12px;
  text-decoration: none;
}
.guide-list a:hover { border-color: #a94726; }
.guide-list strong { display: block; font-size: 16px; }
.guide-list span { display: block; margin-top: 3px; color: #6d675f; font-size: 14px; line-height: 1.6; }

.crumbs { margin: 0 0 6px; color: #6d675f; font-size: 14px; }
.crumbs a { color: #6d675f; }

.lede { margin-top: 10px; font-size: 16.5px; color: #44403a; }

/* 正文里的步骤 / 提示块 */
.steps { margin: 14px 0 0; padding-left: 0; list-style: none; counter-reset: step; }
.steps > li {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 0 38px;
  counter-increment: step;
}
.steps > li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  color: #fff;
  background: #a94726;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  content: counter(step);
}

.tip {
  margin: 16px 0;
  padding: 12px 16px;
  background: #f3f0e9;
  border-left: 3px solid #a94726;
  border-radius: 0 10px 10px 0;
}
.tip strong { color: #87351c; }

.table-wrap { overflow-x: auto; margin: 16px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 9px 11px; border: 1px solid #e2dcd1; text-align: left; vertical-align: top; }
th { background: #f3f0e9; font-weight: 700; }

/* 内容页底部广告位：与 legal 页面调性一致，不喧宾夺主 */
.guide-ad {
  margin: 34px 0 0;
  padding: 14px 16px;
  color: #6d675f;
  background: #f7f5f0;
  border: 1px dashed #d8d2c8;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}
.guide-ad .ad-slot-label { display: block; margin-bottom: 3px; color: #a09a91; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* 相关文章 */
.related { margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid #e2dcd1; }
.related h2 { margin-top: 0; font-size: 16px; }

/* CTA 回工具 */
.cta {
  display: inline-block;
  min-height: 44px;
  margin-top: 6px;
  padding: 11px 18px;
  color: #fff;
  background: #a94726;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.cta:hover { background: #8f3a1f; }

/* Modified: BeadPlanet — 下载页 CTA 与广告位并排。
   广告位刻意与 .cta 按钮在视觉上完全区分（虚线卡片 vs 橙色实心按钮），
   以满足 AdSense「广告不得被误认为页面元素」的要求。 */
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-top: 22px; }
.cta-row .cta-main { flex: 1 1 250px; min-width: 0; }
.cta-row .cta-ad { flex: 1 1 230px; max-width: 330px; margin: 0; }
@media (max-width: 560px) {
  .cta-row .cta-ad { flex: 1 1 100%; max-width: none; }
}
