:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5d6863;
  --line: #d9ded8;
  --paper: #f7f6f1;
  --white: #ffffff;
  --forest: #1f5b43;
  --moss: #6f8460;
  --clay: #b8603b;
  --sun: #d7a743;
  --shadow: 0 18px 50px rgba(24, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, 'Noto Sans TC', 'PingFang TC', sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(24, 33, 31, 0.1);
  background: rgba(247, 246, 241, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

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

.nav-links a:hover {
  color: var(--ink);
}

.line-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(18, 26, 23, 0.2);
  color: var(--white);
}

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

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 26, 23, 0.1), rgba(18, 26, 23, 0.82));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 9vh;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 16px;
  color: #f0d7a0;
  font-weight: 700;
}

h1,
.page-title {
  margin: 0;
  max-width: 920px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy,
.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.lead.dark {
  color: var(--muted);
}

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

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.compact {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section h2,
.split h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.section p,
.split p,
.card p,
.article p,
li {
  line-height: 1.78;
}

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

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(24, 33, 31, 0.05);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.text-card {
  overflow: visible;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.card-meta {
  margin: 0 0 10px;
  color: var(--moss);
  font-size: 14px;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.filter-pill span {
  color: var(--clay);
}

.case-directory {
  padding-top: 0;
}

.case-group {
  margin-bottom: 58px;
}

.case-group:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.band {
  background: #e9ece3;
}

.checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding: 13px 14px;
  border-left: 4px solid var(--forest);
  background: rgba(255, 255, 255, 0.72);
}

.ops-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
  box-shadow: 0 10px 26px rgba(24, 33, 31, 0.05);
}

.ops-panel h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.ops-panel ol {
  margin: 0;
  padding-left: 22px;
}

.ops-panel li + li {
  margin-top: 12px;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin-bottom: 0;
}

.comparison-table,
.link-grid {
  display: grid;
  gap: 12px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.comparison-row strong {
  color: var(--forest);
}

.comparison-row span {
  font-weight: 800;
}

.comparison-row p {
  margin: 0;
}

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

.link-grid a {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.link-grid a:hover {
  border-color: var(--forest);
}

.link-grid span {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 72px 0 48px;
  background: #e9ece3;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.article {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 84px;
}

.article h2 {
  margin-top: 42px;
  font-size: 30px;
}

.article img {
  border-radius: 8px;
  margin: 28px 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
}

.floating-line {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  box-shadow: 0 14px 34px rgba(31, 91, 67, 0.32);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.footer-inner a {
  color: #f0d7a0;
}

.footer-tools {
  margin-top: 18px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 720px;
  }

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

  .hero-actions .button {
    width: min(100%, 228px);
  }

  .section-head,
  .split,
  .footer-inner {
    display: block;
  }

  .grid,
  .grid.two,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .split img {
    margin-top: 24px;
  }

  .floating-line {
    left: 16px;
    right: 16px;
  }
}
