:root {
  --bg: #0a0f1e;
  --bg-2: #0e1528;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(140, 196, 255, 0.24);
  --text: #eef1f7;
  --muted: #aab3c5;
  --gold: #8ec9ff;
  --gold-2: #d4ebff;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 85% 40%, #15213f 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.gold { color: var(--gold); }

/* 導覽列 */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 20px; font-weight: 900; letter-spacing: 0.12em; }
.brand__text small { font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 15px; color: #d6dbe6; transition: color .2s; }
.nav__links a:hover { color: var(--gold); }

/* 主視覺 */
.hero { position: relative; min-height: min(640px, 86vh); display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 30, 0.92) 0%, rgba(10, 15, 30, 0.55) 42%, rgba(10, 15, 30, 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 15, 30, 0) 30%),
    url("img/hero.webp") center right / cover no-repeat;
}
.hero__inner { position: relative; padding: 88px 0 110px; }
.eyebrow { margin: 0 0 18px; font-size: 13px; letter-spacing: 0.4em; color: var(--gold); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 900; letter-spacing: 0.04em; }
.lead { max-width: 500px; margin: 22px 0 34px; font-size: 17px; color: #cfd5e2; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #0a1a33; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px rgba(110, 180, 255, 0.25);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(110, 180, 255, 0.35); }

/* 區塊共用 */
.kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.35em; color: var(--gold); }
.section { padding: 88px 0; }
.section__head { text-align: center; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; }
.section__head p:last-child { margin: 10px 0 0; color: var(--muted); }
.section__head .kicker::before, .section__head .kicker::after {
  content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold); opacity: .6; vertical-align: middle; margin: 0 12px;
}

/* 關於我們 */
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 72px 0 24px; }
.about h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; margin-bottom: 18px; }
.about__text p:last-child { color: #c4cad8; margin: 0; }
.about__card {
  margin: 0; padding: 36px 32px 28px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(110, 180, 255, 0.08), rgba(255, 255, 255, 0.02) 60%);
}
.about__card img { width: 72%; margin: 0 auto 18px; }
.about__card figcaption { color: var(--gold); letter-spacing: 0.2em; font-size: 14px; }

/* 卡片 */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card, .work, .info {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card:hover, .work:hover { border-color: var(--line); transform: translateY(-3px); }
.card--media { position: relative; min-height: 300px; display: flex; align-items: stretch; }
.card--media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.card--media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10, 15, 30, 0.96) 0%, rgba(10, 15, 30, 0.75) 45%, rgba(10, 15, 30, 0) 80%);
}
.card__body { position: relative; z-index: 2; padding: 34px 32px; max-width: 62%; display: flex; flex-direction: column; justify-content: center; }
.card__body h3 { font-size: 24px; font-weight: 700; margin: 16px 0 10px; }
.card__body p { margin: 0; color: #c4cad8; font-size: 15px; }
.card__icon, .info__icon {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold);
}
.card__icon svg, .info__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.work img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.work__body { padding: 24px 26px 26px; position: relative; }
.work__body h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.work__body p { margin: 0 0 14px; color: #c4cad8; font-size: 15px; }
.tag { display: inline-block; font-size: 12px; letter-spacing: 0.15em; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); }

/* 聯絡 */
.contact { padding-bottom: 96px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.info h3 { font-size: 15px; color: var(--gold); font-weight: 500; margin-bottom: 4px; }
.info address, .info a { font-style: normal; color: var(--text); text-decoration: none; font-size: 16px; overflow-wrap: anywhere; }
.info a:hover { color: var(--gold); }

/* 頁尾 */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 30px 0; background: #080c18; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand--small img { width: 44px; }
.brand--small strong { font-size: 16px; }
.footer__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { margin: 0; color: var(--muted); font-size: 13px; }

/* 平板與手機 */
@media (max-width: 900px) {
  .nav__links { gap: 20px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__card { max-width: 420px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .card__body { max-width: 75%; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .brand__text strong { font-size: 18px; }
  .hero { min-height: 560px; }
  .hero__bg { background-position: 70% center; }
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(10, 15, 30, 0.15) 0%, rgba(10, 15, 30, 0.45) 45%, rgba(10, 15, 30, 0.9) 85%, var(--bg) 100%),
      url("img/hero.webp") 78% center / cover no-repeat;
  }
  .hero__inner { padding: 64px 0 72px; }
  .lead { font-size: 16px; }
  .section { padding: 64px 0; }
  .card--media { min-height: 0; flex-direction: column; }
  .card--media img { position: static; aspect-ratio: 16 / 9; height: auto; object-position: 80% center; }
  .card--media::before { display: none; }
  .card__body { max-width: none; padding: 22px 22px 26px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* 子頁面（隱私權政策、服務條款、客服支援、404） */
.doc { max-width: 820px; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; margin-bottom: 8px; }
.doc h2 { font-size: 20px; font-weight: 700; color: var(--gold-2); margin: 40px 0 12px; }
.doc p, .doc li { color: #c9cfdc; font-size: 16px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--gold); }
.doc strong { color: var(--text); }
.doc__meta { color: var(--muted) !important; font-size: 14px !important; margin-bottom: 32px; }
.doc__contact { list-style: none; padding: 0 !important; }
.doc__card { margin: 28px 0 8px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(110, 180, 255, 0.08), rgba(255, 255, 255, 0.02) 60%); }
.doc__card h2 { margin-top: 0; }
.doc__hint { font-size: 14px !important; color: var(--muted) !important; margin-bottom: 0; }
.doc details { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; }
.doc summary { cursor: pointer; font-weight: 500; color: var(--text); font-size: 16px; }
.doc summary::marker { color: var(--gold); }
.doc details p { margin: 12px 0 0; }
.notfound { text-align: center; padding: 60px 0; }
.notfound p { margin: 16px 0 32px; }
.doc .kicker { color: var(--gold); font-size: 12px; }
.grid2--narrow { max-width: 820px; margin-inline: auto; }
