@layer foundation, layout, studio, index, close, adaptive;

@layer foundation {
  :root {
    color-scheme: dark;
    --paper: #101118;
    --surface: #191b26;
    --ink: #f5f3fc;
    --muted: #b5b7c9;
    --line: #343647;
    --mint: #bff5de;
    --violet: #d6c7ff;
    --edge: clamp(18px, 4vw, 64px);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
  }

  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    line-height: 1.7;
  }
  button, input { font: inherit; }
  button, summary { cursor: pointer; }
  a { color: inherit; }
  :focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 4px;
  }
  :target { scroll-margin-block: 22px; }
  p, h1, h2, h3, figure, blockquote { margin: 0; }
  h1, h2, h3 { line-height: 1.28; }
  h2 {
    font-size: clamp(1.55rem, 3vw, 2.6rem);
    letter-spacing: -.031em;
  }
  h3 { font-size: 1.08rem; }
  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  fieldset { min-inline-size: 0; }

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

  .j4rk0smx {
    position: fixed;
    z-index: 10;
    inset: 10px auto auto 10px;
    transform: translateY(-160%);
    padding: 8px 13px;
    background: var(--mint);
    color: #13211d;
  }

  .j4rk0smx:focus { transform: none; }
  .b7n5yz4k {
    width: min(calc(100% - 2 * var(--edge)), 1280px);
    margin-inline: auto;
  }
  .v9mb3xa6 {
    margin-bottom: 8px;
    color: var(--mint);
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .12em;
  }
  .c6hm94yf {
    color: var(--muted);
    font-size: .84rem;
  }
  .t93bm8qp {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 22px;
  }
  .t93bm8qp > a {
    color: var(--mint);
    font-size: .9rem;
    text-decoration: none;
  }
  .t93bm8qp > a:hover { text-decoration: underline; }
  .e7cw3h6q {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .h9pk2f4a, .t4q6m9pv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .72em;
    min-height: 46px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 750;
    transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
  }

  .h9pk2f4a {
    color: #121724;
    background: linear-gradient(110deg, var(--mint), var(--violet));
  }
  .h9pk2f4a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px #c7efd527;
  }
  .t4q6m9pv {
    color: var(--ink);
    border-color: #79758c;
    background: #10111849;
  }
  .t4q6m9pv:hover {
    border-color: var(--violet);
    background: #b8b3d817;
  }
}

@layer layout {
  .m0q3drx8 {
    border-bottom: 1px solid #242637;
    background: #12131c;
  }
  .f9pv4cu2 {
    display: flex;
    min-height: 72px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  .f9pv4cu2 h1 {
    font-size: clamp(1.08rem, 2.2vw, 1.36rem);
    letter-spacing: -.03em;
    white-space: nowrap;
  }
  .f9pv4cu2 h1 a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
  }
  .q0gc8s4v {
    width: 23px;
    height: 23px;
    border: 2px solid var(--mint);
    border-radius: 5px 8px 4px 5px;
    transform: rotate(-12deg);
  }
  .q0gc8s4v::after {
    display: block;
    width: 11px;
    height: 14px;
    border: 2px solid var(--violet);
    border-radius: 2px;
    transform: translate(6px, 2px);
    content: "";
  }
  .d0ut7ykm {
    display: flex;
    align-items: center;
    gap: clamp(13px, 2.9vw, 35px);
    font-size: .87rem;
  }
  .d0ut7ykm > a:not(.k7f6uc4r), .w87zj6qs summary {
    color: var(--muted);
    text-decoration: none;
  }
  .d0ut7ykm > a:hover, .w87zj6qs summary:hover { color: var(--mint); }
  .k7f6uc4r {
    min-height: 40px;
    padding: 5px 12px;
    font-size: .82rem;
  }
  .w87zj6qs {
    position: relative;
    z-index: 5;
  }
  .w87zj6qs ul {
    position: absolute;
    inset: calc(100% + 10px) 0 auto auto;
    width: min(280px, calc(100vw - 36px));
    list-style: none;
    padding: 10px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    border: 1px solid #535672;
    border-radius: 9px;
    background: #202232;
    box-shadow: 0 12px 30px #08091090;
  }

  .w87zj6qs a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none;
  }
  .w87zj6qs a:hover {
    background: #323449;
    color: var(--mint);
  }

  .k32qyz6m {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 64px);
    min-height: 560px;
    margin: 22px 0 clamp(48px, 6.5vw, 92px);
    padding: clamp(30px, 5.4vw, 80px);
    border: 1px solid #36384f;
    border-radius: 20px;
    background: radial-gradient(ellipse at 83% 28%, #48446e 0%, #272840 38%, transparent 72%), #191b28;
  }

  .r5w70bxu .v9mb3xa6 {
    display: inline-block;
    margin-bottom: 22px;
    padding-bottom: 7px;
    border-bottom: 1px solid #81ae9a82;
  }
  .r5w70bxu h2 {
    font-size: clamp(2.65rem, 5.25vw, 5.05rem);
    letter-spacing: -.048em;
    line-height: 1.15;
  }
  .r5w70bxu h2 span { color: var(--violet); }
  .p2gf8r0v {
    margin-top: 21px;
    font-size: clamp(1.02rem, 2.05vw, 1.3rem);
    font-weight: 700;
  }
  .s6n2f3yb {
    max-width: 32em;
    margin-top: 9px;
    color: var(--muted);
    font-size: .96rem;
  }
  .r5w70bxu .e7cw3h6q { margin-top: 26px; }
  .x6u93zkm {
    width: min(100%, 374px);
    margin-inline: auto;
  }

  .u98pr47g {
    position: relative;
    isolation: isolate;
    padding: 16px 17px 0;
  }

  .u98pr47g::before, .u98pr47g::after {
    position: absolute;
    z-index: -1;
    inset: 14px 17px 57px;
    border: 1px solid #dfd0fd54;
    border-radius: 12px;
    content: "";
  }

  .u98pr47g::before {
    transform: rotate(6deg);
    background: #9584ae38;
  }
  .u98pr47g::after {
    transform: rotate(-5deg);
    background: #766f9861;
  }
  .a8k3fp5d {
    height: clamp(290px, 29vw, 405px);
    overflow: hidden;
    border: 1px solid #c3bee370;
    border-radius: 11px;
    background: #262a42;
  }
  .a8k3fp5d img { object-position: center 35%; }
  .u98pr47g figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0 5px;
  }
  .u98pr47g figcaption strong { font-size: 1.07rem; }
  .u98pr47g figcaption span {
    color: var(--muted);
    font-size: .8rem;
    text-align: right;
  }
  .y45arg8f {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 5px 17px 0;
  }
  .g36hny7p {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    flex: 1;
  }
  .y45arg8f button {
    padding: 4px 7px;
    border: 1px solid #535775;
    border-radius: 4px;
    background: #24273c;
    color: var(--muted);
    font-size: .78rem;
  }

  .y45arg8f button[aria-pressed="true"], .y45arg8f button:hover {
    color: var(--mint);
    border-color: #98b9ae;
  }
  .n4mtv65r { min-width: 34px; }
  .y45arg8f .n4mtv65r[aria-disabled="true"] {
    opacity: .52;
    cursor: default;
  }
}

@layer studio {
  .r59x2kzp {
    display: grid;
    grid-template-columns: 1.16fr .84fr;
    gap: clamp(24px, 5vw, 76px);
    align-items: start;
  }
  .m2vx8q0b { min-width: 0; }
  .a74xse92 {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #181a25;
  }
  .a74xse92 fieldset, .h60xq4bw {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 7px;
    border: 0;
  }
  .a74xse92 fieldset {
    justify-content: center;
    border-bottom: 1px solid var(--line);
  }
  .a74xse92 label, .h60xq4bw label {
    position: relative;
    cursor: pointer;
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--muted);
    font-size: .83rem;
  }
  .a74xse92 label:has(:checked), .h60xq4bw label:has(:checked) {
    border-color: #727589;
    color: var(--mint);
    background: #32364a;
  }
  .a74xse92 label:has(:focus-visible), .h60xq4bw label:has(:focus-visible) {
    outline: 2px solid var(--mint);
    outline-offset: 1px;
  }
  .a74xse92 input, .h60xq4bw input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .z42v8gam {
    display: grid;
    align-items: center;
    min-height: 320px;
    padding: 20px;
    background: radial-gradient(ellipse at 48% 102%, #62618780, transparent 66%), #2a2d42;
  }

  .s6bx0rrq {
    display: grid;
    gap: .65rem;
    width: min(100%, 198px);
    margin-inline: auto;
    padding: 13px;
    border: 3px solid #9490ab;
    border-radius: 19px;
    background: #222435;
    color: var(--ink);
    box-shadow: 0 12px 36px #1615228c;
  }

  .p2yd7tjg {
    height: 112px;
    overflow: hidden;
    border-radius: 8px;
    background: #363850;
  }
  .p2yd7tjg img { object-position: center 42%; }
  .s6bx0rrq p {
    color: var(--muted);
    font-size: .76rem;
    margin-block: 4px 9px;
  }
  .s6bx0rrq .v9mb3xa6 {
    color: var(--mint);
    font-size: .64rem;
  }
  .s6bx0rrq a {
    color: var(--violet);
    font-size: .78rem;
    text-underline-offset: 3px;
  }
  .a74xse92:has([value="wide"]:checked) .s6bx0rrq {
    width: min(100%, 420px);
    grid-template-columns: minmax(65px, 1fr) 1.55fr;
    align-items: center;
    border-radius: 9px;
  }
  .a74xse92:has([value="wide"]:checked) .p2yd7tjg { height: 154px; }

  .a6br2up9 ol {
    padding: 0;
    margin: 24px 0 18px;
    list-style: none;
    counter-reset: steps;
  }
  .a6br2up9 li {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    counter-increment: steps;
  }
  .a6br2up9 li::before {
    content: counter(steps, decimal-leading-zero);
    color: var(--violet);
    font-size: 1.12rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .a6br2up9 li p {
    margin-top: 6px;
    color: var(--muted);
    font-size: .88rem;
  }
  .a6br2up9 > a {
    color: var(--mint);
    text-underline-offset: 4px;
  }
}

@layer index {
  .v63hx2jg, .z4k2yc7m, .d4fr3kxp, .b83cm6rk, .u47pkz9g { margin-top: clamp(55px, 8vw, 107px); }
  .v63hx2jg {
    display: grid;
    grid-template-columns: minmax(0, 2.45fr) minmax(220px, 1fr);
    align-items: start;
    gap: clamp(20px, 3vw, 42px);
  }
  .w5af9vc8 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 16px);
  }

  .w5af9vc8 a {
    display: block;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
  }

  .w5af9vc8 a:hover {
    transform: translateY(-4px);
    border-color: #a69cc4;
  }
  .f87kx3gw {
    aspect-ratio: 4 / 3.6;
    overflow: hidden;
    background: #22263b;
  }
  .f87kx3gw img {
    object-position: 50% 25%;
    transition: transform .25s;
  }
  .w5af9vc8 a:hover img { transform: scale(1.04); }
  .w5af9vc8 a > div:last-child { padding: 9px 11px 13px; }
  .w5af9vc8 p {
    color: var(--mint);
    font-size: .74rem;
  }
  .w5af9vc8 h3 { margin-block: 4px; }
  .w5af9vc8 span {
    color: var(--muted);
    font-size: .8rem;
  }
  .y89n3stq {
    min-width: 0;
    padding: clamp(16px, 2.3vw, 29px);
    border: 1px solid #474963;
    border-radius: 13px;
    background: linear-gradient(152deg, #2a2a42, #1b1d2a 58%);
  }
  .y89n3stq h2 { font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
  .y89n3stq ol {
    margin: 16px 0;
    padding: 0;
    list-style: none;
    counter-reset: ranks;
  }
  .y89n3stq li {
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #414259;
    counter-increment: ranks;
  }
  .y89n3stq li::before {
    content: counter(ranks, decimal-leading-zero);
    color: var(--violet);
    font-size: .78rem;
  }
  .y89n3stq li a {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding-block: 10px;
    text-decoration: none;
    font-size: .88rem;
  }
  .y89n3stq li a:hover { color: var(--mint); }
  .y89n3stq li span {
    color: var(--muted);
    font-size: .73rem;
  }
  .h60xq4bw { padding: 0; }
  .z4k2yc7m > .c6hm94yf { margin-block: -8px 14px; }
  .v5pj0tk4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }
  .x72ndb8g {
    display: grid;
    grid-template-columns: minmax(67px, 111px) minmax(0, 1fr);
    gap: 16px;
    min-height: 148px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }
  .x72ndb8g:target { border-color: var(--mint); }
  .x72ndb8g > div:last-child { align-self: center; }
  .g8qk16rv {
    height: 123px;
    overflow: hidden;
    border-radius: 5px;
    background: #242737;
  }
  .x72ndb8g h3 {
    margin-block: 3px 8px;
    font-size: 1.2rem;
  }
  .x72ndb8g p {
    color: var(--muted);
    font-size: .81rem;
  }
  .x72ndb8g summary {
    color: var(--violet);
    font-size: .83rem;
  }
  .x72ndb8g details p {
    margin: 7px 0 8px;
    max-width: 35em;
  }
  .x72ndb8g a {
    display: inline-block;
    margin-top: 6px;
    color: var(--mint);
    font-size: .81rem;
    text-underline-offset: 3px;
  }
  .d4fr3kxp h2 { margin-bottom: 20px; }
  .d4fr3kxp > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }
  .d4fr3kxp article {
    padding: clamp(12px, 2.2vw, 24px);
    border: 1px solid #35364a;
    border-top: 2px solid #a5bcb9;
    border-radius: 5px;
    background: #191b27;
  }
  .d4fr3kxp article:nth-child(even) { border-top-color: #ac9fd4; }
  .d4fr3kxp article p {
    margin-top: 9px;
    color: var(--muted);
    font-size: .89rem;
  }
}

@layer close {
  .b83cm6rk {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(26px, 6vw, 80px);
  }
  .b83cm6rk h2 { margin-bottom: 20px; }
  .m6a29fdg {
    display: grid;
    gap: 8px;
  }
  .m6a29fdg blockquote {
    padding: 11px 15px;
    border-left: 2px solid #8882a8;
    background: var(--surface);
    font-size: .89rem;
  }
  .m6a29fdg cite {
    display: block;
    margin-top: 3px;
    color: var(--violet);
    font-size: .76rem;
    font-style: normal;
  }
  .h6w98qts details { border-bottom: 1px solid var(--line); }
  .h6w98qts details:first-child { border-top: 1px solid var(--line); }
  .h6w98qts summary {
    padding: 13px 1px;
    color: var(--ink);
    font-size: .91rem;
  }
  .h6w98qts summary:hover, .h6w98qts details[open] summary { color: var(--violet); }
  .h6w98qts p {
    padding: 0 4px 13px 18px;
    color: var(--muted);
    font-size: .86rem;
  }
  .h6w98qts p a { color: var(--mint); }

  .u47pkz9g {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 20px;
    padding: clamp(18px, 4vw, 45px);
    border: 1px solid #626485;
    border-radius: 14px;
    background: linear-gradient(120deg, #222634, #36314c);
  }

  .u47pkz9g h2 { margin-bottom: 9px; }
  .u47pkz9g > div > p:last-child {
    max-width: 36em;
    color: var(--muted);
    font-size: .92rem;
  }
  .n8kf46wm {
    margin-top: clamp(49px, 7vw, 80px);
    padding: 31px 0 18px;
    border-top: 1px solid var(--line);
    background: #14151e;
  }
  .n8kf46wm h2 { font-size: 1.35rem; }
  .n8kf46wm section p {
    max-width: 62em;
    margin-top: 10px;
    color: var(--muted);
    font-size: .87rem;
  }
  .n8kf46wm nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 15px 0 22px;
  }
  .n8kf46wm nav a {
    font-size: .83rem;
    text-underline-offset: 3px;
  }
  .n8kf46wm nav a:hover { color: var(--mint); }
  .j9zvb3p6 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .76rem;
  }
}

@layer adaptive {
  @media (max-width: 980px) {
    .k32qyz6m {
      min-height: 480px;
      padding-inline: clamp(25px, 5vw, 50px);
    }
    .r5w70bxu h2 { font-size: clamp(2.45rem, 6.2vw, 4rem); }
  }

  @media (max-width: 800px) {
    .d0ut7ykm > a:not(.k7f6uc4r) { display: none; }
    .v63hx2jg { grid-template-columns: minmax(0, 1fr); }
    .y89n3stq ol {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 18px;
    }
    .d4fr3kxp > div { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 640px) {
    .f9pv4cu2 {
      min-height: 63px;
      gap: 10px;
    }
    .d0ut7ykm { gap: 11px; }
    .k7f6uc4r {
      min-height: 35px;
      padding: 4px 8px;
      font-size: .77rem;
    }
    .w87zj6qs { font-size: .79rem; }
    .w87zj6qs ul {
      position: fixed;
      inset: 63px var(--edge) auto auto;
      max-height: calc(100dvh - 74px);
      overflow: auto;
    }
    .k32qyz6m {
      grid-template-columns: 1fr;
      gap: 21px;
      margin-top: 13px;
      padding: 26px 18px 23px;
      border-radius: 13px;
    }
    .r5w70bxu .v9mb3xa6 { margin-bottom: 15px; }
    .p2gf8r0v { margin-top: 14px; }
    .r5w70bxu .e7cw3h6q { margin-top: 18px; }
    .x6u93zkm { width: min(100%, 260px); }
    .a8k3fp5d { height: clamp(230px, 67vw, 294px); }
    .r59x2kzp, .v5pj0tk4, .b83cm6rk { grid-template-columns: 1fr; }
    .z42v8gam {
      min-height: 290px;
      padding: 15px;
    }
    .a6br2up9 li { padding-block: 13px; }
    .t93bm8qp:has(.h60xq4bw) {
      align-items: start;
      flex-direction: column;
    }
    .f87kx3gw { aspect-ratio: 4 / 4.8; }
    .w5af9vc8 a > div:last-child { padding: 6px 7px 9px; }
    .w5af9vc8 h3 { font-size: .89rem; }
    .w5af9vc8 span {
      display: block;
      font-size: .75rem;
      line-height: 1.5;
    }
    .x72ndb8g { grid-template-columns: minmax(67px, 93px) minmax(0, 1fr); }
  }

  @media (max-width: 365px) {
    .q0gc8s4v { display: none; }
    .k7f6uc4r span, .w5af9vc8 span { display: none; }
    .r5w70bxu h2 { font-size: 2.25rem; }
    .y89n3stq ol { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      scroll-behavior: auto !important;
      transition: none !important;
    }
    .h9pk2f4a:hover, .w5af9vc8 a:hover, .w5af9vc8 a:hover img { transform: none; }
  }
}
