@layer foundation, shell, cover, content, adaptation;

@layer foundation {
  :root {
    color-scheme: dark;
    --ink: #101014;
    --surface: #19191f;
    --raised: #212128;
    --line: #383741;
    --paper: #f9f1ed;
    --muted: #b8b0b5;
    --accent: #ff826e;
    --accent-light: #ffbf92;
    --gutter: clamp(18px, 5vw, 66px);
    --width: 1180px;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 92px; }
  body { margin: 0; background: var(--ink); color: var(--paper); line-height: 1.65; }
  h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
  h2, h3 { line-height: 1.25; }
  h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); letter-spacing: .015em; }
  h3 { font-size: 1.05rem; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; cursor: pointer; }
  img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
  [hidden], img[data-image-failed] { display: none !important; }
  :where(a, summary, button, article[tabindex]):focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 5px;
  }
  ::selection { background: var(--accent); color: var(--ink); }

  .m6qwk2z9 { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
  .k7vxs20p {
    position: fixed;
    inset: 12px auto auto 12px;
    z-index: 10;
    transform: translateY(-180%);
    padding: 9px 14px;
    background: var(--paper);
    color: var(--ink);
  }
  .k7vxs20p:focus { transform: none; }
  .g53zvk7s { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

  @keyframes x6tpm4r9 {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
  }
  [data-entered] { animation: x6tpm4r9 500ms cubic-bezier(.2,.65,.35,1) both; }
}

@layer shell {
  .b42hq8xn {
    position: sticky;
    inset-block-start: 0;
    z-index: 5;
    background: rgb(16 16 20 / 94%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .b42hq8xn > div { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); min-height: 69px; }
  .h7myz46c { flex: none; display: inline-flex; align-items: center; gap: 12px; font-weight: 850; white-space: nowrap; letter-spacing: .08em; }
  .q6x2w8kc {
    width: 34px;
    height: 34px;
    display: grid;
    place-content: center;
    grid-template-columns: 6px 6px;
    grid-template-rows: 6px 6px;
    gap: 3px;
    border-radius: 8px;
    transform: rotate(-8deg);
    background: var(--accent);
  }
  .q6x2w8kc i { background: #201719; border-radius: 1px; }
  .q6x2w8kc i:first-child { grid-row: span 2; }
  .c3m8uz2r { margin-inline: auto; display: flex; gap: clamp(16px, 3vw, 39px); color: var(--muted); font-size: .89rem; }
  .c3m8uz2r a, .s7fvh3e6, .f5vnw3e9 summary { white-space: nowrap; transition: color 180ms; }
  .c3m8uz2r a:hover, .s7fvh3e6:hover, .f5vnw3e9 summary:hover { color: var(--accent-light); }
  .s7fvh3e6 { color: var(--accent); font-size: .87rem; font-weight: 750; }
  .s7fvh3e6 span { padding-inline-start: 5px; }
  .f5vnw3e9 summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: .87rem; padding: 9px 0; }
  .f5vnw3e9 summary::-webkit-details-marker { display: none; }
  .f5vnw3e9 summary span:first-child { color: var(--accent); }
  .f5vnw3e9 nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto auto;
    width: min(285px, 100%);
    max-height: min(62vh, 415px);
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 16px 45px #0007;
  }
  .f5vnw3e9 nav a { display: block; padding: 7px 12px; border-radius: 5px; }
  .f5vnw3e9 nav a:hover, .f5vnw3e9 nav a:focus-visible { background: var(--raised); color: var(--accent-light); }

  .a3fmwv92, .z697wxah {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-radius: 7px;
    padding: 10px 16px;
    font-size: .88rem;
    font-weight: 750;
    transition: translate 180ms, background-color 180ms, box-shadow 180ms;
  }
  .a3fmwv92 {
    background: linear-gradient(106deg, #ff7364, #ffad77);
    color: #201116;
    box-shadow: 0 6px 22px #ff775324;
  }
  .a3fmwv92:hover { translate: 0 -3px; box-shadow: 0 8px 26px #ff775357; }
  .z697wxah { background: var(--surface); border: 1px solid var(--line); }
  .z697wxah:hover { translate: 0 -3px; background: var(--raised); }
}

@layer cover {
  .x92bm3fy {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: center;
    gap: clamp(15px, 4.6vw, 62px);
    padding-block: clamp(42px, 6vw, 83px) clamp(42px, 6vw, 76px);
  }
  .t4jy9wqe h1 {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: var(--accent);
    font-size: .9rem;
    letter-spacing: .14em;
    line-height: 1.35;
  }
  .t4jy9wqe h1::before { content: ""; inline-size: 25px; block-size: 2px; background: currentColor; }
  .t4jy9wqe h2 { margin: 17px 0 18px; font-size: clamp(2.3rem, 5.4vw, 4.65rem); font-weight: 900; line-height: 1.09; letter-spacing: .015em; }
  .t4jy9wqe h2 span { color: var(--accent); }
  .t4jy9wqe p { color: var(--muted); max-width: 31ch; font-size: .94rem; }
  .t4jy9wqe .g2srm8n4 { color: var(--paper); font-size: 1.04rem; font-weight: 720; margin-bottom: 7px; }
  .j92kty5u { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }

  .v5qbd3k8 { min-width: 0; position: relative; }
  .p5bxu3e7 {
    position: relative;
    height: clamp(280px, 35vw, 415px);
    border: 1px solid #653838;
    border-radius: 15px;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse at 58% 41%, #a55148 0, #472b37 46%, #211e2c 85%);
  }
  .p5bxu3e7::before {
    content: "";
    position: absolute;
    inset: -28%;
    background: repeating-linear-gradient(119deg, transparent 0 23px, #ffd0b117 23px 24px);
    transform: skewX(-11deg);
    pointer-events: none;
  }
  .p5bxu3e7::after {
    content: "";
    position: absolute;
    inset: 11% 8%;
    z-index: -1;
    border-block: 1px solid #e99174a1;
    transform: skewY(-7deg);
  }
  .p5bxu3e7 figure {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(38%, 226px);
    height: 79%;
    overflow: hidden;
    border: 1px solid #ffe4d5b0;
    border-radius: 10px;
    background: #222029;
    box-shadow: 0 18px 45px #08050b92;
    transform-origin: center;
    transition: transform 620ms cubic-bezier(.22,.72,.28,1), filter 500ms;
  }
  .p5bxu3e7 figure[data-place="left"] { z-index: 1; transform: translate(-110%, -46%) rotate(-12deg) scale(.85); filter: brightness(.77); }
  .p5bxu3e7 figure[data-place="right"] { z-index: 1; transform: translate(9%, -47%) rotate(12deg) scale(.87); filter: brightness(.8); }
  .p5bxu3e7 figure[data-place="center"] { z-index: 2; transform: translate(-50%, -51%) rotate(-3deg); }
  .t9e4pwda { min-height: 0; overflow: hidden; background: linear-gradient(152deg, #263038, #ab685c); }
  .p5bxu3e7 figure:nth-child(2) .t9e4pwda { background: linear-gradient(160deg, #6e433c, #bd7b57); }
  .p5bxu3e7 figure:nth-child(3) .t9e4pwda { background: linear-gradient(160deg, #404057, #8c6a67); }
  .p5bxu3e7 figcaption { padding: clamp(6px, 1vw, 12px) clamp(7px, 1.5vw, 15px); }
  .p5bxu3e7 figcaption small { display: block; color: #f1aa91; font-size: clamp(.6rem, 1vw, .72rem); font-weight: 650; }
  .p5bxu3e7 figcaption strong { display: block; font-size: clamp(.78rem, 1.6vw, 1.2rem); }
  .u5yr8q3v { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; }
  .u5yr8q3v > span { font-variant-numeric: tabular-nums; letter-spacing: .16em; }
  .u5yr8q3v button { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; min-height: 38px; }
  .u5yr8q3v button:hover { color: var(--accent-light); border-color: var(--accent); }
  .f4vm8np2 { display: flex; gap: 6px; }
  .f4vm8np2 button { min-width: 42px; font-size: 1rem; }
  .u5yr8q3v button[data-play] { padding-inline: 9px; }
}

@layer content {
  .d2h6pn9m { display: grid; grid-template-columns: minmax(0, 2.31fr) minmax(250px, 1fr); gap: clamp(16px, 3vw, 33px); align-items: stretch; }
  .z2k79ydp { display: flex; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 19px; }
  .z2k79ydp p, .n3rf7cx6 > p { margin-top: 5px; color: var(--muted); font-size: .86rem; }
  .z2k79ydp > a { color: var(--accent); font-size: .81rem; white-space: nowrap; }
  .z2k79ydp > a:hover { color: var(--accent-light); text-decoration: underline; }
  .w3k9d7vb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .c73mye2k {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    transition: translate 180ms, border-color 180ms;
  }
  .c73mye2k:hover, .c73mye2k:focus-within { translate: 0 -3px; border-color: var(--accent); }
  .j9k3wxm2 { aspect-ratio: 1.48; overflow: hidden; background: #302733; }
  .c73mye2k:nth-child(2) .j9k3wxm2 { background: #33282b; }
  .c73mye2k:nth-child(3) .j9k3wxm2 { background: #313021; }
  .c73mye2k img { transition: scale 250ms; }
  .c73mye2k:hover img { scale: 1.05; }
  .c73mye2k > div:last-child { padding: 12px; }
  .c73mye2k small, .p6rw92zj small { color: var(--accent); font-size: .71rem; font-weight: 680; }
  .c73mye2k h3 { margin-block: 3px 7px; }
  .c73mye2k h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .c73mye2k p, .p6rw92zj p { color: var(--muted); font-size: .81rem; }
  .n3rf7cx6 { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: clamp(15px, 2vw, 23px); }
  .n3rf7cx6 h2 { font-size: 1.45rem; }
  .n3rf7cx6 ol { list-style: none; padding: 0; margin-top: 12px; }
  .n3rf7cx6 li { border-top: 1px solid var(--line); }
  .n3rf7cx6 li a {
    display: grid;
    grid-template-columns: 2ch minmax(0, 1fr) auto 1ch;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: .88rem;
  }
  .n3rf7cx6 li a:hover strong { color: var(--accent-light); }
  .n3rf7cx6 li span { color: var(--accent); font-size: .72rem; }
  .n3rf7cx6 li small { color: var(--muted); }

  .k3m79uwx { margin-top: 67px; padding-block: 35px; border-block: 1px solid var(--line); background: #15151a; }
  .y5qnm6d3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .y5qnm6d3 article { display: flex; align-items: start; gap: 13px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
  .y5qnm6d3 article > span { display: grid; place-items: center; flex: 0 0 33px; aspect-ratio: 1; border-radius: 4px; color: var(--accent-light); background: #35282d; }
  .y5qnm6d3 p { margin-top: 6px; color: var(--muted); font-size: .83rem; }

  .d4mqr8b2 { display: grid; grid-template-columns: .29fr .71fr; gap: clamp(22px, 5vw, 69px); padding-block: 65px; }
  .u2yc9xg4 { position: sticky; top: 99px; align-self: start; min-width: 0; }
  .u2yc9xg4 p { margin-top: 9px; color: var(--muted); font-size: .9rem; }
  .t6e5qkg3 { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 16px 8px; }
  .t6e5qkg3 button {
    min-height: 44px;
    padding: 6px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: .8rem;
  }
  .t6e5qkg3 button:hover { border-color: var(--accent); }
  .t6e5qkg3 button[aria-pressed="true"] { color: #211316; background: var(--accent); border-color: var(--accent); font-weight: 800; }
  .u2yc9xg4 output { color: var(--muted); font-size: .8rem; }
  .d5wqh96r { border-top: 1px solid var(--line); }
  .p6rw92zj {
    display: grid;
    grid-template-columns: 55px minmax(0,1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    transition: background-color 180ms;
  }
  .p6rw92zj:target, .p6rw92zj:hover { background: var(--surface); }
  .h3qvz9u8 { height: 65px; border-radius: 5px; overflow: hidden; background: var(--raised); }
  .p6rw92zj h3 { margin: 1px 0 5px; }
  .p6rw92zj > a { padding: 7px 0 7px 7px; color: var(--accent-light); font-size: .75rem; text-align: end; }
  .p6rw92zj > a:hover { text-decoration: underline; }

  .p2k7fmn5 { padding-block: 42px; border-block: 1px solid #705055; background: linear-gradient(115deg, #252027, #241e24 50%, #362629); }
  .a4qbms6w { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(22px, 5vw, 76px); }
  .v6s7pmw2 > p { margin-block: 10px 21px; color: #d7c3c1; font-size: .9rem; max-width: 35ch; }
  .y9jb4kw2 { display: grid; gap: 6px; }
  .y9jb4kw2 button { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: start; min-height: 43px; padding: 6px 13px; background: #2f272e; border: 1px solid #655055; border-radius: 5px; font-size: .86rem; }
  .y9jb4kw2 button:hover, .y9jb4kw2 button[aria-pressed="true"] { color: var(--accent-light); background: #473036; border-color: #aa6d63; }
  .g7w4pb8d { border: 1px solid #89635e; background: #282028; border-radius: 19px; padding: 10px; box-shadow: 0 14px 36px #0b070973; }
  .y2q6xkn9 { background: #f1dcd3; color: #382730; border-radius: 12px; }
  .e97vmt5q { padding: 8px 16px; display: flex; justify-content: space-between; border-bottom: 1px solid #c9a79e; color: #6f4140; font-size: .72rem; font-weight: 750; }
  .y2q6xkn9 article { padding: 23px clamp(15px, 3vw, 32px) 26px; }
  .y2q6xkn9 article + article:not([hidden]) { border-top: 1px solid #c9a79e; }
  .y2q6xkn9 article > span { color: #80514d; font-size: .75rem; font-weight: 750; }
  .y2q6xkn9 h3 { margin-block: 6px 9px; font-size: 1.2rem; }
  .y2q6xkn9 p { font-size: .91rem; line-height: 1.75; min-height: 5em; max-width: 39ch; }
  .y2q6xkn9 article a { color: #713832; font-size: .8rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; display: inline-block; margin-top: 14px; }
  .y2q6xkn9 a:focus-visible { outline-color: #713832; }

  .y6mpd4x7 { padding-block: 58px; }
  .y6mpd4x7 ol { padding: 0; margin-top: 20px; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: steps; }
  .y6mpd4x7 li { counter-increment: steps; position: relative; padding: 16px 12px 12px 54px; border-top: 1px solid var(--line); }
  .y6mpd4x7 li::before {
    content: "0" counter(steps);
    position: absolute;
    top: 14px;
    left: 8px;
    font-size: 1.07rem;
    color: var(--accent);
    font-weight: 790;
  }
  .y6mpd4x7 li p { margin-top: 6px; color: var(--muted); font-size: .87rem; }

  .v8wq3py2 { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 6vw, 87px); border-block: 1px solid var(--line); padding-block: 37px; }
  .v8wq3py2 h2 { margin-bottom: 12px; }
  .k2n5h3mx { font-size: .8rem; color: var(--muted); margin-bottom: 7px; }
  .v8wq3py2 figure { border-left: 2px solid #714745; padding: 5px 0 5px 13px; margin-top: 13px; }
  .v8wq3py2 blockquote { font-size: .9rem; }
  .v8wq3py2 figcaption { margin-top: 4px; color: var(--accent-light); font-size: .72rem; }
  .v8wq3py2 details { border-bottom: 1px solid var(--line); }
  .v8wq3py2 summary { cursor: pointer; padding: 9px 3px; font-size: .88rem; }
  .v8wq3py2 summary::marker { color: var(--accent); }
  .v8wq3py2 summary:hover { color: var(--accent-light); }
  .v8wq3py2 details p { padding: 0 5px 11px 17px; color: var(--muted); font-size: .82rem; }

  .m5ue9vc3 {
    margin-block: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid #855353;
    border-radius: 12px;
    background: linear-gradient(115deg, #35242d, #3c282b 60%, #513234);
  }
  .m5ue9vc3 p { margin-top: 9px; color: #e2ceca; font-size: .92rem; }
  .m5ue9vc3 a { flex-shrink: 0; }

  .g9q6wyk2 { border-top: 1px solid var(--line); padding-block: 37px 18px; background: #141419; }
  .g9q6wyk2 > div { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 23px clamp(20px, 8vw, 95px); }
  .g9q6wyk2 h2 { font-size: 1.17rem; margin-bottom: 9px; }
  .g9q6wyk2 p { color: var(--muted); font-size: .83rem; }
  .g9q6wyk2 ul { display: flex; flex-wrap: wrap; gap: 5px 14px; color: #dfcdc7; padding: 0; list-style: none; font-size: .81rem; }
  .g9q6wyk2 a:hover { color: var(--accent-light); text-decoration: underline; }
  .r7q5xn2h { display: flex; justify-content: space-between; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
}

@layer adaptation {
  @media (max-width: 880px) {
    .c3m8uz2r { display: none; }
    .s7fvh3e6 { margin-inline-start: auto; }
    .d2h6pn9m { grid-template-columns: minmax(0,1.7fr) minmax(200px,1fr); }
    .w3k9d7vb { gap: 7px; }
    .c73mye2k > div:last-child { padding: 9px; }
  }
  @media (max-width: 680px) {
    .b42hq8xn > div { min-height: 58px; }
    .x92bm3fy, .d2h6pn9m, .d4mqr8b2, .a4qbms6w, .v8wq3py2, .g9q6wyk2 > div { grid-template-columns: minmax(0,1fr); }
    .x92bm3fy { gap: 24px; padding-block: 29px 38px; }
    .t4jy9wqe h2 { font-size: clamp(2.55rem, 9.5vw, 4rem); }
    .p5bxu3e7 { height: clamp(230px, 70vw, 345px); }
    .d2h6pn9m { gap: 20px; }
    .u2yc9xg4 { position: static; }
    .k3m79uwx { margin-top: 43px; padding-block: 29px; }
    .d4mqr8b2, .y6mpd4x7 { padding-block: 39px; }
    .p2k7fmn5, .v8wq3py2 { padding-block: 31px; }
    .m5ue9vc3 { margin-block: 37px; }
  }
  @media (max-width: 460px) {
    .b42hq8xn > div { gap: 13px; }
    .h7myz46c { font-size: .93rem; gap: 8px; }
    .q6x2w8kc { width: 27px; height: 27px; }
    .w3k9d7vb, .y5qnm6d3, .y6mpd4x7 ol { grid-template-columns: minmax(0,1fr); }
    .c73mye2k { grid-template-columns: 83px minmax(0,1fr); grid-template-rows: 1fr; }
    .j9k3wxm2 { aspect-ratio: auto; min-height: 88px; }
    .c73mye2k > div:last-child { padding: 9px 12px; }
    .p6rw92zj { grid-template-columns: 46px minmax(0,1fr); gap: 5px 11px; padding-inline: 2px; }
    .h3qvz9u8 { grid-row: span 2; height: 63px; }
    .p6rw92zj > a { width: fit-content; padding: 4px 0; text-align: start; }
    .y6mpd4x7 ol { gap: 3px; }
    .m5ue9vc3 { flex-direction: column; align-items: start; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}
