/* takeanap.tw 頁面元件（品牌規範在 brand.css） */

/* ---------- 首頁主視覺 ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 55%, var(--cream) 100%); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -200px; top: -240px; background: var(--sun2); opacity: .10; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 32px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-text > * + * { margin-top: 22px; }
.hero h1 { margin-top: 20px; }
.hero .cta { margin-top: 32px; }
.hero .assure { margin-top: 24px; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 8px; }
}

/* 毛筆底線：只讓關鍵詞帶一點橘 */
.brush { position: relative; white-space: nowrap; }
.brush::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 6, 90 5, 130 9 S 185 14, 197 8' fill='none' stroke='%23FA7A35' stroke-opacity='.35' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
h1 .brush { isolation: isolate; }
.hero h1 { position: relative; z-index: 0; }

.hero-visual { position: relative; aspect-ratio: 560 / 520; width: 100%; max-width: 580px; justify-self: end; }
@media (max-width: 920px) { .hero-visual { justify-self: center; max-width: 460px; } }
.stage { position: absolute; inset: 0; }
.stage-fallback, .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-canvas { opacity: 0; transition: opacity .9s ease; }
.stage.ready .stage-canvas { opacity: 1; }
.stage.ready .stage-fallback { opacity: 0; transition: opacity .6s ease; }
.stage-tag { position: absolute; right: 0; top: 4%; font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--muted); text-align: right; line-height: 1.8; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.35; z-index: 2;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.fc-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--sun-soft); color: var(--sun-strong); display: grid; place-items: center; flex: none; }
.fc-ic svg { width: 19px; height: 19px; }
.fc-1 { left: 0; top: 20%; }
.fc-2 { right: 0; bottom: 10%; }
.fc-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-left: 6px; }
.fc-bars i { width: 4px; border-radius: 2px; background: var(--sun); opacity: .35; }
.fc-bars i:nth-child(1) { height: 8px; } .fc-bars i:nth-child(2) { height: 13px; } .fc-bars i:nth-child(3) { height: 11px; } .fc-bars i:nth-child(4) { height: 20px; opacity: 1; }
.float-card.reveal.in { animation: bob 6s ease-in-out infinite; }
.fc-2.reveal.in { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 520px) { .float-card { font-size: 12px; padding: 9px 12px 9px 9px; } .fc-ic { width: 30px; height: 30px; } .fc-bars { display: none; } .stage-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-card.reveal.in { animation: none; } }

/* 產業列 */
.industry { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.industry .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.industry p { font-size: 14px; font-weight: 700; color: var(--ink); }
.industry ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.industry li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
.industry svg { width: 18px; height: 18px; color: var(--sun-strong); stroke-width: 1.8; }
@media (max-width: 900px) { .industry ul { margin-left: 0; } }

/* ---------- 服務卡 ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
.svc { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-visual { position: relative; height: 196px; background: linear-gradient(160deg, var(--cream) 0%, #FBF6F1 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.svc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body > p:not(.svc-en) { color: var(--ink2); font-size: 15px; }
.svc-en { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.svc h3 { font-size: 21px; }
.svc .tags { margin: 4px 0 8px; }
.svc .link-arrow { margin-top: auto; }
@media (max-width: 960px) { .svc { display: grid; grid-template-columns: 0.9fr 1.1fr; } .svc-visual { height: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--line); } }
@media (max-width: 640px) { .svc { display: flex; } .svc-visual { min-height: 0; height: 180px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* POS 小收據 */
.mock-pos { display: flex; flex-direction: column; justify-content: center; padding: 0 22% 0 22%; gap: 7px; font-size: 12.5px; }
.mock-pos::before { content: ""; position: absolute; inset: 20px 18% 20px 18%; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-sm); }
.mock-pos > * { position: relative; }
.mp-row, .mp-total { display: flex; justify-content: space-between; color: var(--ink2); }
.mp-row b { font-family: var(--font-latin); font-weight: 600; }
.mp-total { border-top: 1px dashed var(--line-strong); padding-top: 8px; margin-top: 2px; color: var(--ink); font-weight: 700; }
.mp-total b { font-family: var(--font-latin); color: var(--sun-text); }
.mp-pay { display: flex; gap: 6px; }
.mp-pay i { flex: 1; height: 8px; border-radius: 4px; background: var(--cream-2); }
.mp-pay i.on { background: var(--sun); }

/* ERP 節點 */
.mock-erp .me-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-erp .me-lines path { stroke: var(--sun); stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 4 5; fill: none; vector-effect: non-scaling-stroke; }
.me-node { position: absolute; z-index: 1; transform: translate(-50%, -50%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); white-space: nowrap; }
.me-c { left: 50%; top: 50%; background: var(--ink); color: #fff; border-color: var(--ink); display: flex; align-items: center; gap: 6px; padding: 8px 16px; }
.me-c svg { width: 16px; height: 16px; color: var(--sun); }
.me-1 { left: 16%; top: 20%; } .me-2 { left: 84%; top: 20%; } .me-3 { left: 16%; top: 80%; } .me-4 { left: 84%; top: 80%; }

/* 程式碼 */
.mock-code { background: #1E1C1A; padding: 20px 22px; }
.mc-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.mc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4A4643; }
.mc-dots i:first-child { background: var(--sun); }
.mock-code pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.75; color: #D9D3CC; white-space: pre; overflow: hidden; }
.mock-code .k { color: #FFB37A; } .mock-code .s { color: #A9D3A0; } .mock-code .b { color: #8EC5FF; }

/* 產品條：電子名片 */
.product-strip {
  margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 28px 22px 22px;
  text-decoration: none; transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-strip:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ps-card { position: relative; width: 168px; aspect-ratio: 85.6 / 54; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #FFFFFF 0%, #FBF1E8 100%); box-shadow: 0 14px 28px -10px rgba(40, 30, 20, .28); padding: 18px 16px; transform: rotate(-4deg); border: 1px solid var(--line); }
.ps-card b { display: block; font-size: 16px; letter-spacing: .08em; position: relative; z-index: 1; }
.ps-card small { font-size: 10px; color: var(--muted); position: relative; z-index: 1; }
.ps-sun { position: absolute; right: 10%; bottom: 10%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #FFB37A, var(--sun) 72%); }
.ps-nfc { position: absolute; top: 8px; right: 10px; color: var(--ink2); }
.ps-nfc svg { width: 14px; height: 14px; }
.ps-text h3 { font-size: 20px; margin: 6px 0 4px; }
.ps-text p:last-child { color: var(--ink2); font-size: 15px; }
.ps-cta { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ps-cta svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .product-strip { grid-template-columns: 1fr; padding: 26px; } .ps-card { margin: 4px 0 6px 6px; } .ps-cta { justify-self: start; } }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* 資料自主 */
.sovereignty { overflow: hidden; }
.sovereignty::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -200px; top: -260px; background: radial-gradient(circle, rgba(250, 122, 53, .16), transparent 65%); pointer-events: none; }
.sovereignty .wrap { position: relative; }

/* 理念 */
.ph-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; gap: 40px; } }
.ph-grid h2 { margin: 12px 0 18px; }
.ph-visual { text-align: center; }
.ph-visual p { margin-top: 18px; font-size: 11.5px; letter-spacing: .24em; color: var(--muted); font-weight: 600; }
.ph-board { position: relative; aspect-ratio: 1.15; max-width: 440px; margin: 0 auto; border-radius: var(--r-xl); background: radial-gradient(circle at 50% 50%, #FFFFFF 0 22%, transparent 22.5%), repeating-radial-gradient(circle at 50% 50%, transparent 0 46px, rgba(26, 26, 26, .06) 46px 47px), var(--cream); border: 1px solid var(--line); }
.ph-chip { white-space: nowrap; position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 14px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); transform: translate(-50%, -50%); }
.ph-chip svg { width: 17px; height: 17px; color: var(--sun-strong); }
.c1 { left: 24%; top: 22%; } .c2 { left: 78%; top: 26%; } .c3 { left: 22%; top: 76%; } .c4 { left: 76%; top: 80%; }
.ph-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(250, 122, 53, .4); }
.ph-center svg { width: 30px; height: 30px; stroke-width: 2.6; }
.ph-points { list-style: none; display: grid; gap: 14px; margin: 28px 0; counter-reset: p; }
.ph-points li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.ph-points li::before { counter-increment: p; content: "0" counter(p); grid-row: span 2; font-family: var(--font-latin); font-weight: 700; font-size: 15px; color: var(--sun-text); border-top: 2px solid var(--sun); padding-top: 6px; }
.ph-points b { font-size: 17px; }
.ph-points span { color: var(--ink2); font-size: 15px; }

/* FAQ 版面 */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-layout > div:first-child { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 14px; justify-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 28px; } .faq-layout > div:first-child { position: static; } }

/* 結尾邀請 */
.closing { padding-top: 24px; }
.closing-box { position: relative; overflow: hidden; text-align: center; display: grid; justify-items: center; gap: 18px; background: linear-gradient(180deg, var(--cream) 0%, #F9E9DC 100%); border-radius: 36px; padding: 88px 24px 170px; }
.closing-box .lead { max-width: 30em; }
.closing-box .cta { justify-content: center; margin-top: 8px; }
.closing-sun { position: absolute; width: 360px; height: 360px; border-radius: 50%; left: 50%; bottom: -270px; transform: translateX(-50%); background: radial-gradient(circle at 50% 35%, #FFB37A, var(--sun) 70%); opacity: .9; }
.closing-box > *:not(.closing-sun) { position: relative; }
.closing-box .assure { justify-content: center; margin-top: 4px; }
@media (max-width: 640px) { .closing-box { padding: 64px 20px 150px; border-radius: 28px; } .closing-box .cta { flex-direction: column; width: 100%; } .closing-box .btn { width: 100%; } }

/* ---------- 內頁主視覺 ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 70%); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -180px; top: -220px; background: var(--sun2); opacity: .10; pointer-events: none; }
.page-hero .wrap { position: relative; padding-top: 48px; padding-bottom: 80px; }
.page-hero.has-visual .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .page-hero.has-visual .wrap { grid-template-columns: 1fr; } }
.page-hero-text { display: grid; gap: 20px; justify-items: start; max-width: 720px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-hero .cta { margin-top: 6px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* 左右分欄 */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split2.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split2 { grid-template-columns: 1fr; gap: 36px; } .split2.rev > :first-child { order: 0; } }
.split2 h2 { margin: 12px 0 16px; }
.split2 .checks { margin-top: 24px; }

/* 介面示意框 */
.mock { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 22px; font-size: 14px; }
.section--dark .mock { background: var(--dark-2); border-color: var(--dark-line); color: var(--on-dark); box-shadow: none; }
.mock-wrap { position: relative; padding: 28px; border-radius: 32px; background: linear-gradient(160deg, var(--cream), #FBF6F1); }
.section--cream .mock-wrap { background: linear-gradient(160deg, #FFFFFF, var(--bg)); }
.section--dark .mock-wrap { background: rgba(255, 255, 255, .03); border: 1px solid var(--dark-line); }
.mock-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.section--dark .mock-note { color: var(--on-dark-muted); }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-head b { font-size: 15px; }
.mock-head small { color: var(--muted); font-size: 12px; }
.section--dark .mock-head small { color: var(--on-dark-muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--pill); background: var(--sun-soft); color: var(--sun-text); }
.section--dark .pill { color: var(--sun); background: rgba(250, 122, 53, .16); }
.pill.ok { background: rgba(6, 140, 70, .10); color: #0B6B3A; }
.pill.mute { background: rgba(26, 26, 26, .06); color: var(--muted); }
.rows { display: grid; gap: 0; }
.rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.section--dark .rows > div { border-color: var(--dark-line); }
.rows > div:last-child { border-bottom: 0; }
.rows b, .num { font-family: var(--font-latin); font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--ink); }
.total b { font-family: var(--font-latin); font-size: 26px; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bars span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; font-size: 11px; color: var(--muted); }
.bars i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--cream-2); }
.section--dark .bars i { background: #3A3633; }
.bars span:last-child i { background: var(--sun); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpis div { background: var(--bg); border-radius: 12px; padding: 12px; }
.section--dark .kpis div { background: rgba(255, 255, 255, .04); }
.kpis small { display: block; font-size: 11.5px; color: var(--muted); }
.section--dark .kpis small { color: var(--on-dark-muted); }
.kpis b { font-family: var(--font-latin); font-size: 19px; }
.kpis em { font-style: normal; font-size: 11.5px; color: #0B6B3A; font-weight: 700; }
.section--dark .kpis em { color: #7FD8A4; }
.member { border-radius: 18px; padding: 20px; color: #fff; background: linear-gradient(135deg, #2A2724, #1A1A1A); position: relative; overflow: hidden; margin-bottom: 14px; }
.member::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FFB37A, var(--sun) 70%); opacity: .9; }
.member small { color: #CFC8C0; font-size: 12px; }
.member b { display: block; font-size: 18px; margin: 2px 0 14px; }
.member .num { font-size: 26px; }
.coupon { display: flex; justify-content: space-between; align-items: center; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.coupon small { display: block; color: var(--muted); font-size: 12px; }
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); justify-self: center; z-index: 1; }
.timeline li.done::before { background: var(--sun); border-color: var(--sun); }
.timeline li.now::before { border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 50%; height: 100%; width: 2px; background: var(--line); }
.timeline small { color: var(--muted); font-size: 12px; }

/* 流程圖（整合） */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.flow-node { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; font-weight: 700; font-size: 14px; }
.section--dark .flow-node { background: var(--dark-2); border-color: var(--dark-line); }
.flow-node svg { width: 22px; height: 22px; margin: 0 auto 6px; color: var(--sun); }
.flow-node small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.section--dark .flow-node small { color: var(--on-dark-muted); }
.flow-arrow { color: var(--sun); }
.flow-arrow svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } .flow-arrow { justify-self: center; transform: rotate(90deg); } }

/* 技術標籤雲 */
.stack { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.stack li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; font-weight: 700; }
.stack svg { width: 17px; height: 17px; color: var(--sun-strong); }

/* 整合架構圖 */
.hub { position: relative; aspect-ratio: 1.25; max-width: 520px; margin: 0 auto; }
.hub svg.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub svg.hub-lines path { stroke: var(--sun); stroke-opacity: .5; stroke-width: 1.6; stroke-dasharray: 5 6; fill: none; }
.hub-node { position: absolute; transform: translate(-50%, -50%); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hub-node svg { width: 17px; height: 17px; color: var(--sun-strong); }
.hub-core { left: 50%; top: 50%; background: var(--ink); color: #fff; border: 0; padding: 18px 20px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hub-core svg { color: var(--sun); width: 20px; height: 20px; }

/* 適合情境卡 */
.case { display: grid; gap: 12px; }
.case .checks { margin-top: 8px; }

/* 統計數字 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* 引言 */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.55; letter-spacing: .02em; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-latin); font-size: 72px; line-height: .6; color: var(--sun); margin-bottom: 18px; }
.quote p { margin-top: 22px; color: var(--ink2); }

/* Logo 解說 */
.logo-explain { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .logo-explain { grid-template-columns: 1fr; } }
.logo-big { background: var(--paper); border: 1px solid var(--line); border-radius: 32px; aspect-ratio: 1; display: grid; place-items: center; max-width: 380px; width: 100%; margin: 0 auto; color: var(--ink2); }
.logo-big svg { width: 62%; }
.meaning { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; list-style: none; }
@media (max-width: 560px) { .meaning { grid-template-columns: 1fr; } }
.meaning b { display: block; margin-bottom: 4px; }
.meaning span { color: var(--ink2); font-size: 15px; }

/* ---------- 聯絡頁 ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: grid; gap: 12px; }
.channel { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.channel:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.channel .ic { margin: 0; }
.channel b { display: block; font-size: 16px; }
.channel small { display: block; color: var(--muted); font-size: 13.5px; }
.channel.line { background: #F0FBF4; border-color: rgba(6, 199, 85, .3); }
.channel.line .ic { background: var(--line-green); color: #fff; }
.channel.line .ic svg { width: 26px; height: 26px; }
.channel .go { margin-left: auto; color: var(--muted); }
.channel .go svg { width: 18px; height: 18px; }
.why { margin-top: 12px; background: var(--cream); border-radius: var(--r-lg); padding: 24px; }
.why h3 { font-size: 16px; margin-bottom: 12px; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px 32px; box-shadow: var(--shadow); }
@media (max-width: 520px) { .form-card { padding: 28px 20px; } }
.form-card h2 { font-size: clamp(24px, 3vw, 30px); }
.form-card > p { color: var(--ink2); margin: 8px 0 24px; font-size: 15px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.field label .req { color: var(--sun-text); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun-strong); background: #fff; box-shadow: 0 0 0 4px var(--sun-soft); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field [aria-invalid="true"] { border-color: #B42318; }
.types { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.types legend { margin-bottom: 8px; }
.types label { position: relative; }
.types input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.types span { display: inline-block; padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: 14px; background: var(--paper); cursor: pointer; transition: all .2s; }
.types input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.types input:focus-visible + span { outline: 2px solid var(--sun-strong); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-foot .btn { min-width: 180px; }
.form-foot p { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 220px; }
.form-foot a { color: var(--sun-text); }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-status.ok { display: block; background: #F0FBF4; border: 1px solid rgba(6, 199, 85, .35); color: #0B5E33; }
.form-status.err { display: block; background: #FEF3F2; border: 1px solid #FDA29B; color: #912018; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- 條款頁 ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink2); }
.legal ul { padding-left: 1.3em; margin: 8px 0; display: grid; gap: 4px; }
.legal a { color: var(--sun-text); }
.legal .updated { font-size: 14px; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .wrap { display: grid; gap: 18px; justify-items: center; }
.nf-sun { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFB37A, var(--sun) 65%, var(--sun-strong)); position: relative; box-shadow: 0 20px 50px rgba(250, 122, 53, .35); }
.nf-sun::before, .nf-sun::after { content: ""; position: absolute; top: 52px; width: 22px; height: 11px; border: 4px solid #7A2E0A; border-top: 0; border-radius: 0 0 22px 22px; }
.nf-sun::before { left: 26px; } .nf-sun::after { right: 26px; }
.nf .cta { justify-content: center; }

@media (max-width: 520px) { .ph-chip { font-size: 13px; padding: 6px 11px; } .ph-chip svg { width: 15px; height: 15px; } .c2 { left: 74%; } .c4 { left: 72%; } }
