/* 客緣管家 宣傳網站：明亮配色（白底、淺藍、品牌藍 #2563eb），以平板為主角 */
:root {
  --bg: #ffffff; --bg2: #f3f7ff; --bg3: #fff8ec; --fg: #0f172a; --muted: #475569; --line: #e2e8f0;
  --brand: #2563eb; --brand-dark: #1d4ed8; --brand-soft: #e6efff; --warm: #f59e0b; --warm-soft: #fff1d6;
  --green: #16a34a; --radius: 18px; --shadow: 0 18px 50px rgba(37, 99, 235, .14);
  --f: "Noto Sans TC", "Noto Sans SC", "Noto Sans KR", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}
:lang(zh-Hans) { --f: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
:lang(ko) { --f: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
:lang(en) { --f: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.75 var(--f); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }

/* 上方導覽 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; font-size: 18px; white-space: nowrap; }
.logo i { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 21px/36px "Microsoft JhengHei", "PingFang TC", sans-serif; text-align: center; font-style: normal; }
.logo small { font-weight: 500; color: var(--muted); font-size: 13px; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--brand); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; font-size: 14px; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; min-width: 150px; }
.lang li a { display: block; padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--fg); font-size: 15px; }
.lang li a:hover { background: var(--brand-soft); }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 22px; font-weight: 700; text-decoration: none; font-size: 16px; line-height: 1.3; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.28); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid #bcd0fb; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #0f172a; color: #fff; border-radius: 12px; padding: 9px 18px 9px 14px; text-decoration: none; min-width: 190px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; font-size: 18px; font-weight: 600; white-space: nowrap; }
.store small { font-size: 11px; font-weight: 400; opacity: .85; }
.store:hover { background: #1e293b; }

/* 首屏 */
.hero { background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%); padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.eyebrow { display: inline-block; background: var(--warm-soft); color: #92400e; font-weight: 700; font-size: 14px; border-radius: 99px; padding: 4px 14px; }
h1 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.22; margin: 16px 0 16px; letter-spacing: -.01em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--brand); }
h1 .nb { white-space: nowrap; }
.lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 34em; }
.free { color: var(--green); font-weight: 700; font-size: 15px; margin: 0; }

/* 平板外框（淺銀色） */
.tablet { background: linear-gradient(145deg, #f8fafc, #dfe6ef); border-radius: 30px; padding: 16px; box-shadow: var(--shadow), inset 0 0 0 1px #cbd5e1; }
.tablet img { border-radius: 16px; border: 1px solid #d5dde8; }
.tablet.portrait { border-radius: 34px; padding: 18px 14px; }
.phone { background: linear-gradient(145deg, #f8fafc, #dfe6ef); border-radius: 34px; padding: 12px; box-shadow: var(--shadow), inset 0 0 0 1px #cbd5e1; max-width: 300px; }
.phone img { border-radius: 24px; border: 1px solid #d5dde8; }

/* 區塊 */
section { padding: 84px 0; }
section.alt { background: var(--bg2); }
section.warm { background: var(--bg3); }
.head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.head small { color: var(--brand); font-weight: 700; letter-spacing: .12em; font-size: 13px; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; margin: 8px 0 12px; text-wrap: balance; }
.head p { color: var(--muted); margin: 0; }
h3 { font-size: 20px; margin: 0 0 6px; line-height: 1.4; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.flip > :first-child { order: 2; }
.points { list-style: none; padding: 0; margin: 18px 0 0; }
.points li { position: relative; padding-left: 34px; margin: 12px 0; color: var(--muted); }
.points li b { color: var(--fg); }
.points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%232563eb'/%3E%3C/svg%3E") center/16px no-repeat; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.warm .card .ic { background: var(--warm-soft); }

.duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 28px; align-items: end; }
.cap { text-align: center; color: var(--muted); font-size: 15px; margin-top: 12px; }

/* 價格 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.plan.hot { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .n { font-weight: 700; font-size: 19px; }
.plan .p { font-size: 32px; font-weight: 800; color: var(--brand); margin: 6px 0 2px; }
.plan .p small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.trial { background: #fff; border: 2px dashed #9dbaf6; border-radius: var(--radius); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.trial b { font-size: 20px; }
.trial p { margin: 0; color: var(--muted); }
.fine { color: var(--muted); font-size: 14.5px; text-align: center; margin: 18px auto 0; max-width: 760px; }

/* 常見問題 */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta { text-align: center; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-radius: 28px; padding: 56px 24px; }
.cta h2 { color: #fff; }
.cta p { opacity: .92; margin: 0; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: #0f172a; }
.cta .store:hover { background: #f1f5f9; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
footer a { color: var(--muted); }

/* 使用教學 */
.guide-hero { background: linear-gradient(180deg, #eef4ff, #fff); padding: 56px 0 30px; }
.guide-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-bottom: 80px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 15px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; }
.toc a::before { content: counter(t) ". "; color: var(--brand); font-weight: 700; }
.toc a:hover { background: var(--brand-soft); color: var(--fg); }
.step { padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.step h2 { font-size: 27px; display: flex; gap: 12px; align-items: center; margin-top: 0; }
.step h2 span { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; }
.step ol, .step ul { color: var(--muted); padding-left: 1.3em; }
.step li { margin: 6px 0; }
.step li b, .step p b { color: var(--fg); }
.step p { color: var(--muted); }
.step .shot { margin: 22px 0 6px; }
.step .shot.small { max-width: 320px; }
.ui { background: var(--brand-soft); color: var(--brand-dark); border-radius: 6px; padding: 1px 7px; font-weight: 700; white-space: nowrap; }
.tip { background: var(--warm-soft); border-radius: 14px; padding: 14px 18px; color: #7c4a03; margin: 16px 0; }
.tip b { color: #7c4a03; }

@media (max-width: 900px) {
  .hero .wrap, .split, .duo, .guide { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .split.flip > :first-child { order: 0; }
  .top nav a:not(:last-child) { display: none; }
  .toc { position: static; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .logo small { display: none; }
  .store { min-width: 0; flex: 1 1 160px; }
  .tablet { padding: 9px; border-radius: 18px; }
  .tablet img { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
