:root {
  --orange: #e67e45;
  --orange-deep: #d46a32;
  --blue: #5d9cec;
  --blue-soft: #8bb8f0;
  --bg: #f6f8fb;
  --bg-accent: #eef4fa;
  --ink: #1a2430;
  --muted: #5b6775;
  --line: #d5dee8;
  --brand: #e67e45;
  --brand-dark: #c85a28;
  --accent: #5d9cec;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(26, 36, 48, 0.07);
  --radius: 16px;
  --max: 760px;
  --font-sans: "Noto Sans TC", "PingFang TC", "Helvetica Neue", sans-serif;
  --font-display: "Noto Serif TC", "Songti TC", Georgia, serif;
  --gradient: linear-gradient(135deg, var(--orange) 0%, var(--blue) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at 0% -5%, rgba(230, 126, 69, 0.18) 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(93, 156, 236, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-accent) 100%);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 251, 0.88);
  border-bottom: 1px solid rgba(213, 222, 232, 0.85);
}

.header-inner,
.footer-inner,
.page,
.hero {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.72rem;
  display: block;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(230, 126, 69, 0.28);
}

.brand-text {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand-dark);
  border-bottom-color: var(--orange);
}

.hero {
  padding: 2.75rem 0 1.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--orange-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

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

.meta {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 0.82rem;
}

.page {
  padding: 0 0 3.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card + .card {
  margin-top: 1rem;
}

.home-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .home-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.home-card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  color: #fff;
  filter: brightness(0.96);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--bg-accent);
  color: var(--ink);
  filter: none;
}

.toc {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

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

.section {
  padding-top: 0.5rem;
  scroll-margin-top: 5rem;
}

.section + .section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.section h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.02rem;
}

.section p,
.section li {
  color: var(--muted);
}

.section ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

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

.highlight {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--orange);
  background: linear-gradient(90deg, rgba(230, 126, 69, 0.08), rgba(93, 156, 236, 0.08));
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--orange-deep);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hero-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.15rem;
  box-shadow: 0 12px 28px rgba(230, 126, 69, 0.25);
  object-fit: cover;
}

@media (max-width: 560px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-icon {
    width: 3.75rem;
    height: 3.75rem;
  }
}
