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

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

:root {
  --ink: #192617;
  --ink2: #101a0f;
  --ink3: #1e2e1b;
  --neon: #87ff71;
  --sun: #ffce5c;
  --paper: #f2f6e9;
  --mute: #a8bd9c;
  --serif: "Noto Serif TC", Georgia, "Songti SC", serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--paper);
  background-color: var(--ink);
  background-image: radial-gradient(rgba(135, 255, 113, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  overflow-x: hidden;
}

a { color: var(--neon); text-decoration: none; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0; }
hr { border: 0; height: 3px; width: 76px; background: var(--neon); margin: 12px 0 20px; }

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

/* 顶部细条 */
.ticker {
  background: var(--neon);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-align: center;
  padding: 5px 10px;
  border-bottom: 3px solid var(--ink);
}

/* 页头：品牌居中，菜单分列两侧 */
.masthead {
  background: var(--ink2);
  border-bottom: 4px solid var(--neon);
  padding: 10px 16px;
}
.bar {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.masthead nav.a { justify-content: flex-end; }
.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border: 2px solid var(--neon);
  border-radius: 999px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.masthead nav a:hover,
.masthead nav a:focus-visible {
  background: var(--neon);
  color: var(--ink);
  transform: rotate(-2deg) translateY(-2px);
}
.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sun);
  padding: 4px 6px;
  min-height: 40px;
}
.brand .logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid var(--sun);
}

/* 二级粘性锚点条 */
.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink2);
  border-bottom: 2px dashed var(--sun);
  overflow-x: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  padding: 7px 14px;
  max-width: 1180px;
  width: max-content;
}
.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 16px;
  white-space: nowrap;
  color: var(--sun);
  border: 1px dashed rgba(255, 206, 92, 0.55);
  transition: background 0.18s ease, color 0.18s ease;
}
.rail a:hover,
.rail a:focus-visible,
.rail a.on {
  background: var(--sun);
  color: var(--ink);
  border-style: solid;
  border-color: var(--ink);
}

/* Hero：文在上、图在下 */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 56px 18px 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 9%;
  left: 4%;
  width: 118px;
  height: 102px;
  background: var(--neon);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-12deg);
  opacity: 0.85;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 6%;
  top: 24%;
  width: 92px;
  height: 92px;
  border: 8px dashed var(--sun);
  border-radius: 50%;
  opacity: 0.7;
  animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
  padding: 6px 16px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--neon);
  transform: rotate(-3deg);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 5.6vw, 60px);
  max-width: 18ch;
  color: var(--paper);
  text-wrap: balance;
}
.hero h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 8px;
  margin: 20px auto 0;
  background: var(--neon);
}
.lede {
  max-width: 44ch;
  margin: 22px auto 0;
  color: var(--mute);
  font-size: 17px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 26px;
  padding: 12px 30px;
  background: var(--neon);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--sun);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hero-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 11px 11px 0 var(--sun);
}
.hero-fig {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  min-height: 38vh;
  margin: 44px 0 0;
  background: repeating-linear-gradient(45deg, transparent 0 16px, rgba(135, 255, 113, 0.14) 16px 32px);
}
.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  border-top: 4px solid var(--sun);
}

/* 正文 + 右侧栏 */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 18px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 44px;
  align-items: start;
}
.prose { min-width: 0; }
.prose div {
  padding: 6px 0 30px;
  border-bottom: 2px dotted rgba(135, 255, 113, 0.3);
  scroll-margin-top: 88px;
}
.prose div:last-child { border-bottom: 0; padding-bottom: 0; }
.prose h2 {
  position: relative;
  padding-left: 18px;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--sun);
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 10px;
  height: 10px;
  background: var(--neon);
  transform: rotate(45deg);
}
.prose h3 {
  font-size: 22px;
  color: var(--neon);
  margin: 26px 0 0;
}
.prose p { margin: 16px 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 8px 0; }
.prose strong { color: var(--sun); }
.prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 6px solid var(--neon);
  background: rgba(135, 255, 113, 0.08);
  font-family: var(--serif);
}
.prose a { border-bottom: 2px solid rgba(135, 255, 113, 0.5); }
.prose a:hover { color: var(--sun); border-bottom-color: var(--sun); }
.prose img { margin: 20px 0; border: 3px solid var(--neon); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 18px 0;
}
.prose th, .prose td {
  border: 2px solid rgba(135, 255, 113, 0.4);
  padding: 8px 10px;
  text-align: left;
}
.prose th { background: rgba(255, 206, 92, 0.16); color: var(--sun); }

.side {
  position: sticky;
  top: 76px;
  background: var(--ink3);
  border: 3px solid var(--neon);
  padding: 16px 14px;
}
.side h2 { font-size: 19px; letter-spacing: 0.08em; color: var(--sun); }
.side hr { width: 44px; height: 3px; margin: 10px 0 14px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li + li { margin-top: 2px; }
.side a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 10px;
  font-size: 16px;
  color: var(--paper);
  border-left: 3px solid transparent;
}
.side a:hover,
.side a:focus-visible {
  color: var(--sun);
  border-left-color: var(--sun);
  background: rgba(255, 206, 92, 0.14);
}

/* 页脚 */
.foot {
  background: var(--ink2);
  border-top: 4px solid var(--sun);
  margin-top: 20px;
}
.cta {
  text-align: center;
  padding: 52px 18px;
  border-bottom: 2px dashed rgba(135, 255, 113, 0.4);
  background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(135, 255, 113, 0.07) 16px 32px);
}
.cta-t {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 38px);
  color: var(--neon);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 30px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--neon);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cta-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--neon);
}
.foot-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--paper);
  border-left: 4px solid var(--neon);
  padding-left: 12px;
}
.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
}
.foot-nav dt {
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--sun);
}
.foot-nav dd { margin: 0; }
.foot-nav a,
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  font-size: 16px;
  color: var(--paper);
  border-bottom: 1px dashed rgba(135, 255, 113, 0.6);
}
.foot-nav a:hover,
.foot-links a:hover,
.foot-nav a:focus-visible,
.foot-links a:focus-visible {
  color: var(--sun);
  border-bottom-color: var(--sun);
  border-bottom-style: solid;
}
.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0;
  padding: 0;
}
.copy {
  text-align: center;
  margin: 26px 0 0;
  padding: 0 18px 8px;
  font-size: 16px;
  color: var(--mute);
}

/* 回到顶部 */
.totop {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 3px solid var(--neon);
  border-radius: 999px;
  background: var(--ink2);
  color: var(--neon);
  font-family: var(--sans);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.18s ease, color 0.18s ease;
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--neon); color: var(--ink); }

/* 滚动显现 */
.js .rv { opacity: 0; transform: translateY(18px); }
.js .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (max-width: 880px) {
  .bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 6px;
  }
  .brand {
    order: -1;
    flex: 0 0 100%;
    justify-content: center;
  }
  .masthead nav,
  .masthead nav.a { flex: 1 0 100%; justify-content: center; }
  .hero { padding: 48px 16px 0; }
  .hero::before { width: 78px; height: 68px; }
  .hero::after { width: 62px; height: 62px; border-width: 6px; }
  .hero-fig { min-height: 34vh; margin-top: 32px; }
  .hero-cta { box-shadow: 5px 5px 0 var(--sun); }
  .wrap {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 38px 16px 48px;
  }
  .side { position: static; }
  .foot-row { flex-direction: column; gap: 18px; }
  .copy { margin-top: 18px; }
}

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

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