@layer base, header, cover, editorial, guide, footer, motion;

@layer base {
  :root {
    color-scheme: dark;
    --ink: #111713;
    --sheet: #19211c;
    --panel: #202b24;
    --line: #39473d;
    --muted: #b8c4bb;
    --paper: #f4f7ef;
    --acid: #e3fb79;
    --mint: #b0e39c;
    --frame: min(1340px, calc(100% - clamp(36px, 8vw, 112px)));
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
    accent-color: var(--acid);
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-padding-top: 28px;
  }

  body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-size: 1rem;
    line-height: 1.65;
  }

  h1,
  h2,
  h3,
  p,
  ol,
  ul,
  figure,
  blockquote {
    margin: 0;
  }

  h1,
  h2,
  h3,
  strong {
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.56rem, 3.2vw, 2.4rem);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1.18;
  }

  h3 {
    font-size: 1.09rem;
    line-height: 1.35;
  }

  a {
    color: inherit;
    text-underline-offset: .21em;
  }

  button,
  summary {
    cursor: pointer;
  }

  button {
    font: inherit;
  }

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

  [hidden] {
    display: none !important;
  }

  .g4pz9u2c {
    width: var(--frame);
    margin-inline: auto;
  }

  .h7rd2x9c,
  .a9cv8s4f p {
    color: var(--muted);
  }

  .a9cv8s4f {
    display: grid;
    align-content: start;
    gap: .6rem;
    margin-bottom: 1.45rem;
  }

  .a5nd8k2w {
    color: var(--acid);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .085em;
  }

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

  .d7qkc3m5:focus {
    top: 1rem;
    left: 1rem;
    z-index: 3;
    width: auto;
    height: auto;
    padding: .65rem .9rem;
    clip-path: none;
    background: var(--paper);
    color: var(--ink);
  }

  .b5vy4d8k,
  .r7jq3e9z {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: .65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
  }

  .b5vy4d8k {
    background: linear-gradient(115deg, #ecff87, #b2ec92);
    color: #1b2618;
  }

  .b5vy4d8k:hover {
    box-shadow: 0 0 24px #d9ff7e42;
  }

  .r7jq3e9z {
    border-color: #647267;
  }

  .r7jq3e9z:hover {
    border-color: var(--mint);
    color: var(--acid);
  }

  .x6fa4e9n {
    color: var(--acid);
    font-size: .94rem;
    font-weight: 700;
  }

  .x6fa4e9n:hover {
    color: var(--paper);
  }

  .q8td4w6a {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .q8td4w6a[data-image-unavailable] {
    opacity: 0;
  }
}

@layer header {
  .m8adx6j4 {
    border-bottom: 1px solid var(--line);
  }

  .c9ly3k6s {
    position: relative;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .b7cv5p9n {
    font-size: clamp(1.03rem, 2.4vw, 1.22rem);
    line-height: 1.2;
  }

  .b7cv5p9n a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: .66rem;
    text-decoration: none;
  }

  .j8xr4d6u {
    display: block;
    flex: 0 0 32px;
    height: 27px;
    border: 1px solid #d9ef7f7a;
    border-radius: 4px;
    background:
      linear-gradient(var(--acid), var(--acid)) 6px 6px / 5px 15px,
      linear-gradient(var(--mint), var(--mint)) 13px 6px / 5px 11px,
      linear-gradient(var(--acid), var(--acid)) 20px 6px / 5px 8px;
    background-repeat: no-repeat;
    transform: skewX(-8deg);
  }

  .f4tm8b7q {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3.4vw, 3.4rem);
    margin-left: auto;
  }

  .c9ly3k6s nav a {
    display: block;
    padding-block: .6rem;
    color: var(--muted);
    font-size: .93rem;
    font-weight: 640;
    text-decoration: none;
  }

  .c9ly3k6s nav a:hover {
    color: var(--acid);
  }

  .k9sn5e7a summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: .5rem;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--paper);
    font-weight: 680;
    list-style: none;
  }

  .k9sn5e7a summary::-webkit-details-marker {
    display: none;
  }

  .k9sn5e7a summary::after {
    width: .55rem;
    height: .55rem;
    margin-top: -.22rem;
    border-right: 1px solid var(--acid);
    border-bottom: 1px solid var(--acid);
    content: "";
    transform: rotate(45deg);
  }

  .k9sn5e7a[open] summary::after {
    margin-top: .2rem;
    transform: rotate(225deg);
  }

  .k9sn5e7a nav {
    position: absolute;
    z-index: 3;
    top: calc(100% - 5px);
    right: 0;
    display: grid;
    width: min(22rem, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 .7rem;
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    box-shadow: 0 16px 40px #0008;
  }

  @media (max-width: 760px) {
    .c9ly3k6s {
      min-height: 60px;
    }

    .f4tm8b7q {
      display: none;
    }
  }
}

@layer cover {
  .w6dx8n5a {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(1.35rem, 4vw, 5rem);
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6.5rem);
  }

  .y3qp8u5f {
    display: grid;
    justify-items: start;
    gap: 1rem;
  }

  .y3qp8u5f h2 {
    font-size: clamp(2.75rem, 6.35vw, 6.25rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.02;
  }

  .y3qp8u5f em {
    color: var(--acid);
    font-style: normal;
  }

  .v3hz7d5r {
    margin-top: .3rem;
    font-size: clamp(1.05rem, 1.75vw, 1.28rem);
    font-weight: 680;
  }

  .y3qp8u5f .h7rd2x9c {
    max-width: 30rem;
  }

  .c2sw7p4x {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .5rem;
  }

  .f8pc4k2m {
    min-width: 0;
  }

  .e4kt8v2d {
    display: grid;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #667c68;
    border-radius: 8px;
    background: #243729;
  }

  .z8rv2n4m {
    position: relative;
    display: grid;
    min-height: clamp(290px, 37vw, 475px);
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse at 78% 14%, #4d6d50 0, #254131 45%, #18251e 90%);
  }

  .z8rv2n4m:nth-child(2) {
    background: radial-gradient(ellipse at 78% 14%, #54666d 0, #29404b 45%, #14252d 90%);
  }

  .z8rv2n4m:nth-child(3) {
    background: radial-gradient(ellipse at 78% 14%, #8d6745 0, #4b3828 45%, #30281e 90%);
  }

  .z8rv2n4m::before,
  .z8rv2n4m::after,
  .z8rv2n4m img {
    position: absolute;
    inset: 0;
  }

  .z8rv2n4m img {
    z-index: -2;
    object-position: center 37%;
  }

  .z8rv2n4m::before {
    z-index: -1;
    background: linear-gradient(0deg, #0b1510 1%, #0b1510dd 21%, #0b151048 52%, #09120b05 76%);
    content: "";
  }

  .z8rv2n4m::after {
    z-index: -1;
    inset: 15px 15px auto auto;
    width: 36px;
    height: 36px;
    border-top: 1px solid #e8faaf;
    border-right: 1px solid #e8faaf;
    content: "";
    opacity: .8;
  }

  .z8rv2n4m figcaption {
    display: grid;
    justify-items: start;
    gap: .35rem;
    padding: clamp(1.1rem, 3vw, 2.2rem);
    color: #fff;
  }

  .z8rv2n4m figcaption span {
    color: #e5f2c7;
    font-size: .88rem;
    font-weight: 700;
  }

  .z8rv2n4m figcaption strong {
    font-size: clamp(1.7rem, 4.1vw, 3.15rem);
    font-weight: 790;
    letter-spacing: -.04em;
    line-height: 1.06;
  }

  .z8rv2n4m figcaption p {
    max-width: 24rem;
  }

  .u7bk3z6r {
    display: flex;
    min-height: 51px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 1rem;
    padding-top: .35rem;
  }

  .u7bk3z6r > div {
    display: flex;
    flex-wrap: wrap;
    gap: .22rem .75rem;
  }

  .u7bk3z6r button {
    min-height: 42px;
    padding: .4rem .18rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .91rem;
  }

  .u7bk3z6r [aria-pressed="true"] {
    box-shadow: inset 0 -2px var(--acid);
    color: var(--acid);
    font-weight: 700;
  }

  .u7bk3z6r button:hover {
    color: var(--paper);
  }

  @media (max-width: 760px) {
    .w6dx8n5a {
      grid-template-columns: minmax(0, 1fr);
      gap: 2rem;
      padding-top: 2rem;
    }

    .y3qp8u5f h2 {
      font-size: clamp(2.65rem, 10.75vw, 4.8rem);
    }

    .z8rv2n4m {
      min-height: clamp(250px, 69vw, 420px);
    }
  }
}

@layer editorial {
  .s8vb3l6k {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr);
    gap: clamp(1.4rem, 4vw, 3.7rem);
  }

  .h8zp3b7y {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.55rem, 1.6vw, 1.35rem);
  }

  .n4c6s9bt a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--sheet);
    text-decoration: none;
  }

  .t8yw4n2d {
    overflow: hidden;
    aspect-ratio: 6 / 5;
    background: linear-gradient(145deg, #354a39, #1b2922);
  }

  .n4c6s9bt:nth-child(2) .t8yw4n2d {
    background: linear-gradient(145deg, #5d5740, #302f25);
  }

  .n4c6s9bt:nth-child(3) .t8yw4n2d {
    background: linear-gradient(145deg, #4e525d, #292c38);
  }

  .t8yw4n2d img {
    object-position: center 32%;
    transition: transform .3s ease;
  }

  .n4c6s9bt a:is(:hover, :focus-visible) img {
    transform: scale(1.045);
  }

  .n4c6s9bt a:is(:hover, :focus-visible) h3 {
    color: var(--acid);
  }

  .p8jt2y4c {
    display: grid;
    gap: .26rem;
    min-height: 5.75rem;
    align-content: center;
    padding: .65rem clamp(.55rem, 1.5vw, 1rem);
  }

  .p8jt2y4c span {
    color: var(--mint);
    font-size: .83rem;
  }

  .p8jt2y4c h3 {
    font-size: clamp(.89rem, 2vw, 1.08rem);
  }

  .a6gm8k3v {
    padding: 1.4rem 1.2rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--acid);
    border-radius: 6px;
    background: #1b241e;
  }

  .a6gm8k3v h2 {
    font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  }

  .j6nx2t8u {
    display: grid;
    gap: 0;
    margin: -.35rem 0 .9rem;
    padding: 0;
    list-style: none;
    counter-reset: featured-work;
  }

  .j6nx2t8u li {
    display: flex;
    align-items: center;
    gap: .8rem;
    border-bottom: 1px solid var(--line);
    counter-increment: featured-work;
  }

  .j6nx2t8u li::before {
    color: var(--acid);
    content: counter(featured-work, decimal-leading-zero);
    font-size: 1.12rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
  }

  .j6nx2t8u a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .75rem 0;
    text-decoration: none;
  }

  .j6nx2t8u a:hover {
    color: var(--acid);
  }

  .j6nx2t8u span {
    flex: none;
    color: var(--muted);
    font-size: .88rem;
  }

  .a6gm8k3v > p {
    font-size: .9rem;
  }

  .k4sw6z8f,
  .e5nv8m2q,
  .y8jm4t7z,
  .p7nz4r8v {
    margin-top: clamp(3.8rem, 8vw, 7.3rem);
  }

  .k4sw6z8f {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 1rem;
  }

  .z3ht8m4p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin-bottom: 1.4rem;
  }

  .z3ht8m4p p {
    color: var(--muted);
    font-size: .88rem;
  }

  .c3d8x4an {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
  }

  .c3d8x4an button {
    min-height: 42px;
    padding: .4rem .82rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: transparent;
    color: var(--paper);
    font-size: .91rem;
  }

  .c3d8x4an button:hover {
    border-color: var(--mint);
  }

  .c3d8x4an [aria-pressed="true"] {
    border-color: var(--acid);
    background: var(--acid);
    color: #151e13;
    font-weight: 700;
  }

  .g3fb7w2n {
    grid-column: 1 / -1;
    border-top: 1px solid #687b6c;
  }

  .s6lx4e8p {
    display: grid;
    grid-template-columns: 4.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(.65rem, 2vw, 1.65rem);
    padding: .9rem .5rem;
    border-bottom: 1px solid var(--line);
  }

  .s6lx4e8p:target,
  .s6lx4e8p:focus-within {
    background: #202d23;
  }

  .s6lx4e8p h3 {
    margin-bottom: .17rem;
  }

  .s6lx4e8p p {
    font-size: .94rem;
  }

  .u2kg8f5z {
    display: grid;
    min-height: 44px;
    align-content: center;
    justify-items: end;
    color: var(--acid);
    font-size: .94rem;
    text-decoration: none;
  }

  .u2kg8f5z:hover span {
    text-decoration: underline;
  }

  .u2kg8f5z small {
    color: var(--muted);
    font-size: .82rem;
  }

  .m6wk9s2b {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
  }

  .m6wk9s2b article {
    display: grid;
    align-content: start;
    gap: .55rem;
    padding: 1rem 1.05rem 1.25rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--mint);
    border-radius: 4px;
    background: var(--sheet);
  }

  .m6wk9s2b p {
    color: var(--muted);
  }

  @media (max-width: 880px) {
    .s8vb3l6k,
    .k4sw6z8f {
      grid-template-columns: minmax(0, 1fr);
    }

    .a6gm8k3v {
      padding: 1.1rem;
    }
  }

  @media (max-width: 540px) {
    .s6lx4e8p {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: .35rem .65rem;
      padding-inline: .25rem;
    }

    .s6lx4e8p > .a5nd8k2w {
      grid-column: 1 / -1;
    }

    .m6wk9s2b {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

@layer guide {
  .y8jm4t7z,
  .p7nz4r8v {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 4.4vw, 4.2rem);
  }

  .k3ds7v9h {
    padding: clamp(1.15rem, 3vw, 2.35rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(150deg, #253629, var(--sheet) 66%);
  }

  .f7yr5e2q {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .v6h4p8mx {
    width: min(15rem, 100%);
    min-height: 16rem;
    padding: .95rem .75rem 1.25rem;
    border: 3px solid #738478;
    border-radius: 21px;
    background: #101a14;
    box-shadow: 0 12px 22px #0006;
  }

  .v6h4p8mx::before {
    display: block;
    width: 2.85rem;
    height: .27rem;
    margin: 0 auto 1rem;
    border-radius: 2rem;
    background: #738478;
    content: "";
  }

  .j5us8e3h {
    padding-inline: .24rem;
    color: var(--muted);
    font-size: .87rem;
  }

  .p4jw8g2a {
    display: grid;
    margin-top: .55rem;
    padding: .75rem;
    border-radius: 7px;
    background: #253428;
  }

  .p4jw8g2a > article {
    grid-area: 1 / 1;
  }

  .p4jw8g2a h3 {
    margin: .3rem 0 .5rem;
  }

  .p4jw8g2a p {
    color: #d4e0d4;
    font-size: .9rem;
    line-height: 1.5;
  }

  .p4jw8g2a a {
    display: inline-block;
    margin-top: .55rem;
  }

  .r6tw4u9n {
    flex: 0 1 auto;
  }

  .q3wk7m6h {
    align-self: center;
  }

  .n6pq8h3d {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0;
    list-style: none;
    counter-reset: reading-step;
  }

  .n6pq8h3d li {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    column-gap: .85rem;
    counter-increment: reading-step;
  }

  .n6pq8h3d li::before {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    grid-row: span 2;
    align-content: center;
    justify-content: center;
    border: 1px solid #637861;
    border-radius: 50%;
    color: var(--acid);
    content: counter(reading-step);
    font-weight: 800;
  }

  .n6pq8h3d h3 {
    padding-top: .17rem;
  }

  .n6pq8h3d p {
    margin-top: .24rem;
    color: var(--muted);
  }

  .c7my3b9x {
    border-top: 1px solid var(--line);
  }

  .c7my3b9x details {
    border-bottom: 1px solid var(--line);
  }

  .c7my3b9x summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 1.3rem;
    padding: .62rem 0;
    font-weight: 680;
    list-style: none;
  }

  .c7my3b9x summary::-webkit-details-marker {
    display: none;
  }

  .c7my3b9x summary::after {
    color: var(--acid);
    content: "+";
    font-size: 1.2rem;
  }

  .c7my3b9x details[open] summary::after {
    content: "−";
  }

  .c7my3b9x details p {
    padding: 0 1.8rem .85rem 0;
    color: var(--muted);
  }

  .n8ja4d6s {
    display: grid;
    gap: .75rem;
  }

  .n8ja4d6s figure {
    display: grid;
    gap: .4rem;
    padding: .75rem .9rem;
    border-inline-start: 2px solid #688263;
    background: var(--sheet);
  }

  .n8ja4d6s figcaption {
    color: var(--muted);
    font-size: .86rem;
  }

  .m7dk2b8z {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-block: clamp(3.8rem, 8vw, 7.3rem) clamp(3rem, 6vw, 5.8rem);
    padding: clamp(1.25rem, 3.6vw, 2.6rem);
    border: 1px solid #6b845e;
    border-radius: 8px;
    background: linear-gradient(125deg, #283c2d, #202d24 60%, #304334);
  }

  .m7dk2b8z p {
    margin-top: .65rem;
    color: #d9e5d6;
  }

  @media (max-width: 760px) {
    .y8jm4t7z,
    .p7nz4r8v {
      grid-template-columns: minmax(0, 1fr);
      row-gap: 2rem;
    }
  }
}

@layer footer {
  .h4sg7x2e {
    padding: 2.55rem 0 1.3rem;
    border-top: 1px solid var(--line);
    background: #101511;
  }

  .q6xb4u8m {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 5vw, 5rem);
  }

  .q6xb4u8m h2 {
    margin-bottom: .7rem;
    font-size: 1.22rem;
  }

  .q6xb4u8m p,
  .q6xb4u8m a,
  .s9ef4d2x p {
    color: var(--muted);
    font-size: .91rem;
  }

  .q6xb4u8m ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
    gap: .4rem .8rem;
    padding: 0;
    list-style: none;
  }

  .q6xb4u8m a:hover {
    color: var(--acid);
  }

  .s9ef4d2x {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem 1rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  @media (max-width: 700px) {
    .q6xb4u8m {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }

    .z8rv2n4m[data-active],
    [data-preview-card][data-active] {
      animation: q6sh8v4e .36s ease-out both;
    }

    [data-reveal][data-entered] {
      animation: j4wz9k6b .38s ease-out both;
    }

    @keyframes q6sh8v4e {
      from { opacity: .42; }
      to { opacity: 1; }
    }

    @keyframes j4wz9k6b {
      from { opacity: .68; transform: translateY(9px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }

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