:root {
  --ink-950: #06101c;
  --ink-900: #0d1928;
  --ink-820: #152438;
  --ink-740: #24384f;
  --text: #172231;
  --muted: #657282;
  --paper: #f4f8f8;
  --surface: #ffffff;
  --surface-cool: #eff8f6;
  --line: rgba(20, 42, 61, 0.14);
  --line-dark: rgba(220, 237, 238, 0.17);
  --green: #35d98f;
  --green-strong: #12a96f;
  --cyan: #7edce6;
  --amber: #e5b54f;
  --shadow: 0 24px 54px rgba(7, 18, 32, 0.13);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.68;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 34px;
  color: #f8fbff;
  background: rgba(6, 16, 28, 0.94);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.22;
}

.brand strong {
  color: #ffffff;
  font-size: 1.03rem;
  font-weight: 900;
}

.brand small {
  color: rgba(229, 242, 247, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(126, 220, 230, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 43%, rgba(53, 217, 143, 0.9) 43% 57%, transparent 57%),
    linear-gradient(180deg, transparent 43%, rgba(53, 217, 143, 0.9) 43% 57%, transparent 57%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(53, 217, 143, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 11px;
  color: rgba(247, 251, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 850;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: #06130e;
  background: var(--green);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(53, 217, 143, 0.22);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.section,
.hero {
  padding: 68px 34px;
}

.section-inner,
.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-paper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 246, 0.94)),
    var(--paper);
}

.section-ink {
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(6, 16, 28, 0.99), rgba(16, 35, 54, 0.98) 58%, rgba(16, 62, 62, 0.96)),
    var(--ink-950);
}

.hero {
  position: relative;
  padding-top: 22px;
  padding-bottom: 24px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 8%, transparent 92%);
  content: "";
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(440px, 0.48fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 630px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 3.34rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span:not(.nowrap) {
  display: block;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink-950);
  font-size: 2.42rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink-950);
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-ink h2,
.section-ink h3,
.facebook-band h2,
.facebook-band h3 {
  color: #ffffff;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 14px;
  color: rgba(247, 251, 255, 0.9);
  font-size: 1.13rem;
  font-weight: 750;
}

.hero-note {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(224, 240, 246, 0.74);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #06130e;
  background: linear-gradient(135deg, var(--green), #96efc1);
  box-shadow: 0 18px 38px rgba(53, 217, 143, 0.24);
}

.line-note,
.boundary-note {
  margin: 12px 0 0;
  color: rgba(224, 240, 246, 0.7);
  font-size: 0.94rem;
  font-weight: 800;
}

.shop-link {
  display: inline-block;
  margin-top: 12px;
  color: rgba(224, 240, 246, 0.8);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.assist-window {
  position: relative;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.05)),
    rgba(8, 19, 32, 0.78);
  border: 1px solid rgba(219, 236, 239, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.window-top,
.assist-note,
.signal-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.window-top {
  padding-bottom: 9px;
  color: rgba(247, 251, 255, 0.86);
  border-bottom: 1px solid rgba(219, 236, 239, 0.14);
  font-weight: 900;
}

.window-controls {
  display: inline-flex;
  gap: 6px;
}

.window-controls i {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.status-pill {
  padding: 6px 9px;
  color: #06130e;
  background: var(--green);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.assist-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 0;
}

.assist-steps span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(225, 240, 245, 0.68);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(219, 236, 239, 0.11);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 900;
}

.assist-steps span.active {
  color: #06130e;
  background: var(--green);
  border-color: transparent;
}

.assist-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.62fr) minmax(0, 1fr);
  gap: 10px;
}

.score-card,
.signal-list,
.check-table > div,
.assist-note {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(219, 236, 239, 0.11);
  border-radius: 7px;
}

.score-card {
  padding: 12px;
}

.score-card span {
  display: block;
  color: rgba(225, 240, 245, 0.7);
  font-size: 0.8rem;
  font-weight: 850;
}

.score-card strong {
  color: #ffffff;
  font-size: 3.12rem;
  line-height: 0.92;
}

.score-card small {
  color: rgba(225, 240, 245, 0.7);
  font-weight: 900;
}

.score-bar {
  height: 8px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.score-bar i {
  display: block;
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.signal-list {
  display: grid;
  gap: 5px;
  padding: 8px;
}

.signal-list div {
  min-height: 24px;
}

.signal-list span {
  color: rgba(225, 240, 245, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
}

.signal-list b {
  color: var(--green);
  font-size: 0.84rem;
}

.signal-list .warn {
  color: #ffd481;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.mode-tabs span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: rgba(225, 240, 245, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(219, 236, 239, 0.11);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.mode-tabs .selected {
  color: #06130e;
  background: var(--green);
}

.check-table {
  display: grid;
  gap: 5px;
}

.check-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(84px, 0.72fr) minmax(60px, 0.5fr);
  gap: 8px;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
}

.check-table .table-head {
  min-height: auto;
  color: rgba(225, 240, 245, 0.58);
  background: transparent;
  border-color: transparent;
  font-size: 0.73rem;
  font-weight: 900;
}

.check-table span {
  min-width: 0;
  color: rgba(247, 251, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 850;
}

.check-table b,
.check-table i {
  color: var(--green);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.check-table .medium-risk i {
  color: var(--amber);
}

.assist-note {
  justify-content: flex-start;
  margin-top: 10px;
  padding: 9px 11px;
  background: rgba(53, 217, 143, 0.12);
  border-color: rgba(53, 217, 143, 0.3);
}

.assist-note strong {
  color: #ffffff;
}

.status-light {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(53, 217, 143, 0.7);
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-ink .section-heading p,
.facebook-band .section-heading p {
  color: rgba(225, 240, 245, 0.76);
}

.situation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.situation-card,
.boundary-card,
.article-grid article,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(7, 18, 32, 0.065);
}

.situation-card {
  overflow: hidden;
}

.situation-visual {
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background:
    linear-gradient(135deg, rgba(6, 16, 28, 0.96), rgba(23, 68, 70, 0.92)),
    var(--ink-950);
}

.situation-visual span {
  display: block;
  width: 116px;
  height: 28px;
  border: 1px solid rgba(126, 220, 230, 0.35);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green) 0 34%, rgba(255, 255, 255, 0.14) 34%),
    rgba(255, 255, 255, 0.08);
}

.situation-visual.noise span {
  background:
    repeating-linear-gradient(90deg, var(--cyan) 0 10px, rgba(255, 255, 255, 0.16) 10px 18px),
    rgba(255, 255, 255, 0.08);
}

.situation-visual.decide span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    conic-gradient(var(--green) 0 64%, rgba(255, 255, 255, 0.16) 64% 100%),
    rgba(255, 255, 255, 0.08);
}

.situation-copy {
  padding: 22px;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.situation-card dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.situation-card dt {
  color: var(--ink-950);
  font-weight: 900;
}

.situation-card dd {
  margin: -7px 0 4px;
  color: var(--muted);
}

.tool-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-flow article {
  position: relative;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(219, 236, 239, 0.15);
  border-radius: var(--radius);
}

.tool-flow span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 900;
}

.tool-flow p {
  color: rgba(225, 240, 245, 0.74);
}

.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.boundary-card {
  padding: 26px;
}

.boundary-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.boundary-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.boundary-card li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.boundary-card.caution li::before {
  background: var(--amber);
}

.simple-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.simple-process div {
  min-height: 108px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(7, 18, 32, 0.055);
}

.simple-process span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #06130e;
  background: var(--green);
  border-radius: 7px;
  font-weight: 900;
}

.simple-process p {
  margin: 14px 0 0;
  color: var(--ink-950);
  font-weight: 850;
}

.boundary-note {
  color: var(--muted);
}

.facebook-band {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 18, 32, 0.98), rgba(22, 56, 67, 0.96)),
    var(--ink-950);
}

.facebook-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-grid article {
  min-height: 138px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(219, 236, 239, 0.15);
  box-shadow: none;
}

.article-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 44px 18px 20px;
  color: var(--ink-950);
  background: #ffffff;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.faq-item button::after {
  position: absolute;
  right: 20px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--green-strong);
  border-bottom: 2px solid var(--green-strong);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  content: "";
}

.faq-item button[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}

.faq-answer > p {
  min-height: 0;
  padding: 0 20px;
  margin: 0;
  color: var(--muted);
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer > p {
  padding-bottom: 20px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  padding: 36px 34px;
  color: rgba(247, 251, 255, 0.74);
  background: var(--ink-950);
  border-top: 1px solid var(--line-dark);
}

.footer-brand strong,
.footer-brand span,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 1.08rem;
}

.footer-brand small {
  color: var(--green);
  font-weight: 850;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  font-weight: 850;
}

.site-footer nav span {
  color: rgba(224, 240, 246, 0.5);
}

.site-footer p {
  grid-column: 1 / -1;
  max-width: 920px;
  margin: 0;
  color: rgba(224, 240, 246, 0.62);
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 18px;
    background: rgba(6, 16, 28, 0.99);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav .nav-cta {
    width: 100%;
    margin: 0;
    padding: 13px 14px;
  }

  .hero-inner,
  .facebook-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.12rem;
  }

  .situation-grid,
  .tool-flow,
  .simple-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section,
  .hero {
    padding: 36px 16px;
  }

  .site-header {
    min-height: 68px;
    padding: 0 14px;
  }

  .site-nav {
    top: 68px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.06rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .assist-window {
    padding: 12px;
  }

  .window-top {
    align-items: flex-start;
  }

  .status-pill {
    max-width: 116px;
    text-align: center;
  }

  .boundary-grid,
  .article-grid,
  .situation-grid,
  .tool-flow,
  .simple-process {
    grid-template-columns: 1fr;
  }

  .assist-grid {
    grid-template-columns: minmax(104px, 0.52fr) minmax(0, 1fr);
  }

  .score-card strong {
    font-size: 2.72rem;
  }

  .situation-visual {
    height: 70px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 30px 16px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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