/* 花火工作室 FireSparkle.Studio — 朝霧花火
   霧白與青灰為底，晨曦粉、暖金作點綴；宋體細線與柔和留白。
   Noto Serif TC / Cormorant Garamond，字型自託管於 /fonts/。 */

:root {
  --bg: #f6f6ef;
  --bg-deep: #e8eee7;
  --bg-band: #edf0e8;
  --surface: rgba(255, 253, 248, .76);
  --surface-solid: #fffdf8;
  --ink: #334640;
  --ink-soft: #4c5b54;
  --muted: #68746b;
  --line: #dce1d5;
  --line-strong: #c6d0c1;
  --accent: #82674d;
  --accent-soft: #f0e8d9;
  --gold: #c49a6c;
  --dawn: #d7a193;
  --mist-accent: #9bb6a7;
  --glow: linear-gradient(105deg, #a47b48 0%, #b77e70 48%, #72998b 100%);
  --glow-soft: linear-gradient(135deg, #f4e6d2 0%, #f3e3dc 45%, #dce7df 100%);
  --radius: 20px;
  --shadow-sm: 0 2px 6px rgba(55, 76, 64, .035), 0 12px 28px -22px rgba(55, 76, 64, .22);
  --shadow: 0 24px 60px -34px rgba(62, 86, 72, .25);
  --font-latin: "Cormorant Garamond Variable", "Noto Serif TC Variable", "Songti TC", serif;
  --font-display: "Noto Serif TC Variable", "Songti TC", "PMingLiU", serif;
  --font-body: "Noto Serif TC Variable", "Songti TC", "PMingLiU", serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- 語言切換：<html lang="en"> 顯示 .en，其餘顯示 .zh ---------- */
html:not([lang="en"]) .en { display: none !important; }
html[lang="en"] .zh { display: none !important; }

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 0% 5%, rgba(206, 224, 215, .48), transparent 35%),
    radial-gradient(ellipse at 100% 0%, rgba(245, 218, 202, .38), transparent 32%),
    linear-gradient(180deg, var(--bg), #fbf8f1 42%, #f1f4ed 78%, #f8f4ed);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: .025em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: .045em;  }
p { margin: 0 0 1em; }
b, strong { color: var(--ink); font-weight: 500; }
::selection { background: #e8d9c9; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--font-latin); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); line-height: 1.5;
}
.eyebrow .spark { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 15px; letter-spacing: 0; }
.arrow { display: inline-block; transition: transform .25s ease; }

/* 按鈕與文字連結 */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: 500 16px/1.2 var(--font-display); letter-spacing: .01em;
  box-shadow: 0 14px 30px -14px rgba(52, 71, 62, .3);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(52, 71, 62, .32); background: #455d50; }
.button:hover .arrow { transform: translateX(3px); }
.button-quiet { background: var(--surface-solid); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.button-quiet:hover { background: #fff; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--font-display); font-weight: 500;
  padding-bottom: 2px; background: linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 100% 1px no-repeat;
  transition: background-size .3s ease;
}
.text-link:hover { background-image: var(--glow); background-size: 100% 2px; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 241, .83); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(198, 208, 193, .65);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 40px; height: auto; filter: drop-shadow(0 6px 10px rgba(114, 143, 124, .18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-latin { font-family: var(--font-latin); font-weight: 600; font-size: 20px; letter-spacing: -.01em;  }
.brand-latin i, .studio-word i { font-style: normal; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .02em; }
.brand-cjk { font-size: 12px; letter-spacing: .32em; color: var(--muted); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 32px); font-size: 16px; }
.site-nav a { color: var(--ink-soft); position: relative; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--glow); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.lang-toggle {
  font: 600 13px/1 var(--font-latin); letter-spacing: .08em; color: var(--ink);
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; cursor: pointer; white-space: nowrap; flex: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lang-toggle:hover { border-color: var(--mist-accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- 首頁主視覺 ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 38%, rgba(238, 208, 187, .42), transparent 70%),
    radial-gradient(35% 45% at 92% 70%, rgba(203, 222, 211, .6), transparent 70%),
    radial-gradient(30% 40% at 62% 18%, rgba(244, 231, 210, .55), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 12px; right: 0; width: min(760px, 68vw); height: 100%;
  background: url("assets/brand/dawn-fireworks.svg") center top / contain no-repeat;
  opacity: .7;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.display {
  font-family: var(--font-latin); font-weight: 400; font-size: clamp(64px, 8.7vw, 118px); line-height: .93; letter-spacing: -.035em;
   margin-bottom: 22px;
}
.display em {
  font-style: italic; font-weight: 400; padding-right: .08em;
  background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-line { font-family: var(--font-display); font-weight: 400; letter-spacing: .1em; font-size: clamp(24px, 2.6vw, 32px); color: var(--ink); line-height: 1.4; margin-bottom: 14px; }
.hero-lead { font-size: 18px; max-width: 30em; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 32px 0 34px; }
.hero-note { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.hero-note b { font-family: var(--font-latin); font-size: 18px; }
.mini-icons { display: flex; }
.mini-icons img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.mini-icons img + img { margin-left: -10px; }

.hero-art { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin-left: auto; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-text { fill: var(--accent); }
.ring-latin { font-family: var(--font-latin); font-weight: 500; font-size: 15px; }
.ring-cjk { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.halo { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.hero-art .halo-a { inset: 26% 24% 22% 22%; background: radial-gradient(circle, rgba(223, 191, 144, .38), transparent 70%); }
.hero-art .halo-b { inset: 30% 18% 18% 34%; background: radial-gradient(circle, rgba(232, 191, 175, .35), transparent 70%); }
.hero-art .halo-c { inset: 18% 30% 34% 20%; background: radial-gradient(circle, rgba(169, 199, 183, .46), transparent 70%); }
.hero-mark { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); }
.hero-mark img { width: 100%; filter: drop-shadow(0 30px 34px rgba(114, 143, 124, .22)); animation: bob 7s ease-in-out infinite; }
.float-icon {
  position: absolute; width: 13%; min-width: 50px; aspect-ratio: 1; border-radius: 24%; overflow: hidden;
  border: 3px solid #fff; background: #fff; box-shadow: 0 16px 30px -14px rgba(66, 86, 74, .25);
  animation: drift 8s ease-in-out infinite; transition: transform .3s ease, box-shadow .3s ease;
}
.float-icon img { width: 100%; height: 100%; object-fit: cover; }
.float-icon:hover { box-shadow: 0 20px 36px -12px rgba(66, 86, 74, .35); animation-play-state: paused; transform: scale(1.08); }
.fi-1 { left: 3%; top: 6%; animation-delay: -1s; }
.fi-2 { right: 2%; top: 3%; animation-delay: -3s; width: 11%; }
.fi-3 { right: -2%; top: 54%; animation-delay: -5s; }
.fi-4 { left: -1%; top: 62%; animation-delay: -2s; width: 11%; }
.fi-5 { right: 13%; bottom: 1%; animation-delay: -6s; width: 11.5%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -12px; rotate: 3deg; } }

/* 字帶 */
.word-band { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.word-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; font-size: 15px; color: var(--ink-soft); flex-wrap: wrap; padding-block: 12px; }
.word-band i { font-style: normal; font-size: 11px; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.word-band .latin { font-family: var(--font-latin); font-style: italic; font-size: 17px; color: var(--accent); }

/* ---------- 區段標題 ---------- */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 36px; }
.section-heading h2, .studio-copy h2, .contact-card h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.22; }
.section-intro { max-width: 24em; color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- 作品 ---------- */
.collection { padding: clamp(72px, 10vw, 120px) 0 clamp(72px, 9vw, 110px); }
.collection-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar button {
  font: 500 15px/1 var(--font-display); color: var(--ink-soft); background: var(--surface-solid);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: all .2s ease;
}
.filter-bar button:hover { border-color: var(--mist-accent); color: var(--ink); }
.filter-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; color: var(--muted); display: flex; }
.search input {
  width: 260px; font: 400 16px/1 var(--font-body); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 18px 12px 44px; background: var(--surface-solid);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search input::placeholder { color: #798477; }
.search input:focus { outline: none; border-color: var(--mist-accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.app-count { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.app-count b { font-family: var(--font-latin); font-size: 16px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.app-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 26px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); background: rgba(255, 255, 255, .92); }
.app-card[hidden] { display: none; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.card-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 20px -12px rgba(66, 86, 74, .28); }
.card-no { font-family: var(--font-latin); font-style: italic; font-size: 15px; color: var(--muted); }
.card-category { font-size: 13px; color: var(--accent); letter-spacing: .08em; margin: 0 0 4px; }
.card-title { font-size: 23px; line-height: 1.35; margin-bottom: 8px; }
.card-main-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-desc { font-size: 15px; line-height: 1.8; color: var(--muted); flex: 1; margin-bottom: 18px; }
.card-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.app-card:hover .card-more .arrow { transform: translateX(3px); }
.card-store { position: relative; z-index: 1; color: var(--muted); }
.card-store:hover { color: var(--accent); }
.no-results { text-align: center; padding: 48px 0 8px; color: var(--muted); }

/* ---------- 工作室 ---------- */
.studio { padding: clamp(72px, 9vw, 110px) 0; background: linear-gradient(180deg, transparent, var(--bg-band) 18%, var(--bg-band) 82%, transparent); }
.studio-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.studio-visual {
  position: relative; overflow: hidden; border-radius: 36px; padding: 56px 32px 44px; text-align: center;
  background: var(--glow-soft); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow);
}
.studio-glow { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .85), transparent 55%); }
.studio-visual img { position: relative; width: min(62%, 300px); margin: 0 auto 26px; filter: drop-shadow(0 24px 30px rgba(114, 143, 124, .22)); }
.studio-word { position: relative; font-family: var(--font-latin); font-weight: 600; font-size: clamp(28px, 3vw, 38px); color: var(--ink); margin: 0 0 4px; letter-spacing: -.02em;  }
.studio-sub { position: relative; color: var(--ink-soft); font-size: 15px; letter-spacing: .06em; margin: 0; }
.studio-copy h2 { margin-bottom: 20px; }
.studio-copy > p { font-size: 17.5px; max-width: 32em; }
.principles { list-style: none; padding: 0; margin: 28px 0 32px; }
.principles li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.principles li:last-child { border-bottom: 1px solid var(--line-strong); }
.principles .index { font-family: var(--font-latin); font-style: italic; font-size: 22px; line-height: 1.3; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.principles h3 { font-size: 20px; margin-bottom: 2px; }
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms > span { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); }
.platforms b { font-family: var(--font-latin); font-size: 16px; }
.platforms small { font-size: 13px; color: var(--muted); }

/* ---------- 聯絡 ---------- */
.contact { padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 120px); }
.contact-card {
  position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border-radius: 36px; border: 1.5px solid transparent;
  background: linear-gradient(#fffdf8, #fffdf8) padding-box, var(--glow) border-box;
  box-shadow: var(--shadow);
}
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(236, 210, 185, .38), transparent 70%); pointer-events: none; }
.contact-card > * { position: relative; }
.contact-card .eyebrow { justify-content: center; }
.contact-card h2 { margin-bottom: 18px; }
.contact-card > p { max-width: 30em; margin: 0 auto 30px; }
.contact-spark { display: inline-block; font-size: 30px; line-height: 1; margin-bottom: 16px; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-tagline { margin: 18px 0 0; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.tagline-latin { font-family: var(--font-latin); font-size: 18px; color: var(--ink); }
.tagline-latin em { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--ink-soft); width: fit-content; word-break: break-all; }
.footer-col a:hover { color: var(--accent); }
.footer-title { font-family: var(--font-latin); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 4px 0 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }

/* ---------- 內頁共用 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 28px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line-strong); }
.reading-wrap { max-width: calc(840px + var(--gutter) * 2); }
.page-heading { padding: 36px 0 32px; }
.page-heading h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.2; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.section-note { margin-top: 28px; font-size: 15px; color: var(--muted); }
.section-note a, .policy-body a, .policy-note a, .faq a, .policy-source a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* App 介紹頁 */
.app-intro { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; padding: 40px 0 44px; }
.app-hero-icon-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.app-hero-icon-wrap .halo-a { inset: 6%; background: var(--glow); opacity: .5; filter: blur(34px); }
.app-hero-icon { position: relative; width: 160px; height: 160px; border-radius: 38px; border: 4px solid #fff; box-shadow: 0 26px 46px -22px rgba(66, 86, 74, .3); }
.app-intro-copy h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.22; margin-bottom: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }
.spec-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-list div { padding: 20px 24px; border-left: 1px solid var(--line); }
.spec-list div:first-child { border-left: 0; }
.spec-list dt { font-size: 13px; letter-spacing: .1em; color: var(--accent); margin-bottom: 4px; }
.spec-list dd { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.6; }
.app-support { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: 72px 0 96px; }
.app-support-copy h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.info-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 8px; }
.contact-box { background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.contact-box h2 { font-size: 26px; margin-bottom: 10px; }
.contact-box > p:not(.eyebrow) { color: var(--muted); font-size: 15.5px; }
.contact-box .button { margin-top: 6px; }
.email-link { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); word-break: break-all; }
.email-link:hover { color: var(--accent); }
.more-apps { background: var(--bg-band); padding: 72px 0 88px; border-top: 1px solid var(--line); }
.more-apps .section-heading h2 { font-size: clamp(28px, 3.4vw, 40px); }
.resource-list { display: grid; gap: 12px; }
.more-apps .resource-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; transition: all .25s ease;
}
.resource-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.resource-row:hover .arrow { transform: translateX(3px); }
.resource-row img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.row-text { flex: 1; display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.row-text strong { font-family: var(--font-display); font-size: 17px; }
.row-text small { font-size: 13px; color: var(--muted); }

/* 隱私頁 */
.policy-note { background: linear-gradient(90deg, rgba(244, 231, 210, .55), rgba(220, 231, 218, .45)); border-radius: 18px; padding: 18px 22px; font-size: 15px; margin-bottom: 36px; border: 1px solid rgba(173, 151, 117, .25); }
.policy-note p { margin: 0; }
.policy-body { font-size: 16.5px; line-height: 1.95; }
.policy-body h2 { font-size: 22px; margin: 40px 0 12px; line-height: 1.4; }
.policy-body h2:first-child { margin-top: 0; }
.policy-source { margin: 48px 0 96px; padding-top: 24px; border-top: 1px solid var(--line-strong); font-size: 15px; color: var(--muted); }
.policy-source p { margin: 0 0 6px; }
.small { font-size: 13px; }

/* 支援頁 */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.support-instructions { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.support-instructions h2 { font-size: 24px; margin-bottom: 16px; }
.support-instructions ol { counter-reset: step; list-style: none; padding: 0; margin: 0 0 18px; }
.support-instructions li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); }
.support-instructions li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-latin); font-style: italic; color: var(--accent); }
.support-instructions > p { color: var(--muted); font-size: 15px; margin: 0; }
.faq { padding: 80px 0 104px; max-width: 840px; }
.faq h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-latin); font-weight: 400; font-size: 26px; line-height: 1; color: var(--accent); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); }

/* 404 */
.not-found { text-align: center; padding: 72px var(--gutter) 120px; }
.not-found-mark { width: 150px; margin: 0 auto 24px; filter: drop-shadow(0 20px 26px rgba(114, 143, 124, .22)); }
.not-found .eyebrow { justify-content: center; }
.not-found .lead { margin: 0 auto 28px; }

/* ---------- 淡入 ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::after { top: 30%; width: 100%; height: 65%; opacity: .55; }
  .hero-art { margin: 8px auto 0; max-width: 500px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-visual { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-list div:nth-child(3) { border-left: 0; }
  .spec-list div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .app-support { grid-template-columns: 1fr; }
  .more-apps .resource-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { min-height: 64px; }
  .brand-mark { width: 34px; }
  .brand-latin { font-size: 17px; }
  .brand-cjk { font-size: 11px; letter-spacing: .24em; }
  .site-nav { gap: 14px; font-size: 15px; }
  .nav-studio { display: none; }
  .lang-toggle { padding: 8px 11px; }
  .hero-lead { font-size: 16.5px; }
  .hero-lead br, .section-intro br { display: none; }
  .eyebrow { letter-spacing: .14em; font-size: 12px; }
  .app-card { padding: 22px 22px 16px; }
  .card-top { margin-bottom: 14px; }
  .card-icon { width: 56px; height: 56px; border-radius: 14px; }
  .card-title { font-size: 21px; }
  .collection-tools { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .app-grid { grid-template-columns: 1fr; }
  .word-band .wrap { justify-content: center; gap: 6px 14px; font-size: 14px; }
  .word-band .latin { display: none; }
  .app-intro { grid-template-columns: 1fr; justify-items: start; padding-top: 24px; }
  .app-hero-icon-wrap { width: 150px; }
  .app-hero-icon { width: 120px; height: 120px; border-radius: 28px; }
  .support-grid { grid-template-columns: 1fr; }
  .contact-box, .support-instructions { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 48px; }
}
@media (max-width: 440px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; }
  .brand-latin { font-size: 15px; }
  .site-nav a { white-space: nowrap; }
  .site-nav { gap: 11px; font-size: 14px; }
  .lang-toggle { padding: 7px 10px; font-size: 12px; }
}
@media (max-width: 400px) {
  .brand-cjk { display: none; }
  .nav-apps { display: none; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list div { border-left: 0 !important; }
  .spec-list div + div { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
