:root {
  --navy: #071a2f;
  --navy-soft: #102b48;
  --ink: #142033;
  --ink-muted: #566173;
  --cream: #f7f0e3;
  --paper: #fffdf8;
  --paper-deep: #efe1c9;
  --gold: #c99a4a;
  --gold-light: #ebcf97;
  --line-green: #087e3d;
  --line-green-dark: #05642f;
  --white: #ffffff;
  --border: rgba(20, 32, 51, 0.13);
  --shadow-sm: 0 12px 34px rgba(7, 26, 47, 0.09);
  --shadow-lg: 0 28px 72px rgba(7, 26, 47, 0.22);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --content: 1180px;
  --focus: #f6bd54;
  --z-notice: 10;
  --z-mobile-cta: 40;
  --z-dialog: 100;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: calc(var(--z-dialog) + 1);
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.notice-bar {
  position: relative;
  z-index: var(--z-notice);
  color: #fff8eb;
  background: #061527;
  border-bottom: 1px solid rgba(235, 207, 151, 0.25);
}

.notice-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.notice-inner span + span {
  display: none;
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 87% 12%, rgba(201, 154, 74, 0.28), transparent 28rem),
    radial-gradient(circle at 7% 95%, rgba(49, 93, 126, 0.42), transparent 34rem),
    var(--navy);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.hero-grid {
  padding-block: 72px 88px;
  display: grid;
  gap: 48px;
}

.hero-copy {
  max-width: 680px;
  animation: enter 600ms ease-out both;
}

.eyebrow {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #765015;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

.hero .eyebrow,
.claim-panel .eyebrow,
.dialog-header .eyebrow {
  color: var(--gold-light);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-family: "Songti TC", "PMingLiU", "Noto Serif TC", serif;
  font-size: clamp(2.35rem, 8vw, 4.8rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #dbe2e9;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.75;
}

.cta-link {
  width: fit-content;
  min-height: 54px;
  margin-top: 30px;
  padding: 14px 20px 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  background: var(--line-green);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(8, 126, 61, 0.28);
  font-weight: 800;
  text-decoration: none;
  animation: cta-gentle-float 1.6s ease-in-out infinite;
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out;
}
@keyframes cta-gentle-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}

.cta-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-link:hover {
  background: var(--line-green-dark);
  box-shadow: 0 16px 38px rgba(8, 126, 61, 0.34);
}

.cta-link:active {
  background: #044f26;
}

.trust-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #c8d2dc;
  font-size: 14px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
}

.hero-visual {
  margin: 0;
  animation: enter 600ms 100ms ease-out both;
}

.image-frame {
  position: relative;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(235, 207, 151, 0.45);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--radius-md) - 8px);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-md) - 8px);
}

.hero-visual figcaption {
  margin: 14px 8px 0;
  color: #bfcad5;
  font-size: 13px;
  text-align: center;
}

.section {
  padding-block: 80px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Songti TC", "PMingLiU", "Noto Serif TC", serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.pain-section {
  position: relative;
  background: var(--cream);
}

.pain-grid {
  display: grid;
  gap: 14px;
}

.pain-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-number {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pain-card::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(201, 154, 74, 0.35);
  border-radius: 50%;
}

.pain-card h3,
.benefit-list h3,
.steps h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.14rem;
  line-height: 1.4;
}

.pain-card p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.insight {
  margin-top: 24px;
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  color: var(--white);
  background: var(--navy-soft);
  border-radius: var(--radius-md);
}

.insight svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight p {
  max-width: 900px;
  margin: 0;
  color: #e6ebf0;
}

.book-section {
  background: var(--paper);
  border-block: 1px solid var(--border);
}

.book-layout {
  display: grid;
  gap: 48px;
}

.book-intro > p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-muted);
  font-size: 1.04rem;
}

.audience {
  margin-top: 30px;
  padding: 22px;
  background: var(--paper-deep);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.audience span {
  color: #704b13;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.audience p {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.benefit-list {
  display: grid;
  gap: 2px;
  align-self: start;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.benefit-list article {
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
  background: var(--paper);
}

.check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold-light);
  border-radius: 50%;
}

.check svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-list p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.section-action {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.cta-link-dark {
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(7, 26, 47, 0.18);
}

.cta-link-dark:hover {
  background: var(--navy-soft);
  box-shadow: 0 16px 38px rgba(7, 26, 47, 0.24);
}

.claim-section {
  padding-block: 64px;
  background: var(--cream);
}

.claim-panel {
  position: relative;
  padding: 36px 28px;
  display: grid;
  gap: 44px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(201, 154, 74, 0.25), transparent 22rem),
    var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.claim-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(235, 207, 151, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.claim-panel h2 {
  color: var(--white);
}

.claim-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: #d8e0e7;
}

.cta-link-light {
  color: #062a18;
  background: #f7fff9;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.cta-link-light:hover {
  color: var(--white);
  background: var(--line-green);
  box-shadow: none;
}

.steps {
  position: relative;
  z-index: 1;
  padding: 26px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid rgba(235, 207, 151, 0.56);
  border-radius: var(--radius-md);
}

.steps ol {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.steps li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-weight: 800;
}

.steps strong {
  color: var(--navy);
}

.steps p {
  margin: 2px 0 0;
  color: var(--ink-muted);
}

.activity-note {
  max-width: 920px;
  margin: 28px auto 0;
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
}

.activity-note p {
  margin: 6px 0;
}

.activity-note .risk-note {
  margin-top: 18px;
  padding: 14px 18px;
  color: var(--navy);
  line-height: 1.7;
  text-align: left;
  background: #fff9ea;
  border: 1px solid #d4af62;
  border-radius: 12px;
}

.site-footer {
  padding-block: 32px 96px;
  color: #d5dde5;
  background: #061527;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--white);
  font-family: "Songti TC", "PMingLiU", "Noto Serif TC", serif;
  font-size: 18px;
}

.footer-inner p {
  margin: 2px 0 0;
  color: #9aa9b8;
  font-size: 13px;
}

.footer-link {
  min-width: 88px;
  min-height: 48px;
  padding: 8px 12px;
  color: #d9e1e9;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-link:hover {
  color: var(--gold-light);
}

.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: var(--z-mobile-cta);
  width: auto;
  margin: 0;
  display: flex;
  box-shadow: 0 14px 38px rgba(7, 26, 47, 0.35);
}

dialog {
  width: min(calc(100% - 32px), 760px);
  max-height: min(86vh, 820px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(201, 154, 74, 0.42);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(3, 13, 24, 0.62);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  max-height: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
}

.dialog-header {
  padding: 24px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  background: var(--navy);
}

.dialog-header .eyebrow {
  margin-bottom: 4px;
}

.dialog-header h2 {
  margin: 0;
  color: var(--white);
  font-family: "Songti TC", "PMingLiU", "Noto Serif TC", serif;
  font-size: 2rem;
  line-height: 1.2;
}

.dialog-close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: background-color 180ms ease-out;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dialog-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.dialog-content {
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog-content > p:first-child {
  margin-top: 0;
  color: var(--ink-muted);
}

.dialog-content section {
  padding-block: 16px;
  border-top: 1px solid var(--border);
}

.dialog-content h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.dialog-content section p {
  margin: 6px 0 0;
  color: var(--ink-muted);
}

.policy-date {
  margin: 16px 0 0;
  color: #6b5a3e;
  font-size: 13px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .notice-inner {
    justify-content: space-between;
  }

  .notice-inner span + span {
    display: inline;
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .claim-panel {
    padding: 52px;
  }
}

@media (min-width: 761px) {
  .container {
    width: min(calc(100% - 64px), var(--content));
  }

  .mobile-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 32px;
  }
}

@media (min-width: 920px) {
  .section {
    padding-block: 112px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 54px;
  }

  .hero-visual {
    transform: rotate(1.2deg);
  }

  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pain-card:nth-child(even) {
    margin-top: 28px;
  }

  .book-layout {
    grid-template-columns: minmax(0, 0.84fr) minmax(480px, 1.16fr);
    gap: 72px;
    align-items: start;
  }

  .claim-panel {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 72px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 56px 64px;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .cta-link:not(.mobile-cta) {
    width: 100%;
  }

  .hero-visual {
    margin-top: 4px;
  }

  .section {
    padding-block: 72px;
  }

  .insight {
    grid-template-columns: 1fr;
  }

  .claim-panel {
    border-radius: var(--radius-md);
  }

  .footer-inner {
    align-items: flex-start;
  }

  .dialog-header,
  .dialog-content {
    padding-inline: 20px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 32px), var(--content));
  }

  h1 {
    font-size: 2.25rem;
  }

  .trust-row {
    display: grid;
  }

  .pain-card {
    min-height: 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-link {
    padding-left: 0;
    text-align: left;
  }
}

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