/* 強哥油漆官網：米色紙底、粗墨線貼紙卡、印章紅、油漆黃。手機優先。 */
@font-face { font-family: 'KG Display'; src: url('/fonts/kg-display.woff') format('woff'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'KG Hand'; src: url('/fonts/kg-hand.woff') format('woff'); font-weight: 100 900; font-display: swap; }
:root {
  --paper: #FCF1DE; --paper2: #F5E4C4; --ink: #2B2420; --text: #51453D; --ink2: #85766B; --teal: #23695F; --yellow: #F2B630; --yellowL: #F8D879; --red: #C8402F; --mint: #55A99B; --white: #FFFDF7;
  --line: 2.5px solid var(--ink); --shadow: 5px 5px 0 var(--ink); --r: 18px;
  --body: -apple-system, 'PingFang HK', 'Noto Sans HK', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --dsp: 'KG Display', 'PingFang HK', 'Noto Sans HK', 'Microsoft JhengHei', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 17px/1.85 var(--body); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
q { quotes: none; }
h1, h2, h3, .dsp { font-family: var(--dsp); font-weight: 700; font-synthesis: none; line-height: 1.32; letter-spacing: .03em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.1rem, 8.6vw, 4.2rem); }
h1 span { display: block; }
h2 { font-size: clamp(1.55rem, 5.4vw, 2.3rem); margin-bottom: .55em; }
h3 { font-size: 1.2rem; color: var(--teal); }
p { margin: 0 0 1.1em; }
mark { background: linear-gradient(transparent 56%, var(--yellowL) 56%); color: var(--ink); font-weight: 700; padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.red { color: var(--red); font-weight: 700; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.hand { font-family: 'KG Hand', var(--body); font-size: 1.25rem; line-height: 1.5; color: var(--red); }
.wrap { width: min(1120px, 100% - 36px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 36px); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--white); padding: 8px 12px; }
.ribbon { margin: 0; padding: 6px 12px; text-align: center; font: .8rem var(--mono); background: var(--ink); color: var(--yellowL); }
.hl { color: var(--red); }
.lead { font-size: 1.1rem; color: var(--text); max-width: 40em; }
.fine { font-size: .84rem; color: var(--ink2); line-height: 1.7; margin-top: 1.2em; }
.kicker { color: var(--red); margin-bottom: .3em; }
.kicker::before { content: '▶ '; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin: 1.7em 0 1.2em; }
.link { font-weight: 700; color: var(--teal); text-decoration: underline; text-decoration-thickness: 2.5px; text-decoration-color: var(--yellow); text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* 卡同掣 */
.card { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; }
.card.big { padding: clamp(28px, 5.5vw, 48px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px; border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); background: var(--yellow); color: var(--ink); font: 700 1.08rem var(--dsp); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover, .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { background: var(--white); }
.pill { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border: var(--line); border-radius: 999px; background: var(--white); font: 700 1rem var(--dsp); color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .12s; }
.pill:hover { background: var(--yellowL); }
.pill[aria-pressed='true'] { background: var(--ink); color: var(--yellowL); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 1.2em 0; }
.num { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 8px; border-radius: 8px; background: var(--ink); color: var(--yellowL); font: 700 .95rem var(--dsp); }
.pains li:nth-child(3n+2) .num, .steps li:nth-child(3n+2) .num, .shots li:nth-child(3n+2) .num, .svc:nth-child(3n+2) .num, .story:nth-child(3n+2) .num { background: var(--red); color: #fff; }
.pains li:nth-child(3n) .num, .steps li:nth-child(3n) .num, .shots li:nth-child(3n) .num, .svc:nth-child(3n) .num, .story:nth-child(3n) .num { background: var(--teal); color: #fff; }
.tag { display: inline-block; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; font: 700 .78rem var(--dsp); background: var(--yellowL); }
blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 8px solid var(--red); background: var(--paper2); border-radius: 0 12px 12px 0; font: 700 1.15rem/1.65 var(--dsp); color: var(--ink); letter-spacing: .03em; }
blockquote p { margin: 0; }

/* 頁頂 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(252, 241, 222, .94); border-bottom: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 50%; border: 2px solid var(--ink); }
.brand span { font-size: 1.25rem; }
.nav { display: flex; gap: 2px; position: fixed; left: 0; right: 0; top: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font: 700 .98rem var(--dsp); }
.nav a[aria-current] { background: var(--ink); color: var(--yellowL); }
.nav a:hover { background: var(--yellowL); color: var(--ink); }
.top .btn span { white-space: nowrap; }
@media (max-width: 759px) {
  .top .wrap { flex-wrap: wrap; padding: 8px 0 0; }
  .nav { position: static; order: 3; width: 100%; justify-content: space-between; padding: 6px 0 8px; border-top: 1.5px dashed var(--ink2); margin-top: 8px; }
  .nav a { flex: 1; text-align: center; padding: 6px 4px; }
}
@media (min-width: 760px) { .nav { position: static; margin-right: 12px; } body { padding-bottom: 0; } }

/* 手機底部固定報價掣 */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 30%); }
.sticky .btn { width: 100%; }
.js .sticky { transform: translateY(130%); transition: transform .25s; } .js .sticky.on { transform: none; }
@media (min-width: 760px) { .sticky { display: none; } }

/* 首屏 */
.hero { padding: clamp(28px, 6vw, 64px) 0 0; }
.hero-grid { display: grid; gap: 30px; }
.eyebrow { color: var(--red); margin-bottom: 1em; }
.hero h1 { font-size: clamp(1.8rem, 7.4vw, 3.4rem); }
.hero h1 .hl { text-shadow: 3px 3px 0 var(--yellow); }
.hero + .sec { margin-top: clamp(40px, 6vw, 68px); }
.sub { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--ink); margin: 1.2em 0 .8em; max-width: 26em; }
.bridge { color: var(--text); max-width: 30em; }
.slogan { transform: rotate(-2deg); margin-top: 1.2em; max-width: 19em; font-size: 1.45rem; }
.slogan span { display: block; text-align: right; font-size: 1rem; color: var(--ink2); }
.slogan span::before { content: '／ '; }
.hero-wall { position: relative; padding: 0; overflow: hidden; aspect-ratio: 3 / 2; background: #FFFDF7 repeating-linear-gradient(-32deg, transparent 0 9px, rgba(60, 40, 30, .045) 9px 11px); touch-action: pan-y; }
.hero-wall canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.wall-hint { position: absolute; left: 14px; top: 10px; margin: 0; padding: 2px 10px; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; pointer-events: none; font-size: 1.05rem; }
.wall-done { position: absolute; left: 50%; top: 42%; margin: 0; padding: 6px 18px; font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--red); border: 5px solid var(--red); border-radius: 14px; background: rgba(255, 253, 247, .8); transform: translate(-50%, -50%) rotate(-8deg); animation: stamp .35s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; }
.wall-reset { position: absolute; left: 14px; bottom: 12px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); cursor: pointer; }
.hero-qiang { position: absolute; right: -2%; bottom: -3%; width: 34%; pointer-events: none; filter: drop-shadow(3px 3px 0 rgba(43, 36, 32, .25)); }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-8deg) scale(2.2); opacity: 0; } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.02fr 1fr; align-items: center; gap: 48px; } }

/* 區塊 */
.sec { margin: clamp(48px, 9vw, 96px) auto 0; }
.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.grid + p, .pills + p, .rail + p, .stage + .pills { margin-top: 1.7em; }
/* 左右掃嘅一行（手機）；闊屏變格仔 */
.rail { display: flex; gap: 16px; list-style: none; margin: 1.2em -18px 0; padding: 6px 18px 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 78%; scroll-snap-align: center; }
@media (min-width: 760px) { .rail { display: grid; grid-template-columns: repeat(3, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; } .rail.wall-opts { grid-template-columns: repeat(5, 1fr); } }

/* 痛點翻卡 */
.flip { position: relative; display: block; width: 100%; min-height: 280px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; perspective: 900px; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); background: var(--white); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.face strong { font-size: 1.3rem; color: var(--red); line-height: 1.4; }
.face .num { align-self: flex-start; }
.say { color: var(--text); }
.say::before { content: '「'; } .say::after { content: '」'; }
.hint { margin-top: auto; align-self: flex-end; font: .78rem var(--mono); color: var(--red); }
.back { background: var(--yellowL); transform: rotateY(180deg); justify-content: center; font-size: 1.08rem; color: var(--ink); }
.back mark { background: linear-gradient(transparent 56%, #fff 56%); }
.who { font: 700 .9rem var(--dsp); color: var(--teal); letter-spacing: .05em; }
.flip[aria-pressed='true'] .front { transform: rotateY(-180deg); }
.flip[aria-pressed='true'] .back { transform: rotateY(0); }

/* 牆身問題揀圖 */
.wall-opt { padding: 0; border: var(--line); border-radius: 14px; overflow: hidden; background: var(--white); cursor: pointer; font: 700 1.05rem var(--dsp); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.rail.wall-opts > * { flex-basis: 42%; }
.wall-opt img { width: 100%; border-bottom: var(--line); }
.wall-opt span { display: block; padding: 6px; }
.wall-opt[aria-pressed='true'] { background: var(--ink); color: var(--yellowL); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.wall-panel { margin-top: 22px; background: var(--yellowL); color: var(--ink); }
.wall-panel h3 { margin-bottom: .5em; font-size: 1.35rem; color: var(--red); }
.wall-panel .row { margin-bottom: 0; }

/* 三步、三張相 */
.step h3, .shot h3 { margin: .9em 0 .45em; }
.step p, .shot p { margin: 0; color: var(--text); }
.shot img { border: 2px solid var(--ink); border-radius: 10px; margin-top: 10px; }

/* 強哥簡介 */
.about-teaser { display: grid; gap: 20px; align-items: center; background: var(--paper2); }
.avatar { width: 150px; border-radius: 50%; border: var(--line); background: var(--white); }
@media (min-width: 760px) { .about-teaser { grid-template-columns: 220px 1fr; } .avatar { width: 220px; } }

/* 一罐白油五個樣子 */
.stage { position: relative; aspect-ratio: 16 / 10; max-width: 720px; padding: 0; overflow: hidden; margin-top: 1.2em; }
.stage-wall { position: absolute; inset: 0; background: #fff repeating-linear-gradient(-32deg, transparent 0 9px, rgba(60, 40, 30, .04) 9px 11px); border-bottom: 26px solid #C9A77C; }
.stage-tin { position: absolute; left: 50%; bottom: 3%; height: 62%; width: auto; transform: translateX(-50%); }
.stage-tint { position: absolute; inset: 0; mix-blend-mode: multiply; transition: background .35s; }
.stage[data-look='lamp'] .stage-tint { background: rgba(255, 205, 110, .62); }
.stage[data-look='tube'] .stage-tint { background: rgba(170, 200, 255, .7); }
.stage[data-look='dusk'] .stage-tint { background: rgba(140, 136, 150, .72); }
.stage[data-look='pink'] .stage-wall { background: #F3C9CE repeating-linear-gradient(0deg, rgba(255, 255, 255, .62) 0 34px, rgba(255, 255, 255, .42) 34px 68px); }
.stage-res { position: absolute; left: 16px; top: 14px; margin: 0; padding: 4px 14px; font-size: clamp(1.2rem, 4.6vw, 1.9rem); background: var(--white); border: var(--line); border-radius: 12px; transform: rotate(-3deg); }
.stage-ref { position: absolute; right: 16px; top: 14px; display: grid; place-items: end center; width: 64px; height: 64px; padding-bottom: 4px; border: var(--line); border-radius: 50%; background: #fff; font-size: .62rem; }

/* 文章卡 */
.post { display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.post:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.post .tag { align-self: flex-start; }
.post { gap: 12px; }
.post h3 { color: var(--ink); line-height: 1.5; }
.post p { margin: 0; font-size: .95rem; color: var(--text); }
.more { margin-top: auto; font: 700 .9rem var(--dsp); color: var(--red); }

/* 報價區 */
.cta-box .card { position: relative; background: var(--yellowL); overflow: hidden; color: var(--ink); }
.cta-box h2 { margin-bottom: .6em; }
.cta-box .cta-text > p:first-of-type { font-size: 1.08rem; }
.cta-box mark { background: linear-gradient(transparent 56%, #fff 56%); }
.cta-box .fine { color: #7A6436; max-width: calc(100% - 110px); margin-bottom: 0; }
.cta-art { position: absolute; right: 10px; bottom: -38px; width: 112px; }
@media (min-width: 760px) { .cta-text { max-width: calc(100% - 270px); } .cta-box .fine { max-width: none; } .cta-art { right: 44px; bottom: -74px; width: 220px; } }

/* 內頁 */
.page-head { padding: clamp(24px, 5vw, 56px) 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 7vw, 3.3rem); margin-bottom: .4em; }
.page-head + .sec { margin-top: 28px; }
.crumbs { font-size: .85rem; color: var(--ink2); margin-bottom: 1.4em; }
.crumbs a { text-underline-offset: 3px; }
.svcs { display: grid; gap: 24px; margin-top: 28px; }
.svc { position: relative; display: grid; gap: 16px; scroll-margin-top: 130px; }
.svc h2 { margin-top: .7em; }
.svc p { margin-bottom: .9em; }
.svc li { margin-bottom: .35em; }
.svc ul { padding-left: 1.2em; margin: 0; }
.svc-art { position: absolute; right: 16px; top: 14px; width: 84px; max-height: 96px; object-fit: contain; border-radius: 8px; }
.svc h2 { padding-right: 96px; }
@media (min-width: 760px) { .svc { grid-template-columns: 1fr 220px; align-items: center; } .svc-art { position: static; width: 220px; max-height: none; } .svc h2 { padding-right: 0; } }
.levels { display: grid; gap: 12px; margin: 1.4em 0; }
.levels div { display: grid; gap: 2px 12px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
@media (min-width: 760px) { .levels div { grid-template-columns: 6.2em 1fr; } }
.levels dt { color: var(--red); } .levels dd { margin: 0; }
.faq details { border: var(--line); border-radius: 14px; background: var(--white); margin-bottom: 12px; }
.faq summary { padding: 16px 20px; color: var(--ink); letter-spacing: .03em; font: 700 1.05rem var(--dsp); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '＋'; color: var(--red); } .faq details[open] summary::after { content: '－'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 20px 18px; margin: 0; }
.faq details[open] summary { color: var(--red); }

/* 強哥頁 */
.stats { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 1.4em 0 0; }
.stats li { display: flex; align-items: baseline; gap: 8px; padding: 6px 16px; border-radius: 14px; background: var(--ink); color: var(--white); font-weight: 700; }
.stats strong { font-size: 2rem; color: var(--yellow); }
.about-grid { display: grid; gap: 32px; margin-top: 24px; }
.story { margin-bottom: 44px; }
.story h2 { margin: .7em 0 .7em; font-size: clamp(1.4rem, 5vw, 2rem); }
.story p { font-size: 1.05rem; }
.facts { align-self: start; background: var(--paper2); }
.facts img { width: 180px; margin: 0 auto 14px; border-radius: 50%; }
.facts h2 { font: 700 .85rem var(--mono); border-bottom: 1.5px dashed var(--ink); padding-bottom: 8px; }
.facts dl { margin: 0; } .facts div { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1.5px dashed var(--ink2); }
.facts dt { color: var(--red); padding-top: .25em; } .facts dd { margin: 0; font-weight: 700; color: var(--ink); }
@media (min-width: 900px) { .page-about .narrow { width: min(1040px, 100% - 36px); } .about-grid { grid-template-columns: 1fr 320px; gap: 56px; } .facts { position: sticky; top: 96px; } }

/* 報價頁 */
.builder { display: grid; gap: 24px; }
.builder fieldset { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.builder legend { font: 700 1rem var(--dsp); color: var(--teal); letter-spacing: .03em; margin-bottom: 10px; }
.builder textarea { width: 100%; margin-top: 6px; padding: 14px; border: var(--line); border-radius: 14px; background: var(--paper); font: inherit; resize: vertical; }
@media (min-width: 860px) { .builder { grid-template-columns: 1fr 1fr; } }

/* 文章頁 */
.article { padding-top: clamp(20px, 4vw, 44px); }
.article h1 { font-size: clamp(1.8rem, 6.6vw, 2.9rem); margin: .4em 0 .3em; }
.meta { color: var(--ink2); }
.prose { font-size: 1.06rem; }
.prose h2 { margin: 2.2em 0 .7em; padding-left: 14px; border-left: 8px solid var(--yellow); font-size: clamp(1.35rem, 4.8vw, 1.75rem); }
.prose h3 { margin: 1.5em 0 .5em; }
.prose strong { color: var(--red); }
.prose a { font-weight: 700; color: var(--teal); text-decoration-thickness: 2.5px; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.prose ul { padding-left: 1.3em; } .prose li { margin-bottom: .55em; } .prose li::marker { color: var(--red); }
.prose > p:first-child { font-size: 1.12rem; color: var(--ink); }
.mid-cta { margin: 2.4em 0; background: var(--yellowL); } .mid-cta p { font-weight: 700; color: var(--ink); margin-bottom: 1.1em; }
.progress { position: fixed; left: 0; top: 0; z-index: 40; height: 4px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* 頁尾 */
.foot { margin-top: clamp(64px, 10vw, 120px); padding: 40px 0 28px; border-top: var(--line); background: var(--paper2); }
.foot .wrap { display: grid; gap: 18px; }
.foot-brand { font-size: 1.6rem; margin-bottom: .2em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; } .foot nav a { font-weight: 700; color: var(--teal); }
.foot p { margin: 0 0 .3em; }

/* 入場動畫（只係淡入，唔會擋內容） */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
