:root {
  --ink: #1f2528;
  --muted: #637073;
  --paper: #faf8f4;
  --panel: #ffffff;
  --line: #ded8cf;
  --teal: #116b68;
  --rose: #b65468;
  --charcoal: #28383b;
  --gold: #b8893b;
  --shadow: 0 18px 55px rgba(31, 37, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(250, 248, 244, 0.92);
  border-bottom: 1px solid rgba(222, 216, 207, 0.8);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: #3b4648;
  font-size: 15px;
}

.nav-links a {
  padding: 8px 0;
}

.header-action,
.primary-button,
.secondary-button,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.header-action,
.primary-button {
  color: #fff;
  background: var(--teal);
}

.secondary-button,
.card-button {
  color: var(--teal);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(17, 107, 104, 0.24);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 29, 31, 0.78), rgba(20, 29, 31, 0.44) 42%, rgba(20, 29, 31, 0.12) 78%),
    linear-gradient(0deg, rgba(20, 29, 31, 0.48), rgba(20, 29, 31, 0.02) 44%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 88px 0 132px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e2bf78;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.8vw, 20px);
}

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

.flow-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-step {
  min-height: 190px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
}

.flow-step span {
  color: var(--rose);
  font-weight: 900;
}

.flow-step strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.flow-step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-shell,
.split-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 108px) 0;
}

.section-shell.alt {
  width: 100%;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  background: #eef4f1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.event-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.section-heading p:not(.eyebrow),
.event-band p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.ip-card,
.vip-card,
.question-form,
.recommendation-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ip-card {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  transition: transform 180ms ease, border-color 180ms ease;
}

.ip-card.active {
  border-color: rgba(17, 107, 104, 0.72);
}

.ip-card:hover {
  transform: translateY(-3px);
}

.ip-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ip-domain,
.status-pill,
.vip-card span,
#toolLabel {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--teal);
  background: #e7f1ef;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill {
  color: #7b4050;
  background: #f7e8ec;
}

.ip-card h3,
.vip-card h3,
.recommendation-panel h3,
.tool-detail h3 {
  margin: 18px 0 10px;
  font-size: 25px;
  line-height: 1.25;
}

.ip-card p,
.vip-card p,
.recommendation-panel p,
.tool-detail p {
  color: var(--muted);
}

.ip-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
}

.ip-card dt {
  color: var(--ink);
  font-weight: 800;
}

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

.card-button {
  width: 100%;
  margin-top: auto;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.split-section > .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.question-form,
.recommendation-panel {
  padding: clamp(22px, 3vw, 32px);
}

.question-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #354245;
  font-weight: 800;
}

select,
textarea {
  width: 100%;
  border: 1px solid #cfc8be;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 150px;
  padding: 14px;
}

select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(17, 107, 104, 0.26);
  outline-offset: 2px;
}

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

.privacy-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.recommendation-panel {
  position: sticky;
  top: 96px;
}

.recommendation-panel ul,
.tool-detail ol {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #3c4a4d;
}

.tool-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tool-tab {
  min-height: 42px;
  padding: 9px 14px;
  color: #394749;
  background: #fff;
  border: 1px solid rgba(17, 107, 104, 0.24);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.tool-tab.active {
  color: #fff;
  background: var(--teal);
}

.tool-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 24px;
  min-height: 270px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border: 1px solid #d6e3df;
  border-radius: 8px;
}

.vip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-card {
  min-height: 240px;
  padding: clamp(22px, 3vw, 30px);
}

.vip-card.featured {
  color: #fff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.vip-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.event-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(46px, 7vw, 76px) clamp(18px, 7vw, 96px);
  color: #fff;
  background: var(--charcoal);
}

.event-band > div {
  max-width: 780px;
}

.event-band p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #1e292b;
}

.site-footer strong {
  color: #fff;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-action {
    min-width: 116px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    width: min(680px, calc(100% - 36px));
    margin: 0 auto;
    padding-top: 72px;
  }

  .flow-band,
  .ip-grid,
  .vip-grid,
  .split-section,
  .tool-detail {
    grid-template-columns: 1fr;
  }

  .recommendation-panel {
    position: static;
  }

  .event-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: auto;
  }

  .brand {
    min-width: 0;
  }

  .header-action {
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(20, 29, 31, 0.76), rgba(20, 29, 31, 0.52) 48%, rgba(20, 29, 31, 0.32)),
      linear-gradient(90deg, rgba(20, 29, 31, 0.48), rgba(20, 29, 31, 0.08));
  }

  .hero-content {
    padding-bottom: 104px;
  }

  .hero-actions,
  .form-row {
    grid-template-columns: 1fr;
  }

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