:root {
  /* 只做淺色版：鎖定 light，表單控制項與按鈕不會跟著系統深色模式變白字 */
  color-scheme: light;
  --ink: #16202b;
  --muted: #5b6875;
  --line: #dfe4ea;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --accent: #0f6e5c;
  --accent-ink: #ffffff;
  --accent-soft: #e3f2ee;
  --warn: #b4501b;
  --radius: 12px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
/* 嵌在 Claude Artifact 等會設 data-theme 的環境時，也維持淺色 */
:root[data-theme] { color-scheme: light; }

body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-lede { color: var(--muted); margin: 0 0 28px; }
.fineprint { color: var(--muted); font-size: .85rem; margin-top: 20px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-sm { padding: 6px 14px; font-size: .9rem; }

/* 頂列 */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font-weight: 900; color: var(--ink); text-decoration: none; }
.topnav { display: flex; gap: 20px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--ink); }

/* 主張 */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.hl { color: var(--accent); }
.lede { font-size: 1.1rem; color: var(--muted); }
.price-callout { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; }
.price-callout .was { color: var(--muted); }
.price-callout .arrow { color: var(--muted); }
.price-callout .now b { font-size: 2rem; font-weight: 900; color: var(--ink); }
.credit { margin: 0 0 24px; }
.credit strong { color: var(--accent); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.launch-note { margin-top: 16px; color: var(--warn); font-weight: 500; }
.audience { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.audience li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.audience b { display: block; }
.audience span { color: var(--muted); font-size: .95rem; }

/* 範例 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { font: inherit; color: var(--ink); border: 1px solid var(--line); background: var(--bg); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.samples[hidden] { display: none; }
.placeholder { margin: 0; }
.ph-box {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, var(--bg) 10px, var(--bg) 20px);
}
.placeholder figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.placeholder figcaption b { display: block; color: var(--ink); }

/* 範例：標案案例 */
.case[hidden] { display: none; }
.case { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.case h3 { font-size: 1.3rem; margin: 8px 0 4px; }
.case h4 { margin: 36px 0 12px; font-size: 1.1rem; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; padding: 2px 12px; border-radius: 999px; }
.case-note { color: var(--muted); margin: 0; }
.case-flow { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.case-flow li { position: relative; background: var(--bg-alt); border-radius: var(--radius); padding: 16px; display: grid; }
.case-flow li + li::before { content: "→"; position: absolute; left: -12px; top: 50%; transform: translate(-50%, -50%); color: var(--muted); }
.case-flow b { font-size: 1.6rem; font-weight: 900; line-height: 1.2; }
.case-flow small { color: var(--muted); }
.case-proto { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.style-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 16 / 10; }
.style-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.style-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .95rem; }
.style-ctrl button { font: inherit; color: var(--ink); border: 1px solid var(--line); background: var(--bg); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.style-ctrl button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.case-side p { margin: 0 0 12px; }
.case-side .btn { margin-top: 4px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.case-grid figure { margin: 0; }
.case-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.case-grid.pages { grid-template-columns: repeat(2, minmax(0, 320px)); }
.case-grid figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.trace { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.trace th, .trace td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.trace th { background: var(--bg-alt); font-weight: 700; }
.trace td:first-child { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.samples .fineprint { grid-column: 1 / -1; margin: 0; }

/* 方案 */
.launch-banner { background: #fff4ec; border: 1px solid #f3cdb3; color: var(--warn); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px; font-weight: 500; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(15,110,92,.12); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 0; }
.plan-for { color: var(--muted); margin: 0 0 12px; font-size: .95rem; }
.plan-price { margin: 0; }
.plan-price s { color: var(--muted); }
.plan-price b { font-size: 1.8rem; font-weight: 900; }
.plan-price-note { margin: 0; color: var(--warn); font-size: .85rem; }
.plan-points { font-weight: 700; margin: 8px 0; }
.plan ul { padding-left: 1.2em; margin: 0 0 20px; flex: 1; }
.plan-common { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 24px 0 0; }
.plan-common li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.addon { margin-top: 12px; }

/* 流程 */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }
.lockpage { display: flex; gap: 16px; margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--accent-soft); }
.lockpage p { margin: 4px 0 0; color: var(--muted); }
.lock-icon { color: var(--accent); flex: none; }

/* 表單 */
.lead-form { display: grid; gap: 16px; background: var(--bg); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.lead-form label { display: grid; gap: 6px; font-weight: 500; }
.lead-form input:not([type=checkbox]), .lead-form textarea, .lead-form select {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: #fff;
}
.lead-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint, .form-status, .privacy { margin: 0; color: var(--muted); font-size: .9rem; }
.form-status:empty { display: none; }

/* 條款 */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.terms > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.terms p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }

.footer { padding: 32px 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

/* 平板 */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .plans, .samples { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .case-proto { grid-template-columns: 1fr; }
  .case-flow { grid-template-columns: repeat(2, 1fr); }
  .case-flow li:nth-child(3)::before { content: none; }
}
/* 手機 */
@media (max-width: 600px) {
  .topnav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .lead-form { padding: 20px; }
  .case { padding: 0; border: none; }
  .case-flow b { font-size: 1.3rem; }
  .case-grid, .case-grid.pages { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
}
