@layer foundations, framing, modules, adaptive;

@layer foundations {
  :root {
    color-scheme: dark;
    --ink: #101317;
    --panel: #181d22;
    --card: #1d2329;
    --line: #343c42;
    --paper: #f1f0e9;
    --muted: #b1bbc1;
    --accent: #dcf98b;
    --lilac: #d4c4ff;
    --gutter: clamp(1.125rem, 4vw, 3.75rem);
    --max: 76rem;
    --display: "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
  }

  body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font: 1rem/1.7 var(--display);
  }

  h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
  h2, h3 { line-height: 1.26; text-wrap: balance; }
  h2 { font-size: clamp(1.65rem, 3.1vw, 2.65rem); letter-spacing: -.055em; }
  h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
  p, figcaption { overflow-wrap: anywhere; }
  p + p { margin-top: .7rem; }

  a { color: inherit; text-underline-offset: .25em; }
  a:hover { color: var(--accent); }
  button, summary, label { -webkit-tap-highlight-color: transparent; }
  button { color: inherit; font: inherit; cursor: pointer; }
  summary { cursor: pointer; }
  button[disabled] { cursor: default; opacity: .45; }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
  }

  [data-tone="spring"] { --tone: #59476e; --crop: 50% 38%; }
  [data-tone="metal"] { --tone: #47464b; --crop: 50% 45%; }
  [data-tone="chalk"] { --tone: #373a41; --crop: center; }
  [data-tone="sky"] { --tone: #465475; --crop: 50% 43%; }
  [data-tone="ink"] { --tone: #503b53; --crop: 50% 34%; }
  [data-tone="leaf"] { --tone: #40584c; --crop: 50% 30%; }

  .cd1qx76m {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .bc1rx9y2 {
    position: fixed;
    z-index: 10;
    inset: .75rem auto auto 1rem;
    padding: .6rem 1rem;
    background: var(--paper);
    color: var(--ink);
    transform: translateY(calc(-100% - 1rem));
  }

  .bc1rx9y2:focus-visible { transform: translateY(0); color: var(--ink); }
}

@layer framing {
  .w6ez03gn, .wx5mb08q, .n8m2fa6q {
    width: min(calc(100% - var(--gutter) * 2), var(--max));
    margin-inline: auto;
  }

  .rh5kz9de {
    position: sticky;
    z-index: 5;
    top: 0;
    background: #101317f4;
    border-bottom: 1px solid var(--line);
  }

  .n8m2fa6q {
    min-height: 4.4rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(1rem, 3.6vw, 3.5rem);
  }

  .yv4q0nd1 { font-size: 1.25rem; line-height: 1.2; }
  .yv4q0nd1 a { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; white-space: nowrap; }
  .tq6vm3a9 {
    display: inline-block;
    width: 1.4rem;
    height: 1.4rem;
    background: var(--accent);
    clip-path: polygon(44% 0, 100% 0, 62% 43%, 91% 43%, 25% 100%, 36% 55%, 0 55%);
  }

  .cp9n2ld8 { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .35rem clamp(.65rem, 2.2vw, 1.8rem); }
  .cp9n2ld8 a, .gv2z8sw3 { text-decoration: none; font-size: .9rem; }
  .cp9n2ld8 a { color: var(--muted); }
  .cp9n2ld8 a:hover { color: var(--paper); }

  .gv2z8sw3 {
    padding: .4rem .8rem;
    border: 1px solid #58654c;
    color: var(--accent);
  }

  .u49nxp57 { display: none; }
  .u49nxp57 summary {
    padding: .4rem .8rem;
    border: 1px solid var(--line);
    font-size: .95rem;
    color: var(--paper);
  }

  .u49nxp57 nav {
    position: absolute;
    inset: 100% var(--gutter) auto;
    padding: .6rem;
    max-height: calc(100dvh - 5rem);
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem;
    background: #181d22;
    border: 1px solid var(--line);
    box-shadow: 0 1rem 3rem #0008;
  }

  .u49nxp57 nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .45rem .65rem;
    color: var(--paper);
    font-size: .9rem;
    text-decoration: none;
  }

  .u49nxp57 nav a:hover { background: var(--card); color: var(--accent); }

  .k07vca2y {
    border-bottom: 1px solid var(--line);
    background:
      linear-gradient(104deg, #14191d 4%, #161a20 52%, #252039 100%);
  }

  .wx5mb08q {
    min-width: 0;
    display: grid;
    grid-template-columns: .94fr 1.06fr;
    align-items: center;
    gap: clamp(1.6rem, 4vw, 4.75rem);
    padding-block: clamp(2.5rem, 6.4vw, 6rem);
  }

  .pc7j12kr > p:not(.zd14qm9v) { max-width: 35rem; color: var(--muted); }
  .zd14qm9v {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--accent);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .12em;
  }

  .zd14qm9v::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
  .pc7j12kr h2 {
    margin: 1.1rem 0 1.25rem;
    color: var(--paper);
    font-size: clamp(2.65rem, 6.4vw, 5.6rem);
    line-height: 1.08;
    letter-spacing: -.095em;
  }

  .pc7j12kr h2 em { font-style: normal; color: var(--accent); }
  .pc7j12kr .kj8g4ws0 { font-size: clamp(1rem, 1.75vw, 1.2rem); font-weight: 700; color: var(--paper); }
  .rpu4m9bh { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
  .pc7j12kr .rpu4m9bh { margin-top: 1.7rem; }

  .jz4dn7x0, .hs4kc6y1 {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    justify-content: center;
    padding: .55rem .95rem;
    border: 1px solid transparent;
    border-radius: .22rem;
    font-size: .91rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  }

  .jz4dn7x0 { background: linear-gradient(105deg, #defc83, #cddc9e 56%, #cab5f3); color: #111813; }
  .hs4kc6y1 { background: #15181d; border-color: #525b65; color: var(--paper); }
  .jz4dn7x0:hover { color: #111813; transform: translateY(-2px); }
  .hs4kc6y1:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

  .qa5x0w7m {
    padding: .65rem;
    min-width: 0;
    position: relative;
    border: 1px solid #8275a1;
    background: #12131a;
    box-shadow: .55rem .6rem 0 #302c46, .6rem .65rem 0 #645b80;
  }

  .zt98r2nb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.54;
    background: var(--tone);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 94% 100%, 0 100%);
  }

  .zt98r2nb::after {
    position: absolute;
    inset: 0;
    content: "";
    box-shadow: inset 0 -2.5rem 3rem -2rem #0c0b17d0;
    pointer-events: none;
  }

  .zt98r2nb img { object-position: var(--crop); }
  .qa5x0w7m figcaption { display: flex; justify-content: space-between; align-items: flex-end; gap: .8rem; padding: .75rem .35rem .2rem; }
  .qa5x0w7m figcaption span { display: block; color: var(--muted); font-size: .83rem; }
  .qa5x0w7m figcaption strong { display: block; font-size: clamp(1.12rem, 2vw, 1.48rem); }
  .qa5x0w7m .hs4kc6y1 { background: transparent; white-space: nowrap; }

  main > .w6ez03gn {
    display: grid;
    gap: clamp(3.2rem, 7vw, 6.25rem);
    padding-block: clamp(3rem, 6vw, 5rem);
  }

  .g5bmv19t {
    display: flex;
    gap: .85rem 1.5rem;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
  }

  .g5bmv19t p,
  .q25bx9tz p,
  .jc0rv8dn p,
  .ct1xj3g5 > div > p,
  .jk1r3y5n p,
  .d64jvy1g p {
    margin-top: .5rem;
    color: var(--muted);
  }
}

@layer modules {
  .p07yj6av, .b8kn6jk2 { display: flex; gap: .4rem; flex-wrap: wrap; }
  .p07yj6av { flex: none; }

  .p07yj6av button, .b8kn6jk2 button {
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: .38rem .68rem;
    border: 1px solid var(--line);
    border-radius: .22rem;
    background: var(--panel);
    font-size: .9rem;
    white-space: nowrap;
  }

  .p07yj6av button:not(:disabled):hover, .b8kn6jk2 button:hover { border-color: var(--accent); color: var(--accent); }
  .b8kn6jk2 button[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 800; }

  .kj08mz3f {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2rem) / 3.25);
    align-items: stretch;
    gap: .85rem;
    overflow-x: auto;
    padding: .3rem .2rem .8rem;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: .2rem;
    scrollbar-color: #6d785d #262d31;
    scrollbar-width: thin;
  }

  .zb7vc304 {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: .25rem;
    background: var(--panel);
    overflow: hidden;
    transition: border-color .2s ease, background-color .2s ease;
  }

  .zb7vc304:hover { border-color: #758263; background: var(--card); }
  .f08kp8dz { aspect-ratio: 2.05; overflow: hidden; background: var(--tone); }
  .f08kp8dz img, .m3q6z1fc img { object-position: var(--crop); transition: scale .3s ease; }
  .zb7vc304:hover img, .a89jwv2z:hover img { scale: 1.035; }

  .j4v6kp2h { display: grid; align-content: start; gap: .48rem; padding: .95rem; }
  .j4v6kp2h > p:nth-of-type(2), .v3t0yk5s > p:nth-of-type(2) { color: var(--muted); margin-top: 0; font-size: .94rem; }

  .cl2htv6k { color: var(--lilac); font-size: .84rem; font-weight: 650; }
  .unp6gt7a { width: fit-content; color: var(--accent); font-size: .9rem; font-weight: 700; }
  .unp6gt7a:hover { color: var(--paper); }

  .ew7mz3v0 {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 1.4rem 2rem;
    border: 1px solid #4e4b60;
    border-left: .22rem solid var(--lilac);
    padding: clamp(1.2rem, 4vw, 2.5rem);
    background: linear-gradient(110deg, #222132, #191d24 75%);
  }

  .q25bx9tz > p:last-child { color: var(--lilac); font-size: .88rem; margin-top: 1rem; }
  .qk6c5n8s { display: grid; gap: 0; list-style: none; padding: 0; counter-reset: priority; }
  .qk6c5n8s li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-height: 3rem;
    padding-block: .35rem;
    border-bottom: 1px solid #484759;
    counter-increment: priority;
  }

  .qk6c5n8s li:first-child { border-top: 1px solid #484759; }
  .qk6c5n8s li::before { content: counter(priority, decimal-leading-zero); color: var(--lilac); font: 700 .92rem/1 ui-monospace, monospace; }
  .qk6c5n8s li a { text-decoration: none; font-weight: 750; }
  .qk6c5n8s li span { color: var(--muted); font-size: .86rem; }

  .k86tfa2w { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .a89jwv2z {
    display: grid;
    grid-template-columns: minmax(6rem, 28%) minmax(0, 1fr);
    gap: .9rem;
    min-width: 0;
    padding: .7rem;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: border-color .2s ease, background-color .2s ease;
  }

  .a89jwv2z:hover { border-color: #758263; background: var(--card); }
  .a89jwv2z:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .m3q6z1fc { position: relative; min-height: 7rem; overflow: hidden; background: var(--tone); }
  .m3q6z1fc img { position: absolute; inset: 0; }
  .v3t0yk5s { display: grid; align-content: start; gap: .42rem; padding: .2rem .15rem .25rem 0; }
  .sa1fe82v { display: flex; align-items: baseline; gap: .12rem .8rem; flex-wrap: wrap; color: var(--muted); font-size: .83rem; }

  .dr5qt91h {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
  }
  .dr5qt91h article { background: var(--panel); padding: 1.1rem 1rem; border-top: .18rem solid var(--accent); }
  .dr5qt91h article:nth-child(2) { border-color: #acc99a; }
  .dr5qt91h article:nth-child(3) { border-color: var(--lilac); }
  .dr5qt91h p { color: var(--muted); margin-top: .55rem; }

  .yx06q4da {
    display: grid;
    grid-template-columns: .76fr 1.24fr;
    gap: clamp(1.2rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1rem, 4vw, 2.35rem);
    border: 1px solid #565168;
    background: #1e1d2a;
  }

  .jc0rv8dn .unp6gt7a { display: inline-block; margin-top: .9rem; }
  .kw5m8z12 { margin: 0; padding: 0; min-inline-size: 0; border: 0; }
  .kw5m8z12 > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .kw5m8z12 > label {
    display: inline-grid;
    place-items: center;
    min-height: 2.6rem;
    padding: .3rem .85rem;
    margin: 0 .2rem .6rem 0;
    background: var(--ink);
    border: 1px solid #645b76;
    color: var(--paper);
    font-size: .92rem;
    cursor: pointer;
  }

  .kw5m8z12 > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
  .kw5m8z12 > input:checked + label { background: var(--lilac); border-color: var(--lilac); color: var(--ink); font-weight: 700; }
  .cz5r1wt3 {
    background: #141319;
    border: 1px solid #555164;
    padding: .65rem;
    min-height: 10rem;
  }

  .ds39bwx1 { display: grid; grid-template-columns: .82fr 1.18fr; gap: .8rem; overflow: hidden; background: var(--panel); }
  .ds39bwx1 > div:last-child { padding: .65rem .65rem .65rem 0; }
  .ds39bwx1 h3, .ds39bwx1 p:not(.cl2htv6k) { margin-block: .25rem; }
  .ds39bwx1 p:not(.cl2htv6k) { color: var(--muted); font-size: .91rem; }
  .s7mw2jab { overflow: hidden; min-height: 7.5rem; background: var(--tone); }
  .gh3j4kv6 { max-width: 19rem; margin-inline: auto; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); }
  .gh3j4kv6 ul { list-style: none; padding: 0; }
  .gh3j4kv6 li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .5rem; padding: .38rem 0; border-top: 1px solid var(--line); }
  .gh3j4kv6 li span { color: var(--muted); font-size: .81rem; }
  #mode-card:not(:checked) ~ .cz5r1wt3 .ds39bwx1, #mode-phone:not(:checked) ~ .cz5r1wt3 .gh3j4kv6 { display: none; }

  .g38sv1mx { padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: process; }
  .g38sv1mx li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    counter-increment: process;
  }
  .g38sv1mx li::before { content: counter(process, decimal-leading-zero); padding: .18rem .1rem; color: var(--accent); font: 700 1.05rem/1.3 ui-monospace, monospace; }
  .g38sv1mx li div { display: grid; grid-template-columns: minmax(10rem, 26%) minmax(0, 1fr); gap: .35rem .8rem; }
  .g38sv1mx p { color: var(--muted); }
  .g38sv1mx a { color: var(--accent); }

  .k39f7aqc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .k39f7aqc figure { display: grid; gap: .9rem; align-content: space-between; padding: 1rem; border: 1px solid var(--line); }
  .k39f7aqc figure figcaption { color: var(--lilac); font-size: .86rem; }

  .ct1xj3g5 { display: grid; grid-template-columns: .6fr 1.4fr; gap: .9rem 1.75rem; }
  .tu7zd0wx { border-top: 1px solid var(--line); }
  .tu7zd0wx details { border-bottom: 1px solid var(--line); }
  .tu7zd0wx summary { padding: .8rem .35rem; font-weight: 700; }
  .tu7zd0wx summary::marker { color: var(--accent); }
  .tu7zd0wx details p { color: var(--muted); padding: 0 .35rem 1rem 1.45rem; }
  .tu7zd0wx details a { color: var(--accent); }

  .jk1r3y5n {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: center;
    gap: 1rem 2rem;
    padding: clamp(1.25rem, 4vw, 2.6rem);
    background: linear-gradient(110deg, #252d21, #28253a);
    border: 1px solid #596353;
  }

  .jk1r3y5n .rpu4m9bh { justify-content: flex-end; }

  .ng8qdp51 { border-top: 1px solid var(--line); background: #0b0e11; padding: 2.3rem 0 1.25rem; }
  .d64jvy1g { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem 2.3rem; }
  .d64jvy1g h2 { font-size: 1.25rem; letter-spacing: -.025em; }
  .d64jvy1g p { max-width: 45rem; font-size: .94rem; }
  .ca9x3j2q > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem .65rem; margin-top: .55rem; }
  .ca9x3j2q a { width: fit-content; color: var(--muted); text-decoration: none; font-size: .85rem; }
  .ca9x3j2q a:hover { color: var(--accent); text-decoration: underline; }
  .u71bv2c4 { margin-top: 1.4rem; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
}

@layer adaptive {
  @media (min-width: 52.001rem) {
    .u49nxp57 nav { display: none; }
  }

  @media (max-width: 60rem) {
    .kj08mz3f { grid-auto-columns: calc((100% - 1.3rem) / 2.4); }
    .a89jwv2z { grid-template-columns: minmax(5.25rem, 26%) minmax(0, 1fr); }
    .pc7j12kr h2 { font-size: clamp(2.55rem, 6.9vw, 5rem); }
  }

  @media (max-width: 52rem) {
    .n8m2fa6q { grid-template-columns: 1fr auto auto; gap: .55rem; min-height: 3.65rem; }
    .cp9n2ld8 { display: none; }
    .u49nxp57 { display: block; }
    .gv2z8sw3 { font-size: .86rem; }
    .wx5mb08q { align-items: start; }
    .k86tfa2w { grid-template-columns: 1fr; }
    .a89jwv2z { grid-template-columns: minmax(6rem, 23%) minmax(0, 1fr); }
    .g5bmv19t { align-items: flex-start; flex-wrap: wrap; }
    .qk6c5n8s li { grid-template-columns: 1.6rem 1fr; gap: .12rem .55rem; }
    .qk6c5n8s li span { grid-column: 2; }
    .dr5qt91h, .k39f7aqc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jk1r3y5n { grid-template-columns: 1fr; }
    .jk1r3y5n .rpu4m9bh { justify-content: flex-start; }
  }

  @media (max-width: 39rem) {
    html { scroll-padding-top: 4.9rem; }
    .wx5mb08q, .ew7mz3v0, .yx06q4da, .ct1xj3g5, .d64jvy1g { grid-template-columns: 1fr; }
    .wx5mb08q { gap: 1.45rem; }
    .qa5x0w7m { margin-right: .3rem; box-shadow: .32rem .4rem 0 #302c46, .37rem .45rem 0 #645b80; }
    .pc7j12kr h2 { margin-block: .75rem 1.05rem; font-size: clamp(2.55rem, 10.5vw, 4rem); }
    .pc7j12kr .rpu4m9bh { margin-top: 1.15rem; }
    .kj08mz3f { grid-auto-columns: 81%; }
    .dr5qt91h, .k39f7aqc, .g38sv1mx li div { grid-template-columns: 1fr; }
    .d64jvy1g { gap: 1.65rem; }
    .ca9x3j2q > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 24rem) {
    .gv2z8sw3, .u49nxp57 summary { padding-inline: .55rem; }
    .yv4q0nd1 { font-size: 1.12rem; }
    .tq6vm3a9 { width: 1.1rem; height: 1.1rem; }
    .a89jwv2z { grid-template-columns: minmax(3.8rem, 23%) minmax(0, 1fr); gap: .55rem; }
    .ds39bwx1 { grid-template-columns: 1fr; gap: 0; }
    .ds39bwx1 > div:last-child { padding: .6rem; }
    .s7mw2jab { aspect-ratio: 2.1; min-height: 0; }
  }

  @media (prefers-reduced-motion: no-preference) {
    [data-revealed] { animation: m72xw0k5 .5s ease-out both; }
    @keyframes m72xw0k5 {
      from { opacity: .48; transform: translateY(.65rem); }
      to { opacity: 1; transform: translateY(0); }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  }
}

