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

:root {
  --ink: #192617;
  --ink-2: #223120;
  --ink-3: #2b3d28;
  --neon: #87ff71;
  --yellow: #ffce5c;
  --paper: #f2ffe8;
  --r: 4px;
  --dock-h: 66px;
}

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

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

body {
  margin: 0;
  padding: 0 0 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--neon) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .11;
}

.dock, .hero, .shell, .foot { position: relative; z-index: 1; }

a { color: var(--neon); }
a:focus-visible, summary:focus-visible {
  outline: 3px dashed var(--yellow);
  outline-offset: 3px;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--dock-h);
  padding: 8px clamp(12px, 4vw, 30px);
  background: rgba(25, 38, 23, .95);
  backdrop-filter: blur(9px);
  border-top: 3px solid var(--neon);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--r);
  background: rgba(135, 255, 113, .14);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  font-size: 1rem;
}

.brand .mark {
  width: 11px;
  height: 11px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  flex: 0 0 11px;
}

.pip {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: var(--neon);
  transform: rotate(45deg);
  border-radius: 1px;
}
.pip-y { background: var(--yellow); }

details.menu { position: relative; margin-left: auto; }

details.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  border: 2px solid var(--neon);
  border-radius: var(--r);
  color: var(--neon);
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
}
details.menu > summary::-webkit-details-marker { display: none; }

details.menu > summary::before {
  content: "";
  width: 13px;
  height: 9px;
  background: var(--neon);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

details[open] > summary { background: var(--neon); color: var(--ink); }
details[open] > summary::before { background: var(--ink); clip-path: polygon(0 100%, 100% 100%, 50% 0); }

details.menu > menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(80vw, 310px);
  max-height: 62vh;
  overflow: auto;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--ink-2);
  border: 2px solid var(--yellow);
  border-radius: var(--r);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .55);
  display: grid;
  gap: 3px;
}

details.menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 3px;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
}
details.menu a:hover { background: var(--yellow); color: var(--ink); }

.dock-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: var(--r);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- 首屏 ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(22px, 5vw, 46px);
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(26px, 6vw, 64px) clamp(18px, 5vw, 64px) clamp(64px, 10vw, 116px);
  overflow: hidden;
  border-bottom: 3px solid var(--neon);
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 6.4vw, 4rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.012em;
  color: #ffffff;
  text-wrap: balance;
}

.hero h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 11px;
  margin-top: 20px;
  background: var(--yellow);
  clip-path: polygon(0 44%, 100% 0, 95% 100%, 5% 68%);
}

.collage {
  position: relative;
  height: clamp(250px, 44vw, 430px);
}

.ph {
  position: absolute;
  margin: 0;
  aspect-ratio: 3 / 4;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-3);
}

.ph-a {
  width: 52%;
  left: 1%;
  top: 0;
  transform: rotate(-5deg);
  box-shadow: 9px 9px 0 var(--yellow);
}

.ph-b {
  width: 48%;
  right: 1%;
  bottom: 0;
  transform: rotate(6deg);
  box-shadow: -9px 9px 0 var(--neon);
}

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

.ph-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--neon) 0 9px, transparent 9px 20px), var(--ink-3);
}
.ph-b .ph-fill {
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 9px, var(--ink-2) 9px 22px);
}

.shape { position: absolute; z-index: 3; pointer-events: none; }
.shape.sq {
  width: 38px;
  height: 38px;
  left: -7px;
  top: 40%;
  border: 4px solid var(--yellow);
  transform: rotate(18deg);
}
.shape.tri {
  right: -6px;
  top: 6%;
  width: 0;
  height: 0;
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  border-bottom: 37px solid var(--neon);
  transform: rotate(-12deg);
}
.shape.dots {
  right: 10%;
  bottom: -16px;
  width: 74px;
  height: 26px;
  background-image: radial-gradient(var(--neon) 2px, transparent 2px);
  background-size: 13px 13px;
  opacity: .75;
}

.tape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  background: linear-gradient(90deg, var(--neon), var(--yellow));
  clip-path: polygon(0 100%, 0 42%, 100% 0, 100% 58%);
}

/* ---------- 主体 ---------- */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) clamp(16px, 5vw, 40px) 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
}

section { min-width: 0; }

section > div {
  position: relative;
  margin: 0 0 clamp(22px, 3vw, 30px);
  padding: clamp(19px, 3vw, 30px);
  background: var(--ink-2);
  border: 2px solid rgba(135, 255, 113, .32);
  border-radius: var(--r);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .32);
  scroll-margin-top: 24px;
}

section > div:nth-of-type(even) { border-color: rgba(255, 206, 92, .38); }

section > div::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 20px;
  width: 28px;
  height: 7px;
  background: var(--neon);
  border-radius: 0 0 3px 3px;
}

.intro {
  border-left: 6px solid var(--yellow) !important;
  background: var(--ink-3) !important;
}

.intro h2 {
  margin: 0 0 7px;
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
  color: var(--neon);
}
.intro h2::after { content: none; }

.subtitle {
  margin: 0;
  color: var(--yellow);
  font-size: 1rem;
  line-height: 1.66;
}

section h2 {
  margin: 0 0 13px;
  font-size: clamp(1.28rem, 3.4vw, 1.72rem);
  line-height: 1.32;
  color: #ffffff;
  letter-spacing: -.005em;
}

section h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 6px;
  margin-top: 11px;
  background: var(--yellow);
  clip-path: polygon(0 30%, 100% 0, 94% 100%, 6% 74%);
}

section h3 {
  margin: 24px 0 8px;
  font-size: 1.16rem;
  line-height: 1.4;
  color: var(--neon);
}

section p { margin: 0 0 14px; }
section p:last-child { margin-bottom: 0; }

section ul, section ol { margin: 0 0 16px; padding-left: 1.25em; }
section li { margin: 0 0 8px; }
section li::marker { color: var(--yellow); }

section strong { color: var(--yellow); }
section em { color: var(--neon); font-style: normal; border-bottom: 1px dotted var(--neon); }

section a { color: var(--neon); text-underline-offset: 3px; }
section a:hover { color: var(--ink); background: var(--neon); text-decoration: none; }

section img { max-width: 100%; height: auto; border-radius: var(--r); display: block; }

section blockquote {
  margin: 18px 0;
  padding: 10px 16px;
  border-left: 4px dashed var(--neon);
  color: #dcffd2;
}

section table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
section th, section td {
  border: 1px dashed rgba(135, 255, 113, .4);
  padding: 9px;
  text-align: left;
}

/* ---------- 侧栏 ---------- */
.rail {
  padding: 16px;
  background: rgba(135, 255, 113, .07);
  border: 2px dashed var(--neon);
  border-radius: var(--r);
}

.rail-h {
  margin: 0 0 12px;
  font-size: 1.06rem;
  letter-spacing: .09em;
  color: var(--neon);
  font-weight: 700;
}

.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 7px;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px dotted rgba(242, 255, 232, .26);
}
.rail a:hover { background: var(--neon); color: var(--ink); border-bottom-color: transparent; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: clamp(30px, 6vw, 56px) clamp(16px, 5vw, 40px) calc(var(--dock-h) + 38px);
  border-top: 3px solid var(--yellow);
  background: var(--ink-2);
}

.f-name {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4.4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--neon);
  text-shadow: 5px 5px 0 rgba(255, 206, 92, .32);
}

.f-nav {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px dotted var(--neon);
}
.f-nav a:hover { color: var(--yellow); }

.f-copy { color: rgba(242, 255, 232, .72); font-size: 1rem; line-height: 1.6; }

/* ---------- 动效 ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .6s cubic-bezier(.22, .7, .3, 1);
}
.js .rv.in { opacity: 1; transform: none; }

.ph-a, .ph-b, .shape { transition: transform .35s ease; }
.collage:hover .ph-a { transform: rotate(-7deg) translateY(-4px); }
.collage:hover .ph-b { transform: rotate(8deg) translateY(4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .collage:hover .ph-a, .collage:hover .ph-b { transform: none; }
  .ph-a { transform: rotate(-4deg); }
  .ph-b { transform: rotate(5deg); }
}

/* ---------- 断点 ---------- */
@media (min-width: 620px) {
  .foot { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .f-name { grid-column: 1 / -1; }
  .f-copy { justify-self: end; text-align: right; }
}

@media (min-width: 860px) {
  body { font-size: 17.5px; }
  .hero {
    grid-template-columns: 1.06fr .94fr;
    align-items: center;
  }
  .collage { height: clamp(320px, 34vw, 460px); }
  .shell { grid-template-columns: minmax(0, 1fr) 272px; align-items: start; }
  .rail { position: sticky; top: 24px; }
  .foot {
    grid-template-columns: 1.35fr .9fr auto;
    align-items: end;
    gap: 22px;
  }
  .f-name { grid-column: auto; }
}

@media (min-width: 1180px) {
  .hero { padding-left: max(64px, calc((100vw - 1180px) / 2)); padding-right: max(64px, calc((100vw - 1180px) / 2)); }
}

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