:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #c41e3a;
  --accent-hover: #a01830;
  --hero: #0d3d32;
  --border: #e8e8e8;
  --font: "Noto Sans TC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hero);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.375rem, 3vw, 1.85rem);
  line-height: 1.25;
}

.lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--large {
  padding: 1rem 1.8rem;
  font-size: 1.0625rem;
}

.btn:active {
  transform: scale(0.98);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__links {
  display: none;
  gap: 1rem;
  margin-left: auto;
  font-size: 0.92rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--hero);
}

.nav__cta {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 0.35rem;
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    margin-left: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 61, 50, 0.12),
    rgba(13, 61, 50, 0.3) 40%,
    rgba(13, 61, 50, 0.82)
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  padding: 5.5rem 0 2.5rem;
}

.hero__tag {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  line-height: 1.2;
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero__stats div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  padding: 0.9rem;
  backdrop-filter: blur(6px);
}

.hero__stats strong {
  display: block;
  font-size: 1.15rem;
}

.hero__stats span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: end;
  }
}

/* Trust */
.trust {
  background: #f5f7f6;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.trust__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.trust__heading {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(13, 61, 50, 0.72);
  text-align: center;
  width: 100%;
}

.trust__grid {
  width: 100%;
  max-width: 56rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 0.85rem;
}

.trust__grid div {
  background: #fff;
  border: 1px solid rgba(13, 61, 50, 0.1);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  min-height: 3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hero);
  box-shadow: 0 2px 10px rgba(13, 61, 50, 0.04);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 760px) {
  .trust__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* How */
.how,
.gallery,
.benefits,
.articles,
.plans,
.reviews,
.faq {
  padding: 4rem 0;
}

.how__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.how__list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
}

.how__list span {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: var(--hero);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.how__list h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.05rem;
}

.how__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .how__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Gallery */
.gallery {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.gallery .lead {
  margin-inline: auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 16rem));
  justify-content: center;
  gap: 2rem;
  max-width: 54rem;
  margin-inline: auto;
}

.gallery__grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.gallery__grid img {
  width: 100%;
  height: 8.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
}

.gallery__grid figcaption {
  padding-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 100%;
  }

  .gallery__grid img {
    height: 5rem;
  }
}

/* Benefits */
.benefits {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(13, 61, 50, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(196, 30, 58, 0.05), transparent 50%),
    #f3f7f5;
}

.benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.benefits__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid rgba(13, 61, 50, 0.1);
  border-radius: 0.9rem;
  padding: 1.2rem;
  box-shadow: 0 4px 18px rgba(13, 61, 50, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefits__list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 61, 50, 0.1);
}

.benefits__list span {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: var(--hero);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.benefits__list h3 {
  margin: 0 0 0.35rem;
  color: var(--hero);
}

.benefits__list p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 860px) {
  .benefits__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits__list li {
    grid-template-columns: 1fr;
  }
}

/* Articles */
.articles {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.articles__list {
  display: grid;
  gap: 0.85rem;
}

.articles__list details {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.35rem 1rem 0.35rem;
}

.articles__list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 0;
  list-style: none;
}

.articles__list summary::-webkit-details-marker {
  display: none;
}

.articles__list details[open] summary {
  color: var(--hero);
}

.articles__list p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Plans */
.plans {
  background: #f7f9f8;
}

.plans__grid {
  display: grid;
  gap: 1rem;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.35rem;
  min-height: 10.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.plan--featured {
  border-color: rgba(196, 30, 58, 0.35);
  box-shadow: 0 10px 28px rgba(196, 30, 58, 0.08);
}

.plan__badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.plan__name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--hero);
}

.plan__for {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.plan__hint {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: rgba(13, 61, 50, 0.65);
}

.plan__details {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .plans__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .plan__details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transform: translateY(0.4rem);
    transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease, margin 0.28s ease;
  }

  .plan:hover,
  .plan:focus-within {
    transform: translateY(-3px);
    border-color: rgba(13, 61, 50, 0.28);
    box-shadow: 0 12px 28px rgba(13, 61, 50, 0.1);
  }

  .plan:hover .plan__details,
  .plan:focus-within .plan__details {
    max-height: 12rem;
    opacity: 1;
    margin-top: 1rem;
    transform: translateY(0);
  }

  .plan:hover .plan__hint,
  .plan:focus-within .plan__hint {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
  }
}

.metrics {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.metrics div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.metrics strong {
  display: block;
  font-size: 1.35rem;
  color: var(--hero);
}

.metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reviews */
.reviews {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.reviews__grid {
  display: grid;
  gap: 1rem;
}

.reviews__grid blockquote {
  margin: 0;
  background: #f8faf9;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
}

.stars {
  color: #d4a017;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.reviews__grid p {
  margin: 0 0 0.85rem;
}

.reviews__grid footer {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 860px) {
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ */
.faq {
  background: #f3f7f5;
}

.faq__hint {
  display: none;
}

.faq__list {
  display: grid;
  gap: 0.85rem;
}

.faq__item {
  background: #fff;
  border: 1px solid rgba(13, 61, 50, 0.1);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq__q {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.faq__q span {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hero);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.faq__q h3 {
  margin: 0.15rem 0 0;
  font-size: 1rem;
}

.faq__a {
  margin: 0.75rem 0 0 2.55rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .faq__hint {
    display: block;
  }

  .faq__a {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transform: translateY(0.35rem);
    transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease, margin 0.28s ease;
  }

  .faq__item:hover,
  .faq__item:focus-within {
    border-color: rgba(13, 61, 50, 0.28);
    box-shadow: 0 10px 24px rgba(13, 61, 50, 0.08);
  }

  .faq__item:hover .faq__a,
  .faq__item:focus-within .faq__a {
    max-height: 8rem;
    opacity: 1;
    margin-top: 0.75rem;
    transform: translateY(0);
  }
}

/* CTA */
.cta {
  background: var(--hero);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  margin-bottom: 0.65rem;
}

.cta p {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.88);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Comparison chat article */
.chat {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}

.chat__row {
  max-width: 38rem;
  padding: 0.95rem 1.1rem;
  border-radius: 0.85rem;
}

.chat__row--q {
  justify-self: start;
  background: #f3f6f5;
  border: 1px solid rgba(13, 61, 50, 0.08);
}

.chat__row--a {
  justify-self: end;
  background: #fff;
  border: 1px solid rgba(13, 61, 50, 0.12);
  box-shadow: 0 2px 10px rgba(13, 61, 50, 0.04);
}

.chat__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted, #6b7c76);
}

.chat__row p:last-child {
  margin-bottom: 0;
}

.chat__row a.btn {
  margin-top: 0.5rem;
}

.compare-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(13, 61, 50, 0.12);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  background: #0d3d32;
  color: #fff;
  font-weight: 700;
}

.compare thead a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.compare tbody th {
  background: #f3f6f5;
  font-weight: 600;
  width: 8.5rem;
}

.compare tbody tr:nth-child(even) td {
  background: rgba(13, 61, 50, 0.03);
}

.compare tbody td:nth-child(2) {
  background: rgba(168, 48, 61, 0.04);
}

.compare thead th:nth-child(2) {
  background: #8f2a36;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer__inner {
  display: grid;
  gap: 1.5rem;
}

.footer__brand a {
  font-weight: 800;
  text-decoration: none;
}

.footer__brand p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 28rem;
}

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

.footer__cols h3 {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
}

.footer__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__cols a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__cols a:hover {
  color: var(--hero);
}

.footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer__bottom a {
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--hero);
}

@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* Blog listing */
.blog-hero {
  padding: 3rem 0 1.5rem;
  background: #f5f7f6;
  border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.blog-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.blog-list {
  padding: 2.5rem 0 4rem;
}

.blog-cards {
  display: grid;
  gap: 1rem;
}

.blog-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: rgba(13, 61, 50, 0.25);
  box-shadow: 0 10px 24px rgba(13, 61, 50, 0.08);
  transform: translateY(-2px);
}

.blog-card__tag {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hero);
  letter-spacing: 0.04em;
}

.blog-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--text);
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card__meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #8a8a8a;
}

@media (min-width: 800px) {
  .blog-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Article page */
.post {
  padding: 2rem 0 4rem;
}

.post__inner {
  max-width: 44rem;
}

.post__crumb {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.post__crumb a {
  color: var(--muted);
  text-decoration: none;
}

.post__crumb a:hover {
  color: var(--hero);
}

.post h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  line-height: 1.3;
}

.post__meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.post__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: #333;
}

.post h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.post p,
.post li {
  color: #3d4650;
  line-height: 1.75;
}

.post ul,
.post ol {
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
}

.post li + li {
  margin-top: 0.35rem;
}

.post__next {
  margin-top: 2.25rem;
  padding: 1.25rem;
  border-radius: 0.85rem;
  background: #f5f7f6;
  border: 1px solid var(--border);
}

.post__next p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.articles__cards {
  display: grid;
  gap: 0.9rem;
}

.articles__cards a {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.articles__cards a:hover {
  border-color: rgba(13, 61, 50, 0.28);
  box-shadow: 0 8px 20px rgba(13, 61, 50, 0.08);
}

.articles__cards h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  color: var(--hero);
}

.articles__cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.articles__more {
  margin-top: 1.1rem;
}

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

  .plan,
  .faq__item,
  .benefits__list li,
  .plan__details,
  .faq__a {
    transition: none;
  }
}
