@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
  --bg: #0B0C0F;
  --paper: rgba(255, 255, 255, 0.045);
  --paper-strong: rgba(255, 255, 255, 0.07);
  --ink: #F2EFE9;
  --ink-soft: #A6A29A;
  --sage: #D9A441;
  --sage-deep: #F0C46D;
  --mustard: #FFD88A;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 20px;
  --shadow-card: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;          /* 沒有這行的話，fixed 定位會讓星點畫在內容「上面」，截圖會蒙上一層白霧 */
  display: block;
  pointer-events: none;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(217, 164, 65, 0.12), transparent 60%),
    radial-gradient(900px 480px at 105% 0%, rgba(240, 196, 109, 0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--sage-deep);
  letter-spacing: -0.01em;
}

a { color: var(--sage); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--mustard); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.brand:hover { color: var(--sage-deep); }

.brand .paw { font-size: 1.4rem; }
.brand-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.site-header-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active {
  background: rgba(217, 164, 65, 0.16);
  color: var(--sage-deep);
}

.site-nav { display: flex; gap: 4px; font-weight: 500; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-strong); }
.site-nav a.active {
  color: var(--sage-deep);
  background: rgba(217, 164, 65, 0.12);
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.25);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 24px 80px;
}

/* 首頁：容器放寬讓截圖有空間，但文字段落仍維持好讀的行寬 */
main.wide { max-width: 1080px; }
main.wide .hero .tagline,
main.wide .section-heading .section-sub { max-width: 960px; }
main.wide .about-section p { max-width: 760px; }
main.wide .compare-wrap { max-width: 860px; margin-inline: auto; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-card);
}

.eyebrow {
  display: inline-block;
  background: rgba(217, 164, 65, 0.10);
  color: var(--sage-deep);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.22);
}

h1 { font-size: 2.1rem; margin: 0 0 6px; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 10px; }
h2 { font-size: 1.25rem; margin: 34px 0 10px; border-top: 1px solid var(--line); padding-top: 24px; }
h2:first-of-type { border-top: none; padding-top: 0; }
.updated { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 28px; }

ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.hero {
  text-align: center;
  padding: 34px 0 48px;
}
.hero .tagline { color: var(--ink-soft); font-size: 1.1rem; max-width: 460px; margin: 10px auto 0; }
.paw-row img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  margin: 0 4px;
  vertical-align: middle;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 22px;
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}
.store-btn:hover {
  color: var(--ink);
  border-color: rgba(217, 164, 65, 0.4);
  background: rgba(217, 164, 65, 0.10);
  transform: translateY(-2px);
}
.store-btn i { font-size: 1.7rem; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.store-btn-text small { font-size: 0.64rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.store-btn-text strong { font-family: 'Inter', 'Noto Sans TC', sans-serif; font-size: 1rem; font-weight: 700; }

.hero-feature {
  position: relative;
  margin: 42px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--paper-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52), 0 0 70px rgba(217, 164, 65, 0.08);
}
.hero-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 0 40px rgba(56, 26, 6, 0.08);
}
.hero-feature img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin: 24px 0 56px;
}
.showcase-item {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
}
.showcase-item--reverse { flex-direction: row-reverse; }
.showcase-text { flex: 1; min-width: 0; }
.showcase-num {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sage);
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.10);
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.22);
  margin-bottom: 14px;
}
.showcase-text h2 { margin: 0 0 12px; border-top: none; padding-top: 0; font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.showcase-text p { color: var(--ink-soft); margin: 0; font-size: clamp(1rem, 1.15vw, 1.08rem); }
.showcase-frame {
  flex: 0 0 auto;
  /* 固定整數寬度：用 vw 會算出 382.2px 這種小數，瀏覽器得做次像素重新取樣，圖片就會糊。
     來源圖 800px，這裡內容區剛好 400px（402 減去左右各 1px 邊框），正好 2 倍 */
  width: 402px;
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
/* 圓角直接給圖片，不用 overflow: hidden —— 圓角裁切會讓瀏覽器另開合成層重新點陣化 */
.showcase-frame img { display: block; width: 100%; height: auto; border-radius: 29px; }

/* ── 長截圖：捲動時內容在手機框裡往上跑 ── */
.longshot { position: relative; height: 320vh; margin: 0 0 40px; }
.longshot-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
}
.longshot-text { flex: 1; min-width: 0; }
.longshot-text h2 { border-top: none; padding-top: 0; margin: 0 0 12px; font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.longshot-text p { color: var(--ink-soft); margin: 0; font-size: clamp(1rem, 1.15vw, 1.08rem); }
.longshot-hint {
  display: inline-block;
  margin-top: 18px !important;
  font-size: 0.85rem;
  color: var(--sage);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.10);
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.22);
}
.longshot-frame {
  flex: 0 0 auto;
  /* 同樣固定整數寬度；來源圖 760px，內容區 380px 正好 2 倍 */
  width: 382px;
  height: min(780px, 80vh);
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  background: var(--paper);
}
.longshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}
/* 進度條 */
.longshot-progress {
  width: 3px;
  align-self: stretch;
  margin: 12vh 0;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.longshot-progress span {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(var(--sage), var(--mustard));
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
/* 用 none 而非 translateY(0)：留著 transform 會讓元素持續待在 GPU 合成層，圖片與文字會被重新點陣化而變糊 */
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  /* 不做釘住捲動，改成使用者自己捲的一般容器 */
  .longshot { height: auto; }
  .longshot-inner { position: static; height: auto; padding: 40px 0; }
  .longshot-frame { overflow-y: auto; }
  .longshot-frame img { transform: none !important; }
  .longshot-progress { display: none; }
}

.section-heading { margin: 8px 0 22px; text-align: center; }
.section-heading h2 { border-top: none; padding-top: 0; margin: 10px 0 8px; font-size: 1.6rem; }
.section-heading .section-sub { color: var(--ink-soft); font-size: 1rem; max-width: 480px; margin: 0 auto; }

.feature-list {
  display: flex;
  flex-direction: column;
  margin: 0 0 40px;
  border-top: 1px solid var(--line);
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.feature-row:hover { background: rgba(255, 255, 255, 0.03); }
.feature-row .feature-copy { min-width: 0; }
.feature-row h3 { font-size: 0.98rem; margin: 0 0 3px; }
.feature-row p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

.about-section {
  padding: 40px 4px 8px;
  border-top: 1px solid var(--line);
}
.about-section h2 { border-top: none; padding-top: 0; margin-top: 0; }
.about-section p { color: var(--ink-soft); }
.about-section p + p { margin-top: 14px; }

.compare-wrap {
  overflow-x: auto;
  margin: 0 0 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 22px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-soft);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.compare-table th {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table th:nth-child(2), .compare-table th:nth-child(3),
.compare-table td:nth-child(2), .compare-table td:nth-child(3) {
  text-align: center;
  width: 130px;
}
.compare-table td:nth-child(3) { color: var(--mustard); font-weight: 700; }
.compare-table th:nth-child(3) { color: var(--mustard); }
.compare-table tbody tr { transition: background-color 0.2s ease; }
.compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.compare-table .dash { color: var(--ink-soft); opacity: 0.5; }
.compare-table .compare-note {
  display: block;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 2px;
}

.contact-box {
  background: rgba(240, 196, 109, 0.08);
  border: 1px solid rgba(240, 196, 109, 0.28);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.contact-box a { font-weight: 700; color: var(--mustard); }

.faq dt { font-weight: 700; margin-top: 20px; color: var(--ink); }
.faq dd { margin: 6px 0 0; color: var(--ink-soft); }

footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 34px 24px 56px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.footer-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}
.footer-brand { font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--sage-deep); margin: 0 0 16px; }

/* 空間不夠並排時改成上下堆疊，並讓截圖盡量撐滿寬度 */
@media (max-width: 860px) {
  .showcase-item, .showcase-item--reverse { flex-direction: column; gap: 28px; text-align: center; }
  .showcase-frame { width: min(92vw, 402px); }
  .longshot { height: 300vh; }
  .longshot-inner { flex-direction: column; gap: 20px; justify-content: center; }
  .longshot-text { flex: none; text-align: center; }
  .longshot-frame { width: min(92vw, 382px); height: 54vh; }
  .longshot-progress { display: none; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 14px; text-align: center; }
  .site-header-right { flex-direction: column; gap: 10px; }
  .site-nav { flex-wrap: wrap; justify-content: center; }
  .card { padding: 26px 22px; }
  main { padding-inline: 12px; }
  .hero-feature { margin-top: 34px; border-radius: 18px; }
  .longshot-frame { height: 52vh; }
}
