/* Keep the authorized tutorial layout isolated from the main portal. */
:root { --guide-nav-height: 72px; }
.mt-nav, .toc { top: calc(var(--guide-nav-height) + 8px) !important; }
#main-content, #login-selector { scroll-margin-top: calc(var(--guide-nav-height) + 16px); }
.gw-guide-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--brand-ink);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.gw-guide-back:hover { background: var(--brand-weak); }
.gw-guide-credit { margin-top: 6px; font-size: var(--t-sm); color: var(--sub); }
.nav-in .brand-name { display: block; white-space: nowrap; }
.nav-in .brand-mark { object-fit: contain; border-radius: 0; }
.gw-disclaimer { margin: 0 0 22px; max-width: 1000px; text-align: left; }
.gw-disclaimer h2 { margin: 0 0 12px; color: var(--ink); font-size: 17px; font-weight: 600; }
.gw-disclaimer p { margin: 0 0 10px; color: var(--sub); font-size: 14px; line-height: 1.85; }
@media (max-width: 640px) {
  :root { --guide-nav-height: 112px; }
  .nav-in { height: auto; min-height: 72px; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px 8px; }
  .nav-in .brand { margin-right: auto; }
  .nav-in .brand-name { display: block; }
  .nav-in .gw-guide-back { margin-left: auto; font-size: 14px; padding: 8px 10px; }
  .nav-in .nav-links { order: 3; width: 100%; justify-content: space-between; gap: 4px; }
  .nav-in .nav-links a { flex: 1; justify-content: center; min-width: 0; padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 380px) {
  .nav-in { padding-inline: 12px; column-gap: 8px; }
  .nav-in .brand { gap: 6px; }
  .nav-in .brand-mark { width: 26px; height: 26px; }
  .nav-in .brand-name { font-size: 14px; letter-spacing: 0; }
  .nav-in .gw-guide-back { font-size: 12px; padding-inline: 7px; }
  #links .row[data-open] { display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 10px; }
  .home-layout #links .row[data-open] .ico { grid-column: 1; grid-row: 1; width: 38px; height: 38px; }
  #links .row[data-open] .row-body { grid-column: 2; grid-row: 1; }
  #links .row[data-open] .row-t { flex-wrap: wrap; }
  #links .row[data-open] .row-acts { grid-column: 2; grid-row: 2; justify-self: start; }
  #links .row[data-open] .chev { grid-column: 3; grid-row: 1; }
}

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../fonts/anton-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+2000-206F; }
/* ===== 2026-10 与主站统一（照 cindy 深浅交替）：顶栏 + 标题区深海军蓝，正文香槟米白，强调色改深海军蓝 ===== */
:root {
  --brand: #0c1c2e; --brand-deep: #06101d; --brand-ink: #0c1c2e; --brand-weak: rgba(12,28,46,.07); --brand-on: #f4efe4; --brand-line: rgba(12,28,46,.22);
  --bg: #f4efe4; --hero-1: #06101d; --hero-2: #0a1828; --card: #fbf8f1; --card-hover: #ffffff;
  --line: rgba(12,28,46,.14); --line-soft: rgba(12,28,46,.07);
  --ink: #0c1c2e; --ink-2: #2d3644; --sub: #5b6573; --faint: #7a838e;
  --nav-bg: #06101d; --nav-line: rgba(239,211,151,.16); --gold-graphic: #c9a45c;
  --r-lg: 0px; --r-md: 0px; --r-sm: 0px;
}
body { background: #f4efe4; }
.nav { background: #06101d !important; border-bottom: 1px solid rgba(239,211,151,.16) !important; box-shadow: none !important; }
.nav .brand-name { font-family: "Anton", "Arial Narrow", Impact, var(--font); font-weight: 400; letter-spacing: .03em; background: linear-gradient(90deg, #f2bf3c 0%, #f6cd5e 16%, #fbe3a6 30%, #fff6e2 46%, #fff 62%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav .nav-links a { color: #a9b6c2; }
.nav .nav-links a:hover { color: #eff3f5; background: rgba(239,243,245,.06); }
.nav .nav-links a.on { color: #efd397; background: rgba(239,211,151,.10); }
.nav .gw-guide-back { color: #efd397; border-color: rgba(239,211,151,.35); background: transparent; }
.nav .gw-guide-back:hover { background: rgba(239,211,151,.10); }
.hero { background: #06101d !important; border-bottom: 0 !important; }
.hero h1 { color: #eff3f5; }
.hero p, .hero .stamp { color: #a9b6c2; }
footer { position: relative; margin-top: 56px; padding: 28px 0 44px; border-top: 0 !important; background: #06101d; box-shadow: 0 0 0 100vmax #06101d; clip-path: inset(0 -100vmax -100vmax); color: #a9b6c2; }
footer .disc { background: #0c1c2e; color: #a9b6c2; border: 1px solid rgba(239,211,151,.14); }
footer .cr, footer .gw-guide-credit, .gw-disclaimer p { color: #a9b6c2; }
footer .gw-disclaimer h2 { color: #eff3f5; }
footer a { color: #efd397; }

/* 后台注册/登录：跳转 + 复制 两个按钮放一组 */
#links .row-acts { display: flex; gap: 8px; flex: none; position: relative; z-index: 1; }
#links .row-acts .btn.sm { margin-left: 0; }
