/* Demo Studio - 靜態示範版樣式。四種外觀以 html[data-skin] 切換，不隨系統明暗模式改變。 */
:root {
  --bg: #f8f8f2;
  --ink: #263b31;
  --muted: #6c7a6c;
  --line: #dce1d3;
  --accent: #355b42;
  --accent-ink: #ffffff;
  --surface: #e8eddf;
  --panel: #eef1e6;
  --art-1: #cbd8b4;
  --art-2: #b9c7a0;
  --art-3: #e3e8d3;
  --radius: 0px;
  --radius-lg: 0px;
  --font: Arial, 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-head: var(--font);
  --head-weight: 600;
  --head-track: -1px;
  --header-border: 1px solid var(--line);
  --header-top: 0 solid transparent;
  --text-body: 1.0625rem;
  --text-caption: 0.875rem;
  --text-micro: 0.75rem;
  color-scheme: light;
}
:root[data-skin="editorial"] {
  --bg: #f5efe6;
  --ink: #302b27;
  --muted: #795a43;
  --line: #d9c9b4;
  --accent: #a65536;
  --accent-ink: #ffffff;
  --surface: #eee1d2;
  --panel: #efe5d7;
  --art-1: #d9a58a;
  --art-2: #c07b5c;
  --art-3: #ecd3bd;
  --font: Georgia, 'Noto Serif TC', 'Microsoft JhengHei', serif;
  --font-head: Georgia, 'Noto Serif TC', serif;
  --head-weight: 500;
  --head-track: -0.5px;
  --header-border: 2px solid #3e352c;
}
:root[data-skin="graphite"] {
  --bg: #303034;
  --ink: #f7f7f8;
  --muted: #bdbdc5;
  --line: #505057;
  --accent: #ffcb2f;
  --accent-ink: #303034;
  --surface: #39393f;
  --panel: #39393f;
  --art-1: #4a4a52;
  --art-2: #ffcb2f;
  --art-3: #3c3c42;
  --radius: 14px;
  --radius-lg: 26px;
  --head-weight: 700;
  --head-track: -1.2px;
  --header-top: 5px solid #ffcb2f;
  color-scheme: dark;
}
:root[data-skin="signal"] {
  --bg: #faf9f5;
  --ink: #303034;
  --muted: #66666b;
  --line: #dcdad3;
  --accent: #ffcb2f;
  --accent-ink: #303034;
  --surface: #fff1bc;
  --panel: #f0eee8;
  --art-1: #ffcb2f;
  --art-2: #303034;
  --art-3: #fff1bc;
  --radius: 4px;
  --radius-lg: 8px;
  --head-weight: 700;
  --head-track: -1.2px;
  --header-top: 5px solid #ffcb2f;
}
/* 原站沒有隨系統明暗切換的深色模式：Studio / Editorial / Signal 固定為淺色，Graphite 固定為深色。 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.75;
  overflow-x: hidden;
  padding-bottom: 88px;
}
a { color: inherit; text-decoration: none; }
a, button, input, textarea { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.3; margin-bottom: 24px; }
h2 { font-size: clamp(25px, 2.8vw, 36px); line-height: 1.4; margin-bottom: 16px; }
h3 { font-size: 1.2rem; line-height: 1.5; margin-bottom: 8px; }
p { line-height: 1.9; }

.demo-banner {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: var(--text-micro);
  letter-spacing: 1.5px;
  padding: 6px 16px;
  line-height: 1.6;
}
.wrap { padding-left: 6%; padding-right: 6%; }
.site-header {
  margin: 0 6%;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: var(--header-border);
  border-top: var(--header-top);
  position: relative;
}
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; letter-spacing: 1px; line-height: 1.2; }
.wordmark small { display: block; font-size: 8px; letter-spacing: 2px; color: var(--muted); font-weight: 400; margin-top: 5px; }
.logo-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border: 1px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center;
  font: italic 26px Georgia, serif; color: var(--accent);
}
:root[data-skin="editorial"] .logo-icon { border-radius: 0; }
:root[data-skin="graphite"] .logo-icon, :root[data-skin="signal"] .logo-icon { border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 700; font-family: var(--font); }
.nav { display: flex; align-items: center; gap: 28px; font-size: var(--text-caption); color: var(--muted); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); padding: 8px 14px; font-size: var(--text-caption); }
.lang-btn { border: 1px solid var(--line); background: transparent; border-radius: var(--radius); padding: 4px 12px; font-size: var(--text-micro); letter-spacing: 1px; color: var(--muted); }
.lang-btn:hover { color: var(--ink); border-color: var(--ink); }

main { min-height: 60vh; }
section.block { padding: 72px 6%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-micro); letter-spacing: 2px; color: var(--muted); margin-bottom: 20px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 14px 26px; font-size: var(--text-caption); font-weight: 600; letter-spacing: 1px;
}
:root[data-skin="studio"] .btn, :root[data-skin="editorial"] .btn { color: #fff; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 6% 64px; }
.hero p.lead { color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--text-micro); letter-spacing: 2px; color: var(--muted); }
.hero-art { background: var(--surface); border-radius: var(--radius-lg); position: relative; aspect-ratio: 5 / 4; overflow: hidden; border: 1px solid var(--line); }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art .tag { position: absolute; font-size: var(--text-micro); letter-spacing: 2px; color: var(--muted); }
.hero-art .tag.tr { top: 14px; right: 18px; }
.hero-art .tag.bl { bottom: 14px; left: 18px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.subtle-link { font-size: var(--text-caption); color: var(--muted); border-bottom: 1px solid var(--line); }
.subtle-link:hover { color: var(--ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 4px; transition: transform .2s; }
a.card:hover { transform: translateY(-3px); }
.card p { color: var(--muted); margin-bottom: 8px; font-size: 0.97rem; }
.card .meta { font-size: var(--text-micro); letter-spacing: 1.5px; color: var(--muted); }
.card .price { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--ink); }
.thumb { height: 120px; border-radius: var(--radius); margin-bottom: 14px; background: var(--surface); overflow: hidden; }
.thumb svg { width: 100%; height: 100%; display: block; }
.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alt .card { background: var(--bg); }
.num { font-size: var(--text-micro); letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
:root[data-skin="signal"] .num { color: var(--ink); }
.cta { margin: 0 6% 72px; padding: 56px 6%; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); text-align: center; }
.cta p { color: var(--muted); max-width: 32em; margin: 0 auto 28px; }
.page-head { padding: 64px 6% 24px; }
.page-head p { color: var(--muted); max-width: 40em; }
.story { padding: 24px 6% 40px; max-width: 860px; }
.article { padding: 24px 6% 72px; max-width: 800px; }
.article .meta { color: var(--muted); font-size: var(--text-caption); margin-bottom: 28px; }
.article p { margin-bottom: 1.4em; }
.back { display: inline-block; margin: 40px 6% 0; font-size: var(--text-caption); color: var(--muted); }
.news-list { padding: 8px 6% 72px; display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item:hover h3 { color: var(--accent); }
:root[data-skin="signal"] .news-item:hover h3, :root[data-skin="graphite"] .news-item:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.news-item .date { color: var(--muted); font-size: var(--text-caption); letter-spacing: 1px; }
.news-item p { color: var(--muted); margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 24px 6% 72px; }
form.contact { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-caption); color: var(--muted); }
.field input, .field textarea { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d0453a; }
.field .err { color: #d0453a; font-size: var(--text-micro); min-height: 1em; }
.form-ok { padding: 16px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.info-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; align-self: start; }
.info-box dt { font-size: var(--text-micro); letter-spacing: 2px; color: var(--muted); margin-top: 16px; }
.info-box dt:first-child { margin-top: 0; }
.info-box dd { margin: 4px 0 0; }
.site-footer { margin: 0 6%; padding: 36px 0 24px; border-top: var(--header-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: var(--text-caption); color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); }

.switcher {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  max-width: calc(100vw - 32px);
}
.switcher .label { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); padding: 0 10px 0 12px; white-space: nowrap; }
.switcher button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.switcher button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
:root[data-skin="studio"] .switcher button[aria-pressed="true"], :root[data-skin="editorial"] .switcher button[aria-pressed="true"] { color: #fff; }
.switcher .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .wrap, section.block, .hero, .page-head, .story, .article, .news-list, .contact-grid { padding-left: 16px; padding-right: 16px; }
  .site-header, .site-footer { margin-left: 16px; margin-right: 16px; }
  .cta { margin-left: 16px; margin-right: 16px; padding: 40px 20px; }
  .back { margin-left: 16px; }
  section.block { padding-top: 48px; padding-bottom: 48px; }
  .site-header { min-height: 84px; flex-wrap: wrap; }
  .wordmark { font-size: 18px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; order: 3; padding: 8px 0 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .switcher { bottom: 10px; overflow-x: auto; }
  .switcher .label { display: none; }
  .switcher button { padding: 8px 10px; font-size: 12px; }
  .switcher button[aria-pressed="false"] .nm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } a.card:hover { transform: none; } }
