/* =========================================================================
   加速湾 · 新粗野主义（Neo-Brutalism）
   -------------------------------------------------------------------------
   亮黄底 + 3px 黑描边 + 无模糊硬阴影 + 物理位移反馈。
   所有元素都像贴纸/印刷块：有厚度、有边界、可被"按下去"。
   ========================================================================= */

:root {
  color-scheme: light;
  --bg: #ffd93d;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --pink: #ff5c8a;
  --blue: #2f6bff;
  --ok: #0a5a28;
  --bad: #8f1a10;
  --warn: #8a5a00;
  --edge: 3px;
  --sans: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { appearance: none; -webkit-appearance: none; background: none; border: 0; cursor: pointer; text-align: inherit; }

:focus-visible { outline: var(--edge) solid var(--ink); outline-offset: 3px; }

.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;
}

.wrap { width: min(100% - 40px, 1080px); margin: 0 auto; padding: var(--s5) 0 var(--s7); }

/* ---------- 顶栏 ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s6);
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  background: var(--pink);
  border: var(--edge) solid var(--ink);
  font-weight: 900; font-size: 15px;
}
.brand__name {
  display: inline-flex;
  align-items: baseline;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}
/* 中文域名后缀：等宽 + 品牌粉，与左侧「湾」方块呼应 */
.brand__tld {
  margin-left: 2px;
  font-family: var(--mono);
  font-size: .82em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--pink);
}
.top__nav {
  display: flex;
  align-items: center;
  gap: var(--s2);
  /* 抵消最后一项的内边距，让右侧视觉留白与左侧 brand 一致 */
  margin-right: calc(var(--s3) * -1);
}
.top__nav a,
.top__nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 var(--s3);
  border: var(--edge) solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.top__nav a:hover,
.top__nav button:hover {
  background: var(--bg);
  border-color: var(--ink);
  transform: translate(-1px, -1px);
}

/* ---------- 抬头 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--s6);
  align-items: start;
  margin-bottom: var(--s6);
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--s3);
  padding: 3px 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__title {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 78px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.035em;
}
.hero__title em {
  font-style: normal;
  display: inline-block;
  padding: 0 8px;
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.hero__desc {
  margin: var(--s5) 0 0;
  max-width: 34em;
  font-size: 15.5px;
  font-weight: 500;
}
.hero__status {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s5);
}
.hero__retry {
  min-height: 40px;
  padding: 0 var(--s4);
  background: var(--ink);
  color: var(--bg);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--paper), 4px 4px 0 3px var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .12s ease;
}
.hero__retry:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--paper), 5px 5px 0 3px var(--ink); }
.hero__retry:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--paper), 1px 1px 0 3px var(--ink); }

/* ---------- 入口卡片 ---------- */
.entries__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.entries__head h2 {
  margin: 0;
  padding: 4px 10px;
  background: var(--blue);
  color: #fff;
  border: var(--edge) solid var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}
.entries__head span { font-family: var(--mono); font-size: 12px; font-weight: 700; }

.row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px var(--s3);
  margin-bottom: var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.row:hover {
  background: var(--bg);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.row:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.row.is-down { opacity: .55; }
.row__num {
  grid-row: 1 / span 2;
  grid-column: 1;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--bg);
  border: var(--edge) solid var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 900;
}
.row__name { grid-row: 1; grid-column: 2; font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.row .st { grid-row: 2; grid-column: 2; justify-self: start; }
.row__host {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.row__go { grid-row: 1 / span 2; grid-column: 3; font-size: 20px; font-weight: 900; }

/* ---------- 状态 ---------- */
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.st[data-state="ok"] { background: #d8f5c8; color: var(--ok); }
.st[data-state="bad"] { background: #ffd9d3; color: var(--bad); }
.st[data-state="warn"] { background: #ffeec4; color: var(--warn); }
.st[data-state="check"] { background: var(--paper); color: var(--ink); }
.st[data-state="idle"] { background: var(--paper); color: #555; }

/* ---------- 分类 ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s6);
}
.cat {
  padding: var(--s4);
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.cat__h {
  margin: 0 0 var(--s3);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cat__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2);
  width: 100%;
  min-height: 48px;
  margin-top: var(--s2);
  padding: var(--s2) var(--s3);
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: background-color .12s ease, transform .12s ease;
}
.cat__item:hover { background: var(--bg); transform: translate(-1px, -1px); }
.cat__item:active { transform: translate(1px, 1px); }
.cat__t { font-size: 15px; font-weight: 800; }
.cat__d { display: block; font-size: 12.5px; font-weight: 500; }
.cat__k { font-family: var(--mono); font-size: 12px; font-weight: 800; }

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s6);
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: var(--bg);
  border: var(--edge) solid var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
}
.foot a { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--paper); }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: var(--s5); }
  .cats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1080px); padding: var(--s4) 0 var(--s5); }
  .top { margin-bottom: var(--s5); }
  .top__nav { width: 100%; flex-wrap: wrap; margin-right: 0; }
  .top__nav a, .top__nav button { height: 44px; min-height: 44px; }
  .hero__title { font-size: clamp(38px, 12vw, 54px); }
  .row { grid-template-columns: 40px minmax(0, 1fr); padding: var(--s3); }
  .row__num { width: 36px; height: 36px; }
  .row__go { display: none; }
  .row .st { grid-column: 2; justify-self: start; }
  .cat__item { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .row:hover, .cat__item:hover, .hero__retry:hover { transform: none; }
}

/* =========================================================================
   子页面通用组件（下载中心 / 加速助手 / 代理页 / 备用入口页）
   ========================================================================= */

.page {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: var(--s5) 0 var(--s7);
}

/* 页头 */
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s6);
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.pagehead__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
}
.pagehead__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  background: var(--pink);
  border: var(--edge) solid var(--ink);
  font-weight: 900; font-size: 15px;
}
.pagehead__name {
  display: inline-flex;
  align-items: baseline;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.pagehead__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 var(--s3);
  border: var(--edge) solid transparent;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.pagehead__back:hover {
  background: var(--bg);
  border-color: var(--ink);
  transform: translate(-1px, -1px);
}

/* 标题组 */
.kicker {
  display: inline-block;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.h1 {
  margin: var(--s3) 0 0;
  font-size: clamp(36px, 5.8vw, 62px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.03em;
}
.h1 em {
  font-style: normal;
  display: inline-block;
  padding: 0 8px;
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.lede {
  margin: var(--s4) 0 0;
  max-width: 46em;
  font-size: 15.5px;
  font-weight: 500;
}

.heroblock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s5);
  align-items: center;
}
.heroblock--stack { grid-template-columns: 1fr; }

/* 区块 */
.sect { margin-top: var(--s6); }
.sect__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s3);
}
.sect__h {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.sect__sub {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
}
.sect__idx {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
}

/* 栅格 */
.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 卡片 */
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.tile--flat { box-shadow: none; }
.tile__head { display: flex; align-items: center; gap: var(--s3); }
.tile__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  background: var(--bg);
  border: var(--edge) solid var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 900;
}
.tile__h { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.tile__sub { margin: 2px 0 0; font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.tile__p { margin: 0; font-size: 14px; line-height: 1.65; }
.tile__foot { margin-top: auto; padding-top: var(--s2); }

/* 按钮 */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 var(--s4);
  background: var(--ink);
  color: var(--bg);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--paper), 4px 4px 0 3px var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--paper), 5px 5px 0 3px var(--ink);
}
.cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--paper), 1px 1px 0 3px var(--ink);
}
.cta--ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.cta--ghost:hover { box-shadow: 5px 5px 0 var(--ink); }
.cta--ghost:active { box-shadow: 1px 1px 0 var(--ink); }
.cta--wide { width: 100%; }
.cta--sm { min-height: 38px; font-size: 13px; padding: 0 var(--s3); }

/* 列表 */
.list { display: grid; gap: var(--s2); }
.list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
  min-height: 52px;
  padding: var(--s2) var(--s3);
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .12s ease, transform .12s ease;
}
.list__item:hover { background: var(--bg); transform: translate(-1px, -1px); }
.list__item:active { transform: translate(1px, 1px); }
/* 纯信息行：不可点击，就不要有可点击的反馈 */
.list__item--static { cursor: default; }
.list__item--static:hover { background: var(--paper); transform: none; }
.list__item span:first-child { display: block; }
.list__item small {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 500;
}
.list__k {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* 提示条 */
.note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin-top: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--bg);
  border: var(--edge) solid var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.note b { font-weight: 900; }

/* 面板 */
.panelbox {
  padding: var(--s4);
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.panelbox__h {
  margin: 0 0 var(--s3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* 键值表 */
.kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s2) var(--s3);
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
}
.kv dt { font-weight: 700; }
.kv dd { margin: 0; }

/* 百分比与条形 */
.pct {
  font-family: var(--mono);
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}
.bar {
  height: 20px;
  margin-top: var(--s2);
  border: 2px solid var(--ink);
  background: var(--paper);
}
.bar > i { display: block; height: 100%; background: var(--ink); }

/* 代理页联系方式（保留原 id/class 供原有脚本生成） */
.contact-info-display { margin-top: var(--s4); }
.contact-info-display p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 14px;
}
.contact-label { font-weight: 900; }
.contact-value { font-family: var(--mono); font-size: 13px; }
.online-service { font-weight: 700; }
.copy-btn {
  min-height: 34px;
  padding: 0 var(--s2);
  background: var(--bg);
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  transition: background-color .12s ease, color .12s ease;
}
.copy-btn:hover,
.copy-btn.copied { background: var(--ink); color: var(--bg); }

/* 响应式 */
@media (max-width: 900px) {
  .page { width: min(100% - 32px, 1080px); }
  .heroblock { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page { width: min(100% - 24px, 1080px); padding: var(--s4) 0 var(--s5); }
  .pagehead { margin-bottom: var(--s5); }
  .pagehead__back { height: 44px; }
  .h1 { font-size: clamp(32px, 10vw, 46px); }
  .cta { min-height: 50px; }
  .list__item { min-height: 56px; }
  .st { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .list__item:hover, .cta:hover, .pagehead__back:hover { transform: none; }
}
