/* 台股攤平計算機 — 品牌識別覆蓋層（Teal 主題）。頁面版面沿用原網站結構。 */
:root {
  --ink:#eafbfd; --ink-mid:#f3feff; --ink-warm:#cff0f3;
  --cream:#0c3f47; --cream-muted:#4a6b70;
  --cinnabar:#0e7490; --cinnabar-l:#0c5f77; --gold:#0891b2;
  --line-light:rgba(12,84,96,.14); --line-dark:rgba(12,84,96,.08);
}
body { background:#eef8f9; background-image:linear-gradient(180deg,#e4f4f6 0%,#eef9fb 36%,#f5fdff 70%,#fbffff 100%); color:var(--cream); }
.site-header { background:rgba(238,248,249,.94); }
.brand { white-space:nowrap; }
.brand img,.footer-brand img { border-radius:8px; }
a,button { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible { outline:3px solid #0891b2; outline-offset:5px; }
.skip-link { position:fixed;top:8px;left:8px;transform:translateY(-180%);padding:12px 20px;background:#0c5460;color:#fff;z-index:100;border-radius:8px; }
.skip-link:focus { transform:translateY(0); }
section[id],main[id] { scroll-margin-top:84px; }
.hero-inner { padding-top:clamp(70px,12vh,112px); }
.hero-copy { max-width:800px;gap:22px; }
h1 { line-height:1.12;letter-spacing:-.045em; }
.hero-eyebrow { font-size:14px;letter-spacing:.13em; }
.hero-sub { max-width:580px; }
.hero-note { font-size:14px;color:var(--cream-muted); }
.store-link { display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border-radius:12px;background:#0c5460;color:#eafbfd;line-height:1.3;font-size:16px;font-weight:700;text-decoration:none;box-shadow:0 5px 0 rgba(8,56,64,.14);transition:transform .2s,background .2s; }
.store-link:hover { background:#0e7490;transform:translateY(-2px); }
.nav-dl.store-link { min-height:36px;padding:8px 15px;font-size:14px;box-shadow:none;white-space:nowrap; }
.store-link img { height:42px;width:auto; }
.store-link:has(img) { background:transparent;padding:0;box-shadow:none; }
.hero-badge { margin-top:2px; }
.phone-story { padding:32px 0 64px; }
.phone-story-stack { min-height:0; }
.phone-stage { position:relative;top:0;height:auto;gap:16px;pointer-events:auto; }
.phone-frame { height: min(620px,65vh);aspect-ratio:390 / 844;border:7px solid #0c3f47;border-radius:35px;background:#e4f4f6;box-shadow:0 26px 60px -20px rgba(12,84,96,.28),0 0 0 1px #3f7781;overflow:hidden; }
.phone-frame img { object-fit:cover;border-radius:0;opacity:0;transition:opacity .35s ease;pointer-events:none; }
.phone-frame img.is-active { opacity:1;z-index:2; }
.phone-caption { opacity:1;gap:8px;min-height:102px; }
.phone-caption h3 { line-height:1.2;font-size:clamp(1.4rem,3.5vw,2rem); }
.phone-caption p { font-size:16px; }
.preview-note { font-size:12px;color:#4a6b70; }
.scene-controls { display:flex;align-items:center;justify-content:center;gap:3px; }
.scene-controls button { display:grid;place-items:center;border:0;background:transparent;width:40px;height:36px;cursor:pointer;padding:0;border-radius:8px; }
.scene-controls span { width:7px;height:7px;border-radius:10px;background:#a9c4c9;transition:width .2s,background .2s; }
.scene-controls [aria-pressed="true"] span { width:26px;background:#0e7490; }
html.has-scroll-story .phone-story-stack { height:var(--phone-stack-height); }
html.has-scroll-story .phone-stage { position:sticky;top:var(--phone-sticky-top);height:var(--phone-stage-height); }
html.has-scroll-story .phone-frame { height:var(--phone-frame-height); }
.stat-item { background:rgba(12,84,96,.04); }
.stat-label { font-size:14px;text-align:center; }
.principle-card { position:relative;gap:18px; }
.principle-card h3 { line-height:1.22; }
.principle-card .tag { font-size:14px;color:#0a5162; }
/* 功能卡小圖示：Teal 漸層徽章，營造配色深淺層次 */
.card-icon { display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:17px;background:linear-gradient(150deg,#e2f3f5 0%,#c3e7ec 55%,#b2dfe6 100%);border:1px solid rgba(12,84,96,.14);color:#0b6378;box-shadow:0 10px 22px -12px rgba(12,84,96,.55),inset 0 1px 0 rgba(255,255,255,.65); }
.card-icon svg { width:30px;height:30px; }
.principle-card:nth-child(even) .card-icon { justify-self:end; }
.feature-animal { width:132px;height:132px;object-fit:contain; }
.principle-card:nth-child(even) .feature-animal { justify-self:end; }
.cta-title { text-align:center;line-height:1.3; }
.cta-support { font-size:14px; }
.cta-app-icon { width:96px;height:96px;border-radius:24px; }
.footer-copy { font-size:12px;color:#4a6b70; }
.footer-links a { font-size:14px; }
.doc-tag,.section h2 .num { background:#d7eef1;color:#0e7490;font-size:14px; }
.doc-tag { letter-spacing:.08em; }
.doc-title { line-height:1.3; }
.doc-meta { color:var(--cream-muted); }
.section { scroll-margin-top:80px; }
.section p,.section li { font-size:16px;line-height:1.85; }
.section h2 { align-items:baseline; }
.section a { text-underline-offset:3px;overflow-wrap:anywhere; }
.summary-card { background:#dff1f3;border:1px solid #b6dde2; }
.summary-card h2 { font-size:16px;margin-bottom:16px;color:#0e7490; }
.summary-item { font-size:16px; }
.toc { background:rgba(12,84,96,.04); }
.toc-title,.toc li { font-size:14px; }
.highlight-box { background:#dff1f3; }
.nav-lang { font-size:14px; }
.release-note { color:var(--cream-muted);font-size:16px;margin:0 0 22px;line-height:1.7; }
.version-card { background:rgba(255,255,255,.55); }
.badge-latest { background:#d7eecf;color:#15803d; }
.type-new { background:#d7eef1;color:#0e7490; }
.type-improve { background:#f9edbf;color:#775714; }
.type-fix { background:#fde0e0;color:#b91c1c; }
.change-item { font-size:16px;line-height:1.8; }
.version-date { font-size:14px; }
.type-badge { font-size:14px;white-space:nowrap; }
@media (max-width:1100px) {
  .nav { flex-wrap:wrap;gap:12px;padding:12px 0; }
  .nav-links { order:3;width:100%;justify-content:center;gap:20px; }
}
@media (max-width:640px) {
  .site-header { position:relative; }
  .nav { gap:10px; }
  .nav-links { display:flex;justify-content:flex-start;overflow:auto;gap:18px;white-space:nowrap;padding:4px 0 2px; }
  .nav-links a { flex-shrink:0; }
  .brand { font-size:15px; }
  .nav-back,.nav-lang { font-size:14px; }
  .nav-lang { padding:3px 8px; }
  .hero-inner { padding-top:56px; }
  h1 { font-size:clamp(2.8rem,12vw,4.8rem); }
  .hero-eyebrow { font-size:12px;letter-spacing:.09em; }
  .hero-copy { gap:18px; }
  .phone-frame { max-width:calc(100vw - 56px);height:min(62vh,600px);border-width:6px;border-radius:30px; }
  .phone-caption { width:calc(100% - 32px);min-height:112px; }
  .phone-caption p { font-size:16px;line-height:1.65; }
  .stat-item { padding:24px 18px; }
  .principles { padding:36px 0 40px; }
  .principle-card,.principle-card:nth-child(even) { width:100%; }
  .principle-card:nth-child(even) .feature-animal { justify-self:start; }
  .principle-card:nth-child(even) .card-icon { justify-self:start; }
  .principle-card:nth-child(even) .tag { flex-direction:row; }
  .card-icon { width:50px;height:50px;border-radius:15px; }
  .card-icon svg { width:27px;height:27px; }
  .principle-card p { font-size:17px; }
  .feature-animal { width:108px;height:108px; }
  .summary-card { padding:20px; }
  .footer-links { gap:16px 20px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; }
}
@media print {
  .site-header,.site-footer,.skip-link,.toc { display:none; }
  body { background:white;color:#0c3f47; }
  .page-wrap { max-width:none;padding:0; }
}
