/* Pixel Maker — site styles
   Direction: a pixel canvas (grid paper) as the base, client-coloured "rooms"
   for the work, handwritten notes on screenshots, navy canvas to close. */

:root {
  --paper: #F7F8FA;
  --paper-2: #EFF1F5;
  --white: #FFFFFF;
  --ink: #2E3550;          /* logo wordmark navy */
  --ink-2: #5A6178;        /* secondary text, 5.9:1 on paper */
  --line: #E3E6EC;
  --line-2: #CBD1DC;
  --grid: #E1E5EC;
  --grid-soft: #ECEEF3;

  --blue: #3B6FE0;         /* the only action colour */
  --blue-deep: #2B57C0;
  --teal: #1FB5A8;
  --violet: #7B4FD6;
  --red: #E85D5D;
  --ember: #F47B3B;
  --yellow: #F4B740;

  --navy: #2E3550;
  --navy-line: #3B4466;

  --f-head: "Nunito", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --f-body: "Nunito Sans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --f-hand: "Caveat", "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", cursive;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --cell: 24px;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;
}

body.lang-en {
  --f-head: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.lang-zh body, body.lang-zh { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3 { letter-spacing: 0; font-weight: 700; }
ul, ol { list-style: none; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.i { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.15em; }

/* colour helpers for pixel squares */
.c-teal { background: var(--teal); } .c-blue { background: var(--blue); } .c-violet { background: var(--violet); }
.c-red { background: var(--red); } .c-ember { background: var(--ember); } .c-yellow { background: var(--yellow); }
.sq { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 10px; vertical-align: 0.05em; flex: none; }

/* ---------- pixel icons ---------- */
.px-icon { display: inline-block; flex: none; image-rendering: pixelated; }
.head-actions { margin-top: 24px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r);
  font-family: var(--f-head); font-weight: 800; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
body.lang-zh .btn { font-weight: 700; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }

.link-strong { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-weight: 800; color: var(--blue); text-decoration: none; }
.link-strong:hover { text-decoration: underline; }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.link-quiet:hover { color: var(--ink); text-decoration: underline; }

/* ---------- language banner ---------- */
.lang-banner { position: fixed; left: 16px; bottom: 16px; z-index: 120; max-width: min(420px, calc(100vw - 32px)); background: var(--ink); color: #fff; font-size: .92rem; border-radius: 12px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.45); }
.lang-banner .wrap { padding: 0; }
.lang-banner-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 8px 8px 16px; }
.lang-banner a { color: #fff; font-weight: 700; }
.lang-banner-close { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; width: 36px; height: 36px; cursor: pointer; border-radius: 8px; }
.lang-banner-close:hover { background: rgba(255,255,255,.12); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 248, 250, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark svg { width: 46px; height: auto; }
.brand-word { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; color: var(--ink); }
.nav { display: flex; gap: 22px; margin-left: 16px; }
.nav a { text-decoration: none; font-weight: 700; color: var(--ink-2); font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: stretch; padding: 3px; gap: 2px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--white); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 34px; padding: 0 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .9rem; transition: background-color .15s ease, color .15s ease; }
.lang-switch a:hover { color: var(--ink); background: var(--paper-2); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; pointer-events: none; }

.menu-btn { display: none; width: 44px; height: 44px; border: 2px solid var(--line-2); background: transparent; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -6px; } .menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.mobile-nav a:last-child { border-bottom: 0; color: var(--blue); }

/* ---------- pixel canvas (grid paper) ---------- */
.canvas-grid { position: relative; isolation: isolate; }
.canvas-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 5vw, 72px); overflow: hidden; }
.pixel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.08; max-width: 18ch; margin-bottom: 24px; }
body.lang-zh .hero h1 { max-width: 11em; line-height: 1.22; font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36em; }
.hero .lead { margin-bottom: 36px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- page head ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 20ch; margin-bottom: 16px; }
body.lang-zh .page-head h1 { max-width: 16em; }
.crumb { margin-bottom: 14px; font-weight: 700; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a::before { content: "← "; }
.crumb a:hover { color: var(--ink); }
.price-line { margin-top: 20px; font-size: 1.1rem; }
.price-line s { color: var(--ink-2); margin-right: 8px; }
.price-line strong { font-family: var(--f-head); font-size: 1.5rem; }
.price-line span { color: var(--ink-2); }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; }
.case-meta dt { font-size: .85rem; color: var(--ink-2); }
.case-meta dd { font-weight: 700; }
.article-meta { margin-top: 18px; color: var(--ink-2); font-size: .95rem; }

.launch-flag { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; background: var(--ink); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 8px; font-size: .95rem; }
.launch-flag i { width: 10px; height: 10px; border-radius: 2px; background: var(--ember); }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding-top: clamp(32px, 4vw, 56px); }
.section--paper { background-color: rgba(46, 53, 80, .035); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head--row > div { max-width: 640px; }
.section-head--row .link-strong { flex: none; margin-bottom: 6px; }
.block-title--spaced { margin-top: 80px; }
.section-head h2, .block-title { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 12px; }
.block-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 20px; }
.section-head p { color: var(--ink-2); font-size: 1.12rem; }
.more-link { margin-top: 28px; }
.muted { color: var(--ink-2); }

/* ---------- work rooms ---------- */
.room {
  --room-pad: clamp(64px, 8vw, 96px);
  --room-bg: #1B1113; --room-ink: #F4EBDD; --room-muted: #CDBB9E; --room-line: rgba(214, 173, 86, .55); --room-link: #F1C46A;
  background: var(--room-bg); color: var(--room-ink);
  padding: var(--room-pad) 0;
  position: relative;
}
.room::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--room-line); }
.room--miew { --room-bg: #EEE7DB; --room-ink: #262522; --room-muted: #6B655A; --room-line: #BDB29C; --room-link: #1F4FC2; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rooms .room:nth-child(odd of .room) .room-grid { direction: ltr; }
.room--miew .room-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.room--miew .showcase { order: 2; }

.showcase { position: relative; padding-bottom: 40px; padding-right: 9%; }
.room--miew .showcase { padding-right: 0; padding-left: 9%; }
.frame {
  position: relative; aspect-ratio: 16 / 10; overflow-y: auto; overflow-x: hidden;
  border-radius: 14px; background: #000;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.55);
  scrollbar-width: none; overscroll-behavior: contain;
}
.room--miew .frame { border-color: rgba(0,0,0,.12); background: #fff; }
.frame::-webkit-scrollbar { display: none; }
.frame-inner { position: relative; }
.frame-inner img { width: 100%; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 390 / 800;
  border-radius: 26px; overflow: hidden; border: 6px solid #111; background: #111;
  box-shadow: 0 30px 50px -24px rgba(0,0,0,.6);
}
.room--miew .phone { right: auto; left: 0; }
.phone img { width: 100%; }
.frame-hint { position: absolute; left: 0; bottom: 6px; font-size: .85rem; color: var(--room-muted); }
.room--miew .frame-hint { left: auto; right: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

/* handwritten notes on screenshots */
.note { position: absolute; width: 0; height: 0; z-index: 2; }
.note-dot {
  position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 800 .85rem/1 "Nunito", sans-serif;
  background: #FFF6D6; color: #2E3550; border: 2px solid #2E3550;
  box-shadow: 0 0 0 4px rgba(255, 246, 214, .35);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.note-label {
  position: absolute; white-space: nowrap;
  font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.1; font-weight: 600;
  color: #2E3550; background: #FFF6D6;
  padding: 4px 12px 6px; border-radius: 4px;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.45);
  transform: rotate(-2deg);
}
body.lang-zh .note-label { font-size: 1.2rem; padding: 6px 12px; }
.note-arrow { position: absolute; width: 46px; height: 30px; color: #FFF6D6; }
.note--left-down .note-label { right: 22px; top: calc(30px + var(--drop)); }
.note--left-down .note-arrow { right: -30px; top: -26px; }
.note--right-down .note-label { left: 22px; top: calc(30px + var(--drop)); transform: rotate(2deg); }
.note--right-down .note-arrow { left: -30px; top: -26px; transform: scaleX(-1); }
.note--left-up .note-label { right: 22px; bottom: 30px; }
.note--left-up .note-arrow { right: -30px; bottom: -26px; transform: scaleY(-1); }
.note.is-active .note-dot { transform: scale(1.25); background: var(--blue); color: #fff; border-color: #fff; }
.note.is-active .note-label { outline: 2px solid var(--blue); }

.room-client { font-weight: 700; color: var(--room-muted); margin-bottom: 10px; }
.room-client span { display: block; font-weight: 600; font-size: .92rem; }
.room-text h2, .room-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 16px; color: var(--room-ink); }
.room-text > p { color: var(--room-muted); margin-bottom: 22px; }
.note-list { counter-reset: n; margin-bottom: 28px; }
.note-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--room-line); cursor: default; }
.note-list li:last-child { border-bottom: 1px solid var(--room-line); }
.note-list .num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font: 800 .8rem/1 "Nunito", sans-serif; flex: none; }
.note-list li:hover .num, .note-list li:focus-visible .num, .note-list li.is-active .num { background: var(--room-ink); color: var(--room-bg); border-color: var(--room-ink); }
.room-links { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.room .link-strong { color: var(--room-link); }
.room .link-quiet { color: var(--room-muted); }
.room .link-quiet:hover { color: var(--room-ink); }

/* ---------- services list ---------- */
.service-list { border-top: 2px solid var(--ink); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1fr) 24px;
  gap: 20px; align-items: center; padding: 24px 12px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background-color .15s ease;
}
.service-row:hover { background: var(--white); }
.service-name { font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 14px; }
.service-short { color: var(--ink-2); }
.service-time { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.service-price { text-align: right; }
.service-price s { display: block; color: var(--ink-2); font-size: .85rem; }
.service-price strong { font-family: var(--f-head); font-size: 1.2rem; }
.service-go { color: var(--blue); }

/* ---------- steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 6px; color: #fff; font: 800 1.05rem/1 "Nunito", sans-serif; background: var(--teal);
}
.steps li:nth-child(2)::before { background: var(--blue); }
.steps li:nth-child(3)::before { background: var(--violet); }
.steps li:nth-child(4)::before { background: var(--ember); }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .98rem; }

/* ---------- guides ---------- */
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card .px-icon { margin-bottom: 6px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s ease; }
.guide-card:hover { border-color: var(--ink); }
.guide-card h3 { font-size: 1.15rem; line-height: 1.35; }
.guide-card p { color: var(--ink-2); font-size: .97rem; flex: 1; }
.guide-meta { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.guide-cta { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; }
.guide-cta h2 { font-size: 1.5rem; }
.guide-cta p { color: var(--ink-2); grid-column: 1; }
.guide-cta .btn { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- about ---------- */
.about-teaser, .about { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about { align-items: start; }
.about-teaser h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 16px; }
.about-teaser p { margin-bottom: 20px; max-width: 38em; }
.portrait { position: relative; }
.portrait-placeholder, .portrait img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--white); }
.portrait-placeholder svg { width: 100%; height: 100%; }
.portrait .hand { position: absolute; right: -14px; bottom: 18px; font-family: var(--f-hand); font-size: 1.6rem; font-weight: 600; background: #FFF6D6; padding: 2px 12px 4px; border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
body.lang-zh .portrait .hand { font-size: 1.2rem; }
.about-body h2 { font-size: 1.6rem; margin: 0 0 14px; }
.about-body h2:not(:first-child) { margin-top: 40px; }
.about-body p { margin-bottom: 14px; max-width: 38em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 10px; }
.facts dt { font-size: .85rem; color: var(--ink-2); }
.facts dd { font-weight: 700; }

/* ---------- case page ---------- */
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); }
.case-body h2 { font-size: 1.5rem; margin-bottom: 14px; }
.case-body p { color: var(--ink-2); }
.stack { margin-top: 20px; font-size: .95rem; }
.want { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.want h2 { font-size: 1.8rem; margin-bottom: 10px; }
.want p { color: var(--ink-2); }
.want-price { margin-top: 14px; color: var(--ink) !important; }
.want-price s { color: var(--ink-2); margin: 0 6px; }
.next-case { display: grid; gap: 4px; padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; position: relative; }
.next-case:hover { border-color: var(--ink); }
.next-case span { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
.next-case strong { font-family: var(--f-head); font-size: 1.3rem; }
.next-case em { font-style: normal; color: var(--ink-2); padding-right: 32px; }
.next-case .i { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--blue); width: 24px; height: 24px; }

/* ---------- lists ---------- */
.tick-list li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.tick-list .i { color: var(--teal); margin-top: .3em; }
.tick-list--muted .i { color: var(--ink-2); }
.tick-list--muted { color: var(--ink-2); }
.inline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.problem-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.problem-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 10px; border-radius: 2px; background: var(--ember); }

/* ---------- service page ---------- */
.service-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.service-main h2 { font-size: 1.45rem; margin: 40px 0 14px; }
.service-main h2:first-child { margin-top: 0; }
.big { font-size: 1.15rem; }
.small-head { font-size: 1.05rem; margin: 28px 0 8px; }
.service-side { position: sticky; top: 96px; display: grid; gap: 24px; }
.price-card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 4px; }
.price-card .label, .related-case .label { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
.price-big { font-family: var(--f-head); margin-bottom: 14px; }
.price-big s { display: block; color: var(--ink-2); font-size: .95rem; }
.price-big strong { font-size: 2rem; }
.price-card .btn { margin: 18px 0 8px; }
.price-card .link-quiet { justify-content: center; }
.related-case a { display: grid; gap: 4px; text-decoration: none; margin-top: 8px; }
.related-case img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--r); border: 1px solid var(--line-2); margin-bottom: 8px; }
.related-case span { color: var(--ink-2); font-size: .95rem; }
.related-case a:hover strong { text-decoration: underline; }

/* ---------- pricing ---------- */
.package-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.package { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; }
.package--featured { border: 2px solid var(--blue); }
.package-icon { margin-bottom: 14px; }
.package h3 { font-size: 1.2rem; margin-bottom: 8px; }
.package-short { color: var(--ink-2); font-size: .95rem; min-height: 4.5em; }
.package-price { font-family: var(--f-head); margin-top: 14px; }
.package-price s { display: block; color: var(--ink-2); font-size: .9rem; }
.package-price strong { font-size: 1.6rem; }
.package-time { color: var(--ink-2); font-size: .92rem; font-weight: 600; margin-bottom: 16px; }
.package .tick-list { font-size: .93rem; flex: 1; border-top: 1px solid var(--line); padding-top: 8px; }
.package .tick-list li { padding: 6px 0; }
.package-actions { display: grid; gap: 10px; margin-top: 20px; justify-items: center; }
.note-line { margin-top: 18px; color: var(--ink-2); }
.not-included { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.not-included h3 { font-size: 1.1rem; margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.two-col .block-title:not(:first-child) { margin-top: 40px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 12px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.price-table th { font-weight: 600; padding-right: 16px; }
.price-table td { text-align: right; font-family: var(--f-head); font-weight: 800; white-space: nowrap; }
.care-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.care { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.care--main { border: 2px solid var(--teal); }
.care--system { border: 2px solid var(--violet); }
.care h3 { font-size: 1.15rem; }
.care-price { font-family: var(--f-head); font-weight: 800; font-size: 1.4rem; margin-bottom: 4px; }
.care p:last-child { color: var(--ink-2); font-size: .97rem; }

.addon-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; align-items: start; }
.addon-group { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 8px 22px 10px; }
.addon-group h3 { font-size: 1rem; padding: 14px 0 10px; border-bottom: 2px solid var(--ink); }
.addon-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.addon-group li:last-child { border-bottom: 0; }
.addon-group li span { font-weight: 400; }
.addon-group li strong { font-family: var(--f-head); font-weight: 800; white-space: nowrap; }

.rules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rules-grid div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.rules-grid dt { font-family: var(--f-head); font-weight: 800; margin-bottom: 6px; }
.rules-grid dd { color: var(--ink-2); font-size: .95rem; }

/* quiz */
.quiz { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; position: relative; overflow: hidden; }
.quiz-head h2 { font-size: 1.7rem; margin-bottom: 8px; }
.quiz-head p { color: var(--ink-2); }
.quiz-progress { font-size: .9rem; color: var(--ink-2); font-weight: 700; margin-bottom: 8px; }
.quiz-q { font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; margin-bottom: 16px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button { text-align: left; padding: 14px 18px; border: 2px solid var(--line-2); border-radius: var(--r); background: var(--paper); cursor: pointer; font-weight: 600; transition: border-color .15s ease, background-color .15s ease; }
.quiz-options button:hover { border-color: var(--ink); background: #fff; }
.quiz-result .label { font-size: .9rem; color: var(--ink-2); font-weight: 700; }
.quiz-result h3 { font-size: 1.8rem; margin: 4px 0 6px; }
.quiz-result .price { font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; margin: 8px 0 18px; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.quiz-actions .text-btn { color: var(--ink-2); }

/* ---------- prev / next ---------- */
.pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; padding-top: 48px; padding-bottom: 48px; }
.pager-card { display: grid; gap: 8px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s ease; }
.pager-card:hover { border-color: var(--ink); }
.pager-card--next { text-align: right; }
.pager-label { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--blue); }
.pager-card--next .pager-label { justify-content: flex-end; }
.pager-title { display: block; font-family: var(--f-head); font-weight: 800; line-height: 1.35; }
.pager-all { align-self: center; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 10px; text-decoration: none; font-weight: 700; background: var(--paper); white-space: nowrap; }
.pager-all:hover { border-color: var(--ink); }
.i.flip { transform: scaleX(-1); }

/* ---------- privacy dialog ---------- */
.privacy-dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 640px); margin: auto; color: var(--ink); background: var(--white); box-shadow: 0 40px 80px -20px rgba(0,0,0,.45); }
.privacy-dialog::backdrop { background: rgba(26, 30, 46, .55); }
.dialog-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.4rem; }
.dialog-close { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-2); background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { border-color: var(--ink); }
.privacy-dialog .prose { padding: 20px 24px 28px; font-size: 1rem; }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-intro { position: sticky; top: 104px; }
.faq-intro h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 12px; }
.faq-intro p { color: var(--ink-2); margin-bottom: 18px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .15s ease; }
.faq details:hover, .faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 22px; font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; }
body.lang-zh .faq summary { font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 22px 20px; margin-top: -4px; }

.faq-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }

/* full FAQ page */
.faq-page { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq-toc { position: sticky; top: 104px; }
.faq-toc ul { border-left: 2px solid var(--line-2); margin-bottom: 24px; }
.faq-toc li a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-weight: 700; color: var(--ink-2); }
.faq-toc li a:hover, .faq-toc li a.is-current { color: var(--ink); border-left-color: var(--blue); }
.faq-toc-ask { color: var(--ink-2); font-size: .95rem; margin-bottom: 10px; }
.faq-groups { display: grid; gap: 48px; max-width: 820px; }
.faq-group { scroll-margin-top: 96px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 16px; }
.faq details p a { color: var(--blue); font-weight: 600; }

.section--short { padding: 48px 0; }
.faq-band { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.faq-band p { flex: 1; font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; min-width: 240px; }

/* ---------- article prose ---------- */
.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.prose h2 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin: 8px 0; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 1.5px; background: var(--blue); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding-left: 36px; margin: 10px 0; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 5px; background: var(--ink); color: #fff; font: 800 .8rem/24px "Nunito", sans-serif; text-align: center; }
.prose a { color: var(--blue); font-weight: 600; }
.prose strong { font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--f-head); background: var(--paper-2); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- contact band (navy canvas) ---------- */
.contact-band { background: var(--navy); color: #fff; padding: clamp(64px, 8vw, 96px) 0; position: relative; isolation: isolate; overflow: hidden; }
.contact-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 20% 30%, #000 20%, transparent 75%);
}
.contact-band--page { padding-top: clamp(48px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-intro h1, .contact-intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 16px; color: #fff; }
.contact-intro > p { color: #C9CEE0; margin-bottom: 20px; }
.contact-intro .next-list { margin-bottom: 24px; font-size: .97rem; }
.contact-intro a { color: #fff; }
.contact-intro .small-head { font-size: 1.1rem; margin: 32px 0 12px; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.mail-link:hover { border-bottom-color: #fff; }
.next-list { counter-reset: n; color: #DADEEB; }
.next-list li { counter-increment: n; position: relative; padding: 6px 0 6px 40px; }
.next-list li::before { content: counter(n); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 5px; background: rgba(255,255,255,.14); color: #fff; font: 800 .85rem/26px "Nunito", sans-serif; text-align: center; }
.pixel-spray { position: relative; display: block; width: 80px; height: 60px; margin-top: 40px; }
.pixel-spray i { position: absolute; border-radius: 1.5px; }

/* ---------- form ---------- */
.form-card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.field { margin-bottom: 18px; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.opt { font-weight: 500; color: var(--ink-2); }
.input, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); transition: border-color .15s ease, background-color .15s ease; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.input:user-invalid, .textarea:user-invalid { border-color: #D2342C; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 50px; padding: 12px 42px 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 600; }
.select select:focus { outline: none; border-color: var(--blue); background: #fff; }
.select select:invalid { color: var(--ink-2); font-weight: 500; }
.select select option { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; cursor: pointer; font-weight: 600; font-size: .94rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); transition: all .15s ease; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.text-btn { background: none; border: 0; color: var(--blue); font-weight: 700; font-size: .9rem; cursor: pointer; padding: 4px 0; }
.text-btn:hover { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 4px; }
.form-foot small { color: var(--ink-2); }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status.is-ok { display: block; background: rgba(31,181,168,.12); color: #0C6B62; }
.form-status.is-error { display: block; background: rgba(210,52,44,.08); color: #A2251F; }
.form-status a { color: inherit; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9CEE0; border-top: 1px solid var(--navy-line); padding: 36px 0 28px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-row p { font-size: .92rem; }
.brand-light .brand-word { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--navy-line); font-size: .85rem; }
.mobile-cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 14px; margin-left: 4px; }
  .nav a { font-size: .92rem; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px; }
  .service-short { grid-column: 1 / 3; grid-row: 2; }
  .service-time { display: none; }
  .service-price { grid-column: 2; grid-row: 1; }
  .service-go { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .room-grid, .room--miew .room-grid { grid-template-columns: 1fr; }
  .room--miew .showcase { order: 0; }
  .showcase, .room--miew .showcase { padding: 0 0 36px 0; }
  .phone, .room--miew .phone { width: 26%; right: -4px; left: auto; bottom: 0; border-width: 4px; border-radius: 18px; }
  .frame-hint, .room--miew .frame-hint { left: 0; right: auto; }
  .note-label { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .about-teaser, .about { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; }
  .case-body, .want, .service-grid, .two-col, .contact-grid, .quiz { grid-template-columns: 1fr; }
  .service-side { position: static; }
  .guide-cta { grid-template-columns: 1fr; }
  .guide-cta .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .inline-list { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-intro { position: static; }
  .faq-page { grid-template-columns: 1fr; }
  .faq-toc { position: static; }
  .faq-toc ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin-bottom: 0; }
  .faq-toc li a { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 6px 12px; margin: 0; background: var(--white); }
  .faq-toc-ask, .faq-toc > .link-strong { display: none; }
  .section-head--row { display: block; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .section-head--row .link-strong { margin-top: 12px; }
  .contact-grid { align-items: start; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .mobile-cta { display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 90; min-height: 50px; border-radius: 12px; background: var(--blue); color: #fff; font-family: var(--f-head); font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(46,53,80,.6); }
  body.page-contact .mobile-cta { display: none; }
  .lang-switch a { min-width: 40px; height: 32px; padding: 0 8px; font-size: .85rem; }
  .brand-mark svg { width: 38px; }
  .brand-word { font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .header-row { gap: 12px; }
  .header-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .package-short { min-height: 0; }
  .rules-grid, .care-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager-card--next, .pager-card--next .pager-label { text-align: left; justify-content: flex-start; }
  .pager-empty { display: none; }
  .lang-banner { bottom: 76px; }
  .form-foot .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .service-row { padding: 20px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
