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

:root {
  --ink: #172617;
  --mint: #69ff69;
  --cyan: #00ffff;
  --deep: #08120a;
  --panel: #12200f;
  --line: rgba(105, 255, 105, .3);
  --line-cyan: rgba(0, 255, 255, .36);
  --text: #d9f6de;
  --dim: #9dc2a6;
  --chrome: linear-gradient(135deg, #f6fff8 0%, #b7d6bf 16%, #ffffff 30%, #7fa98c 50%, #eafff1 68%, #9fc0aa 86%, #ffffff 100%);
}

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

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

body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--deep);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(0, 255, 255, .17), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(105, 255, 105, .16), transparent 38%),
    radial-gradient(circle at 50% 118%, rgba(0, 255, 255, .13), transparent 56%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    radial-gradient(rgba(105, 255, 105, .55) 1px, transparent 1px),
    radial-gradient(rgba(0, 255, 255, .45) 1px, transparent 1px);
  background-size: 120px 120px, 190px 190px;
  background-position: 0 0, 40px 70px;
  animation: drift 26s linear infinite alternate;
}

@keyframes drift {
  from { background-position: 0 0, 40px 70px; }
  to { background-position: 62px 120px, -30px -44px; }
}

a {
  color: var(--mint);
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部 */
.site-head {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 38, 23, .97), rgba(8, 18, 10, .9));
  backdrop-filter: blur(6px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 10px;
  border-bottom: 1px dashed rgba(0, 255, 255, .25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #69ff69, #00ffff, #ffffff, #69ff69);
  box-shadow: 0 0 20px rgba(105, 255, 105, .55);
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(105, 255, 105, .45); }
  50% { box-shadow: 0 0 26px rgba(0, 255, 255, .7); }
}

.brand-text {
  font-size: clamp(21px, 3.6vw, 29px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, .35));
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 8px 0 12px;
}

.menubar {
  flex: 1 1 auto;
  min-width: 0;
}

.menubar ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menubar a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}

.menubar a:hover,
.menubar a:focus-visible {
  color: #06180a;
  border-color: #d6ffdf;
  background: linear-gradient(180deg, #e6fff0, #69ff69);
  box-shadow: inset 0 1px 0 #fff, 0 0 18px rgba(105, 255, 105, .55);
}

.menubar a[data-active] {
  color: var(--cyan);
  border-color: var(--line-cyan);
  box-shadow: 0 0 14px rgba(0, 255, 255, .35);
}

.cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #05170a;
  text-decoration: none;
  border: 1px solid #d7ffe2;
  background: linear-gradient(180deg, #ffffff, #a6ffbc 22%, #69ff69 62%, #c7ffd5);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0, 255, 255, .32), 0 0 22px rgba(105, 255, 105, .45);
  transition: transform .18s, filter .18s, box-shadow .18s;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0, 255, 255, .6), 0 0 30px rgba(0, 255, 255, .55);
}

/* 主体 */
main {
  position: relative;
  z-index: 1;
  padding: 24px 0 56px;
}

main > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-cyan);
  background:
    linear-gradient(150deg, rgba(0, 255, 255, .12), rgba(105, 255, 105, .05) 44%, rgba(23, 38, 23, .55));
  padding: 22px 18px;
}

.stage::before {
  content: "✦ ✦";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: .5em;
  text-shadow: 0 0 12px rgba(0, 255, 255, .9);
}

.stage::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(0, 255, 255, .55), rgba(105, 255, 105, .08) 62%, transparent 72%);
}

.hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-items: center;
}

.hero-copy {
  order: -1;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 3px 14px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .22em;
  color: #04180a;
  border: 1px solid #eafff2;
  background: linear-gradient(120deg, var(--cyan), var(--mint));
  box-shadow: 0 0 18px rgba(0, 255, 255, .5);
  transform: rotate(-2.5deg);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(0, 255, 255, .16), rgba(23, 38, 23, .45));
}

.hero-art.is-empty::before {
  content: "";
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff, rgba(105, 255, 105, .85) 34%, rgba(0, 255, 255, .4) 62%, transparent 74%);
  box-shadow: 0 0 42px rgba(0, 255, 255, .45);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

h1,
.prose h1 {
  margin: .55rem 0 .5rem;
  font-size: clamp(27px, 5.2vw, 46px);
  line-height: 1.28;
  letter-spacing: .02em;
  color: #f0fff4;
  text-shadow: 0 0 18px rgba(105, 255, 105, .5), 0 0 44px rgba(0, 255, 255, .3);
}

.lead {
  margin: .4rem 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--dim);
}

/* 正文 */
.doc {
  min-width: 0;
}

.prose {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 32, 15, .94), rgba(8, 18, 10, .94));
  padding: 22px 18px;
}

.prose section {
  padding: 26px 0;
  border-top: 1px dashed rgba(0, 255, 255, .22);
  scroll-margin-top: 132px;
}

.prose > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose > section:last-child {
  padding-bottom: 0;
}

.prose h2,
.prose h3 {
  line-height: 1.35;
  color: #f2fff5;
  text-shadow: 0 0 14px rgba(0, 255, 255, .34);
}

.prose h2 {
  margin: .2em 0 .7em;
  font-size: clamp(21px, 3.4vw, 28px);
}

.prose h3 {
  margin: 1.3em 0 .5em;
  font-size: clamp(18px, 2.6vw, 21px);
}

.prose small,
.rail small {
  display: block;
  margin-bottom: .35em;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .24em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, .45);
}

.prose p {
  margin: .9em 0;
}

.prose ul,
.prose ol {
  margin: .9em 0;
  padding-left: 1.4em;
}

.prose li {
  margin: .35em 0;
}

.prose li::marker {
  color: var(--mint);
}

.prose strong {
  color: #eafff0;
}

.prose a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(105, 255, 105, .55);
}

.prose a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.prose blockquote {
  margin: 1.1em 0;
  padding: .8em 1em;
  border-left: 2px solid var(--cyan);
  background: rgba(0, 255, 255, .07);
  color: #ddf8ff;
}

.prose blockquote p {
  margin: .3em 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.prose hr {
  margin: 1.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 侧栏 */
.rail {
  min-width: 0;
  border: 1px solid var(--line-cyan);
  background: linear-gradient(180deg, rgba(0, 255, 255, .1), rgba(8, 18, 10, .88));
  padding: 18px 16px;
}

.rail h2 {
  margin: .1em 0 .8em;
  font-size: 19px;
  line-height: 1.45;
  color: #f0fff4;
  text-shadow: 0 0 12px rgba(0, 255, 255, .3);
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s, border-color .18s, color .18s;
}

.rail a::before {
  content: "◇";
  margin-right: 8px;
  font-size: 12px;
  color: var(--cyan);
}

.rail a:hover,
.rail a:focus-visible {
  color: #06180a;
  border-color: #d6ffdf;
  background: linear-gradient(180deg, #e6fff0, #69ff69);
}

.rail a:hover::before,
.rail a:focus-visible::before {
  color: #06180a;
}

/* 页脚 */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  border-top: 1px solid var(--line-cyan);
  background: linear-gradient(180deg, rgba(23, 38, 23, .9), #060f08);
}

.foot-brand {
  margin: 26px 0 22px;
  font-size: clamp(40px, 11vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .02em;
  word-break: break-word;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 255, 255, .38));
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: 20px;
}

.foot-cols dl {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.foot-cols dt {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .22em;
  color: var(--cyan);
}

.foot-cols dd {
  margin: 0;
}

.foot-cols a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  transition: color .18s, padding-left .18s;
}

.foot-cols a:hover,
.foot-cols a:focus-visible {
  color: var(--mint);
  padding-left: 6px;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 14px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
  color: var(--dim);
}

.foot-base p {
  margin: 0;
}

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

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text);
  text-decoration: none;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--cyan);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: #05170a;
  cursor: pointer;
  border: 1px solid #d7ffe2;
  background: linear-gradient(180deg, #ffffff, #69ff69);
  box-shadow: 0 0 20px rgba(105, 255, 105, .55);
}

.to-top[hidden] {
  display: none;
}

/* 断点 */
@media (min-width: 760px) {
  .prose {
    padding: 30px 30px 36px;
  }

  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 820px) {
  .stage {
    min-height: 70vh;
    padding: 34px;
    display: grid;
    align-items: center;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 28px;
  }

  .hero-copy {
    order: 0;
  }

  .hero-art {
    min-height: 320px;
  }
}

@media (min-width: 960px) {
  .site-head {
    position: sticky;
    top: 0;
  }

  main > .wrap {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 34px 30px;
    align-items: start;
  }

  .stage {
    grid-column: 1 / -1;
  }

  .rail {
    position: sticky;
    top: 112px;
  }

  .prose section {
    scroll-margin-top: 150px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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