:root {
  --primary: #6d4f3e;
  --primary-strong: #4f372a;
  --secondary: #9a755d;
  --accent: #d5aa76;
  --accent-soft: rgba(213, 170, 118, 0.16);
  --success: #5f7b61;
  --warning: #9f6755;
  --bg: #f6f0e8;
  --card: rgba(255, 250, 244, 0.9);
  --line: rgba(79, 55, 42, 0.10);
  --line-strong: rgba(79, 55, 42, 0.18);
  --text: #31231b;
  --subtext: #6c5a4e;
  --hero-glow: rgba(213, 170, 118, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 28px 80px rgba(71, 48, 35, 0.12);
  --shadow-card: 0 18px 42px rgba(71, 48, 35, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(109, 79, 62, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(213, 170, 118, 0.12), transparent 26%),
    linear-gradient(180deg, #f7f1ea 0%, #fbf8f3 42%, #f3ece4 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  font-family: "Manrope", "Avenir Next", "SF Pro Display", "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: 17.5px;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.inline-link {
  color: var(--primary);
  font-weight: 700;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1.5px;
}

.inline-link:hover {
  color: var(--primary-strong);
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.015em;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(79, 55, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

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

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 55, 42, 0.08);
  box-shadow: 0 12px 24px rgba(71, 48, 35, 0.06);
}

.lang-btn {
  appearance: none;
  border: 0;
  min-width: 48px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  color: var(--subtext);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 10px 20px rgba(79, 55, 42, 0.18);
}

.nav-links a {
  color: var(--subtext);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.hero,
.subpage-hero {
  position: relative;
}

.hero-panel,
.doc-card,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.hero-panel {
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border-color: rgba(16, 39, 55, 0.08);
}

.hero-panel.deluxe {
  padding: 46px 42px;
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.78fr);
  gap: 28px;
  align-items: stretch;
}

.brand-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-aside {
  display: flex;
}

.market-panel {
  position: relative;
  width: 100%;
  padding: 26px 24px 24px;
  border-radius: 24px;
  border: 1px solid rgba(213, 170, 118, 0.22);
  background: linear-gradient(180deg, rgba(74, 51, 39, 0.96) 0%, rgba(98, 70, 53, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 48px rgba(61, 41, 31, 0.26);
  color: #fbf5ee;
}

.market-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.28;
  pointer-events: none;
}

.market-panel-head,
.market-grid,
.market-note {
  position: relative;
  z-index: 1;
}

.market-panel-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(255, 232, 198, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-panel strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.35;
}

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

.market-item {
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.market-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(230, 237, 242, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-note {
  margin: 18px 0 0;
  color: rgba(230, 237, 242, 0.76);
  font-size: 0.94rem;
  line-height: 1.75;
}

.hero-panel::before,
.doc-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: -18% auto auto -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--hero-glow), transparent 70%);
  pointer-events: none;
}

.hero-panel::after,
.doc-card::after,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-panel.compact {
  padding: 34px 36px;
}

.eyebrow,
.card-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 18px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

h2 {
  margin-top: 14px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.4vw, 1.85rem);
  line-height: 1.24;
}

.hero-copy,
.card p,
.doc-card p,
.doc-card li {
  color: var(--subtext);
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.04rem;
  line-height: 1.88;
}

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

.compact-actions {
  margin-top: 20px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(109, 79, 62, 0.06);
  border: 1px solid rgba(109, 79, 62, 0.09);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--secondary));
  box-shadow: 0 16px 32px rgba(79, 55, 42, 0.24);
}

.button.secondary {
  color: var(--primary);
  background: rgba(109, 79, 62, 0.06);
  border: 1px solid rgba(109, 79, 62, 0.12);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-top: 24px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--subtext);
}

.feature-list li + li {
  margin-top: 8px;
}

.premium-card {
  background: linear-gradient(180deg, rgba(213, 170, 118, 0.10) 0%, rgba(255, 250, 244, 0.95) 100%);
}

.premium-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.premium-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(109, 79, 62, 0.07);
  border: 1px solid rgba(109, 79, 62, 0.10);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.metrics-card {
  display: grid;
  gap: 16px;
}

.metric {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 247, 250, 0.84));
  border: 1px solid rgba(16, 39, 55, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--subtext);
  font-size: 0.92rem;
}

.metric strong {
  font-size: 1.06rem;
  line-height: 1.48;
}

.links-card,
.note-card {
  min-height: 100%;
}

.legal-card-group,
.note-card {
  grid-column: 1 / -1;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.legal-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 198px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(246, 239, 231, 0.92));
  border: 1px solid rgba(79, 55, 42, 0.08);
  box-shadow: 0 16px 34px rgba(71, 48, 35, 0.07);
  color: var(--text);
}

.legal-link-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(71, 48, 35, 0.10);
}

.legal-link-title {
  display: block;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.28;
  color: var(--text);
}

.legal-link-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(184, 147, 95, 0.12));
}

.legal-link-copy {
  display: block;
  margin-top: 14px;
  color: var(--subtext);
  font-size: 0.95rem;
  line-height: 1.78;
}

.link-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.link-list li + li {
  margin-top: 10px;
}

.document {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
}

.doc-card {
  border-radius: 24px;
  padding: 32px 34px 30px;
  border-color: rgba(79, 55, 42, 0.09);
}

.doc-card h2 {
  margin-bottom: 14px;
  color: var(--primary-strong);
}

.doc-card p,
.doc-card li {
  font-size: 1rem;
  line-height: 1.92;
}

.doc-card ul {
  margin: 16px 0 0;
  padding-left: 24px;
}

.doc-card li + li {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 22px 4px 0;
  color: var(--subtext);
  font-size: 0.94rem;
}

.document .doc-card + .doc-card {
  margin-top: 2px;
}

.card,
.doc-card {
  position: relative;
}

.card > *:not(:first-child),
.doc-card > *:not(:first-child) {
  position: relative;
  z-index: 1;
}

.site-footer p {
  margin: 0;
}

.note-link-row {
  margin-top: 16px;
}

.subpage-deluxe {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 26px;
  align-items: stretch;
}

.subpage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-meta {
  margin: 14px 0 0;
  color: var(--subtext);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.subpage-aside {
  display: flex;
}

.aside-panel {
  width: 100%;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(213, 170, 118, 0.22);
  background: linear-gradient(180deg, rgba(86, 61, 46, 0.96) 0%, rgba(111, 80, 60, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 44px rgba(61, 41, 31, 0.22);
  color: #fbf5ee;
}

.aside-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(255, 236, 210, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aside-title {
  margin-top: 0;
  color: #fff6eb;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.22;
}

.aside-metrics {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.aside-metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.aside-metric span {
  display: block;
  margin-bottom: 6px;
  color: rgba(245, 233, 219, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aside-metric strong {
  font-size: 1rem;
  line-height: 1.45;
}

.aside-note {
  margin: 18px 0 0;
  color: rgba(248, 239, 230, 0.78);
  font-size: 0.94rem;
  line-height: 1.76;
}

.document-grid {
  display: grid;
  gap: 18px;
}

.doc-card-emphasis {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(247, 239, 230, 0.94));
  border-color: rgba(213, 170, 118, 0.22);
}

@media (max-width: 880px) {
  .subpage-deluxe,
  .brand-hero {
    grid-template-columns: 1fr;
  }

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

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

  .hero-panel {
    padding: 30px 24px;
  }

  .hero-panel.compact {
    padding: 28px 24px;
  }

  .hero-panel.deluxe {
    padding: 32px 24px;
  }

  .card,
  .doc-card {
    padding: 24px 20px;
  }

  .document {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.76;
  }

  .site-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.28rem;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.82;
  }

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

  .doc-card {
    padding: 26px 20px 24px;
  }

  .doc-card p,
  .doc-card li {
    font-size: 0.98rem;
    line-height: 1.84;
  }

  .nav-links {
    gap: 12px;
  }

  .button {
    width: 100%;
  }
}
