:root {
  color-scheme: dark;
  --bg: #0c1424;
  --surface: #142238;
  --text: #e8edf4;
  --muted: #aab9cf;
  --accent: #79e5c5;
  --purple: #b9acf5;
  --line: #2c3b51;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.8; }
a { color: inherit; text-underline-offset: 5px; }
a, button, summary { -webkit-tap-highlight-color: #79e5c533; touch-action: manipulation; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button { font: inherit; cursor: pointer; }
button, a { transition: opacity 160ms ease; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
p { overflow-wrap: anywhere; }
::selection { background: #79e5c53b; color: #fff; }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 10px 20px; background: var(--accent); color: var(--bg); z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: #0c1424f7; border-bottom: 1px solid #273449; }
.header-inner { width: min(1280px, calc(100% - 64px)); margin: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 2px; line-height: 1.3; }
.brand-en { display: block; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; font-weight: 400; letter-spacing: 2px; margin-top: 4px; }
nav { display: flex; gap: 36px; align-items: center; }
nav a { display: flex; min-height: 44px; align-items: center; color: #c2cee0; font-size: 14px; text-decoration: none; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="location"] { color: var(--accent); border-color: var(--accent); }
.hero { display: grid; grid-template-columns: .93fr 1.07fr; gap: 64px; align-items: center; padding-block: 84px 78px; }
.intro-label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--accent); letter-spacing: 2px; margin-bottom: 25px; }
.pixel-spark { display: block; width: 7px; height: 7px; background: var(--accent); box-shadow: 5px -5px 0 -1px #b9acf5; }
h1 { font-size: clamp(42px, 4.65vw, 65px); font-weight: 800; letter-spacing: 2px; line-height: 1.32; }
.hero-description { margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 31px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 48px; padding: 10px 21px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid var(--accent); border-radius: 3px; }
.primary { background: var(--accent); color: #0c2523; box-shadow: 4px 4px 0 #2c6357; transition: transform 160ms ease; }
.primary:hover { color: #0c2523; background: #a1f4d8; border-color: #a1f4d8; }
.primary:active { transform: translate(2px, 2px); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; font-size: 14px; text-decoration: none; color: #c8d3e3; }
.hero-palette { display: flex; gap: 4px; align-items: center; margin-top: 48px; }
.swatch { width: 13px; height: 13px; display: inline-block; border: 1px solid #ffffff25; }
.night { background: #1c3049; }.blue { background: #4e6485; }.lilac { background: var(--purple); }.mint { background: var(--accent); }.light { background: #e8edf4; }
.palette-note { margin-left: 11px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.hero-art { min-width: 0; position: relative; }
.hero-art::before { content: ""; position: absolute; inset: -22px -22px 0; background-image: radial-gradient(#41556e 1px, transparent 1px); background-size: 14px 14px; opacity: .3; z-index: -1; }
.art-frame { border: 1px solid #40516c; background: #162239; border-radius: 5px; box-shadow: 10px 10px 0 #101c2e, 11px 11px 0 #29374d; overflow: hidden; }
.frame-top, .frame-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; color: #b8c6d9; font-size: 11px; letter-spacing: 1px; min-height: 42px; }
.frame-top { border-bottom: 1px solid #40516c; }
.frame-bottom { min-height: 51px; border-top: 1px solid #40516c; padding-block: 3px; }
.frame-dots { display: flex; gap: 6px; }.frame-dots i { width: 5px; height: 5px; background: #64758d; }.frame-dots i:last-child { background: #79e5c5; }
.landscape-stage { position: relative; }
.landscape { width: 100%; image-rendering: pixelated; }
.pixel-grid { position: absolute; inset: 0; background-image: linear-gradient(#e8edf432 1px, transparent 1px), linear-gradient(90deg,#e8edf432 1px,transparent 1px); background-size: calc(100% / 90) calc(100% / 65); pointer-events: none; }
.grid-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #69839e; color: #d4deec; background: transparent; padding: 4px 10px; min-height: 44px; font-size: 11px; border-radius: 2px; }
.grid-toggle:hover, .grid-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: #79e5c512; }
figcaption { font-size: 11px; color: var(--muted); text-align: right; margin-top: 23px; }
.section { padding-block: 68px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-kicker { color: var(--accent); font-size: 12px; letter-spacing: 2px; margin-bottom: 12px; }
h2 { font-size: 31px; font-weight: 700; letter-spacing: 1px; }
.section-aside { color: var(--muted); font-size: 13px; line-height: 1.9; }
.definition { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; color: #c6d2e3; font-size: 15px; line-height: 1.95; }
.definition p { max-width: 40em; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 38px; gap: 38px; }
.principle { min-width: 0; }
.principle-picture { background: #122137; display: flex; justify-content: center; align-items: center; gap: 30px; height: 134px; position: relative; border-bottom: 1px solid #30455a; }
.principle-picture::before { position: absolute; content: ""; inset: 0; background-image: linear-gradient(#aab9cf06 1px,transparent 1px),linear-gradient(90deg,#aab9cf06 1px,transparent 1px); background-size: 14px 14px; }
.principle-picture span { color: #c7d4e6; font-size: 13px; letter-spacing: 4px; }
.color-picture { background: #142535; }.detail-picture { background: #1a2339; }
.principle h3 { font-size: 18px; margin: 22px 0 10px; }
.principle p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.learning-note { color: var(--muted); font-size: 12px; margin-top: 32px; display: flex; align-items: baseline; gap: 10px; }
.note-square { width: 5px; height: 5px; background: var(--purple); flex-shrink: 0; }
.gallery-intro { max-width: 740px; color: var(--muted); font-size: 14px; line-height: 1.95; margin-bottom: 32px; }
.artworks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.artwork { min-width: 0; }
.artwork-image { display: block; position: relative; background: var(--surface); border: 1px solid #40516c; }
.artwork-image img { width: 100%; image-rendering: pixelated; }
.image-hint { position: absolute; top: 10px; right: 10px; color: #e8edf4; background: #0c1424ed; border: 1px solid #61748a; font-size: 11px; padding: 4px 8px; opacity: 0; transition: opacity 160ms ease; }
.artwork-image:hover .image-hint, .artwork-image:focus-visible .image-hint { opacity: 1; }
.artwork-meta { margin-top: 19px; display: flex; gap: 10px; justify-content: space-between; color: var(--purple); font-size: 11px; }
.artwork-meta span:last-child { color: var(--muted); font-family: Consolas, monospace; }
.artwork h3 { font-family: Consolas, "Courier New", monospace; font-size: 22px; font-weight: 600; margin-top: 10px; letter-spacing: -.5px; }
.artist { color: #bdcadc; font-size: 12px; margin: 7px 0 15px; }.artist span { padding: 0 5px; }
.artwork-description { font-size: 13px; line-height: 1.9; color: var(--muted); }
.artwork-links { display: flex; gap: 24px; margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; }
.artwork-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; color: var(--accent); text-decoration-color: #52726c; }
.artwork-links a:last-child { color: #bfcbdb; text-decoration-color: #536074; }
.artwork-links a:hover { color: #f2fff9; }
.gallery-footnote { color: var(--muted); font-size: 11px; margin-top: 24px; }
.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.about-heading { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about-heading h2 { font-size: 26px; }
.about-content > p { color: var(--muted); font-size: 14px; line-height: 1.95; margin-bottom: 16px; }
.source-details { margin-top: 20px; border-block: 1px solid var(--line); }
summary { padding-block: 14px; cursor: pointer; font-size: 13px; color: #d0dbeb; min-height: 48px; }
summary:hover { color: var(--accent); }
.source-body { color: var(--muted); font-size: 12px; padding-bottom: 22px; line-height: 1.95; }
.source-body p { margin-bottom: 12px; }.source-body a { color: var(--accent); }
.source-body > a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-block: 24px; font-size: 11px; color: var(--muted); }
.site-footer p > span:first-child { font-family: Consolas, monospace; color: #c9d8e7; font-size: 14px; }
.footer-divider { margin-inline: 14px; color: #4b617b; }
.footer-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
@media (hover: none) { .image-hint { opacity: 1; } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 36px; padding-block: 64px; }
  h1 { font-size: 48px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 18px; }
  .button { padding-inline: 15px; gap: 15px; }
  .hero-palette { flex-wrap: wrap; gap: 4px; }
  .palette-note { font-size: 10px; }
  .artworks { gap: 22px; }.artwork-meta { flex-wrap: wrap; }
  .principles { gap: 26px; }.principle-picture { gap: 15px; }
}
@media (max-width: 760px) {
  :root { scroll-padding-top: 130px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 40px); min-height: 106px; flex-wrap: wrap; gap: 2px; padding-top: 12px; }
  .brand img { width: 30px; height: 30px; }.brand-name { font-size: 17px; }.brand-en { font-size: 10px; }
  nav { width: 100%; gap: 0; justify-content: space-between; }
  nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 48px; }
  .intro-label { font-size: 11px; letter-spacing: 1px; margin-bottom: 19px; }
  h1 { font-size: clamp(39px, 8.5vw, 56px); }
  .hero-description { font-size: 14px; margin-top: 18px; }.desktop-break { display: none; }
  .hero-actions { margin-top: 24px; gap: 24px; }
  .hero-palette { margin-top: 30px; }.palette-note { font-size: 10px; }
  .hero-art { margin-right: 9px; }.hero-art::before { inset-inline: -10px; }
  figcaption { text-align: left; font-size: 10px; margin-top: 20px; }
  .section { padding-block: 44px; scroll-margin-top: 130px; }
  .section-heading { display: block; margin-bottom: 24px; }.section-aside { margin-top: 17px; font-size: 12px; }.section-aside br { display: none; }
  h2 { font-size: 26px; }.section-kicker { font-size: 11px; margin-bottom: 9px; }
  .definition { grid-template-columns: 1fr; gap: 15px; font-size: 14px; }
  .principles { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .principle { display: grid; grid-template-columns: 94px 1fr; column-gap: 20px; }
  .principle-picture { grid-row: span 2; height: 120px; flex-direction: column; gap: 0; }.principle-picture svg { width: 70px; height: 70px; }.principle-picture span { font-size: 10px; }
  .principle h3 { font-size: 16px; margin: 0 0 8px; }.principle p { font-size: 14px; line-height: 1.9; }
  .learning-note { font-size: 11px; margin-top: 24px; }
  .artworks { grid-template-columns: 1fr; gap: 36px; }
  .artwork-meta { flex-wrap: nowrap; margin-top: 16px; }
  .artwork h3 { font-size: 23px; }.artwork-description { font-size: 14px; }.artwork-links { font-size: 13px; }
  .gallery-intro { font-size: 13px; margin-bottom: 26px; }
  .about-section { grid-template-columns: 1fr; gap: 24px; }.about-heading { flex-direction: row; align-items: center; gap: 14px; }.about-heading h2 { font-size: 24px; }.about-heading img { width: 36px; height: 36px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 10px; }
  .footer-divider { margin-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
