/* 苹果官网式：半透明吸顶导航、大面积留白、产品居中、右侧毛玻璃步骤卡、往下滚是问答和数字 */
:root {
  --bg: #ffffff;
  --band: #f5f5f7;
  --stage-hi: #ffffff;
  --stage-lo: #e8e8ed;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --link: #0066cc;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(0, 0, 0, 0.06);
  --nav: rgba(250, 250, 252, 0.8);
  --chip: #e8e8ed;
  --tip: #f0f6ff;
  --warn: #fff4f2;
  --warn-ink: #b3261e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --band: #101012; --stage-hi: #2a2a2d; --stage-lo: #0b0b0c; --ink: #f5f5f7; --muted: #86868b;
    --line: #3a3a3c; --blue: #0a84ff; --link: #2997ff; --glass: rgba(28, 28, 30, 0.72); --glass-line: rgba(255, 255, 255, 0.08);
    --nav: rgba(22, 22, 23, 0.8); --chip: #2c2c2e; --tip: #0e2238; --warn: #3a1512; --warn-ink: #ff8a80; --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --band: #101012; --stage-hi: #2a2a2d; --stage-lo: #0b0b0c; --ink: #f5f5f7; --muted: #86868b;
  --line: #3a3a3c; --blue: #0a84ff; --link: #2997ff; --glass: rgba(28, 28, 30, 0.72); --glass-line: rgba(255, 255, 255, 0.08);
  --nav: rgba(22, 22, 23, 0.8); --chip: #2c2c2e; --tip: #0e2238; --warn: #3a1512; --warn-ink: #ff8a80; --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- 吸顶导航 ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--nav); z-index: 31; }
.localnav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: 52px;
  background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-line);
}
.localnav-inner {
  max-width: 1200px; height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px;
  padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.product { color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; flex: none; }
.product span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
#tasksMain { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
#tasksMain::-webkit-scrollbar { display: none; }
#tasksMain button {
  flex: none; border: 0; background: none; padding: 4px 0; font-size: 12px; color: var(--ink); opacity: 0.8;
  border-bottom: 1px solid transparent; transition: opacity 0.2s;
}
#tasksMain button:hover { opacity: 1; color: var(--link); }
#tasksMain button.active { opacity: 1; border-bottom-color: var(--ink); }
.navlink {
  flex: none; font-size: 12px; text-decoration: none; color: #fff; background: var(--blue);
  border-radius: 980px; padding: 4px 11px; line-height: 1.33;
}
.tasks button:disabled { opacity: 0.35; cursor: default; }
.tasks button .soon { font-size: 11px; color: var(--muted); margin-left: 4px; }

/* ---------- 首屏：3D 舞台 + 步骤卡 ---------- */
.hero { position: relative; height: calc(100svh - 52px - env(safe-area-inset-top, 0px)); min-height: 600px; }
#stage {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 38% 45%, var(--stage-hi) 0%, var(--stage-lo) 100%);
}
#stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.stepcard {
  position: absolute; z-index: 8; top: 50%; right: max(32px, env(safe-area-inset-right, 0px)); transform: translateY(-50%);
  width: 400px; max-height: calc(100% - 64px); overflow-y: auto;
  padding: 34px 34px 28px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--shadow);
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: 0; }
.stepmeta { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepmeta .bar { flex: 1; }
.bar { height: 3px; background: var(--chip); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width 0.5s cubic-bezier(0.28, 0.11, 0.32, 1); }
.steptitle { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.steptext { margin: 0; font-size: 17px; color: var(--muted); }
.steptext b, .steptext strong { color: var(--ink); }
.tip, .warn { margin-top: 14px; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.tip { background: var(--tip); color: var(--ink); }
.warn { background: var(--warn); color: var(--warn-ink); }
.tip::before, .warn::before { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.tip::before { content: "提示"; color: var(--blue); }
.warn::before { content: "注意"; }
.action { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.clickhint { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.clickhint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 var(--blue); animation: ping 1.8s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(0, 113, 227, 0); } }
.done { color: var(--ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.done::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #34c759; color: #fff; font-size: 12px; }
.done.busy::before { content: ""; background: none; border: 2px solid var(--line); border-top-color: var(--blue); animation: spin 0.8s linear infinite; width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill { border: 0; border-radius: 980px; padding: 11px 22px; font-size: 17px; font-weight: 400; line-height: 1.18; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { filter: brightness(1.08); }
.ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.ghost:hover { background: var(--link); color: #fff; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--link); font-size: 17px; }
.linkbtn::after { content: " ›"; }
.linkbtn:hover { text-decoration: underline; }
.nav { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); gap: 10px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); display: grid; place-items: center; color: var(--ink); }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round:disabled { opacity: 0.3; cursor: default; }
.nav .next { padding: 9px 20px; font-size: 15px; }
.next.ready { background: var(--blue); color: #fff; box-shadow: none; }

/* 舞台上的浮层 */
#tooltip {
  position: absolute; pointer-events: none; z-index: 5; white-space: nowrap; transform: translate(-50%, -150%);
  background: var(--glass); color: var(--ink); font-size: 12px; padding: 5px 10px; border-radius: 8px; opacity: 0; transition: opacity 0.12s;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
#hint { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 4; display: none; }
#hint span {
  position: absolute; transform: translate(-50%, -120%); white-space: nowrap; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 980px; box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35); animation: bob 1.4s ease-in-out infinite;
}
#hint span::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--blue); border-bottom: 0; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
#info {
  position: absolute; left: 32px; top: 28px; max-width: 320px; z-index: 6; padding: 16px 18px; border-radius: 18px; font-size: 14px; color: var(--muted);
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px); transition: 0.3s cubic-bezier(0.28, 0.11, 0.32, 1); pointer-events: none;
}
#info.show { opacity: 1; transform: none; }
#info b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
#legend { position: absolute; left: 32px; bottom: 26px; font-size: 12px; color: var(--muted); z-index: 3; }
#saying {
  position: absolute; left: 38%; bottom: 26px; transform: translateX(-50%); z-index: 5; white-space: nowrap; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: 14px; padding: 8px 18px; border-radius: 980px; opacity: 0; transition: opacity 0.25s;
}
#celebrate {
  position: absolute; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 1000px) { #celebrate { justify-content: flex-end; padding-right: max(32px, env(safe-area-inset-right, 0px)); } #celebrate .box { width: 400px; } }
#celebrate .box { text-align: center; max-width: 600px; padding: 0 24px; animation: rise 0.6s cubic-bezier(0.28, 0.11, 0.32, 1); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
#celebrate .check svg { width: 64px; height: 64px; fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#celebrate .check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s 0.1s forwards; }
#celebrate .check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.4s 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#celebrate h2 { margin: 18px 0 8px; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
#celebrate p { margin: 0 0 26px; color: var(--muted); font-size: 19px; }
#celebrate .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero:has(#celebrate[style*="flex"]) .stepcard { opacity: 0; pointer-events: none; }
.stepcard { transition: opacity 0.3s; }
#loading { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); font-size: 14px; }
#loading .loadbox { width: 220px; text-align: center; }
#loading .bar { margin-top: 12px; }
#loading .bar i { transition: width 0.2s; }

/* ---------- 往下滚：问答 ---------- */
.band { background: var(--band); }
.band-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding-block: 110px 120px; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.kicker { margin: 0 0 8px; font-size: 21px; font-weight: 600; color: var(--muted); }
.headline { margin: 0; font-size: 64px; line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin: 20px auto 40px; max-width: 34em; font-size: 21px; color: var(--muted); }
#tasksFaq { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
#tasksFaq button {
  border: 0; background: var(--bg); color: var(--ink); font-size: 17px; padding: 16px 22px; border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); transition: transform 0.3s cubic-bezier(0.28, 0.11, 0.32, 1), box-shadow 0.3s;
}
#tasksFaq button::after { content: "  在 3D 里看 ›"; color: var(--link); font-size: 14px; }
#tasksFaq button:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); }
#tasksFaq button.active { box-shadow: inset 0 0 0 2px var(--blue); }
.askbox { text-align: left; background: var(--bg); border-radius: 28px; padding: 28px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
#chat { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; margin-bottom: 16px; }
.msg { padding: 10px 15px; border-radius: 20px; font-size: 15px; max-width: 85%; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--chip); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.bot button { margin: 8px 8px 0 0; border: 0; background: var(--blue); color: #fff; border-radius: 980px; padding: 6px 14px; font-size: 14px; }
.msg.bot button.alt { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips button { border: 0; background: var(--chip); color: var(--ink); border-radius: 980px; padding: 6px 14px; font-size: 14px; }
.chips button:hover { color: var(--link); }
form.askform { display: flex; gap: 10px; }
form.askform input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 980px; padding: 11px 18px; font-family: inherit; font-size: 17px;
  background: var(--bg); color: var(--ink);
}
form.askform input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); }
.note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- 数字 ---------- */
.facts-inner {
  max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: center;
  padding-block: 100px; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.facts b { display: block; font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 8px; font-size: 17px; color: var(--muted); }

.foot { border-top: 1px solid var(--line); background: var(--band); }
.foot p {
  max-width: 1000px; margin: 0 auto; font-size: 12px; line-height: 1.6; color: var(--muted);
  padding-block: 20px calc(28px + env(safe-area-inset-bottom, 0px)); padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
}

/* ---------- 窄屏：舞台在上，步骤卡在下 ---------- */
@media (max-width: 999px) {
  .hero { height: auto; min-height: 0; }
  #stage { position: relative; height: 58svh; min-height: 340px; background: radial-gradient(ellipse 80% 60% at 50% 45%, var(--stage-hi) 0%, var(--stage-lo) 100%); }
  .stepcard {
    position: relative; top: auto; right: auto; transform: none; width: auto; max-height: none; overflow: visible;
    margin: -28px 12px 0; border-radius: 24px; padding: 26px 22px 20px; background: var(--bg);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .steptitle { font-size: 28px; }
  #legend { display: none; }
  #saying { left: 50%; }
  #info { left: 16px; top: 16px; right: 16px; max-width: none; }
  .localnav-inner { gap: 18px; }
  .product span { display: none; }
  .headline { font-size: 44px; }
  .band-inner { padding-block: 80px 90px; }
  .facts-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 72px; }
  .facts b { font-size: 36px; }
  #celebrate h2 { font-size: 30px; }
}
@media (max-width: 480px) {
  .navlink { display: none; }
  .headline { font-size: 38px; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clickhint::before, #hint span, #celebrate .box, .done.busy::before { animation: none; }
  #celebrate .check circle, #celebrate .check path { animation: none; stroke-dashoffset: 0; }
}

/* ======================================================================
   说明书聚合站补充：返回链接、配件工具条、问题卡、首页瀑布流、商家合作
   ====================================================================== */
.back { flex: none; color: var(--link); text-decoration: none; font-size: 12px; white-space: nowrap; }
.back:hover { text-decoration: underline; }
.product small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.kit { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 14px; color: var(--ink); }
.kit b { font-weight: 600; color: var(--muted); font-size: 12px; margin-right: 6px; }
a.pill { display: inline-block; text-decoration: none; }
#faqList { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; text-align: left; }
.faqcard {
  border: 0; text-align: left; background: var(--bg); color: var(--ink); border-radius: 22px; padding: 22px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.faqcard b { font-size: 19px; font-weight: 600; }
.faqcard span { font-size: 15px; color: var(--muted); }
.faqcard i { font-style: normal; color: var(--link); font-size: 14px; margin-top: auto; }
#source { margin-top: 26px; font-size: 12px; color: var(--muted); }

/* ---------- 首页 ---------- */
.home-hero { text-align: center; padding-block: 88px 36px; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.home-hero h1 { margin: 0; font-size: 80px; line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.home-hero h1 em { font-style: normal; background: linear-gradient(90deg, #0071e3, #7a5cff 55%, #d4507a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero p { margin: 22px auto 34px; max-width: 32em; font-size: 21px; color: var(--muted); }
.search { display: block; position: relative; max-width: 560px; margin: 0 auto; }
.search input {
  width: 100%; border: 1px solid var(--line); background: var(--band); color: var(--ink); border-radius: 980px;
  padding: 15px 22px 15px 48px; font: inherit; font-size: 17px;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); background: var(--bg); }
.search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.filters {
  position: sticky; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.filters-inner {
  max-width: 1240px; margin: 0 auto; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-block: 14px;
  padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.filters-inner::-webkit-scrollbar { display: none; }
.chip-f { flex: none; border: 0; background: var(--chip); color: var(--ink); border-radius: 980px; padding: 8px 16px; font-size: 14px; transition: background 0.2s, color 0.2s; }
.chip-f span { color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.chip-f[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip-f[aria-pressed="true"] span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.grid {
  max-width: 1240px; margin: 0 auto; columns: 3 320px; column-gap: 22px;
  padding-block: 10px 90px; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.card-p { break-inside: avoid; display: block; margin-bottom: 26px; color: var(--ink); text-decoration: none; }
.card-p .shot {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: var(--ar, 1); max-width: 100%;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, var(--stage-hi), var(--stage-lo));
  transition: transform 0.5s cubic-bezier(0.28, 0.11, 0.32, 1), box-shadow 0.5s;
}
.card-p .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 0.6s cubic-bezier(0.28, 0.11, 0.32, 1); }
.card-p:hover .shot { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12); }
.card-p:hover .shot img { transform: scale(1.04); }
.card-p .badge { position: absolute; left: 14px; top: 14px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 980px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); }
.card-p .open { position: absolute; right: 14px; bottom: 14px; font-size: 13px; padding: 6px 12px; border-radius: 980px; background: var(--blue); color: #fff; opacity: 0; transform: translateY(6px); transition: 0.3s; }
.card-p:hover .open, .card-p:focus-visible .open { opacity: 1; transform: none; }
.card-p .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 4px 0; }
.card-p h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.card-p .brand { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card-p p { margin: 4px 4px 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.empty { text-align: center; color: var(--muted); padding: 40px 0 100px; font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; text-align: left; }
.contact-grid label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.contact-grid .wide { grid-column: 1 / -1; }
.contact-grid input, .contact-grid textarea, .contact-grid select {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); min-width: 0;
}
.contact-grid textarea { min-height: 110px; resize: vertical; }
.contact-grid input:focus, .contact-grid textarea:focus, .contact-grid select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); }
.contact-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.mailline { font-size: 15px; color: var(--muted); }
.mailline b { color: var(--ink); font-weight: 600; user-select: all; }
.formmsg { font-size: 15px; color: var(--ink); }
@media (max-width: 999px) {
  .home-hero { padding-block: 56px 24px; }
  .home-hero h1 { font-size: 48px; }
  .home-hero p { font-size: 17px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .home-hero h1 { font-size: 40px; } .back span { display: none; } }

button.navlink { border: 0; font: inherit; font-size: 12px; cursor: pointer; }
