:root {
  --navy: #0d1b2e;
  --navy-deep: #0a1424;
  --navy-soft: #16283f;
  --ink: #1d2733;
  --ink-dim: #5a6675;
  --paper: #f7f5f0;
  --card: #ffffff;
  --gold: #c8a96a;
  --gold-soft: #d9c090;
  --hairline: rgba(13, 27, 46, 0.1);
  --serif: "Playfair Display", "Noto Serif TC", Georgia, serif;
  --sans: "Inter", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 20, 36, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 169, 106, 0.18);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .28em;
  color: var(--gold);
  text-decoration: none;
}
.site-nav { margin-left: auto; display: flex; gap: 1.75rem; }
.site-nav a {
  color: #e8e6e1;
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .08em;
  transition: color .25s;
}
.site-nav a:hover { color: var(--gold-soft); }
.lang-switch {
  display: flex;
  border: 1px solid rgba(200, 169, 106, 0.5);
  border-radius: 2px;
  overflow: hidden;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: #b4bcc6;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .35rem .6rem;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.lang-switch button + button { border-left: 1px solid rgba(200, 169, 106, 0.25); }
.lang-switch button:hover { color: var(--gold-soft); }
.lang-switch button.active { background: var(--gold); color: var(--navy-deep); }
.footer-switch { display: inline-flex; }

/* ── Stock ticker tape ── */
.ticker {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 40;
  background: #0a1424; /* 實色:跑馬燈上掛 backdrop-filter 會讓手機 GPU 每幀重算 */
  border-bottom: 1px solid rgba(200, 169, 106, 0.16);
  height: 0;
  overflow: hidden;
  transition: height .45s ease;
  contain: content;
}
.ticker.on { height: 34px; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  height: 34px;
  padding-left: 1rem;
  animation: tickerScroll 80s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item { font-size: .74rem; letter-spacing: .05em; color: #dcd8cf; }
.tk-sym { color: #f3f1ec; font-weight: 600; }
.tk-price { color: #b4bcc6; margin-left: .3rem; }
.tk-chg { margin-left: .3rem; }
.tk-chg.up { color: #7fbf9b; }
.tk-chg.down { color: #d08a8a; }
.tk-sep { color: var(--gold); font-size: .4rem; opacity: .55; }
/* 跑馬燈刻意不理 prefers-reduced-motion:站主要求持續滾動,凍結反而像壞掉 */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(200, 169, 106, 0.08), transparent 65%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 70%, var(--navy-soft) 100%);
  color: #eceae5;
  padding: 6rem 1.5rem 4rem;
}
.hero-inner { animation: heroRise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-mark { color: var(--gold); font-size: 1rem; margin-bottom: 2rem; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #f3f1ec;
}
.hero-line {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: #d8d4cb;
}
.gold-rule {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 2rem auto;
  opacity: .85;
}
.hero-sub {
  max-width: 34rem;
  margin: 0 auto;
  color: #9aa3ad;
  font-size: .95rem;
  letter-spacing: .02em;
}

/* ── Sections ── */
.section { padding: 6.5rem 1.5rem; scroll-margin-top: 100px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-light { background: var(--paper); }
.section-dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dcd8cf;
}
.kicker {
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy); }
.section-dark .section-head h2 { color: #f3f1ec; }
.section-head.centered { text-align: center; margin-bottom: 3.5rem; }

.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.section-body p + p { margin-top: 1.4rem; }
.section-body p { font-size: 1.04rem; color: #38424f; max-width: 44rem; }

/* ── Partners ── */
.section-partners { border-top: 1px solid var(--hairline); }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.partner-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold);
  padding: 2.5rem 2.25rem;
  transition: box-shadow .35s, transform .35s;
}
.partner-card:hover {
  box-shadow: 0 14px 40px rgba(13, 27, 46, 0.1);
  transform: translateY(-3px);
}
.monogram {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.monogram span {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
}
.partner-card h3 { font-size: 1.45rem; color: var(--navy); }
.partner-title {
  margin: .4rem 0 1rem;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
html[lang="zh-TW"] .partner-title, html[lang="ja"] .partner-title,
html[lang="ko"] .partner-title { letter-spacing: .18em; }

/* CJK 字型對應:日/韓文以對應地區字型優先,避免漢字用中文字形渲染 */
html[lang="ja"] {
  --serif: "Playfair Display", "Noto Serif JP", Georgia, serif;
  --sans: "Inter", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}
html[lang="ko"] {
  --serif: "Playfair Display", "Noto Serif KR", Georgia, serif;
  --sans: "Inter", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
}
.partner-bio { font-size: .95rem; color: #45505d; }

/* ── Services ── */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.pillar {
  border-top: 1px solid rgba(200, 169, 106, 0.35);
  padding-top: 2rem;
}
.pillar h3 { font-size: 1.6rem; color: var(--gold-soft); margin-bottom: .9rem; }
.pillar-intro { color: #c9c4b9; margin-bottom: 1.3rem; }
.pillar ul { list-style: none; }
.pillar li {
  padding: .65rem 0 .65rem 1.4rem;
  position: relative;
  color: #b4bcc6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: .95rem;
}
.pillar li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .55rem;
  top: 1.05rem;
}
.pillar-note {
  font-size: .88rem;
  color: #8d97a3;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}

/* ── Contact ── */
.section-contact { border-top: 1px solid var(--hairline); text-align: center; }
.contact-line { color: var(--ink-dim); }
.contact-mail {
  display: inline-block;
  margin: 1.2rem 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .2rem;
  transition: color .25s, border-color .25s;
}
.contact-mail:hover { color: var(--gold); }
.contact-loc { color: var(--ink-dim); font-size: .9rem; letter-spacing: .06em; }

/* ── Footer ── */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(200, 169, 106, 0.18);
  padding: 3rem 1.5rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.footer-copy { color: #b4bcc6; font-size: .85rem; }
.footer-disclaimer {
  margin: .9rem auto 1.5rem;
  max-width: 46rem;
  color: #6b7683;
  font-size: .78rem;
}

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner { animation: none; }
  .partner-card, .partner-card:hover { transform: none; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  /* 手機:header 也改實色去模糊,固定條在捲動時才不掉幀 */
  .site-header { background: #0a1424; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ticker.on { height: 30px; }
  .ticker-track { height: 30px; gap: 1.1rem; }
  .tk-item { font-size: .68rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .partner-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 4.5rem 1.25rem; }
}
