/* 聰明投 API 3.0 入口。深色只用在 hero 與 footer；其餘暖白、品牌紅只給主要動作。 */
:root {
  --brand: #A31621; --brand-deep: #7C1019; --brand-tint: #F7ECEA;
  --ink: #201B1A; --muted: #77706C; --line: #E8E2DE; --paper: #FAF9F7; --surface: #FFFFFF;
  --velvet: #241114; --velvet-2: #160C0E; --velvet-line: rgba(255,244,240,.13); --velvet-muted: #B3A09B;
  --gold: #C89B3C; --gold-bright: #E2B95A;
  --warn: #A8720F; --warn-bg: #F9F1E0; --ok: #2E7D57;
  --radius: 14px; --shadow: 0 1px 2px rgba(32,27,26,.05), 0 6px 24px rgba(32,27,26,.06);
  --ease: cubic-bezier(.2,.7,.3,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p, ul { margin: 0; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.hero { background: linear-gradient(160deg, var(--velvet), var(--velvet-2)); color: #F6EEEA; padding: 48px 0 40px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--velvet-muted); font-size: 13px; letter-spacing: .08em; }
.diamond { width: 9px; height: 9px; background: var(--gold-bright); transform: rotate(45deg); display: inline-block; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.15; margin-top: 10px; letter-spacing: .01em; }
.gold { color: var(--gold-bright); }
.lead { margin-top: 10px; color: #E6DAD5; font-size: 16.5px; max-width: 34em; }
.keybar { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kstate { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--velvet-line); color: var(--velvet-muted); white-space: nowrap; }
.kstate.ok { color: #7FD6A4; border-color: rgba(127,214,164,.4); }
.kinput { display: flex; flex: 1 1 260px; min-width: 0; max-width: 460px; gap: 8px; }
.kinput input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--velvet-line); background: rgba(255,255,255,.06); color: #fff; }
.kinput input::placeholder { color: var(--velvet-muted); }
.kinput button, .kclear { min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--velvet-line); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; white-space: nowrap; }
.knote { margin-top: 8px; font-size: 12.5px; color: var(--velvet-muted); }
input:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

main section { margin-top: 36px; }
.studio { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: -22px; position: relative; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-tint); border-radius: 999px; padding: 2px 12px; }
.studio h2 { font-size: 26px; margin-top: 8px; }
.studio-text > p { color: var(--muted); margin-top: 6px; }
.studio-text ul { margin-top: 10px; padding-left: 20px; font-size: 14.5px; }
.cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; min-height: 48px; padding: 10px 26px; border-radius: 12px; color: #fff; font-weight: 700; text-decoration: none; background: linear-gradient(180deg, #B01A26, var(--brand)); box-shadow: 0 8px 20px rgba(163,22,33,.26); transition: transform .16s var(--ease); }
.cta:hover { transform: translateY(-1px); }
.studio-art svg { display: block; width: 100%; max-width: 360px; margin: 0 auto; background: #F4F1EE; border-radius: 14px; }

.sec { font-size: 22px; }
.secnote { color: var(--muted); margin-top: 4px; max-width: 46em; }
.apps { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: minmax(0, 1fr); }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.thumb { display: flex; align-items: center; }
.thumb svg { display: block; width: 100%; height: auto; }
/* 縮圖欄的底色跟各自的示意圖一致，卡片比圖高時不會露白邊 */
.app:nth-child(1) .thumb { background: #1B0E11; }
.app:nth-child(2) .thumb { background: #FBF3E4; }
.app:nth-child(3) .thumb { background: #0B1420; }
.app:nth-child(4) .thumb { background: #EFEBE2; }
.app:nth-child(5) .thumb { background: #fff; border-right: 1px solid var(--line); }
.body { padding: 16px 20px 20px; min-width: 0; }
.who { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.app h3 { font-size: 20px; margin-top: 2px; }
.q { margin-top: 4px; font-size: 14.5px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.meta span { font-size: 12.5px; background: #F4F1EE; border-radius: 999px; padding: 2px 10px; color: #5B544F; white-space: nowrap; }
.app ul { margin-top: 10px; padding-left: 18px; font-size: 14px; color: #4A4340; }
.app li + li { margin-top: 3px; }
.status { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 2px 12px; }

.diff { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.diff > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.diff h4 { font-size: 20px; }
.diff p { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.diff .now { border-color: var(--brand); }
.diff .now h4 { color: var(--brand); }

.foot { margin-top: 44px; background: var(--velvet-2); color: var(--velvet-muted); font-size: 12.5px; padding: 20px 0 28px; }
.foot p + p { margin-top: 4px; }

@media (min-width: 760px) {
  .studio { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 30px; }
  .app { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
