:root {
  --bg: #ffffff;
  --ink: #0d100e;
  --muted: #5d625e;
  --line: #dfe5db;
  --line-strong: #ccd4c8;
  --lime: #9acd16;
  --lime-soft: #b8dc44;
  --green: #21865a;
  --green-deep: #08734f;
  --teal: #159577;
  --red: #df3131;
  --gold: #b0a986;
  --charcoal: #1a211d;
  --panel: #f6f8f3;
  --soft-shadow: 0 10px 28px rgba(24, 38, 30, .08);
  --radius: 8px;
  font-family: Arial, "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

.visually-hidden {
  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 {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar {
  width: min(1280px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px) 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand span {
  color: var(--green);
}

.search {
  grid-column: 2;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 0 15px;
  color: #858b86;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
}

.search > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.search input::placeholder {
  color: #858b86;
  opacity: 1;
}

.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  appearance: none;
}

.search button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
}

.search button svg {
  width: 18px;
  height: 18px;
}

.search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(33, 134, 90, .12);
}

.search button:hover,
.search button:focus-visible {
  outline: 0;
  background: var(--panel);
}

.main-nav {
  width: min(1280px, calc(100% - 48px));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 7vw, 128px);
  font-size: 16px;
  font-weight: 800;
}

.main-nav a {
  white-space: nowrap;
}

.announce {
  min-height: 43px;
  padding: 9px 22px;
  background: linear-gradient(90deg, #94ca12, var(--lime-soft) 52%, #95c912);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #0b0d0a;
  font-weight: 900;
  text-align: center;
}

.announce svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(330px, 430px) 1fr;
  gap: 58px;
  align-items: center;
  min-height: 400px;
  padding: 34px 0 22px;
}

.hero-copy h1,
.category-hero h1,
.detail-hero h1 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.lead,
.category-hero p {
  margin: 0;
  color: #2c312d;
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.45;
  font-weight: 800;
}

.primary-cta,
.card-cta,
.guide-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-cta {
  min-height: 46px;
  padding: 0 28px;
  background: linear-gradient(180deg, #10986f, #06714f);
  color: #fff;
  box-shadow: 0 12px 22px rgba(6, 113, 79, .22);
}

.home-primary {
  margin-top: 22px;
  gap: 16px;
  font-size: 17px;
}

.home-primary svg {
  width: 19px;
  height: 19px;
}

.secondary-cta,
.guide-cta {
  min-height: 34px;
  border: 1px solid #9da99d;
  background: #fff;
  color: #111;
  box-shadow: none;
}

.trust-row,
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.feature,
.fact {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: center;
  padding: 13px 14px;
  box-shadow: 0 8px 20px rgba(26, 33, 29, .05);
}

.feature svg,
.fact svg {
  width: 38px;
  height: 38px;
  color: var(--lime);
}

.feature strong,
.fact strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.feature span,
.fact span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

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

.guide-card {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  display: grid;
  grid-template-rows: 112px auto auto 1fr auto;
  padding: 16px;
  overflow: hidden;
}

.guide-card .image {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card img {
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .12));
}

.guide-card h2 {
  margin: 14px 0 2px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.guide-card .meta {
  margin: 0 0 8px;
  color: #3e4741;
  font-size: 13px;
  font-weight: 800;
}

.card-cta {
  justify-self: start;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 5px;
  box-shadow: none;
  font-size: 13px;
  background: linear-gradient(180deg, #3ea15c, #248348);
  color: #fff;
}

.guide-card .note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.section {
  margin-top: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.section-title::before {
  content: "";
  width: 6px;
  height: 30px;
  background: var(--lime);
  display: block;
  flex: 0 0 auto;
}

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

.intent-card {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-columns: 70px 1fr 22px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(26, 33, 29, .05);
}

.intent-icon {
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--green-deep);
}

.intent-icon svg {
  width: 56px;
  height: 56px;
}

.intent-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.intent-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.chevron {
  font-size: 30px;
  line-height: 1;
  color: #111;
}

.series {
  padding-bottom: 8px;
}

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

.category,
.related-card {
  min-height: 116px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(16, 22, 18, .95), rgba(31, 40, 34, .9)),
    var(--charcoal);
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70px 1fr 26px;
  align-items: center;
  gap: 12px;
  padding: 18px 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
}

.category img,
.related-card img {
  max-height: 74px;
  max-width: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .38));
}

.category h3,
.related-card strong {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.category small,
.related-card span span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.round {
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.all-guides-grid,
.category-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-group,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(26, 33, 29, .05);
}

.guide-group h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.guide-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-group li {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.guide-group li:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-group a {
  color: #111;
  font-weight: 900;
}

.detail-card {
  min-height: 128px;
  display: grid;
  grid-template-columns: 100px 1fr 26px;
  gap: 18px;
  align-items: center;
}

.detail-card img {
  max-height: 92px;
  object-fit: contain;
}

.detail-card strong,
.detail-card small {
  display: block;
}

.detail-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.detail-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.search-page-form {
  max-width: 760px;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.search-page-form:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(33, 134, 90, .12), var(--soft-shadow);
}

.search-page-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}

.search-page-form input::placeholder {
  color: #858b86;
  opacity: 1;
}

.search-page-form button {
  min-width: 88px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: linear-gradient(180deg, #3ea15c, #248348);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.search-page-form button:hover,
.search-page-form button:focus-visible {
  outline: 0;
  background: linear-gradient(180deg, #46ad66, #1d7440);
}

.search-results-summary {
  margin-top: 14px;
  color: var(--green-deep);
  font-size: 16px;
  font-weight: 900;
}

.search-result-card em {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--panel);
  color: var(--green-deep);
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
  font-weight: 900;
}

.search-empty {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
}

.search-empty h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.search-empty p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.search-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.search-suggestion-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(26, 33, 29, .05);
}

.search-suggestion-card span {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.search-suggestion-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.search-suggestion-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--green-deep);
}

.category-hero {
  padding: 34px 0 16px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 56px;
  align-items: center;
  padding: 28px 0 34px;
}

.product-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.product-image {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.product-image img {
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .14));
}

.product-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.product-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.product-panel .external-note,
.cta-panel .external-note {
  margin: 10px 0 0;
  color: #687069;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.product-panel .primary-cta,
.product-panel .secondary-cta {
  width: 100%;
}

.product-panel .secondary-cta {
  margin-top: 10px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 860px) 300px;
  gap: 46px;
  align-items: start;
  padding-bottom: 34px;
}

.article-main {
  display: grid;
  gap: 24px;
  min-width: 0;
  width: 100%;
}

.content-section {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  min-width: 0;
}

.content-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.content-section p {
  margin: 0 0 14px;
  color: #303631;
  font-size: 17px;
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f7faf3;
  font-size: 14px;
  font-weight: 900;
}

td {
  color: #3b423d;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  color: #303631;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(26, 33, 29, .04);
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: inset 0 0 0 6px #fff;
  outline: 2px solid var(--lime);
}

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

.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(26, 33, 29, .04);
}

.compare-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.compare-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf6;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 22px;
  align-items: center;
  padding: 22px;
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
}

.cta-panel p {
  margin: 0;
  color: #4f5750;
  font-size: 15px;
  font-weight: 700;
}

.cta-action {
  display: grid;
  gap: 4px;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.side-rail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.rail-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(26, 33, 29, .04);
}

.rail-box h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.rail-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--green-deep);
  font-weight: 900;
  font-size: 14px;
}

.runtime-html {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

@media (max-width: 1120px) {
  .home-hero,
  .detail-hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  .intent-grid,
  .category-grid,
  .all-guides-grid,
  .category-page-grid,
  .search-suggestion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-panel {
    max-width: 520px;
  }

  .side-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .main-nav,
  .page-shell {
    width: min(100% - 28px, 1280px);
  }

  .topbar {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
    padding: 16px 0;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .main-nav {
    min-height: 48px;
    justify-content: flex-start;
    gap: 28px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .announce {
    min-height: 56px;
    padding: 8px 16px;
    font-size: 15px;
    line-height: 1.32;
  }

  .home-hero,
  .detail-hero {
    gap: 24px;
    padding-top: 28px;
  }

  .hero-copy h1,
  .category-hero h1,
  .detail-hero h1 {
    font-size: 38px;
  }

  .lead,
  .category-hero p {
    font-size: 20px;
  }

  .trust-row,
  .quick-facts,
  .guide-grid,
  .intent-grid,
  .category-grid,
  .all-guides-grid,
  .category-page-grid,
  .search-suggestion-grid,
  .checklist,
  .comparison-grid,
  .cta-panel,
  .side-rail {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
    grid-template-columns: 136px 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 18px;
    padding: 16px;
  }

  .guide-card .image {
    grid-row: 1 / 5;
    height: 132px;
  }

  .guide-card h2 {
    margin-top: 0;
  }

  .intent-card {
    grid-template-columns: 58px 1fr 20px;
  }

  .intent-icon svg {
    width: 48px;
    height: 48px;
  }

  .category {
    min-height: 108px;
    grid-template-columns: 86px 1fr 26px;
  }

  .product-image {
    height: 180px;
  }

  .product-image img {
    max-height: 180px;
  }

  .content-layout {
    gap: 28px;
  }

  .section-title {
    font-size: 23px;
  }

  .detail-card {
    grid-template-columns: 84px 1fr 20px;
  }

}

@media (max-width: 430px) {
  .brand {
    font-size: 34px;
  }

  .hero-copy h1,
  .category-hero h1,
  .detail-hero h1 {
    font-size: 34px;
  }

  .guide-card {
    grid-template-columns: 112px 1fr;
    column-gap: 14px;
  }

  .guide-card .image {
    height: 124px;
  }

  .guide-card h2 {
    font-size: 18px;
  }
}
