@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #181818;
  --strong: #111111;
  --muted: #717171;
  --line: #e7e7e7;
  --paper: #ffffff;
  --hover: #fafafa;
  --control-hover: #f1f1f1;
  --notice: #b42318;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #ececec;
    --strong: #f5f5f5;
    --muted: #999999;
    --line: #2c2d2f;
    --paper: #101112;
    --hover: #171819;
    --control-hover: #222426;
    --notice: #ff9189;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ececec;
  --strong: #f5f5f5;
  --muted: #999999;
  --line: #2c2d2f;
  --paper: #101112;
  --hover: #171819;
  --control-hover: #222426;
  --notice: #ff9189;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
::selection { background: var(--line); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--muted); outline-offset: 5px; }
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.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: fixed;
  top: -100px;
  left: 16px;
  z-index: 5;
  padding: 12px 18px;
  color: #fff;
  background: #181818;
}
.skip-link:focus { top: 16px; }
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
}
.wordmark { font-family: Arial, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.9px; }
.site-header nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 13px; }
.site-header nav a { position: relative; display: inline-flex; align-items: center; gap: 3px; min-height: 44px; }
.site-header nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-header nav a:hover::after { transform: scaleX(1); }
.site-header nav a:hover, .site-footer a:hover { color: var(--strong); }
.site-header nav .icon { width: 15px; height: 15px; }
.site-header nav a .icon { transition: transform .25s ease; }
.site-header nav a:hover .icon { transform: translate(2px, -2px); }
.theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  transition: background .25s, color .25s;
}
.theme-toggle:hover { color: var(--strong); background: var(--control-hover); }
.theme-toggle .icon { width: 18px !important; height: 18px !important; transition: transform .3s ease; }
.theme-toggle:hover .icon { transform: rotate(16deg); }
main { width: min(920px, 100%); margin: 0 auto; flex: 1 0 auto; }
.intro { padding: 64px 0 58px; text-align: center; }
h1 { margin: 0; font-size: 50px; line-height: 1.3; font-weight: 400; letter-spacing: -1.7px; }
.intro > p { margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.intro > p span + span { margin-left: 8px; }
.address-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 27px;
  margin-top: 40px;
  font: 25px/1.6 var(--mono);
  letter-spacing: -1px;
}
.source-domain { color: var(--muted); }
.address-demo > .icon { width: 22px; color: #b5b5b5; }
.mirror-domain { color: var(--strong); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mirror-domain:hover { text-decoration-line: underline; }
.mirror-domain b { font-weight: 600; }
.demo-six { display: inline-block; position: relative; }
.demo-six::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}
.usage { padding-bottom: 58px; }
.method + .method { margin-top: 38px; }
.method-heading { margin-bottom: 20px; }
h2 { margin: 0; font-size: 21px; line-height: 1.6; font-weight: 500; }
.method-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.method-heading b { color: var(--strong); font-weight: 700; }
.method-heading code { font-family: var(--mono); }
.url-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.url-example code, .full-url-example > code {
  min-width: 0;
  font: 14px/1.9 var(--mono);
  overflow-wrap: anywhere;
}
.url-example, .full-url-example { position: relative; transition: background .25s, border-color .4s; }
.url-example:hover, .full-url-example:hover { background: var(--hover); }
.url-example::after, .full-url-example::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--muted);
  opacity: .5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.url-example:hover::after, .full-url-example:hover::after { transform: scaleX(1); }
.original-url, .result-url, .full-url-example > code { color: var(--muted); font-weight: 400; }
.proxy-origin { color: var(--strong); font-weight: 700; }
.protocol, .origin, .path { white-space: nowrap; }
.suffix, .path { color: var(--muted); font-weight: 400; }
.path { font-size: .9em; }
.rule-arrow { width: 18px; color: #8b8b8b; }
.url-example:hover .rule-arrow { animation: rule-flow 1.2s ease-in-out infinite; }
.method > .url-example:last-child, .method > .full-url-example:last-child { border-bottom: 1px solid var(--line); }
.full-url-example {
  display: grid;
  align-items: center;
  min-height: 74px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.site-footer {
  padding: 22px 0 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.footer-notice { margin: 0 0 12px; color: var(--notice); text-align: center; font-size: 12px; line-height: 1.9; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.site-footer a { display: flex; align-items: center; min-height: 44px; }
.js-motion .site-header { animation: enter .6s cubic-bezier(.2,.7,.2,1) backwards; }
.js-motion .intro h1 { animation: enter .7s cubic-bezier(.2,.7,.2,1) backwards; }
.js-motion .intro > p { animation: enter .7s .1s cubic-bezier(.2,.7,.2,1) backwards; }
.js-motion .address-demo { animation: enter .7s .2s cubic-bezier(.2,.7,.2,1) backwards; }
.reveal.is-visible { animation: enter .65s cubic-bezier(.2,.7,.2,1) backwards; }
.reveal.is-visible .url-example, .reveal.is-visible .full-url-example { animation: enter .65s .1s cubic-bezier(.2,.7,.2,1) backwards; }
.reveal.is-visible .url-example + .url-example,
.reveal.is-visible .full-url-example + .full-url-example { animation-delay: .2s; }
.js-motion .demo-six { animation: six-insert 5.6s ease-in-out infinite; }
.js-motion .demo-six::after { animation: six-underline 5.6s ease-in-out infinite; }
.js-motion .address-demo > .icon { animation: arrow-flow 5.6s ease-in-out infinite; }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes six-insert {
  0%, 10%, 100% { opacity: 0; transform: translateX(-8px); }
  24%, 88% { opacity: 1; transform: translateX(0); }
}
@keyframes six-underline {
  0%, 18%, 100% { transform: scaleX(0); opacity: 0; }
  30%, 80% { transform: scaleX(1); opacity: .5; }
}
@keyframes arrow-flow {
  0%, 10%, 100% { opacity: .4; transform: translateX(-4px); }
  24% { opacity: 1; transform: translateX(4px); }
  38%, 88% { opacity: .65; transform: translateX(0); }
}
@keyframes rule-flow {
  0%, 100% { transform: translateX(0); opacity: .65; }
  50% { transform: translateX(4px); opacity: 1; }
}
.theme-toggle.switching .icon { animation: theme-turn .4s ease; }
@keyframes theme-turn {
  from { transform: rotate(-45deg) scale(.75); opacity: .4; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

.motion-suspended *, .motion-suspended *::after { animation-play-state: paused !important; }
.demo-offscreen .demo-six, .demo-offscreen .demo-six::after,
.demo-offscreen .address-demo > .icon { animation-play-state: paused !important; }

@media (min-width: 1600px) {
  .intro { padding-top: 80px; padding-bottom: 68px; }
}
@media (max-width: 1050px) {
  .page { width: calc(100% - 64px); }
  .url-example { gap: 10px; }
  .url-example code { font-size: 13px; }
}
@media (max-width: 800px) {
  .page { width: calc(100% - 48px); }
  .site-header { min-height: 80px; }
  .intro { padding: 55px 0 50px; }
  h1 { font-size: 44px; }
  .url-example {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px 10px;
    padding: 20px 0;
  }
  .original-url { grid-column: 1 / 3; grid-row: 1; }
  .result-url { grid-column: 2; grid-row: 2; }
  .rule-arrow { grid-column: 1; grid-row: 2; }
  .url-example code { font-size: 14px; }
  .usage { padding-bottom: 44px; }
}
@media (max-width: 500px) {
  .page { width: calc(100% - 40px); }
  .site-header { min-height: 74px; }
  .wordmark { font-size: 20px; }
  .site-header nav { font-size: 12px; gap: 12px; }
  .intro { padding: 46px 0 46px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  .intro > p { max-width: 290px; margin: 18px auto 0; font-size: 14px; line-height: 1.9; }
  .intro > p span { display: block; }
  .intro > p span + span { margin-left: 0; }
  .address-demo { gap: 17px; margin-top: 28px; font-size: 20px; letter-spacing: -.65px; }
  .address-demo > .icon { width: 19px; }
  .method-heading { margin-bottom: 17px; }
  h2 { font-size: 19px; }
  .method-heading p { margin-top: 6px; font-size: 12px; }
  .method + .method { margin-top: 32px; }
  .url-example { gap: 6px 8px; padding: 20px 0; }
  .url-example code, .full-url-example > code { font-size: 13px; }
  .full-url-example { padding: 15px 0; }
  .usage { padding-bottom: 40px; }
  .site-footer { padding-top: 18px; font-size: 10px; }
  .footer-notice { text-align: left; }
}
@media (max-width: 360px) {
  .page { width: calc(100% - 32px); }
  .site-header nav { gap: 6px; font-size: 11px; }
  h1 { font-size: 31px; }
  .intro > p { font-size: 13px; }
  .address-demo { font-size: 18px; gap: 13px; }
  .method-heading p { font-size: 11px; }
  .url-example code, .full-url-example > code { font-size: 12px; }
}
@media (hover: none), (pointer: coarse) {
  .url-example:hover .rule-arrow { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
