:root {
  --gp-bg: #f7f5f0;
  --gp-panel: #ffffff;
  --gp-panel-2: #eeebe3;
  --gp-border: #111111;
  --gp-border-soft: #d8d4cc;
  --gp-text: #111111;
  --gp-text-2: #333330;
  --gp-muted: #6b6862;
  --gp-fog: #1f4fa8;
  --gp-clay: #d93a2b;
  --gp-pewter: #111111;
  --gp-accent: #d93a2b;
  --gp-accent-2: #1f4fa8;
  --gp-max: 80rem;
  --gp-read: 46rem;
  --gp-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --gp-serif: "Songti SC", STSong, "Source Han Serif SC", Georgia, serif;
  --gp-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; min-width: 0; }

html {
  scroll-behavior: smooth;
  line-break: strict;
  word-break: normal;
  text-wrap: pretty;
}

body {
  margin: 0;
  background: var(--gp-bg);
  color: var(--gp-text);
  font-family: var(--gp-sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: radial-gradient(rgba(17, 17, 17, .5) .45px, transparent .55px);
  background-size: 4px 4px;
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; max-width: 100%; }

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

::selection { background: var(--gp-accent); color: var(--gp-bg); }

.gp-skip {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: var(--gp-text);
  color: var(--gp-bg);
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.gp-skip:focus { transform: translateY(0); }
.gp-nowrap { display: inline-block; white-space: nowrap; }
.gp-container { width: min(100% - 2rem, var(--gp-max)); margin-inline: auto; }
.gp-read { width: min(100% - 2rem, var(--gp-read)); margin-inline: auto; }

.gp-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--gp-border);
  background: rgba(2, 6, 23, .88);
  backdrop-filter: blur(16px) saturate(125%);
}

.gp-nav-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gp-mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.gp-mark span { display: block; width: .72rem; height: .72rem; transition: transform .25s ease; }
.gp-mark .dot { border-radius: 50%; background: var(--gp-pewter); }
.gp-mark .square { background: var(--gp-clay); }
.gp-mark .diamond { background: var(--gp-fog); transform: rotate(45deg); }
.gp-mark:hover .dot { transform: scale(1.28); }
.gp-mark:hover .square { transform: rotate(45deg); }
.gp-mark:hover .diamond { transform: rotate(90deg); }

.gp-nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.gp-nav-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding-inline: .35rem;
  color: var(--gp-text-2);
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s ease;
}
.gp-nav-links a:hover, .gp-nav-links a[aria-current="page"] { color: var(--gp-text); }

.gp-menu-button {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--gp-border);
  background: transparent;
  cursor: pointer;
}

.gp-hero { min-height: calc(100svh - 4.5rem); padding: clamp(2rem, 4vw, 4rem) 0 clamp(4rem, 8vw, 8rem); }

.gp-word-stage {
  position: relative;
  border: 1px solid var(--gp-border);
  background: var(--gp-panel);
  padding: clamp(3.25rem, 9vw, 8rem) clamp(1rem, 3.5vw, 3rem) clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}

.gp-word-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(217, 58, 43, .04), transparent 45%);
}

.gp-eyebrow {
  margin: 0 0 1.25rem;
  color: var(--gp-muted);
  font-family: var(--gp-mono);
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.gp-word {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: .2rem;
  margin: 0;
  font-size: clamp(3rem, 13.3vw, 11rem);
  font-weight: 850;
  line-height: .82;
  letter-spacing: -.055em;
}

.gp-letter {
  position: relative;
  display: inline-block;
  color: var(--gp-text);
  cursor: default;
  transition: color .25s ease, transform .25s ease;
}
.gp-letter::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 0;
  bottom: -.18em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.gp-letter:nth-child(3n + 1):hover { color: var(--gp-fog); transform: translateY(-.04em); }
.gp-letter:nth-child(3n + 2):hover { color: var(--gp-clay); transform: translateY(.04em); }
.gp-letter:nth-child(3n):hover { color: var(--gp-accent); transform: scale(.94); }
.gp-letter:hover::after { transform: scaleX(1); }

.gp-hero-lower {
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  margin-top: clamp(3rem, 8vw, 7rem);
}

.gp-hero-copy { margin: 0; color: var(--gp-text-2); font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 300; line-height: 1.9; }
.gp-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  color: var(--gp-muted);
  font-family: var(--gp-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-decoration: none;
  transition: color .2s ease;
}
.gp-scroll-link:hover { color: var(--gp-accent); }

.gp-dictionary { display: grid; gap: 2.75rem; }
.gp-dictionary-item dt {
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--gp-border);
  color: var(--gp-text-2);
  font-family: var(--gp-mono);
  font-size: .76rem;
  letter-spacing: .08em;
}
.gp-dictionary-item dt span { color: var(--gp-muted); margin-right: .5rem; }
.gp-dictionary-item dd {
  margin: .8rem 0 0 1rem;
  color: var(--gp-text-2);
  font-family: var(--gp-serif);
  font-size: 1rem;
  font-style: italic;
}

.gp-section { padding: clamp(5rem, 10vw, 9rem) 0; }
.gp-section + .gp-section { border-top: 1px solid var(--gp-border-soft); }
.gp-section-label { margin: 0 0 1rem; color: var(--gp-accent); font-family: var(--gp-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.gp-section h2 { margin: 0; font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 350; line-height: 1.2; letter-spacing: -.035em; }
.gp-section-lede { margin: 2rem 0 0; color: var(--gp-text-2); font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 300; line-height: 1.9; }
.gp-section-copy { margin: 1.25rem 0 0; color: var(--gp-muted); font-size: 1rem; }

.gp-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 4rem;
  border: 1px solid var(--gp-border);
  background: var(--gp-border);
}

.gp-card {
  position: relative;
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--gp-panel);
  overflow: hidden;
  text-decoration: none;
  transition: background .35s ease;
}
.gp-card:hover { background: var(--gp-panel-2); }
.gp-card-meta { color: var(--gp-muted); font-family: var(--gp-mono); font-size: .7rem; letter-spacing: .12em; }
.gp-card-meta strong { margin-right: .5rem; color: var(--gp-text-2); font-size: .95rem; font-weight: 400; }
.gp-card h3 { margin: .55rem 0 0; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 350; line-height: 1.15; }
.gp-card h3 span { display: block; margin-top: .35rem; color: var(--gp-muted); font-family: var(--gp-mono); font-size: .7rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.gp-card-visual { flex: 1; min-height: 15rem; display: grid; place-items: center; margin: 1.5rem 0; }
.gp-card-visual svg { width: min(100%, 19rem); overflow: visible; }
.gp-card-copy { margin: 0; color: var(--gp-muted); font-size: .95rem; line-height: 1.7; transition: color .25s ease; }
.gp-card:hover .gp-card-copy { color: var(--gp-text-2); }
.gp-card-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1rem; color: var(--gp-accent); font-size: .86rem; }
.gp-card-link svg { width: 1rem; transition: transform .2s ease; }
.gp-card:hover .gp-card-link svg { transform: translateX(.35rem); }

.gp-principle-svg .neutral { fill: var(--gp-fog); }
.gp-principle-svg .accent { fill: var(--gp-accent); }
.gp-principle-svg .clay { fill: var(--gp-clay); }
.gp-principle-svg .pewter { fill: var(--gp-pewter); }
.gp-principle-svg .stroke { fill: none; stroke: var(--gp-fog); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.gp-principle-svg .accent-stroke { fill: none; stroke: var(--gp-accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.gp-card:hover .gp-principle-svg .pulse { animation: gp-pulse 2.2s ease-in-out infinite; }
.gp-card:hover .gp-principle-svg .drift { animation: gp-drift 2.4s ease-in-out infinite alternate; }
.gp-card:hover .gp-principle-svg .spin { animation: gp-spin 5s linear infinite; transform-origin: center; transform-box: fill-box; }

@keyframes gp-pulse { 50% { opacity: .35; transform: scale(.84); transform-origin: center; transform-box: fill-box; } }
@keyframes gp-drift { to { transform: translateX(1rem); } }
@keyframes gp-spin { to { transform: rotate(360deg); } }

/* 每条法则使用自身的知觉机制作为动效语法 */
.gp-loop { width: 100%; overflow: visible; }
.gp-loop * { transform-box: fill-box; transform-origin: center; }
.gp-loop-neutral { fill: var(--gp-fog); }

.gp-sim-morph { fill: var(--gp-fog); animation: gp-similarity 5.8s ease-in-out infinite; animation-delay: calc(var(--i) * .16s); }
@keyframes gp-similarity {
  0%, 18%, 84%, 100% { fill: var(--gp-fog); rx: 9px; transform: scale(1); }
  36%, 66% { fill: var(--gp-pewter); rx: 24px; transform: scale(.92); }
}

.gp-con-main, .gp-con-branch { fill: var(--gp-fog); animation: gp-continuity-main 6s cubic-bezier(.4,0,.2,1) infinite; animation-delay: calc(var(--i) * .09s); }
.gp-con-branch { animation-name: gp-continuity-branch; }
@keyframes gp-continuity-main {
  0%, 16%, 78%, 100% { fill: var(--gp-fog); transform: scale(1); }
  38%, 58% { fill: var(--gp-clay); transform: scale(1.32); }
}
@keyframes gp-continuity-branch {
  0%, 16%, 78%, 100% { fill: var(--gp-fog); transform: scale(1); }
  38%, 58% { fill: var(--gp-accent-2); transform: scale(1.32); }
}

.gp-prox-left, .gp-prox-right { animation: gp-proximity-left 7.5s cubic-bezier(.4,0,.2,1) infinite; }
.gp-prox-right { animation-name: gp-proximity-right; }
.gp-prox-left circle, .gp-prox-right circle { fill: var(--gp-fog); transition: fill .5s ease; }
@keyframes gp-proximity-left {
  0%, 15%, 85%, 100% { transform: translateX(0); }
  34%, 66% { transform: translateX(-25px); }
}
@keyframes gp-proximity-right {
  0%, 15%, 85%, 100% { transform: translateX(0); }
  34%, 66% { transform: translateX(25px); }
}
.gp-loop-proximity .gp-prox-left circle { animation: gp-prox-color-left 7.5s ease-in-out infinite; }
.gp-loop-proximity .gp-prox-right circle { animation: gp-prox-color-right 7.5s ease-in-out infinite; }
@keyframes gp-prox-color-left { 0%,15%,85%,100%{fill:var(--gp-fog)} 34%,66%{fill:var(--gp-pewter)} }
@keyframes gp-prox-color-right { 0%,15%,85%,100%{fill:var(--gp-fog)} 34%,66%{fill:var(--gp-clay)} }

.gp-fig-a { fill: var(--gp-clay); animation: gp-figure-a 7s ease-in-out infinite; }
.gp-fig-b { fill: var(--gp-fog); animation: gp-figure-b 7s ease-in-out infinite; }
.gp-fig-focus { fill: var(--gp-accent); opacity: 0; animation: gp-figure-focus 7s ease-in-out infinite; }
@keyframes gp-figure-a { 0%,15%,85%,100%{transform:translate(0,0)} 35%,65%{transform:translate(45px,45px)} }
@keyframes gp-figure-b { 0%,15%,85%,100%{transform:translate(0,0)} 35%,65%{transform:translate(-45px,-45px)} }
@keyframes gp-figure-focus { 0%,22%,78%,100%{opacity:0;transform:scale(.5)} 40%,62%{opacity:.9;transform:scale(1)} }

.gp-fate-up, .gp-fate-down { fill: var(--gp-fog); transform: translateX(var(--x)); animation: gp-fate-up 4.4s ease-in-out infinite; animation-delay: calc(var(--i) * .13s); }
.gp-fate-down { animation-name: gp-fate-down; }
@keyframes gp-fate-up {
  0%,15%,85%,100%{transform:translateX(var(--x)) translateY(0);fill:var(--gp-fog)}
  42%,58%{transform:translateX(var(--x)) translateY(-28px);fill:var(--gp-accent)}
}
@keyframes gp-fate-down {
  0%,15%,85%,100%{transform:translateX(var(--x)) translateY(0);fill:var(--gp-fog)}
  42%,58%{transform:translateX(var(--x)) translateY(28px);fill:var(--gp-pewter)}
}

.gp-close-dot { fill: var(--gp-clay); animation: gp-closure-dot 7s ease-in-out infinite; }
.gp-close-dot-a { --closed: translate(0,-96px); }
.gp-close-dot-b { --closed: translate(84px,72px); }
.gp-close-dot-c { --closed: translate(-84px,72px); }
.gp-close-triangle { fill: none; stroke: var(--gp-fog); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 170 42; opacity: 0; animation: gp-closure-line 7s ease-in-out infinite; }
@keyframes gp-closure-dot { 0%,12%,88%,100%{transform:translate(0,0);opacity:1} 28%,68%{transform:var(--closed);opacity:.18} }
@keyframes gp-closure-line { 0%,20%,80%,100%{opacity:0;stroke-dashoffset:180} 34%,68%{opacity:1;stroke-dashoffset:0} }

.gp-sym-left, .gp-sym-right { fill: var(--gp-clay); animation: gp-sym-left 7.5s ease-in-out infinite; }
.gp-sym-right { fill: var(--gp-pewter); animation-name: gp-sym-right; }
.gp-sym-axis { stroke: var(--gp-border); stroke-width: 1; stroke-dasharray: 5 8; animation: gp-sym-axis 7.5s ease-in-out infinite; }
@keyframes gp-sym-left { 0%,15%,85%,100%{transform:translateX(-52px)} 38%,65%{transform:translateX(0)} }
@keyframes gp-sym-right { 0%,15%,85%,100%{transform:translateX(52px)} 38%,65%{transform:translateX(0)} }
@keyframes gp-sym-axis { 0%,15%,85%,100%{opacity:.7} 38%,65%{opacity:0} }

.gp-preg-shape { fill: var(--gp-fog); opacity: .42; mix-blend-mode: screen; transform: var(--scatter) scale(.82); animation: gp-pragnanz 7s cubic-bezier(.4,0,.2,1) infinite; animation-delay: calc(var(--i) * .06s); }
@keyframes gp-pragnanz {
  0%,12%,84%,100%{transform:var(--scatter) scale(.82);fill:var(--gp-fog);opacity:.34;rx:20px}
  32%,66%{transform:translate(0,0) rotate(0) scale(1);fill:var(--gp-clay);opacity:.78;rx:30px}
}

.gp-region-box { fill: var(--gp-pewter); opacity: 0; stroke: var(--gp-pewter); stroke-width: 2; animation: gp-region-box 6.8s ease-in-out infinite; }
.gp-region-b { fill: var(--gp-clay); stroke: var(--gp-clay); }
.gp-region-item { animation: gp-region-item 6.8s ease-in-out infinite; }
.gp-region-dot-a, .gp-region-dot-b { fill: var(--gp-fog); }
.gp-region-square-a, .gp-region-square-b { fill: var(--gp-clay); }
.gp-region-dot-a { --region-move: translate(18px,0); }
.gp-region-square-a { --region-move: translate(-12px,0); }
.gp-region-square-b { --region-move: translate(14px,0); }
.gp-region-dot-b { --region-move: translate(-18px,0); }
@keyframes gp-region-box { 0%,14%,86%,100%{opacity:0} 30%,70%{opacity:.18} }
@keyframes gp-region-item { 0%,14%,86%,100%{transform:translate(0,0)} 30%,70%{transform:var(--region-move)} }

.gp-demo-frame.is-paused .gp-loop * { animation-play-state: paused !important; }
.gp-demo-frame.is-restarting .gp-loop * { animation: none !important; }
.gp-card .gp-loop * { animation-play-state: paused; }
.gp-card:hover .gp-loop *, .gp-card:focus-visible .gp-loop *, .gp-card.mobile-active .gp-loop * { animation-play-state: running; }

.gp-method-grid { display: grid; gap: 1px; margin-top: 3.5rem; border: 1px solid var(--gp-border); background: var(--gp-border); }
.gp-method { padding: 2rem; background: var(--gp-bg); }
.gp-method .no { color: var(--gp-accent); font-family: var(--gp-mono); font-size: .75rem; }
.gp-method h3 { margin: 1rem 0 .5rem; font-size: 1.2rem; font-weight: 500; }
.gp-method p { margin: 0; color: var(--gp-muted); }

.gp-faq { margin-top: 3rem; border-top: 1px solid var(--gp-border); }
.gp-faq details { border-bottom: 1px solid var(--gp-border); }
.gp-faq summary { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; font-size: 1.05rem; }
.gp-faq summary::-webkit-details-marker { display: none; }
.gp-faq summary::after { content: "+"; color: var(--gp-accent); font-family: var(--gp-mono); font-size: 1.4rem; }
.gp-faq details[open] summary::after { content: "−"; }
.gp-faq details p { max-width: 58rem; margin: 0 0 1.5rem; color: var(--gp-muted); }

.gp-footer { border-top: 1px solid var(--gp-border); padding: 3rem 0; color: var(--gp-muted); }
.gp-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.gp-footer a { text-decoration-color: var(--gp-border); text-underline-offset: .3em; }

/* Principle page */
.gp-principle-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.gp-principle-hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.gp-principle-copy { order: 1; }
.gp-principle-nav { order: 3; display: grid; border-top: 1px solid var(--gp-border); }
.gp-principle-nav a {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--gp-border);
  border-left: 2px solid transparent;
  color: var(--gp-text-2);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.gp-principle-nav a:hover { color: var(--gp-text); border-left-color: var(--gp-accent); background: rgba(255, 255, 255, .75); }
.gp-principle-nav strong { display: block; font-size: 1.05rem; font-weight: 450; }
.gp-principle-nav small { display: block; margin-top: .2rem; color: var(--gp-muted); font-size: .78rem; }
.gp-principle-nav a > span:last-child { color: var(--gp-muted); transform: translateY(-.35rem); opacity: 0; transition: transform .2s ease, opacity .2s ease, color .2s ease; }
.gp-principle-nav a:hover > span:last-child { color: var(--gp-accent); transform: translateY(0); opacity: 1; }

.gp-demo-frame {
  order: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gp-border);
  border-radius: 1.5rem;
  background: var(--gp-panel);
  overflow: hidden;
  box-shadow: 0 1.2rem 3rem rgba(57, 45, 25, .08);
}
.gp-demo-topline {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--gp-border);
  color: var(--gp-muted);
  font-family: var(--gp-mono);
  font-size: .68rem;
  letter-spacing: .12em;
}
.gp-demo-topline span:last-child { color: var(--gp-accent); }
.gp-demo-visual { flex: 1; min-height: 24rem; display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); }
.gp-demo-visual .gp-loop { width: min(100%, 34rem); }
.gp-demo-caption {
  display: grid;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-top: 1px solid var(--gp-border);
  background: rgba(255, 255, 255, .7);
}
.gp-demo-question { margin: 0; color: var(--gp-text); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }
.gp-demo-answer { margin: .45rem 0 0; color: var(--gp-muted); font-size: .85rem; line-height: 1.7; }
.gp-demo-actions { display: flex; align-items: center; gap: .5rem; }
.gp-demo-button {
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--gp-border);
  border-radius: .55rem;
  background: transparent;
  color: var(--gp-muted);
  font-family: var(--gp-mono);
  font-size: .72rem;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.gp-demo-button:hover { color: var(--gp-text); border-color: var(--gp-accent); background: rgba(217, 58, 43, .06); }

.gp-detail-head { padding: clamp(3rem, 7vw, 5.5rem) 0 1.75rem; }
.gp-detail-kicker { margin: 0 0 1rem; color: var(--gp-muted); font-family: var(--gp-mono); font-size: .75rem; letter-spacing: .12em; }
.gp-detail-kicker strong { color: var(--gp-text-2); font-size: 1.1rem; font-weight: 400; }
.gp-detail-title { margin: 0; font-size: clamp(3.2rem, 9vw, 6.75rem); font-weight: 650; letter-spacing: -.06em; line-height: .95; }
.gp-detail-en { display: block; margin-top: .7rem; color: var(--gp-muted); font-family: var(--gp-mono); font-size: clamp(.75rem, 1.2vw, 1rem); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.gp-detail-thesis { max-width: 42rem; margin: 2rem 0 0; color: var(--gp-text-2); font-size: clamp(1.05rem, 2vw, 1.35rem); }

.gp-lab-shell { display: grid; gap: 1px; border: 1px solid var(--gp-border); background: var(--gp-border); }
.gp-lab-stage { position: relative; min-height: 25rem; display: grid; place-items: center; padding: 2rem; background: var(--gp-panel); overflow: hidden; }
.gp-lab-stage::before { content: "观察区"; position: absolute; top: 1rem; left: 1rem; color: var(--gp-muted); font-family: var(--gp-mono); font-size: .68rem; letter-spacing: .16em; }
.gp-lab-stage svg { width: min(100%, 34rem); max-height: 31rem; overflow: visible; }
.gp-lab-panel { padding: clamp(1.5rem, 4vw, 3rem); background: var(--gp-bg); }
.gp-lab-panel h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.35; }
.gp-lab-panel .answer { margin: 1.25rem 0 0; color: var(--gp-muted); }
.gp-control { margin-top: 2rem; }
.gp-control-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--gp-text-2); font-family: var(--gp-mono); font-size: .75rem; letter-spacing: .06em; }
.gp-control output { color: var(--gp-accent); }
.gp-range { width: 100%; min-height: 2.75rem; margin-top: .65rem; accent-color: var(--gp-accent); cursor: ew-resize; }
.gp-lab-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.gp-button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border: 1px solid var(--gp-border);
  background: transparent;
  color: var(--gp-text-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.gp-button:hover { border-color: var(--gp-accent); color: var(--gp-text); }
.gp-button.primary { border-color: var(--gp-accent); background: var(--gp-accent); color: var(--gp-bg); font-weight: 650; }
.gp-button.primary:hover { background: #b52e21; }

.gp-reading { padding: clamp(5rem, 10vw, 9rem) 0; }
.gp-reading-grid { display: grid; gap: clamp(3rem, 8vw, 7rem); }
.gp-side-index { align-self: start; }
.gp-side-index p { margin: 0 0 1rem; color: var(--gp-muted); font-family: var(--gp-mono); font-size: .72rem; letter-spacing: .14em; }
.gp-side-index a { display: block; padding: .7rem 0; border-left: 1px solid var(--gp-border); padding-left: 1rem; color: var(--gp-muted); font-size: .9rem; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.gp-side-index a:hover { color: var(--gp-text); border-color: var(--gp-accent); }
.gp-article section + section { margin-top: clamp(4rem, 9vw, 7rem); }
.gp-article h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; letter-spacing: -.025em; }
.gp-article p { margin: 1.35rem 0 0; color: var(--gp-text-2); }
.gp-article .muted { color: var(--gp-muted); }
.gp-takeaways { display: grid; gap: 1px; margin-top: 2rem; border: 1px solid var(--gp-border); background: var(--gp-border); }
.gp-takeaway { padding: 1.5rem; background: var(--gp-panel); }
.gp-takeaway span { color: var(--gp-accent); font-family: var(--gp-mono); font-size: .72rem; }
.gp-takeaway h3 { margin: .65rem 0 0; font-size: 1.05rem; font-weight: 500; }
.gp-app-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--gp-border); }
.gp-app-list li { display: grid; gap: .5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--gp-border); }
.gp-app-list strong { font-weight: 500; }
.gp-app-list span { color: var(--gp-muted); }
.gp-warning { margin-top: 2rem; padding: 1.5rem; border-left: 3px solid var(--gp-clay); background: rgba(217, 58, 43, .05); }
.gp-warning strong { display: block; color: var(--gp-clay); }
.gp-warning p { margin-top: .5rem; color: var(--gp-text-2); }

.gp-next-grid { display: grid; gap: 1px; border: 1px solid var(--gp-border); background: var(--gp-border); }
.gp-next { min-height: 12rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; background: var(--gp-panel); text-decoration: none; transition: background .2s ease; }
.gp-next:hover { background: var(--gp-panel-2); }
.gp-next small { color: var(--gp-muted); font-family: var(--gp-mono); }
.gp-next strong { font-size: 1.5rem; font-weight: 400; }

@media (min-width: 48rem) {
  .gp-container, .gp-read { width: min(100% - 3rem, var(--gp-max)); }
  .gp-read { width: min(100% - 3rem, var(--gp-read)); }
  .gp-hero-lower { grid-template-columns: 1fr 1fr; }
  .gp-principles { grid-template-columns: repeat(2, 1fr); }
  .gp-method-grid, .gp-takeaways { grid-template-columns: repeat(3, 1fr); }
  .gp-lab-shell { grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .75fr); }
  .gp-lab-stage { min-height: 34rem; }
  .gp-next-grid { grid-template-columns: repeat(2, 1fr); }
  .gp-app-list li { grid-template-columns: 12rem 1fr; }
}

@media (min-width: 64rem) {
  .gp-principles { grid-template-columns: repeat(3, 1fr); }
  .gp-reading-grid { grid-template-columns: 13rem minmax(0, 1fr); }
  .gp-side-index { position: sticky; top: 7rem; }
  .gp-principle-hero-grid { grid-template-columns: minmax(22rem, .78fr) minmax(0, 1.22fr); grid-template-rows: auto 1fr; align-items: start; }
  .gp-principle-copy { grid-column: 1; grid-row: 1; }
  .gp-principle-nav { grid-column: 1; grid-row: 2; order: 2; }
  .gp-demo-frame { grid-column: 2; grid-row: 1 / span 2; order: 3; min-height: min(45rem, calc(100svh - 10rem)); }
  .gp-demo-caption { grid-template-columns: 1fr auto; align-items: center; }
}

@media (max-width: 47.999rem) {
  .gp-menu-button { display: inline-grid; place-items: center; }
  .gp-nav-links {
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1rem 1rem;
    border-bottom: 1px solid var(--gp-border);
    background: var(--gp-bg);
  }
  .gp-nav-links.open { display: flex; }
  .gp-nav-links a { min-height: 3rem; border-bottom: 1px solid var(--gp-border-soft); }
  .gp-word-stage { padding-inline: .75rem; }
  .gp-word { font-size: clamp(2.7rem, 13.2vw, 5.4rem); }
  .gp-card { min-height: 28rem; }
  .gp-card-visual { min-height: 13rem; }
  .gp-detail-title { letter-spacing: -.045em; }
  .gp-lab-stage { min-height: 22rem; padding: 2.5rem 1rem 1rem; }
  .gp-principle-hero { padding-top: 2.5rem; }
  .gp-demo-visual { min-height: 20rem; padding: 1.5rem; }
  .gp-demo-caption { padding: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 接近律：一次只改变距离，支持触屏与键盘。 */
[hidden] { display: none !important; }
.gp-manual-control { padding: 1.2rem 1.5rem; border-top: 1px solid var(--gp-border); }
.gp-manual-control label { display: flex; justify-content: space-between; font-weight: 600; }
.gp-manual-control output { font-variant-numeric: tabular-nums; color: var(--gp-accent-2); }
.gp-manual-control input { display: block; width: 100%; min-height: 2.75rem; accent-color: var(--gp-accent-2); cursor: ew-resize; }
.gp-manual-control p { font-size: .9rem; color: var(--gp-text-2); margin: .35rem 0; }
.gp-manual-control a { font-size: .9rem; min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--gp-accent-2); }
.gp-demo-visual > svg:not(.gp-loop) { width: 100%; max-width: 34rem; }
.lab-return { max-width:80rem; margin:auto; padding:.8rem 1.5rem; font-size:.9rem; }
.lab-return a { color:var(--gp-accent-2); }

/* 2026-09-29：并入全站外观（纸色底、全站页头），与其他实验一致 */
body { background: var(--gp-bg); }
.site-header { font-family: var(--sans); }
.gp-principle-hero, .gp-hero { border-bottom: var(--line-strong); }
.gp-detail-kicker #principle-week { color: var(--red); font-weight: 700; }
