:root{font:16px/1.6 "Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;color:#352b37;background:#fbf8fa;--ink:#352b37;--muted:#746774;--berry:#a52a60;--rule:#e6dce2;--tint:#fff1f6}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,summary{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,input:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #9051bd;outline-offset:3px}[hidden]{display:none!important}
.bound{width:min(1170px,calc(100% - 64px));margin-inline:auto}.top{background:#fff;border-bottom:1px solid var(--rule)}.mast,.wordmark,.dialogTop,.ticketTop,footer{display:flex;align-items:center;justify-content:space-between}.mast{height:68px}.wordmark{gap:16px;font-size:.95rem;font-weight:650}.wordmark img{width:99px;height:38px;object-fit:contain}.wordmark span{border-left:1px solid #ddd1d8;padding-left:15px}.quiet,.secondary{border:1px solid #d9cbd4;border-radius:8px;background:#fff;color:var(--ink);padding:7px 15px;font-size:.9rem}.quiet:hover,.secondary:hover{background:#f9f3f6}
.intro{margin:34px 0 26px}.intro h1{font-size:clamp(2rem,4vw,3.15rem);line-height:1.15;letter-spacing:-.05em;margin:9px 0}.intro>p:last-child,.sub,.fine{color:var(--muted)}.intro>p:last-child,.sub{margin:0}.kicker{display:flex;align-items:center;gap:9px;margin:0;color:#87546f;font:700 .75rem/1.4 system-ui,sans-serif;letter-spacing:.15em}.kicker i{width:20px;height:1px;background:#b67992}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,330px);align-items:start;gap:24px}
.paper,.ticket,.delivery{background:white;border:1px solid var(--rule);border-radius:16px}.paper{min-width:0}.steps{display:flex;list-style:none;margin:0;padding:16px 25px;gap:clamp(10px,3vw,40px);border-bottom:1px solid var(--rule);background:#fffcfd;border-radius:16px 16px 0 0}.steps li{display:flex;align-items:center;gap:7px;font-size:.9rem;font-weight:600;color:var(--muted);white-space:nowrap}.steps b{border:1px solid #ddced7;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;font:600 .8rem system-ui}.steps [aria-current=step]{color:var(--berry)}.steps [aria-current=step] b{background:var(--berry);color:white;border-color:var(--berry)}
.stage{padding:22px 25px 24px}h2,h3,p{margin-top:0}h2{font-size:1.45rem;letter-spacing:-.025em;margin-bottom:3px}h3,legend{font-size:1.02rem;font-weight:700}.sub{font-size:.94rem}.noborder,.block{margin:0;padding:0;border:0;min-width:0}.block{margin-top:23px}legend{padding:0;margin-bottom:9px}.models{margin-top:15px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tile,.choice,.option{position:relative;cursor:pointer;display:flex}.tile{flex-direction:column;border:1px solid #e1d7df;border-radius:10px;padding:8px 9px 10px;min-width:0;background:white;color:var(--ink)}.tile img{height:62px;width:100%;object-fit:contain;margin:2px 0 7px}.tile strong{font:700 1rem/1.5 system-ui,"Microsoft YaHei",sans-serif}.tile small,.option small,.field small{color:var(--muted);font-size:.82rem}.tile .price{color:#87506a;font-size:.87rem}.tile input{position:absolute;top:5px;right:5px;width:15px;height:15px}.tile:has(:checked),.choice:has(:checked){border-color:#b93d72;background:var(--tint);box-shadow:inset 0 0 0 1px #b93d72}
input[type=radio],input[type=checkbox]{accent-color:var(--berry);flex:none}.crafts,.rushes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.choice{border:1px solid #dfd4dc;border-radius:9px;padding:9px;align-items:center;gap:5px;font-size:.95rem}.choice input{margin:1px 2px 0 0}.choice b,.choice small,.option b,.option small{display:block}.choice small{font-size:.88rem;color:var(--muted)}.choice:has(:disabled){cursor:not-allowed;background:#f5f3f5;color:#827782;border-style:dashed}.choice:has(:disabled) small{font-size:.8rem}
.extras{border-block:1px solid var(--rule);margin-top:22px;padding:12px 1px}.extras summary{display:flex;align-items:center;justify-content:space-between;font-weight:700;list-style:none}.extras summary::-webkit-details-marker{display:none}.extras summary em{margin-left:auto;color:var(--muted);font-size:.85rem;font-style:normal;font-weight:400}.extras summary:after{content:'＋';padding-left:12px;color:var(--berry);font-size:1.15rem}.extras[open] summary:after{content:'−'}.extraGroup{margin-top:16px}.extraGroup h3{font-size:.95rem;color:#70475c;margin:0 0 5px}.options{display:grid;grid-template-columns:1fr 1fr;gap:5px}.option{gap:7px;border-radius:7px;align-items:flex-start;padding:6px 7px;font-size:.94rem;background:#faf7f9}.option input{margin-top:5px}.option b{font-weight:550}.option small{line-height:1.4}.option em{font-style:normal;margin-left:auto;color:#733550;font-size:.88rem;white-space:nowrap}
.actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;flex-wrap:wrap;margin-top:24px}.primary{background:var(--berry);border:1px solid var(--berry);color:white;border-radius:8px;padding:10px 19px;font-weight:650}.primary:hover{background:#88214e}.secondary{padding:10px 16px}.receipt{position:sticky;top:18px}.ticket{border-top:4px solid #ad3b70;padding:21px 21px 16px;box-shadow:0 7px 22px #653c4e0a}.stamp{font:850 .7rem/1.5 system-ui;letter-spacing:.12em;color:#a84471;border:1px solid #d4a5ba;transform:rotate(-6deg);padding:0 4px}.ticket h2{margin-top:7px}.modelName{margin:14px 0 8px;font-weight:600}.line,.subtotal,.delivery dl div,.review dl div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.line,.delivery dl,.review dl{font-size:.92rem}.line{color:var(--muted);padding:3px 0}.line span:last-child{white-space:nowrap}.subtotal{border-top:1px dashed #d4c2ce;margin-top:17px;padding-top:13px}.subtotal strong{font:700 1.85rem/1.4 system-ui;color:#932351;letter-spacing:-.04em}.fine,.pending{font-size:.85rem;margin:5px 0 0}.pending,.alert{color:#8d3b12}.delivery{margin-top:14px;padding:16px 20px;background:#f6f0f5}.delivery h3{margin-bottom:7px}.delivery dl,.review dl{margin:0}.delivery dl div{padding:3px 0}.delivery dt{color:var(--muted)}dd{margin:0;text-align:right;overflow-wrap:anywhere}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.field{font-weight:600;display:block}.field.full{grid-column:1/-1}.field small{font-weight:400}.field input,.field textarea{display:block;width:100%;border:1px solid #d9cdd6;border-radius:8px;padding:9px 11px;color:var(--ink);background:white;font-weight:400}.field textarea{resize:vertical}.field input::placeholder,.field textarea::placeholder{color:#837984}.extras .field{margin:15px 0 4px}.review{margin-top:16px;background:#fbf8fa;border-radius:9px;padding:14px}.review dl div{border-bottom:1px solid var(--rule);padding:6px 0}.review dl div:last-child{border:0}.review dt{white-space:nowrap;color:var(--muted)}.agree{display:flex;align-items:flex-start;gap:8px;margin-top:16px}.agree input{margin-top:7px}.alert{margin:0 20px 20px;padding:10px 14px;border-radius:8px;background:#fff3e9}.success{max-width:660px;margin:0 auto;padding:32px;text-align:center}.success .kicker,.success .actions{justify-content:center}.successSeal{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;color:#32654d;background:#e5f2ea;font-size:1.6rem;margin-bottom:13px}.success h2{font-size:1.7rem;margin:6px 0}.orderCode{font:700 clamp(.95rem,3.8vw,1.6rem)/1.6 ui-monospace,monospace;background:#f8f3f6;border:1px dashed #d8bdcb;border-radius:8px;padding:10px;overflow-wrap:anywhere}.success p{margin-bottom:11px}
dialog{border:1px solid var(--rule);border-radius:15px;max-width:min(580px,calc(100% - 28px));max-height:83vh;overflow:auto;padding:25px;color:var(--ink)}dialog::backdrop{background:#33253266}dialog h3{margin:20px 0 4px}dialog p{margin-bottom:6px}footer{border-top:1px solid var(--rule);margin-block:34px 16px;padding-top:12px;color:var(--muted);font-size:.8rem}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:880px){.layout{grid-template-columns:minmax(0,1fr) 252px;gap:14px}.bound{width:calc(100% - 36px)}.stage{padding:18px}.models{grid-template-columns:repeat(2,minmax(0,1fr))}.tile img{height:54px}.ticket,.delivery{padding-inline:15px}}
@media(max-width:720px){.bound{width:calc(100% - 24px)}.mast{height:55px}.wordmark img{width:78px}.intro{margin:22px 0 17px}.intro>p:last-child{font-size:.94rem}.layout{grid-template-columns:1fr}.receipt{position:static}.steps{padding:13px 14px;justify-content:space-between;gap:4px}.stage{padding:17px 13px}.models{gap:7px}.tile{padding:7px 10px}.tile img{height:53px}.crafts,.rushes{gap:5px}.choice{padding:8px 5px;gap:2px;font-size:.87rem}.choice b{font-weight:600}.choice small{font-size:.83rem}.actions{margin-top:18px}.fields,.options{grid-template-columns:1fr}.receipt{display:grid;gap:12px}.delivery{margin:0}.ticket{box-shadow:none}.success{padding:22px 13px}footer{margin-top:24px}.primary,.secondary{min-height:44px}.extraGroup .option{min-height:43px}}
.stockBadge,.stockLegend b{display:inline-block;margin-top:3px;border-radius:5px;padding:1px 7px;font-size:.82rem;font-weight:650;line-height:1.55}.stockBadge{max-width:100%;text-wrap:balance}.stockLegend{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0 0;font-size:.82rem;color:var(--muted)}.stockLegend span{margin-right:4px}.stockLegend b{margin:0}.grade-plenty{background:#dcf5e5;color:#1c6339}.grade-standard{background:#e2eeff;color:#1c4c8c}.grade-low{background:#ffedd1;color:#854005}.grade-tight{background:#ffe5e7;color:#971d30}.grade-unset{background:#efecef;color:#534657}#stockSummary{margin:0 0 6px}
@media(prefers-reduced-motion:no-preference){.tile,.choice,.primary{transition:background-color .12s,border-color .12s}}
.readerOption{display:grid;align-content:start;gap:4px}.readerOption a,.readerPage a{color:#783d54}.readerOption a{justify-self:start;margin-left:10px;font-size:.86rem}.readerOption:has(label[hidden]){display:none}.readerPage{padding-bottom:48px}.readerPage #readerModel>img{display:block;width:100%;border-radius:14px}.readerPage .yuStage{height:clamp(320px,58vw,620px)}

.shopNav { display:flex; align-items:center; gap:clamp(8px,2vw,22px) }
.navLink,.payLink { color:var(--berry); font-weight:600; text-underline-offset:.2em }
.shopNav .navLink { font-size:.9rem }
.diffPage { max-width:680px; padding-bottom:42px }
.depositSection { text-align:left; margin-top:26px; padding-top:22px; border-top:1px solid var(--rule) }
.depositSection .amountForm { margin-top:18px }
.diffChoices,.payMethods { display:flex; flex-wrap:wrap; gap:8px }
.diffChoices label,.payMethods label { display:flex; align-items:center; justify-content:center; gap:5px; cursor:pointer; min-height:44px; padding:6px 14px; background:white; border:1px solid var(--rule); border-radius:8px; font-weight:600 }
.diffChoices label:has(:checked),.payMethods label:has(:checked) { color:var(--berry); border-color:var(--berry); background:var(--tint) }
.diffChoices input,.payMethods input { margin:0 }
.customField { margin-top:16px; max-width:300px }
.paySummary { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:14px 0 18px; padding:12px 14px; border-radius:8px; background:var(--tint) }
.payAmount { color:var(--berry); font-size:1.7rem; overflow-wrap:anywhere; min-width:0 }
.payPurpose { flex:none }
.scanStep .dialogTop h3 { margin:0 }
.scanCard { margin:18px 0 0; text-align:center; padding:14px 8px; border:1px solid var(--rule); border-radius:12px }
.scanCrop { position:relative; width:min(245px,100%); aspect-ratio:1; margin:0 auto 8px; overflow:hidden; background:white }
.scanCrop img { position:absolute; max-width:none; height:auto; display:block }
.scanCrop[data-channel=alipay] img { width:140%; left:-20%; top:-71.1111% }
.scanCrop[data-channel=wechat] img { width:192%; left:-45.92%; top:-58.60% }
.scanCard figcaption { margin-bottom:6px; overflow-wrap:anywhere }
.payLink { font-size:.9rem }
.payAfter { margin-top:12px; overflow-wrap:anywhere }
@media(max-width:450px){
  .shopNav { gap:8px }
  .shopNav .quiet { padding-inline:7px }
  .mast:has(.shopNav) .wordmark { gap:6px }
  .mast:has(.shopNav) .wordmark span { padding-left:6px }
  .mast:has(.shopNav) .wordmark img { width:58px }
  .diffChoices label { flex:1 0 25%; padding-inline:7px }
}
.mast .wordmark { color:inherit; text-decoration:none }

.orderPage .receipt {
  position:static;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}
.orderPage .receipt > * { flex:none; }
.orderPage .receipt .delivery { margin:0; }
.orderPage .inShop3D {
  margin:0;
  padding:14px;
  border:1px solid var(--rule);
  border-radius:16px;
  background:white;
}
.orderPage .inShop3D h2 { margin:0 0 8px; font-size:1.2rem; }
.orderPage .inShop3D .yuControl { flex-wrap:wrap; }
.orderPage .paneLink { display:none; }
.options:has(> #colorRow:not([hidden])) { grid-template-columns:minmax(0,1fr); }
#colorRow { padding:0 10px 10px; border-left:2px solid var(--rule); }
#sheetFinish { margin-top:8px; }
.extras #colorRow .field { margin:3px 0 4px; }
#artEditor { width:min(1220px,98vw); height:min(900px,96dvh); max-width:98vw; max-height:96dvh; padding:0; overflow:hidden; }
#artEditor[open] { display:flex; flex-direction:column; }
#artEditor > button { align-self:flex-end; margin:5px 10px; }
#artEditor iframe { flex:1; min-height:0; width:100%; border:0; border-top:1px solid var(--rule); }
.orderPage .ticketTop { gap:8px; flex-wrap:wrap; }
.orderPage .ticketTop h2 { margin:0; font-size:1.2rem; }
.orderPage .ticketTop .subtotal { border:0; padding:0; margin:0; gap:6px; font-size:.85rem; }
.orderPage .subtotal strong { font-size:1.4rem; }

@media (min-width:900px) {
  .orderPage:has(#ordering:not([hidden])) {
    height:100vh;
    height:100dvh;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
  }
  .orderPage .bound { width:min(1400px,calc(100% - 48px)); }
  .orderPage main { display:flex; flex-direction:column; min-height:0; }
  .orderPage .mast { height:56px; }
  .orderPage .intro { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 18px; margin:14px 0; }
  .orderPage .intro .kicker { display:none; }
  .orderPage .intro h1 { font-size:clamp(1.6rem,2.3vw,2.2rem); margin:0; }
  .orderPage #ordering {
    flex:1;
    min-height:0;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    grid-template-rows:minmax(0,1fr);
    align-items:stretch;
    gap:clamp(14px,1.6vw,24px);
  }
  .orderPage .orderForm, .orderPage .receipt {
    min-height:0;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-gutter:stable;
    scrollbar-color:#cbbfc6 transparent;
    scrollbar-width:thin;
  }
  .orderPage .inShop3D .yuStage { height:clamp(185px,31vh,375px); }
  .orderPage footer { margin-block:10px 6px; padding-top:5px; }
}
@media (min-width:900px) and (max-width:1150px) {
  .orderPage .stage { padding-inline:16px; }
  .orderPage .models { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .orderPage .options { grid-template-columns:1fr; }
}
@media (min-width:900px) and (max-height:720px) {
  .orderPage .mast { height:46px; }
  .orderPage .intro { margin:6px 0 8px; }
  .orderPage .inShop3D { padding:10px; }
  .orderPage .inShop3D .yuStage { height:clamp(150px,27vh,190px); }
  .orderPage .inShop3D .yuAngles button { padding-inline:8px; }
  .orderPage .inShop3D .yuControl { padding:5px 8px; }
  .orderPage .ticket { padding-top:12px; }
}
@media (max-width:899.98px) {
  .orderPage #ordering { grid-template-columns:minmax(0,1fr); }
  .orderPage .paneLink {
    display:inline-block;
    align-self:flex-start;
    margin:12px 14px 0;
    color:var(--berry);
    text-underline-offset:.2em;
    font-size:.9rem;
  }
  .orderPage .receipt .paneLink { margin:0 0 0 4px; }
}
