/* FairWow 展厅首页（原型）：价签货架风格。纸色底、黑色硬边框、黄色价签、红色点缀。 */
@import url("../vendor/fonts/fonts.css");

:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d5;
  --ink: #121212;
  --mute: #6d675d;
  --yel: #ffd60a;
  --red: #ff4a1c;
  --font: "Rubik Variable", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans Arabic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 顶栏 ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { font: 900 26px/1 var(--font); letter-spacing: -.04em; text-decoration: none; }
.logo b { background: var(--yel); padding: 0 6px; border-radius: 6px; margin-inline-start: 2px; }
.links { display: flex; gap: 24px; font-size: 14px; font-weight: 700; }
.links a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.links a:hover { border-bottom-color: var(--yel); }
.top .right { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.pill { border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.pill::-webkit-details-marker { display: none; }
.pill:hover { background: var(--yel); }
.langpick { position: relative; }
.langpick summary::after { content: "▾"; font-size: 10px; }
.langmenu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(520px, 90vw); background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-height: 70vh; overflow: auto; }
.langmenu button { border: 0; background: transparent; text-align: start; padding: 8px 10px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 6px; }
.langmenu button:hover { background: #f4f0e6; }
.langmenu button[aria-current] { background: var(--yel); }
.langmenu button i { font-style: normal; font-size: 10px; font-weight: 800; background: var(--ink); color: var(--yel); border-radius: 5px; padding: 2px 5px; align-self: center; }
.langmenu small { grid-column: 1 / -1; color: var(--mute); font-size: 12px; padding: 6px 4px 0; border-top: 1px dashed var(--mute); margin-top: 6px; }
.btn { border: 2px solid var(--ink); border-radius: 12px; padding: 11px 18px; font-size: 14px; font-weight: 800; background: var(--ink); color: #fff; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--red); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost:hover { box-shadow: 2px 2px 0 var(--ink); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn.sm.ghost:hover { box-shadow: 1px 1px 0 var(--ink); }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 72px 0 56px; }
.tag { position: relative; background: var(--yel); border: 3px solid var(--ink); border-radius: 26px; padding-block: 30px; padding-inline: 92px 40px; transform: rotate(-3deg); box-shadow: 14px 16px 0 var(--ink); transform-origin: left center; animation: swing 5s ease-in-out infinite; }
@keyframes swing { 50% { transform: rotate(-1.2deg); } }
.tag .hole { position: absolute; inset-inline-start: 30px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.tag .hole::before { content: ""; position: absolute; left: 50%; top: -26px; width: 3px; height: 26px; margin-left: -1.5px; background: var(--ink); }
.tag .tl { font-size: 15px; font-weight: 800; }
.tag .big { white-space: nowrap; font: 900 clamp(64px, 9vw, 150px)/.9 var(--font); letter-spacing: -.05em; margin: 8px 0 4px; }
.tag .big small { font-size: .22em; letter-spacing: 0; margin-inline-start: 8px; vertical-align: .2em; }
.tag .tb { font-size: 15px; font-weight: 700; }
.hero h1 { font-size: clamp(28px, 3vw, 46px); line-height: 1.16; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--yel) 58%); color: inherit; padding: 0 4px; }
.checks { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 15px; font-weight: 700; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: "✓"; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; background: var(--ink); color: var(--yel); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 价格对比尺 ---------- */
.ladder { border: 2px solid var(--ink); border-radius: 22px; background: #fff; padding: 26px 30px 20px; box-shadow: 8px 8px 0 var(--ink); }
.ladder h3 { margin: 0; font-size: 20px; font-weight: 900; }
.ladder .src { font-size: 12px; color: var(--mute); margin-top: 4px; }
.track { direction: ltr; position: relative; height: 190px; margin: 26px 14px 10px; }
.axis { position: absolute; left: 0; right: 0; top: 120px; height: 3px; background: var(--ink); }
.tick { white-space: nowrap; position: absolute; top: 128px; font-size: 12px; color: var(--mute); transform: translateX(-50%); }
.band { position: absolute; height: 26px; border: 2px solid var(--ink); border-radius: 8px; background: repeating-linear-gradient(-45deg, #e9e3d6 0 6px, #d6cfbf 6px 12px); font-size: 12px; font-weight: 700; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; }
.pin { position: absolute; top: 104px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid var(--ink); }
.pin span { margin-top: 30px; font-size: 12px; font-weight: 900; background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.pin.p0 span { background: var(--red); }

/* ---------- 区块标题 ---------- */
.sec { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin: 88px 0 24px; }
.sec h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.02em; }
.sec span { font-size: 14px; color: var(--mute); }

/* ---------- 真实案例 ---------- */
.cases { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.case { border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.case:hover { transform: translate(3px, 3px); box-shadow: 5px 5px 0 var(--ink); }
.case:first-child { grid-row: span 2; }
.cases.more { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; }
.cases.more .case:first-child { grid-row: auto; }
.cases.more .im { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
.case .im { overflow: hidden; flex: 1; min-height: 170px; border-bottom: 2px solid var(--ink); }
.case .im img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.case:hover .im img { transform: scale(1.04); }
.case .meta { padding: 14px 16px 16px; }
.case h3 { margin: 0; font-size: 19px; font-weight: 900; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.case h3 em { font-style: normal; font-size: 12px; color: var(--mute); font-weight: 700; white-space: nowrap; }
.case p { font-size: 13px; color: var(--mute); margin: 2px 0 8px; }
.rb { display: inline-block; font-size: 11px; font-weight: 900; background: var(--ink); color: var(--yel); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: #f1ebdf; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; }

/* ---------- 效果参考（他人作品，只放链接） ---------- */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref { display: grid; gap: 4px; padding: 16px 18px; border: 2px dashed var(--ink); border-radius: 16px; text-decoration: none; background: transparent; transition: background .15s; }
.ref:hover { background: #fff; }
.ref b { font-size: 18px; font-weight: 900; }
.ref small { color: var(--mute); font-weight: 700; }
.ref span { font-size: 14px; margin-top: 6px; }
.ref em { font-style: normal; font-size: 12px; color: var(--mute); margin-top: 6px; direction: ltr; text-align: start; }

/* ---------- 样板货架 ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 34px; }
.chip { border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 800; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yel); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.item { position: relative; padding-bottom: 6px; }
.item::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -22px; height: 10px; background: var(--ink); border-radius: 3px; }
.thumb { position: relative; display: block; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; aspect-ratio: 16 / 10; background: #222; transition: transform .15s, box-shadow .15s; }
.item:hover .thumb { transform: translate(-2px, -3px); box-shadow: 9px 10px 0 var(--ink); }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb video { opacity: 0; transition: opacity .3s; }
.thumb video.on { opacity: 1; }
.ptag { position: absolute; inset-inline-end: -8px; top: -14px; z-index: 3; background: var(--yel); border: 2px solid var(--ink); border-radius: 10px; padding-block: 6px; padding-inline: 22px 10px; font: 900 15px/1 var(--font); transform: rotate(6deg); box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.ptag::before { content: ""; position: absolute; inset-inline-start: 7px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ptag.quote { background: var(--red); color: #fff; }
.lbl { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 900; }
.lbl span { font-weight: 600; color: var(--mute); font-size: 13px; }
.acts { display: flex; gap: 8px; margin-top: 10px; }
.vis { display: none; }

/* ---------- 配置器 ---------- */
.cfg { display: grid; grid-template-columns: 430px 1fr; border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 10px 10px 0 var(--ink); }
.cfgL { padding: 26px; border-inline-end: 2px solid var(--ink); display: flex; flex-direction: column; gap: 22px; }
.cfgL h4 { margin: 0 0 10px; font-size: 14px; font-weight: 900; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 142px; overflow: auto; padding: 2px; }
.pick button { border: 2px solid var(--ink); background: #fff; border-radius: 9px; padding: 5px 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.pick button[aria-pressed="true"] { background: var(--yel); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 12px 6px; font-weight: 800; font-size: 14px; line-height: 1.25; cursor: pointer; border-inline-end: 2px solid var(--ink); }
.seg button:last-child { border-inline-end: 0; }
.seg button small { display: block; font-weight: 700; font-size: 12px; color: var(--mute); }
.seg button[aria-pressed="true"] { background: var(--yel); }
.rangeRow { display: flex; align-items: center; gap: 14px; }
.rangeRow input { flex: 1; accent-color: var(--ink); }
.rangeRow b { font: 800 20px/1 var(--font); min-width: 70px; }
.note { font-size: 12px; color: var(--mute); margin-top: 6px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; user-select: none; margin-bottom: 8px; }
.opt input { width: 18px; height: 18px; accent-color: var(--ink); }
.opt em { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--mute); }
.opt.inc { background: #f6f2ea; cursor: default; }
.opt.off { opacity: .4; cursor: not-allowed; }
.brandrow { display: flex; gap: 10px; align-items: center; }
.brandrow input[type="text"] { flex: 1; min-width: 0; border: 2px solid var(--ink); border-radius: 10px; padding: 9px 12px; font: 800 15px var(--font); }
.swatches { display: flex; gap: 6px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.cfgR { background: repeating-linear-gradient(0deg, transparent 0 31px, #ece6da 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, #ece6da 31px 32px), #f8f5ef; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.browser { border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 6px 6px 0 var(--ink); margin-inline: auto; width: 100%; transition: width .35s; }
.browser.mobile { width: 390px; max-width: 100%; }
.bbar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 2px solid var(--ink); }
.bbar i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.bbar .url { margin-inline-start: 10px; flex: 1; font-size: 12px; color: var(--mute); border: 2px solid var(--ink); border-radius: 8px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev { display: flex; gap: 4px; }
.dev button { border: 2px solid var(--ink); background: #fff; border-radius: 7px; font-size: 11px; font-weight: 800; padding: 2px 7px; cursor: pointer; }
.dev button[aria-pressed="true"] { background: var(--ink); color: var(--yel); }
.stage { position: relative; height: clamp(340px, 52vw, 560px); background: #1b1b1f; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.stage .ld { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; pointer-events: none; transition: opacity .3s; }
.stage .ld.done { opacity: 0; }
.lines { font-size: 12px; color: var(--mute); line-height: 1.8; min-height: 44px; }
.total { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 16px; background: var(--yel); padding: 16px 20px; box-shadow: 6px 6px 0 var(--ink); }
.total small { display: block; font-size: 12px; font-weight: 800; }
.total .tv { font: 900 54px/.9 var(--font); letter-spacing: -.03em; }
.total .yr { font-size: 13px; font-weight: 700; line-height: 1.6; }
.total .btn { margin-inline-start: auto; }

/* ---------- 下单弹窗 ---------- */
.order { border: 2px solid var(--ink); border-radius: 22px; padding: 0; width: min(560px, calc(100% - 32px)); background: #fff; color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.order::backdrop { background: rgba(18, 18, 18, .55); }
.order form { padding: 26px 28px 22px; }
.order h3 { margin: 0 0 14px; font-size: 24px; font-weight: 900; }
.sum { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; }
.sum dt { color: var(--mute); font-weight: 700; }
.sum dd { margin: 0; font-weight: 800; }
.sum dd .sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: -2px; margin-inline-end: 6px; }
.sum .tt { font: 900 28px/1 var(--font); }
.order .say { margin: 18px 0 6px; font-weight: 700; }
.order .ph { margin: 0 0 16px; font-size: 12px; color: var(--mute); border: 2px dashed var(--mute); border-radius: 10px; padding: 8px 10px; }
.contact { display: grid; gap: 10px; margin: 0 0 16px; }
.contact:empty { display: none; }
.contact .qr { display: flex; gap: 14px; align-items: center; }
.contact .qr img { width: 132px; height: 132px; object-fit: contain; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.contact .id { font-weight: 800; }
.contact .id b { font: 900 18px/1.2 var(--font); user-select: all; }
.contact .links { display: flex; gap: 10px; flex-wrap: wrap; }
.order .row { display: flex; gap: 10px; flex-wrap: wrap; }
.order .hint { display: block; margin-top: 12px; color: var(--mute); }

/* ---------- 页脚、提示 ---------- */
.foot { margin-top: 90px; padding: 28px 0 90px; border-top: 2px solid var(--ink); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.foot b { color: var(--ink); }
.foot span:last-child { margin-inline-start: auto; }
.toast { position: fixed; inset-inline: 0; bottom: 28px; margin-inline: auto; width: max-content; max-width: 90vw; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; z-index: 99; box-shadow: 5px 5px 0 var(--red); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .hero, .cfg, .cases { grid-template-columns: 1fr; }
  .cases.more { grid-template-columns: repeat(2, 1fr); }
  .refs { grid-template-columns: 1fr; }
  .case:first-child { grid-row: auto; }
  .cfgL { border-inline-end: 0; border-bottom: 2px solid var(--ink); }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .shelf, .cases.more { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .tag { padding-block: 22px; padding-inline: 70px 26px; box-shadow: 8px 10px 0 var(--ink); }
  .tag .hole { inset-inline-start: 20px; }
  .track { height: auto; margin: 18px 0 6px; display: flex; flex-direction: column; gap: 8px; }
  .axis, .tick { display: none; }
  .band, .pin { position: static; transform: none; width: auto !important; }
  .band { height: auto; padding: 5px 10px; white-space: normal; }
  .pin { flex-direction: row; gap: 10px; align-items: center; }
  .pin span { margin: 0; }
  .pin:first-of-type { margin-top: 10px; }
  .top .wrap { gap: 10px; }
  .top .btn { display: none; }
  .total .tv { font-size: 42px; }
  .hero { padding-top: 44px; }
  .cfgR { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tag { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0s !important; }
}
