@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #192617;
  --ink-2: #1d2c1a;
  --ink-3: #21321e;
  --ink-4: #263922;
  --neon: #87ff71;
  --sun: #ffce5c;
  --paper: #f0fbe9;
  --muted: #b9cdb2;
  --radius: 18px;
  --pad: clamp(18px, 4vw, 34px);
  --max: 1240px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(135, 255, 113, 0.16) 1px, transparent 1.7px),
    linear-gradient(180deg, #192617 0%, #162115 100%);
  background-size: 28px 28px, 100% 100%;
  color: var(--paper);
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.002em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sun);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

p {
  margin: 0 0 1em;
  max-width: 72ch;
}

h1, h2, h3, h4 {
  line-height: 1.24;
  letter-spacing: -0.018em;
  color: var(--paper);
  margin: 0 0 0.62em;
  font-weight: 800;
}

h2 > span,
h3 > span {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  padding: 5px 13px;
  border-radius: 10px;
  transform: rotate(-1.4deg);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

/* 顶部两行导航 */
.sitehead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(22, 33, 21, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px dashed rgba(135, 255, 113, 0.36);
  padding: 12px clamp(14px, 4vw, 40px) 10px;
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--paper);
  text-decoration: none;
  flex: none;
}

.brandmark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--neon);
  object-fit: cover;
  transform: rotate(-7deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

span.brandmark {
  position: relative;
  overflow: hidden;
}

span.brandmark::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

span.brandmark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
}

.brandname {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.search {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 300px;
  min-width: 132px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ink-3);
  border: 2px solid #32472c;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.search input::placeholder {
  color: var(--muted);
}

.search button {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.mainnav {
  display: flex;
  gap: 8px;
  max-width: var(--max);
  margin: 10px auto 0;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--neon) transparent;
}

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink-4);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transform: rotate(-0.6deg);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill:nth-child(even) {
  transform: rotate(0.7deg);
}

.pill:first-child {
  background: var(--neon);
  color: var(--ink);
}

.pill-i {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
}

.pill:first-child .pill-i {
  color: var(--ink);
}

.pill:hover,
.pill.is-hit {
  background: var(--sun);
  color: var(--ink);
  transform: rotate(0deg) translateY(-2px);
}

.pill:hover .pill-i,
.pill.is-hit .pill-i {
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  max-width: 1420px;
  margin: 0 auto;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  padding: clamp(26px, 5vw, 62px) clamp(16px, 5vw, 56px) clamp(76px, 9vw, 120px);
  background:
    linear-gradient(118deg, #192617 0 54%, #20351c 54% 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 58px), 63% 100%, 0 calc(100% - 24px));
}

.hero::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 16%;
  height: 48px;
  background: var(--sun);
  transform: rotate(-4.2deg);
  opacity: 0.95;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: clamp(160px, 22vw, 280px);
  aspect-ratio: 1;
  right: 4%;
  top: 7%;
  border: 16px solid rgba(135, 255, 113, 0.4);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: rotate(-2deg);
}

.hero h1 {
  margin: 0 0 0.35em;
  font-size: clamp(2.1rem, 5.7vw, 4.35rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-desc {
  max-width: 48ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.6vw, 18.5px);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--neon);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-3px) rotate(-1deg);
  background: var(--sun);
  border-color: var(--sun);
}

.btn-ghost {
  background: transparent;
  color: var(--sun);
  border: 2px dashed rgba(255, 206, 92, 0.7);
}

.btn-ghost:hover {
  background: var(--sun);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--neon);
  border-color: var(--ink);
}

.btn-dark:hover {
  background: #0f180e;
  color: var(--sun);
  border-color: #0f180e;
}

.hero-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  align-self: stretch;
  min-height: 240px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sun), #ff9f5c 58%, var(--neon));
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 13%);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(25, 38, 23, 0.55) 2px, transparent 2.5px);
  background-size: 19px 19px;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 10%;
  width: 42%;
  height: 30%;
  background: var(--ink);
  opacity: 0.2;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  z-index: 1;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.06);
  transform: translate3d(0, var(--py, 0px), 0) scale(1.09);
  will-change: transform;
}

/* 侧栏 + 正文 */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px) clamp(14px, 4vw, 40px) 48px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
}

.side {
  position: sticky;
  top: 164px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ink-3);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.side-t {
  font-size: 17px;
  margin: 0 0 12px;
}

.side-t span {
  padding: 4px 10px;
  border-radius: 8px;
}

.side-nav {
  display: grid;
  gap: 2px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 8px;
  border-radius: 9px;
  border-bottom: 1px dotted rgba(135, 255, 113, 0.28);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.side-i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--sun);
  transform: rotate(8deg);
}

.side-link:hover,
.side-link.is-hit {
  background: var(--neon);
  color: var(--ink);
}

.side-link:hover .side-i,
.side-link.is-hit .side-i {
  background: var(--ink);
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.content {
  min-width: 0;
}

.art-t {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 20px;
}

.content section > article {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: var(--pad);
  border-radius: var(--radius);
  background: var(--ink-3);
  scroll-margin-top: 168px;
}

.content section > article::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.85;
  transform: rotate(8deg);
  pointer-events: none;
}

.content section > article:nth-child(even) {
  background: var(--ink-4);
}

.content section > article:nth-child(even)::before {
  border-radius: 0;
  background: var(--neon);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.content section > article:nth-child(3n)::before {
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--neon) 0 6px, transparent 6px 11px);
  opacity: 1;
}

.content h2 {
  font-size: clamp(1.36rem, 2.7vw, 1.92rem);
  max-width: 30ch;
}

.content h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-top: 1.5em;
}

.content h3::before {
  content: "";
  display: inline-block;
  width: 0.56em;
  height: 0.62em;
  margin-right: 0.4em;
  background: var(--neon);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  vertical-align: 0.02em;
}

.content h4 {
  font-size: 1.04rem;
  color: var(--sun);
}

.content p {
  margin: 0 0 1.05em;
}

.content ul,
.content ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.content li {
  margin-bottom: 0.5em;
}

.content li::marker {
  color: var(--neon);
  font-weight: 700;
}

.content strong {
  color: #ffffff;
  font-weight: 700;
}

.content a {
  font-weight: 600;
}

.content a:hover {
  color: var(--neon);
}

.content blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 5px solid var(--sun);
  border-radius: 0 14px 14px 0;
  background: #2b3f25;
  color: var(--paper);
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.3em 0;
  border-radius: 14px;
}

.content figure {
  margin: 1.3em 0;
}

.content figcaption {
  color: var(--muted);
  font-size: 15px;
}

.content hr {
  border: 0;
  height: 3px;
  margin: 2em 0;
  background: repeating-linear-gradient(90deg, var(--neon) 0 14px, transparent 14px 24px);
}

.content table {
  width: 100%;
  margin: 1.3em 0;
  border-collapse: collapse;
  font-size: 16px;
}

.content th,
.content td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px dotted rgba(135, 255, 113, 0.3);
}

.content th {
  background: #2c4026;
  color: var(--sun);
  font-weight: 700;
}

.content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #14200f;
  color: var(--neon);
  font-size: 0.93em;
}

.content pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 12px;
  background: #101b0d;
  border: 2px dotted #34492d;
}

.content pre code {
  padding: 0;
  background: none;
}

/* 页脚 */
.sitefoot {
  margin-top: 44px;
  padding-bottom: 24px;
  background: #111c10;
  border-top: 3px dashed rgba(135, 255, 113, 0.32);
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 48px);
  background: var(--neon);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
}

.foot-cta h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4.2vw, 2.7rem);
  color: var(--ink);
}

.foot-cta h2 span {
  padding: 0;
  background: none;
  box-shadow: none;
  transform: none;
  color: var(--ink);
}

.foot-cta h2 span::after {
  content: "";
  display: block;
  height: 7px;
  margin-top: 5px;
  background: var(--ink);
  transform: rotate(-1deg);
}

.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 42px) clamp(14px, 4vw, 40px) 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 48px);
}

.foot-block {
  min-width: 0;
}

address {
  font-style: normal;
  display: grid;
  gap: 7px;
}

address strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

address span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.foot-links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #1e2f1b;
  border: 1px dotted rgba(135, 255, 113, 0.42);
  color: var(--paper);
  font-size: 15.5px;
  text-decoration: none;
}

.foot-links a:hover {
  background: var(--sun);
  color: var(--ink);
}

.foot-nav dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 0 8px;
  margin: 0;
}

.foot-nav dt {
  min-width: 0;
}

.foot-nav dt a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 206, 92, 0.28);
}

.foot-nav dt a:hover {
  color: var(--neon);
}

.foot-nav dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  color: var(--neon);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 1px dotted rgba(255, 206, 92, 0.28);
}

.foot-base {
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 18px clamp(14px, 4vw, 40px) 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.foot-base p {
  margin: 0;
  max-width: none;
}

.foot-base p + p {
  margin-top: 3px;
  font-size: 13.5px;
  color: #8fa687;
}

/* 动效 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  html.js .hero-copy > h1 {
    animation-delay: 0.06s;
  }

  html.js .hero-copy > .hero-desc {
    animation-delay: 0.12s;
  }

  html.js .hero-copy > .hero-cta {
    animation-delay: 0.18s;
  }

  html.js .stagger {
    opacity: 0;
    transform: translateY(13px);
  }

  html.js .stagger.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }

  .pill,
  .side-link {
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.4s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* 中屏 */
@media (max-width: 1000px) {
  .wrap {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .side {
    top: 176px;
  }

  .hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 55% 100%, 0 calc(100% - 20px));
  }
}

/* 移动端 */
@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .sitehead {
    padding-top: 9px;
  }

  .brandname {
    font-size: 19px;
  }

  .brandmark {
    width: 36px;
    height: 36px;
  }

  .search {
    flex: 0 1 190px;
  }

  .mainnav {
    margin-top: 8px;
  }

  .pill {
    padding: 8px 13px;
    font-size: 15.5px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 78px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 44% 100%, 0 calc(100% - 14px));
  }

  .hero::before {
    bottom: 10%;
    height: 34px;
  }

  .hero::after {
    width: 130px;
    right: -20px;
    top: 4%;
    border-width: 12px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.2vw, 3rem);
  }

  .hero-media {
    min-height: 190px;
    max-height: 280px;
    margin-top: 10px;
  }

  .hero-img {
    min-height: 190px;
  }

  .wrap {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .side {
    position: static;
    padding: 14px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  }

  .side-t {
    font-size: 16px;
  }

  .side-nav {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }

  .side-link {
    padding: 7px 9px;
    font-size: 15.5px;
    border-bottom-style: dotted;
  }

  .art-t {
    margin-bottom: 14px;
  }

  .content section > article {
    scroll-margin-top: 172px;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .content h2 {
    max-width: none;
    padding-right: 30px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .foot-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .foot-cta .btn {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .brandname {
    font-size: 17.5px;
  }

  .search {
    flex-basis: 150px;
  }

  .search input {
    padding-left: 8px;
  }

  .search button {
    padding: 0 11px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
