/* ALL-CHECK Counter 官網 —— 手機優先(390 為主、360 不破版、1280 桌機)
   主色:Logo 是單色黑 → 主色取黑(--ink);強調色取 App 主題藍 #1976D2(lib/main.dart seedColor) */
:root {
  --ink: #101317;
  --text: #2b3038;
  --muted: #5d6673;
  --accent: #1976d2;
  --accent-dark: #0f5aa8;
  --soft: #f3f6fa;
  --line: #e1e6ed;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 4.4vw, 1.9rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.lead { font-size: 1.08rem; color: var(--muted); }
.note { font-style: normal; color: var(--accent-dark); font-weight: 600; white-space: nowrap; }

/* ── Header ───────────────────────── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.top-in { display: flex; align-items: center; gap: 8px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 700; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand span { font-size: .95rem; letter-spacing: .02em; }
.lang { display: flex; gap: 2px; }
.lang a { text-decoration: none; color: var(--muted); font-size: .85rem; padding: 6px 7px; border-radius: 8px; }
.lang a[aria-current] { color: var(--ink); font-weight: 700; background: var(--soft); }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.nav { display: none; flex-basis: 100%; flex-direction: column; padding: 4px 0 12px; }
.nav.open { display: flex; }
.nav a { text-decoration: none; color: var(--ink); padding: 12px 4px; border-top: 1px solid var(--line); font-weight: 500; }
.nav a[aria-current] { color: var(--accent); font-weight: 700; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex; flex-direction: row; flex-basis: auto; order: 2; padding: 0; gap: 4px; }
  .lang { order: 3; margin-left: 12px; }
  .nav a { border: 0; padding: 8px 12px; border-radius: 8px; }
  .nav a:hover { background: var(--soft); }
}

/* ── Buttons ──────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.35; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 12px 32px; margin-top: 8px; }

/* ── Sections ─────────────────────── */
.sec { padding: 52px 0; }
.sec-soft { background: var(--soft); }
.page-head { padding: 44px 0 36px; background: linear-gradient(180deg, #eef4fb, #fff); }
.hero { background: linear-gradient(160deg, #eaf2fc 0%, #ffffff 60%); padding: 36px 0 44px; }
.hero-in { display: grid; gap: 28px; align-items: center; }
.hero-img img { width: min(78%, 360px); margin: 0 auto; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(16,19,23,.16); }
.split { display: grid; gap: 28px; align-items: center; }
.split-media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-in { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .hero-img img { width: 100%; max-width: 400px; }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .sec { padding: 76px 0; }
}

.photo { margin: 0; }
.photo img { border-radius: var(--radius); width: 100%; }

/* cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 8px; }
.sec-soft .card { border-color: transparent; }
.icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e3eefb; font-size: 1.4rem; margin-bottom: 12px; }
.sec-soft .icon { background: #e3eefb; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.page-product .steps, .sec .wrap > .steps { max-width: 980px; }
@media (min-width: 900px) { .page-product .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* phone screenshot */
.phone { margin: 0; text-align: center; }
.phone-frame { display: block; background: var(--ink); padding: 6px; border-radius: 24px; box-shadow: 0 12px 30px rgba(16,19,23,.18); }
.phone-frame img { border-radius: 18px; width: 100%; }
.phone figcaption { margin-top: 10px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 2px 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.shots > div { scroll-snap-align: start; }
@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; margin: 0; padding: 32px 0 8px; }
}

/* trust bar */
.trust { background: var(--ink); color: #fff; }
.trust-in { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 8px; padding-bottom: 8px; margin: 0 auto; }
.trust li { padding: 14px 8px; font-weight: 600; text-align: center; font-size: .9rem; display: grid; place-items: center; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 900px) { .trust-in { grid-template-columns: repeat(4, 1fr); } .trust li { border: 0; border-left: 1px solid rgba(255,255,255,.15); } .trust li:first-child { border-left: 0; } }

.closing { text-align: center; }
.cta-strip { padding: 40px 0; text-align: center; background: var(--soft); }

/* gallery */
.gallery { display: grid; gap: 12px; margin-top: 20px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 700px) { .gallery-3 { grid-template-columns: repeat(3, 1fr); } }

/* cases */
.case-index { padding-left: 1.2em; margin: 8px 0 0; }
.case-index li { margin: 4px 0; }
.case-n { font-weight: 800; font-size: 2.2rem; color: var(--accent); margin: 0; line-height: 1; letter-spacing: .02em; }
.case-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 28px; }
.case-media .photo img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-media .photo-main { grid-column: 1 / -1; }
.case-media .photo-main img { aspect-ratio: 16 / 10; }
.case-media .phone { grid-column: 1 / -1; width: 56%; max-width: 230px; margin: 8px auto 0; }
@media (min-width: 900px) {
  .case-media { grid-template-columns: 2fr 1fr 200px; grid-template-rows: 1fr 1fr; height: 440px; }
  .case-media .photo-main { grid-column: 1; grid-row: 1 / 3; }
  .case-media .photo img, .case-media .photo-main img { aspect-ratio: auto; height: 100%; }
  .case-media .photo { min-height: 0; }
  .case-media .phone { grid-column: 3; grid-row: 1 / 3; width: 100%; margin: 0; align-self: center; }
}
.case-body { display: grid; gap: 8px 40px; }
@media (min-width: 900px) { .case-body { grid-template-columns: 1fr 1fr; } }
.label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); margin: 6px 0 6px; }
blockquote { margin: 0 0 1em; padding: 14px 18px; border-left: 4px solid var(--accent); background: #fff; border-radius: 0 10px 10px 0; color: var(--ink); }
.sec-soft blockquote { background: #fff; }
.sec:not(.sec-soft) blockquote { background: var(--soft); }
.changes { padding-left: 1.1em; margin: 0 0 16px; }
.changes li { margin: 6px 0; }
.tags { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: .88rem; font-weight: 600; }
.tags-lg { margin-bottom: 36px; }
.tags-lg li { background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: .95rem; padding: 6px 16px; }

/* app */
.a2hs { padding-left: 1.1em; }
.a2hs li { margin: 8px 0; }
.footnotes { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.footnotes p { margin: 0 0 4px; }

/* contact */
.contact-grid { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.contact-item { background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; }
.cbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; border-radius: 14px; color: #fff; text-decoration: none; padding: 10px 14px; }
.cbtn-name { font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; }
.cbtn-val { font-size: .95rem; opacity: .95; }
.cbtn-line { background: #05a847; }
.cbtn-wa { background: #0b8a4b; }
.cbtn-mail { background: var(--accent); }
.cbtn:hover { filter: brightness(.92); }
.qr { width: 160px; margin: 14px auto 2px; border-radius: 8px; }

/* footer */
.foot { background: var(--ink); color: #c9ced6; padding: 32px 0 28px; font-size: .92rem; }
.foot a { color: #fff; text-decoration: none; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-contact a { color: #c9ced6; }
.foot-copy { margin: 10px 0 0; color: #8b93a0; }
