/* 信鸽子寻址 · pcb.pub */

:root {
  --ink: #0c3a85;
  --ink-hover: #082c66;
  /* 按钮、页头“申请入住”等深色底；夜间模式下与文字用的 --ink 分开 */
  --ink-bg: #0c3a85;
  --ink-bg-hover: #082c66;
  --cta-bg: #0c3a85;
  --envelope: #fffdf9;
  --ink-deep: #0a2b61;
  --ink-soft: #e8eef8;
  --stamp: #c2463a;
  --text: #2c2c2b;
  --muted: #6b6863;
  --canvas: #ffffff;
  --paper: #faf8f4;
  --paper-2: #f2efe9;
  --border: #e6e2da;
  --border-strong: #d3cec4;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
  /* 中文字体放在前面，引号、省略号等标点才会按全角显示 */
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC",
    "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* 等宽字体没有汉字，后面接上中文字体，“你的名字”才不会落到宋体 */
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", monospace;
  color-scheme: light;
}

/* 夜间模式：页面按 html[data-theme] 切换，默认跟随系统，访客也可以在页头手动切换 */
html[data-theme="dark"] {
  --ink: #8fb3f4;
  --ink-hover: #b8d0fa;
  --ink-bg: #2e5eb8;
  --ink-bg-hover: #3a6cc9;
  --cta-bg: #142a52;
  --ink-deep: #0b1830;
  --ink-soft: #1d2a44;
  --stamp: #e36b5d;
  --text: #e6e4df;
  --muted: #a4a097;
  --canvas: #1b1e24;
  --paper: #15171b;
  --paper-2: #272b33;
  --border: #2e333b;
  --border-strong: #41464f;
  --envelope: #21252c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--ink-hover);
}

:focus-visible {
  outline: 3px solid rgba(12, 58, 133, 0.45);
  outline-offset: 2px;
}

code,
.mono {
  font-family: var(--mono);
}

code {
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper-2);
  overflow-wrap: anywhere;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink-bg);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* 页边距：--gutter 是左右留白，正文最宽 1040px（使用规则等长文最宽 720px），屏幕越宽两边留白越多 */
.container {
  --gutter: clamp(28px, 7vw, 112px);
  width: 100%;
  max-width: calc(1040px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: calc(720px + var(--gutter) * 2);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

.topbar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.provider {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

/* 空间不够时先省略“提供方：”这几个字，链接始终完整显示 */
.provider > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

html:not(:lang(zh)):not(:lang(ja)) .provider > span {
  margin-right: 0.3em;
}

.provider > a {
  flex: none;
}

.provider a,
.footer-by a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.provider a {
  color: #fff;
}

.provider a:hover,
.footer-by a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ext {
  flex: none;
  width: 14px;
  height: 14px;
}

.mainbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  flex: none;
  width: auto;
  height: 42px;
}

.brand-sub {
  padding-left: 14px;
  border-left: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 28px;
}

/* 其他语言这里是“子域名服务”之类的说明文字，字号略小 */
html:not(:lang(zh)) .brand-sub {
  font-size: 17px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--paper-2);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.site-nav .nav-cta {
  padding: 0 20px;
  background: var(--ink-bg);
  color: #fff;
  font-weight: 600;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--ink-bg-hover);
  color: #fff;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
}

.lang-switch svg {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.lang-switch select {
  height: 32px;
  padding: 0 28px 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 11px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.lang-switch select:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background-color: rgba(255, 255, 255, 0.08);
}

.lang-switch select:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lang-switch option {
  background: var(--canvas);
  color: var(--text);
}

/* 页头右侧：夜间模式按钮 + 语言选择 */
.topbar-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background-color: rgba(255, 255, 255, 0.08);
}

.theme-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* 白天显示月亮（点了进入夜间），夜间显示太阳 */
.theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* 标志：夜间模式换成浅色文字的版本 */
.logo-dark,
html[data-theme="dark"] .logo-light {
  display: none;
}

html[data-theme="dark"] .logo-dark {
  display: block;
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--ink-bg);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink-bg-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--canvas);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--ink-soft);
  color: var(--ink-hover);
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero .lead {
  max-width: 30em;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero .lead .mono {
  color: var(--text);
  font-size: 0.94em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta span::after {
  content: "·";
  margin: 0 8px;
}

html:lang(zh) .hero-meta span::after,
html:lang(ja) .hero-meta span::after {
  content: "・";
  margin: 0;
}

.hero-meta a {
  font-weight: 600;
  text-decoration: none;
}

.hero-meta a:hover {
  text-decoration: underline;
}

/* Envelope illustration */

.envelope {
  position: relative;
  overflow: hidden;
  background: var(--envelope);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.envelope::before {
  content: "";
  display: block;
  height: 10px;
  background: repeating-linear-gradient(
    135deg,
    var(--stamp) 0 16px,
    var(--envelope) 16px 24px,
    var(--ink) 24px 40px,
    var(--envelope) 40px 48px
  );
}

.envelope-body {
  position: relative;
  padding: 28px 32px 32px;
}

.envelope-from {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stamp {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1;
  width: 108px;
  filter: drop-shadow(0 1px 1px rgba(16, 24, 40, 0.14)) drop-shadow(0 3px 8px rgba(16, 24, 40, 0.08));
  transform: rotate(3deg);
}

.stamp-paper {
  padding: 8px;
  background: #fff;
  -webkit-mask: radial-gradient(circle at 5px 5px, transparent 2.6px, #000 3px) -5px -5px / 10px 10px round,
    linear-gradient(#000, #000) content-box;
  mask: radial-gradient(circle at 5px 5px, transparent 2.6px, #000 3px) -5px -5px / 10px 10px round,
    linear-gradient(#000, #000) content-box;
}

.stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 4px 7px;
  border: 1px solid rgba(12, 58, 133, 0.16);
  background: linear-gradient(180deg, #f1f5fc 0%, #dfe8f6 100%);
  color: var(--ink);
  text-align: center;
}

.stamp-art {
  display: block;
  width: 100%;
  height: auto;
}

.stamp-text {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  line-height: 1.25;
}

/* 外语文字较长时由 main.js 自动缩小字号，保证邮票上每行不换行 */
.stamp-text span,
.stamp-text b {
  overflow: hidden;
  white-space: nowrap;
}

.stamp-text span {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.78;
}

.stamp-text b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.postmark {
  position: absolute;
  top: 66px;
  right: 122px;
  z-index: 2;
  width: 150px;
  height: 80px;
  color: var(--ink);
  opacity: 0.5;
  transform: rotate(-10deg);
  pointer-events: none;
}

.envelope-to {
  margin-top: 142px;
}

.envelope-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.address {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: clamp(21px, 5.2vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  word-break: break-all;
}

.address .slot {
  color: var(--ink);
  text-decoration: underline dashed rgba(12, 58, 133, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.address-line {
  width: 64%;
  height: 1px;
  margin-top: 18px;
  background: var(--border);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.envelope .tag-row {
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-paper {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-paper + .section-paper {
  border-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.3;
}

.section-head p {
  max-width: 46em;
  margin: 0;
  color: var(--muted);
}

/* ---------- Name checker ---------- */

.checker {
  padding: 20px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.doc .checker {
  margin: 20px 0 8px;
}

.checker-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.checker-row {
  display: flex;
  gap: 10px;
}

.checker-field {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 52px;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.checker-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(12, 58, 133, 0.16);
}

.checker-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
}

.checker-field input::placeholder {
  color: #a9a49b;
  font-weight: 500;
}

.checker-suffix {
  flex: none;
  padding-right: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 18px;
}

.checker .btn {
  flex: none;
  min-width: 96px;
  min-height: 52px;
}

.checker .checker-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.checker-result {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 15px;
}

.checker-result:empty {
  display: none;
}

.checker .checker-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-weight: 600;
}

.checker-icon {
  display: flex;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.checker-icon svg {
  width: 100%;
  height: 100%;
}

.checker-msg b {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.checker .checker-note {
  margin: 6px 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.checker-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 2px 0 -10px 28px;
  font-weight: 600;
  text-decoration: none;
}

.checker-action:hover {
  text-decoration: underline;
}

.checker-result.is-free {
  background: #eaf7ef;
}

.is-free .checker-msg {
  color: #12703c;
}

.checker-result.is-taken,
.checker-result.is-reserved,
.checker-result.is-similar,
.checker-result.is-pending {
  background: #fcefec;
}

.is-taken .checker-msg,
.is-reserved .checker-msg,
.is-similar .checker-msg,
.is-pending .checker-msg {
  color: #ad3427;
}

.checker-result.is-invalid,
.checker-result.is-error {
  background: #fff4e0;
}

.is-invalid .checker-msg,
.is-error .checker-msg {
  color: #8a5100;
}

.is-checking .checker-msg {
  color: var(--muted);
}

.spin {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature,
.record-card,
.option-card {
  padding: 28px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--ink-soft);
  color: var(--ink);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Records ---------- */

.record-grid,
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.option-grid {
  gap: 16px;
}

.option-card {
  padding: 22px;
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.record-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.record-card > p,
.doc .option-card p {
  margin: 0;
  color: var(--muted);
}

.record {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 1.35fr;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.record div {
  min-width: 0;
  padding: 12px 14px;
}

.record div + div {
  border-left: 1px solid var(--border);
}

.record dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.record dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Live dot ---------- */

.live-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #12b76a;
  animation: live 2s ease-out infinite;
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(18, 183, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0);
  }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 64px;
  right: 0;
  border-top: 2px dashed var(--border-strong);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: var(--canvas);
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta {
  padding: 80px 0;
  background: var(--cta-bg);
  color: #fff;
}

.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.3;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 48px;
}

.footer-brand {
  max-width: 440px;
}

.footer-brand img {
  width: auto;
  height: 32px;
  margin-bottom: 12px;
}

.footer-by {
  margin-top: 6px !important;
  font-size: 14px;
}

.footer-by a {
  color: var(--ink);
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* 每项前面都有间隔号；整行左移 20px 再裁掉这 20px，换行后行首就不会露出间隔号 */
.footer-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  margin: 0 0 0 -20px;
  clip-path: inset(-12px -12px -12px 20px);
}

/* 按文字基线对齐，等宽数字才不会上下错位 */
.footer-status > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.footer-status > span::before {
  content: "·";
  flex: none;
  width: 20px;
  margin-right: -4px;
  color: var(--border-strong);
  text-align: center;
}

/* 中文、日文用全角间隔号 */
html:lang(zh) .footer-status > span::before,
html:lang(ja) .footer-status > span::before {
  content: "・";
}

.footer-status b {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 600;
}

.footer-status b.footer-date {
  font-family: inherit;
}

/* 第一项（建站日期，带农历）较长：按普通文字排版，窄屏时整句自然换行，不把“建站于”挤成窄列。
   它总在行首、间隔号本来就被裁掉，所以去掉间隔号、用左内边距补回被裁的 20px */
.footer-status > span:first-child {
  display: block;
  padding-left: 20px;
}

html .footer-status > span:first-child::before {
  content: none;
}

.footer-status [data-launch-solar] {
  white-space: nowrap;
}

.footer-status .footer-lunar {
  color: var(--muted);
  font-weight: 400;
}

.footer-status .live-dot {
  align-self: center;
  margin-right: 2px;
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
}

.lang-list svg {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.lang-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.lang-list a:hover {
  color: var(--ink);
}

.lang-list a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Document pages ---------- */

.page-hero {
  padding: 72px 0 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.25;
}

.page-hero p {
  max-width: 36em;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.page-hero .updated {
  margin-top: 16px;
  font-size: 14px;
}

.doc {
  padding: 64px 0 96px;
}

.doc section + section {
  margin-top: 56px;
}

.doc h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.35;
}

.doc h2 .num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
}

.doc p {
  margin: 0 0 12px;
}

.doc ul,
.doc ol {
  margin: 0;
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 8px;
}

.doc li > ul {
  margin-top: 8px;
  list-style: circle;
}

.doc li > ul > li + li {
  margin-top: 4px;
}

.doc .muted {
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 12px;
  padding: 0 !important;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  margin: 0 !important;
  padding: 16px 20px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.checklist svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--ink);
}

.step-list {
  display: grid;
  gap: 24px;
  padding: 0 !important;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  position: relative;
  margin: 0 !important;
  padding-left: 52px;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--ink-bg);
  border-radius: 50%;
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.step-list p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--ink-soft);
  border-radius: var(--radius);
}

.note p {
  margin: 0;
}

.template-card {
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.template-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  padding: 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.template-meta dt {
  color: var(--muted);
}

.template-meta dd {
  margin: 0;
  font-family: var(--mono);
  word-break: break-all;
}

.template-body {
  margin: 0;
  padding: 20px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 20px;
}

.reserved {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.doc .naming-more {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.naming-more code {
  white-space: nowrap;
}

.faq {
  border-bottom: 1px solid var(--border);
}

.faq:first-of-type {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0 0 16px;
  color: var(--muted);
}

.doc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.doc-cta h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.doc-cta p {
  margin: 0;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.lost {
  padding: 96px 0;
  text-align: center;
}

.lost .code {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.lost h1 {
  margin: 0 0 12px;
  font-size: 36px;
}

.lost p {
  margin: 0 auto 32px;
  color: var(--muted);
}

.lost .actions {
  justify-content: center;
}

/* ---------- Apply page extras ---------- */

.doc h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  line-height: 1.4;
}

.doc .record-head h3 {
  margin: 0;
}

.doc .hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.bind-list {
  display: grid;
  gap: 16px;
  padding: 0 !important;
  list-style: none;
}

.bind-list li {
  margin: 0 !important;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bind-list strong {
  display: block;
  margin-bottom: 4px;
}

.doc .bind-list p {
  margin: 0;
  color: var(--muted);
}

.template-body .tpl-fill {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Pigeons ---------- */

.pigeon-sky {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}

.pigeon {
  position: absolute;
  left: 0;
  animation: pigeon-ltr 10s linear both;
  will-change: transform;
}

.pigeon--rtl {
  animation-name: pigeon-rtl;
}

.pigeon svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.pigeon--rtl svg {
  transform: scaleX(-1);
}

.pg-bob {
  animation: pigeon-bob 1.6s ease-in-out infinite alternate;
}

.pg-body {
  fill: var(--ink);
}

.pg-wing {
  fill: #3d6cc4;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pigeon-flap var(--flap, 0.26s) ease-in-out infinite alternate;
}

.pg-wing--far {
  fill: #9db7e6;
  animation-delay: calc(var(--flap, 0.26s) * -0.6);
}

.pg-beak {
  fill: #f2a516;
}

.pg-eye {
  fill: #fff;
}

.pg-letter rect {
  fill: #fff;
  stroke: var(--stamp);
  stroke-width: 1.4;
}

.pg-letter path {
  fill: none;
  stroke: var(--stamp);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pigeon-ltr {
  from {
    transform: translate3d(-80px, 0, 0);
  }
  to {
    transform: translate3d(calc(100vw + 80px), var(--rise, 0), 0);
  }
}

@keyframes pigeon-rtl {
  from {
    transform: translate3d(calc(100vw + 80px), 0, 0);
  }
  to {
    transform: translate3d(-80px, var(--rise, 0), 0);
  }
}

@keyframes pigeon-bob {
  from {
    transform: translateY(-3px);
  }
  to {
    transform: translateY(3px);
  }
}

@keyframes pigeon-flap {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(-0.5);
  }
}

/* ---------- Languages & JS states ---------- */

html.i18n-wait body {
  visibility: hidden;
}

html:not(.js) [data-js] {
  display: none !important;
}

html:lang(ja) {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", monospace;
}

html:lang(ko) {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans KR", "Noto Sans CJK KR", monospace;
}

html:lang(ko) body {
  word-break: keep-all;
}

html:lang(en),
html:lang(fr),
html:lang(de),
html:lang(es),
html:lang(pt),
html:lang(it),
html:lang(ru),
html:lang(vi) {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

html:lang(fr) p,
html:lang(de) p,
html:lang(es) p,
html:lang(pt) p,
html:lang(it) p,
html:lang(ru) p,
html:lang(fr) li,
html:lang(de) li,
html:lang(es) li,
html:lang(pt) li,
html:lang(it) li,
html:lang(ru) li {
  -webkit-hyphens: auto;
  hyphens: auto;
}

html:lang(zh-TW) {
  --font: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "PingFang TC", "Microsoft JhengHei",
    "Noto Sans TC", "Noto Sans CJK TC", monospace;
}

/* 中文、日文的段落两端对齐，行尾更整齐。
   窄栏里放不下的长英文（如 yourname.pcb.pub、Cloudflare）换行后会把字距拉得很开，
   所以卡片、步骤不对齐；正文列表和常见问题只在宽屏上对齐 */
html:lang(zh) :is(.hero .lead, .section-head p, .page-hero p),
html:lang(ja) :is(.hero .lead, .section-head p, .page-hero p) {
  text-align: justify;
}

@media (min-width: 641px) {
  html:lang(zh) :is(.record-card > p, .doc p, .doc li, .faq p),
  html:lang(ja) :is(.record-card > p, .doc p, .doc li, .faq p) {
    text-align: justify;
  }

  html:lang(zh) .doc .option-card p,
  html:lang(ja) .doc .option-card p {
    text-align: start;
  }
}

/* ---------- 夜间模式的细节 ---------- */

html[data-theme="dark"] :focus-visible {
  outline-color: rgba(143, 179, 244, 0.6);
}

html[data-theme="dark"] .btn-light {
  background: #e9eef8;
  color: #0c3a85;
}

html[data-theme="dark"] .btn-light:hover {
  background: #fff;
  color: #082c66;
}

html[data-theme="dark"] .envelope {
  --border: #383d46;
}

html[data-theme="dark"] .envelope::before {
  opacity: 0.85;
}

/* 邮票保持白天的配色，像一张真的邮票 */
html[data-theme="dark"] .stamp {
  --ink: #0c3a85;
}

html[data-theme="dark"] .address .slot {
  text-decoration-color: rgba(143, 179, 244, 0.5);
}

html[data-theme="dark"] .checker-field:focus-within {
  box-shadow: 0 0 0 3px rgba(143, 179, 244, 0.22);
}

html[data-theme="dark"] .checker-field input::placeholder {
  color: #77736b;
}

html[data-theme="dark"] .checker-result.is-free {
  background: rgba(18, 183, 106, 0.14);
}

html[data-theme="dark"] .is-free .checker-msg {
  color: #6ee0a6;
}

html[data-theme="dark"] .checker-result.is-taken,
html[data-theme="dark"] .checker-result.is-reserved,
html[data-theme="dark"] .checker-result.is-similar,
html[data-theme="dark"] .checker-result.is-pending {
  background: rgba(229, 96, 80, 0.15);
}

html[data-theme="dark"] .is-taken .checker-msg,
html[data-theme="dark"] .is-reserved .checker-msg,
html[data-theme="dark"] .is-similar .checker-msg,
html[data-theme="dark"] .is-pending .checker-msg {
  color: #ff9d90;
}

html[data-theme="dark"] .checker-result.is-invalid,
html[data-theme="dark"] .checker-result.is-error {
  background: rgba(240, 170, 40, 0.14);
}

html[data-theme="dark"] .is-invalid .checker-msg,
html[data-theme="dark"] .is-error .checker-msg {
  color: #f3c26b;
}

/* 信鸽在深色背景上换浅一点的蓝 */
html[data-theme="dark"] .pg-body {
  fill: #4a78cf;
}

html[data-theme="dark"] .pg-wing {
  fill: #7fa3ea;
}

html[data-theme="dark"] .pg-wing--far {
  fill: #b9cdf3;
}

/* ---------- 回到顶部 ---------- */

.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background-color 0.15s, border-color 0.15s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--ink);
  background: var(--ink-soft);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

@media print {
  .to-top,
  .theme-toggle,
  .pigeon-sky {
    display: none !important;
  }
}

/* ---------- Responsive ---------- */

/* 拉丁、西里尔字母的词更长：首屏大标题略小一些，保证两行内放下 */
:is(html:lang(en), html:lang(fr), html:lang(de), html:lang(es), html:lang(pt), html:lang(it), html:lang(ru), html:lang(vi)) .hero h1 {
  font-size: clamp(34px, 3.1vw, 44px);
  letter-spacing: 0;
}

@media (max-width: 900px) {
  :is(html:lang(en), html:lang(fr), html:lang(de), html:lang(es), html:lang(pt), html:lang(it), html:lang(ru), html:lang(vi)) .hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .envelope {
    max-width: 560px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 800px) {
  .record-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    --gutter: 28px;
  }

  .topbar .container {
    min-height: 44px;
  }

  .lang-switch select {
    height: 34px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .to-top {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  /* 给右下角的“回到顶部”留出位置，滚到页底时不遮住页脚最后一行 */
  .site-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .mainbar .container {
    gap: 10px;
    min-height: 64px;
  }

  .brand-logo {
    height: 30px;
  }

  .brand-sub {
    display: none;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    min-height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }

  .site-nav .nav-cta {
    padding: 0 14px;
  }

  .hero {
    padding: 52px 0 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .lead {
    font-size: 17px;
  }

  .checker {
    padding: 16px;
  }

  .checker-row {
    flex-direction: column;
  }

  .checker-field {
    flex: none;
  }

  .hero-meta {
    flex-direction: column;
    gap: 4px;
  }

  .hero-meta span::after {
    display: none;
  }

  .feature {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
  }

  .feature-icon {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .feature h3 {
    margin: 9px 0 6px;
  }

  .step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
  }

  .step-num {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 16px;
  }

  .step h3 {
    margin: 7px 0 6px;
  }

  .checker .btn {
    width: 100%;
  }

  .checker-field input,
  .checker-suffix {
    font-size: 16px;
  }

  .envelope-body {
    padding: 24px 20px;
  }

  .stamp {
    top: 18px;
    right: 18px;
    width: 92px;
  }

  .stamp-paper {
    padding: 7px;
  }

  .stamp-text span {
    font-size: 9px;
  }

  .stamp-text b {
    font-size: 12px;
  }

  .postmark {
    top: 58px;
    right: 102px;
    width: 124px;
    height: 66px;
  }

  .envelope-to {
    margin-top: 124px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2,
  .cta h2 {
    font-size: 24px;
  }

  .feature,
  .record-card {
    padding: 22px 20px;
  }

  .record {
    grid-template-columns: minmax(0, 1fr);
  }

  .record div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
  }

  .record div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .record dt {
    margin: 0;
  }

  .record dd {
    text-align: right;
  }

  .option-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .lang-list {
    margin-left: -8px;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 17px;
  }

  .doc {
    padding: 48px 0 64px;
  }

  .doc section + section {
    margin-top: 44px;
  }

  .doc h2 {
    font-size: 22px;
  }

  .doc-cta {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  :is(html:lang(en), html:lang(fr), html:lang(de), html:lang(es), html:lang(pt), html:lang(it), html:lang(ru), html:lang(vi)) .hero h1 {
    font-size: clamp(25px, 7.6vw, 29px);
  }
}

/* 两栏布局时，首屏标题随宽度缩放，保证各语言都在两行内（韩文按词换行，单独设置） */
@media (min-width: 901px) {
  .hero h1 {
    font-size: clamp(38px, 4.4vw, 48px);
  }

  :is(html:lang(en), html:lang(fr), html:lang(de), html:lang(es), html:lang(pt), html:lang(it), html:lang(ru), html:lang(vi)) .hero h1 {
    font-size: clamp(29px, 3.05vw, 41px);
  }

  html:lang(ko) .hero h1 {
    font-size: clamp(34px, 3.8vw, 46px);
  }
}

/* 窄平板上“信鸽子寻址”略小一点，再窄就隐藏，给导航留出空间 */
@media (max-width: 760px) {
  .brand-sub {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .brand-sub {
    display: none;
  }
}

/* 其他语言的页头说明（“子域名服务”）较长，平板宽度下隐藏，避免和导航挤在一起 */
@media (max-width: 960px) {
  html:not(:lang(zh)) .brand-sub {
    display: none;
  }
}

@media (max-width: 480px) {
  /* 手机上页头只留“申请入住”按钮；使用规则在首屏和页脚都有入口 */
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 28px;
  }

  .topbar {
    font-size: 12px;
  }

  .topbar .container {
    gap: 12px;
  }

  .topbar-tools {
    gap: 6px;
  }

  .site-nav .nav-cta {
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .container {
    --gutter: 24px;
  }
}

@media (max-width: 374px) {
  .brand-logo {
    height: 24px;
  }

  .site-nav .nav-cta {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 29px;
  }
}

@media (max-width: 340px) {
  .container {
    --gutter: 16px;
  }
}

/* 小屏手机上页头只留“27.GS.CN”链接，给夜间模式按钮和语言选择留出位置 */
@media (max-width: 389px) {
  .provider > span {
    display: none;
  }
}

/* 俄语的“提供方”最长，再宽一点也隐藏 */
@media (max-width: 413px) {
  html:lang(ru) .provider > span {
    display: none;
  }
}

/* 屏幕太窄时，“你的名字.pcb.pub”放不进首行，两端对齐会把首行的字拉散，改回左对齐 */
@media (max-width: 349px) {
  html:lang(zh) .hero .lead,
  html:lang(ja) .hero .lead {
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .pigeon-sky {
    display: none;
  }
}
