/* ============================================================
   設計系統 · Design tokens
   專業簡約風格 — 白底 + 深藍主調
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ink: #16202c;
  --ink-soft: #4a5666;
  --line: #e3e8ef;
  --brand: #1d4ed8;        /* 深藍主調 */
  --brand-dark: #1538a3;
  --brand-soft: #eaf0ff;
  --accent: #0ea5a4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 56, 0.06);
  --shadow: 0 12px 32px rgba(16, 32, 56, 0.10);
  --maxw: 1120px;
  --font: "Inter", "Noto Sans TC", system-ui, -apple-system, "PingFang HK",
    "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   按鈕 · Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn--block { width: 100%; }

/* ============================================================
   導覽 · Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.nav__logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
}
.nav__name { font-size: 1.05rem; }
.nav__name-en { color: var(--ink-soft); font-weight: 500; font-size: 0.85rem; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.nav__links a span { display: block; font-size: 0.7rem; opacity: 0.7; }
.nav__links a:hover { color: var(--brand); }
.nav__cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
}
.nav__cta:hover { background: var(--brand-dark); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--brand-soft), transparent),
    var(--bg);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.hero__title { font-size: clamp(2.1rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0.9rem 0 1.4rem;
}
.hero__lead { color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.6rem 0 2.2rem; }
.hero__stats {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.hero__stats strong { display: block; font-size: 1.7rem; color: var(--brand); }
.hero__stats span { font-size: 0.8rem; color: var(--ink-soft); }

.hero__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
}
.hero__avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 700;
}
.hero__card-name { font-weight: 700; font-size: 1.15rem; margin: 0; }
.hero__card-role { color: var(--ink-soft); font-size: 0.9rem; margin: 0.2rem 0 1.2rem; }
.hero__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: grid;
  gap: 0.55rem;
}
.hero__card-list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 1.4rem;
  position: relative;
}
.hero__card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   Sections 通用
   ============================================================ */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__eyebrow {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section__title-en { color: var(--ink-soft); font-weight: 500; font-size: 0.7em; }

/* ============================================================
   About
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about__intro p { color: var(--ink-soft); }
.about__intro strong { color: var(--ink); }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value__icon { font-size: 1.5rem; }
.value h3 { font-size: 1.05rem; margin: 0.5rem 0 0.4rem; }
.value h3 small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.75rem; }
.value p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Cards · Services
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card--feature { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.card--feature::after {
  content: "熱門 Popular";
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
}
.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.card h3 { font-size: 1.2rem; }
.card__en { color: var(--ink-soft); font-size: 0.85rem; margin: 0.2rem 0 0.9rem; }
.card > p { color: var(--ink-soft); font-size: 0.93rem; }
.card ul { padding-left: 1.1rem; margin: 0.4rem 0 1.2rem; color: var(--ink-soft); font-size: 0.9rem; }
.card ul li { margin-bottom: 0.35rem; }
.card__price {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.card__price span { color: var(--brand); font-weight: 700; }

.formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 36px;
}
.formats span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ============================================================
   Metrics + Testimonials
   ============================================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.metric {
  text-align: center;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.metric strong { display: block; font-size: 2.2rem; }
.metric span { font-size: 0.85rem; opacity: 0.9; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 0.97rem;
  color: var(--ink);
  position: relative;
}
.testimonial blockquote::before {
  content: "“";
  font-size: 2.4rem;
  color: var(--brand-soft);
  position: absolute;
  top: -1.4rem;
  left: -0.5rem;
}
.testimonial figcaption { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.testimonial figcaption span { display: block; font-weight: 400; opacity: 0.8; }

/* ============================================================
   Contact
   ============================================================ */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__info p { color: var(--ink-soft); }
.contact__en { font-style: italic; }
.contact__list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 0.8rem; }
.contact__ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  flex-shrink: 0;
}
.contact__list a:hover { color: var(--brand); }

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.contact__note { font-size: 0.8rem; color: var(--ink-soft); text-align: center; margin: 0.8rem 0 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: #c7d0db;
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.88rem;
}
.footer__top:hover { color: #fff; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   響應式 · Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { max-width: 380px; }
  .about,
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .cards,
  .testimonials,
  .metrics { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 0.4rem;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.6rem 0; }
  .nav__links a span { display: inline; margin-left: 0.4rem; }
  .nav__toggle { display: flex; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .about__values { grid-template-columns: 1fr; }
}
