@layer foundation, composition, interface, responsive;

@layer foundation {
  :root {
    color-scheme: light;
    --ink: #241b36;
    --muted: #5c526d;
    --paper: #fbfafd;
    --surface: #fff;
    --washed: #f0eafb;
    --line: #ddd5e8;
    --accent: #5838aa;
    --lime: #d8fa9c;
    --gutter: clamp(18px, 4vw, 64px);
    --round: 20px;
    --lift: 0 16px 42px rgb(52 32 88 / .09);
    font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; line-height: 1.65; }
  :where(h1, h2, h3, p, figure, blockquote, ul, ol) { margin: 0; }
  :where(h1, h2, h3) { line-height: 1.2; }
  h2 { font-size: clamp(26px, 3.05vw, 40px); letter-spacing: -.045em; }
  h3 { font-size: 17px; }

  a { color: inherit; text-underline-offset: .24em; }
  a:hover { color: var(--accent); }
  button, select { font: inherit; }
  button, summary, select { cursor: pointer; }
  img { display: block; width: 100%; height: auto; object-fit: cover; }
  [hidden] { display: none !important; }

  :focus-visible { outline: 3px solid #6744c4; outline-offset: 4px; }
  #main:focus { outline: none; }
  ::selection { color: var(--ink); background: var(--lime); }

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

@layer composition {
  .s5fe9enbc { width: min(1440px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

  .nlyls6lbi {
    position: fixed;
    z-index: 20;
    inset: 10px auto auto var(--gutter);
    padding: 8px 14px;
    background: var(--surface);
    border: 2px solid var(--accent);
    transform: translateY(-150%);
  }

  .nlyls6lbi:focus { transform: none; }

  .g343xwlch {
    position: sticky;
    z-index: 10;
    top: 0;
    background: rgb(251 250 253 / .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .ed07ogkk6 { position: relative; display: flex; align-items: center; gap: 24px; min-height: 68px; }
  .ed07ogkk6 h1 { margin-inline-end: auto; font-size: 25px; line-height: 1; letter-spacing: -.09em; }
  .ed07ogkk6 h1 a { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }

  .gshx18y34 {
    display: inline-grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 9px;
    background: var(--lime);
  }

  .gshx18y34::before {
    content: "";
    width: 12px;
    height: 13px;
    transform: skew(-13deg);
    border-inline: 4px solid var(--ink);
  }

  .kylgi2qkh { display: flex; gap: clamp(12px, 2.2vw, 34px); }
  .kylgi2qkh a, .q1j4e6psg, .t13r33sb8 summary { font-size: 14px; font-weight: 700; text-decoration: none; }

  .q1j4e6psg { padding: 7px 13px; background: var(--washed); border-radius: 8px; white-space: nowrap; }
  .q1j4e6psg:hover { background: var(--lime); color: var(--ink); }

  .t13r33sb8 summary { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .t13r33sb8 summary::-webkit-details-marker { display: none; }

  .t13r33sb8 summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
  }

  .t13r33sb8[open] summary::after { transform: translateY(2px) rotate(225deg); }

  .t13r33sb8 nav {
    position: absolute;
    inset: calc(100% + 8px) var(--gutter) auto auto;
    width: min(352px, calc(100vw - 2 * var(--gutter)));
    max-height: calc(100dvh - 88px);
    overflow: auto;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--lift);
  }

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

  .siydipc3v a { display: block; padding: 8px; border-radius: 6px; font-size: 14px; text-decoration: none; }
  .siydipc3v a:hover { background: var(--washed); }

  .hsjws327n {
    padding-block: clamp(34px, 5.2vw, 76px) clamp(32px, 4.5vw, 66px);
    background:
      radial-gradient(ellipse at 66% 10%, #eee4ff 0%, transparent 54%),
      linear-gradient(155deg, #faf8fd, #f8f9f1);
  }

  .dhdyq801g { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 5vw, 78px); align-items: center; }
  .rb1u4isdn > p { max-width: 33ch; color: var(--muted); }

  .wfpwpc3fu {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .06em;
  }

  .wfpwpc3fu::before { content: ""; width: 16px; height: 3px; background: var(--accent); }

  .b8w1xfy8w {
    margin-block: 17px 19px;
    font-size: clamp(39px, 5.05vw, 72px);
    font-weight: 850;
    line-height: 1.09;
    letter-spacing: -.084em;
  }

  .b8w1xfy8w span { color: var(--accent); }
  .z4l952k30 { margin-bottom: 8px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; }

  .ks76i95i0 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 23px; }

  .k6vmbrz74 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: 11px 18px;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
  }

  .oy4s4rrfe { color: #fff; background: linear-gradient(112deg, #44248b, #6c45bf); box-shadow: 0 5px 14px rgb(65 36 128 / .2); }
  .oy4s4rrfe:hover { color: #fff; background: linear-gradient(112deg, #371d74, #543198); }
  .jx46l3p91 { border-color: #cdbfdf; background: rgb(255 255 255 / .5); }
  .jx46l3p91:hover { background: var(--surface); border-color: var(--accent); }

  .ogs901fjg {
    position: relative;
    min-width: 0;
    padding: 0 0 0 14px;
    border-radius: var(--round);
    isolation: isolate;
  }

  .ogs901fjg::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 16px 22px 24px 0;
    border: 1px solid #bed58e;
    border-radius: var(--round);
    background: var(--lime);
  }

  .w6kt76ju4 {
    display: grid;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #8062b8 #e8dfef;
    border: 1px solid #d3c9df;
    border-radius: var(--round);
    background: var(--surface);
    box-shadow: var(--lift);
  }

  .w6kt76ju4[data-mounted] { scrollbar-width: none; }
  .w6kt76ju4[data-mounted]::-webkit-scrollbar { display: none; }

  .jxrh6kn8c { min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .h2xpfmx1y { overflow: hidden; aspect-ratio: 1.64; background: #eae3f0; border-bottom: 1px solid var(--line); }
  .h2xpfmx1y img { height: 100%; object-position: center 43%; }

  .tgeuvueo8 {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    min-height: 88px;
    padding: 15px clamp(12px, 2vw, 22px);
  }

  .tgeuvueo8 div > span { display: block; color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
  .tgeuvueo8 h3 { font-size: clamp(16px, 2.05vw, 27px); letter-spacing: -.05em; }
  .tgeuvueo8 a { flex-shrink: 0; font-size: 13px; font-weight: 700; }

  .jfv11mv0t {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 9px 0 0;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .jfv11mv0t > div { display: flex; gap: 7px; }

  .jfv11mv0t button {
    display: grid;
    width: 32px;
    min-height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid #cdbfdf;
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
    line-height: 1;
  }

  .jfv11mv0t button[aria-current] { border-color: var(--ink); background: var(--lime); }
  .jfv11mv0t button:hover { border-color: var(--accent); }

  .t8okzdu63, .vmy2ypmx3, .hinemm4i6, .ay7a1rqm7 { padding-block: clamp(40px, 5.3vw, 78px); }
  .ctm0jqi52 { margin-bottom: 20px; }
  .ctm0jqi52 p { margin-top: 7px; color: var(--muted); }
  .oyaqv0rcq { margin-bottom: 14px; }
  .oyaqv0rcq h2 { font-size: 23px; }

  .nj4ut4gh7 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .oawdyb6im { min-width: 0; border-block-start: 3px solid #a78cd9; padding: 13px 16px 16px; border-radius: 3px 3px 12px 12px; background: var(--washed); }
  .oawdyb6im:nth-child(2n) { border-color: #a0b96f; background: #f0f5e7; }
  .oawdyb6im p, .k4rl36pd5 p { margin-top: 6px; color: var(--muted); font-size: 14px; }

  .irl5yrsoj { padding-block: clamp(36px, 4.8vw, 68px); background: #f5f0fb; border-block: 1px solid var(--line); }
  .a37v622vq { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); align-items: start; gap: clamp(20px, 3.25vw, 54px); }
  .xbks4zcd5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 20px); }

  .ttn2wexqw { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .ttn2wexqw a { display: flex; flex-direction: column; height: 100%; border-radius: inherit; overflow: hidden; text-decoration: none; }
  .ttn2wexqw img { aspect-ratio: 1.13; height: auto; background: #eae3f0; }
  .n83dir3rt { padding: 12px 13px 15px; }
  .n83dir3rt > span { color: var(--accent); font-weight: 700; font-size: 12px; }
  .n83dir3rt h3 { margin-block: 4px 6px; }
  .n83dir3rt h3 span { font-size: 12px; }
  .n83dir3rt p { color: var(--muted); font-size: 13px; line-height: 1.6; }

  .h1zczorr9 { padding: 19px 19px 8px; border-radius: 16px; background: var(--ink); color: #fff; }
  .kap8te1ge { border-bottom: 1px solid rgb(255 255 255 / .24); padding-bottom: 12px; }
  .kap8te1ge h2 { font-size: 24px; }
  .kap8te1ge p { margin-top: 4px; color: #e0d4f2; font-size: 13px; }
  .h1zczorr9 ol { padding-inline-start: 24px; }
  .h1zczorr9 li { padding-inline-start: 4px; }
  .h1zczorr9 li + li { border-top: 1px solid rgb(255 255 255 / .16); }
  .h1zczorr9 li::marker { color: var(--lime); font-weight: 800; }
  .hyyisp0jn { display: grid; gap: 2px; padding: 9px 0; line-height: 1.45; text-decoration: none; }
  .hyyisp0jn span { color: #e0d4f2; font-size: 12px; }
  .hyyisp0jn:hover { color: var(--lime); }
  .hyyisp0jn:focus-visible { outline-color: var(--lime); }


  .f5b893aed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 17px; }
  .f5b893aed .ctm0jqi52 { margin: 0; }
  .tlo5g0ue7 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 14px; }
  .tlo5g0ue7 select { color: var(--ink); min-height: 42px; padding-inline: 10px 24px; border: 1px solid #bdb0d0; border-radius: 8px; background: var(--surface); }
  .tlo5g0ue7 output { min-width: 6ch; }

  .uhysk5ug5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px; }
  .edth2iryf { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .edth2iryf:target { outline: 2px solid var(--accent); outline-offset: 3px; background: #faf5ff; }

  .edth2iryf summary, .z984zdyhh summary { position: relative; list-style: none; }
  .edth2iryf summary::-webkit-details-marker, .z984zdyhh summary::-webkit-details-marker { display: none; }

  .edth2iryf summary {
    display: grid;
    gap: 6px;
    padding: 14px 35px 14px 15px;
    border-radius: 11px;
  }

  .edth2iryf summary::after, .z984zdyhh summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 19px;
    line-height: 1.2;
    color: var(--accent);
  }

  .edth2iryf details[open] summary::after, .z984zdyhh details[open] summary::after { content: "−"; }
  .edth2iryf summary:hover, .z984zdyhh summary:hover { background: var(--washed); }
  .gcv4h2pvh { font-size: 16px; font-weight: 800; }
  .tpzdx0ruf { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; }
  .h16h04uue { padding: 0 15px 15px; border-top: 1px solid var(--line); font-size: 14px; }
  .h16h04uue p { padding-block: 11px 7px; color: var(--muted); }
  .h16h04uue a, .k4rl36pd5 a, .z984zdyhh a { color: var(--accent); font-weight: 700; }

  .ez61kx8b2 { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .kwml0afhb { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(20px, 5vw, 66px); border-radius: var(--round) 0 0 var(--round); background: #e9ddfa; }
  .kwml0afhb h2 { margin-bottom: 12px; }
  .kwml0afhb p { max-width: 34ch; color: var(--muted); }
  .fr1ygyhiv { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; padding: 5px; border: 1px solid #c0aedc; border-radius: 9px; background: #f4edfe; }
  .fr1ygyhiv button { padding: 7px 11px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; font-size: 14px; }
  .fr1ygyhiv button[aria-pressed="true"] { border-color: #7256ad; background: var(--surface); font-weight: 700; }
  .fr1ygyhiv button:hover { border-color: var(--accent); }

  .tcntixl86 {
    display: grid;
    place-items: center;
    min-height: 332px;
    padding: 19px;
    border-radius: 0 var(--round) var(--round) 0;
    background:
      radial-gradient(circle at 50% 100%, #d3efa3 0, transparent 70%),
      #f2f7e9;
    overflow: hidden;
  }

  .q77cvw0dq {
    width: min(100%, 246px);
    padding: 8px;
    border-radius: 21px;
    border: 1px solid #362846;
    background: #2b2135;
    box-shadow: 12px 12px 0 rgb(88 64 117 / .16);
  }

  .hiehu1lka { width: 35px; height: 4px; margin: 1px auto 8px; border-radius: 5px; background: #c4b6d1; }
  .frr99iopq { display: flex; flex-direction: column; min-height: 241px; overflow: hidden; border-radius: 12px; background: var(--surface); }
  .frr99iopq img { height: 115px; background: #eae3f0; }
  .frr99iopq[data-layout="text"] img { height: 91px; }
  .frr99iopq[data-layout="text"] .cgkk0127a { flex-grow: 1; }
  .cgkk0127a { padding: 9px 11px 11px; line-height: 1.5; }
  .cgkk0127a > span, .cgkk0127a a { color: var(--accent); font-size: 11px; font-weight: 750; }
  .cgkk0127a p { margin-block: 5px; font-size: 12px; color: var(--muted); }

  .k4rl36pd5 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    list-style: none;
    counter-reset: step;
  }

  .k4rl36pd5 li { display: flex; align-items: start; gap: 12px; padding: 16px 13px; border-top: 1px solid var(--line); counter-increment: step; }
  .k4rl36pd5 li::before { content: counter(step, decimal-leading-zero); border-radius: 6px; padding: 4px 6px; font-weight: 800; line-height: 1.25; background: var(--lime); }
  .k4rl36pd5 a { display: inline-block; margin-top: 5px; font-size: 13px; }

  .tq46oycu5 { padding-block: clamp(32px, 4.6vw, 65px); background: #f0edf4; }
  .mv5h9k54p { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .mv5h9k54p figure { display: flex; flex-direction: column; gap: 12px; justify-content: space-between; padding: 15px; border-radius: 12px; background: var(--surface); }
  .mv5h9k54p figcaption { color: var(--muted); font-size: 13px; }

  .z984zdyhh { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; }
  .z984zdyhh details { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); }
  .z984zdyhh summary { padding: 13px 37px 13px 14px; font-weight: 700; }
  .z984zdyhh summary:focus-visible { outline-offset: -4px; }
  .z984zdyhh details p { border-top: 1px solid var(--line); padding: 10px 14px 13px; color: var(--muted); font-size: 14px; }

  .b2jcrkxqb { background: #e0f5ba; border-block: 1px solid #ccdda6; }
  .b9u1qjcgg { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; padding-block: clamp(26px, 4vw, 53px); }
  .b9u1qjcgg p { margin-top: 8px; }

  .a3l49i4ou { padding-block: 32px 16px; }
  .z500j131j { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; }
  .z500j131j h2 { margin-bottom: 9px; font-size: 21px; }
  .z500j131j p { color: var(--muted); font-size: 14px; max-width: 45em; }

  .vlkp9mpcz ul { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; list-style: none; }
  .vlkp9mpcz a { font-size: 13px; font-weight: 650; }
  .rto594pyv { padding-top: 13px; margin-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
}

@layer interface {
  [data-image-frame] { position: relative; overflow: hidden; min-width: 0; }
  [data-image-frame] img[data-image-error] { opacity: 0; }
  [data-image-note] {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 8px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
  }

  .frr99iopq > [data-image-frame] { flex-shrink: 0; }
  .frr99iopq[data-layout="text"] > [data-image-frame] { order: 1; }

  @media (hover: hover) and (pointer: fine) {
    .ttn2wexqw, .oawdyb6im, .k6vmbrz74 { transition: transform .2s ease, box-shadow .2s ease; }
    .ttn2wexqw:hover, .oawdyb6im:hover, .k6vmbrz74:hover { transform: translateY(-3px); box-shadow: var(--lift); }
  }

  [data-enter-view][data-showing] { animation: arrival .46s ease-out both; }

  @keyframes arrival {
    from { opacity: .62; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@layer responsive {
  @media (max-width: 900px) {
    .a37v622vq { grid-template-columns: minmax(0, 1fr); }
    .h1zczorr9 { padding-bottom: 12px; }
    .h1zczorr9 ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
    .h1zczorr9 li:nth-child(2) { border-top: 0; }
    .tgeuvueo8 { min-height: 76px; }
  }

  @media (max-width: 720px) {
    :root { scroll-padding-top: 70px; }
    .ed07ogkk6 { min-height: 59px; gap: 12px; }
    .ed07ogkk6 h1 { font-size: 22px; }
    .ed07ogkk6 h1 a { gap: 7px; }
    .kylgi2qkh { display: none; }

    .hsjws327n { padding-block: 28px 30px; }
    .dhdyq801g { grid-template-columns: 1fr; gap: 24px; }
    .b8w1xfy8w { margin-block: 11px 13px; font-size: clamp(36px, 8vw, 54px); }
    .b8w1xfy8w br { display: none; }
    .ks76i95i0 { margin-top: 15px; }
    .ogs901fjg { padding-inline-start: 9px; }
    .h2xpfmx1y { aspect-ratio: 1.82; }

    .nj4ut4gh7, .uhysk5ug5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ez61kx8b2 { grid-template-columns: 1fr; }
    .kwml0afhb { border-radius: var(--round) var(--round) 0 0; }
    .tcntixl86 { min-height: 305px; border-radius: 0 0 var(--round) var(--round); }

    .k4rl36pd5, .mv5h9k54p { grid-template-columns: 1fr; gap: 8px; }
    .k4rl36pd5 li { padding-block: 11px 8px; }
    .z500j131j { grid-template-columns: 1fr; gap: 19px; }
  }

  @media (max-width: 480px) {
    .hsjws327n .rb1u4isdn > p { max-width: none; }
    .b8w1xfy8w { font-size: clamp(31px, 8.6vw, 41px); }
    .wfpwpc3fu { font-size: 13px; }
    .q1j4e6psg { padding: 6px 8px; }
    .t13r33sb8 summary, .q1j4e6psg { font-size: 12px; }
    .oawdyb6im { padding: 10px; }
    .oawdyb6im h3 { font-size: 15px; }

    .xbks4zcd5 { grid-template-columns: 1fr; }
    .ttn2wexqw a { display: grid; grid-template-columns: 28% minmax(0, 1fr); align-items: stretch; }
    .ttn2wexqw img { height: 100%; aspect-ratio: auto; }
    .n83dir3rt { padding: 8px 10px 10px; }
    .n83dir3rt h3 { font-size: 15px; }

    .uhysk5ug5, .z984zdyhh { grid-template-columns: 1fr; }
  }
}
