:root{color-scheme:light;--ink:#202c34;--muted:#58656b;--blue:#234dcd;--blue-dark:#163cae;--line:#d9deda;--paper:#f8f8f4;--white:#fff;--tint:#eaf1f8;--sand:#ddd5bb;--corner:16px;font:16px/1.5 "Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0}
button,select,input{font:inherit}
button,select,a{touch-action:manipulation}
button{border:0;color:inherit;background:none;cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #406cea;outline-offset:3px}
[hidden]{display:none!important}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;top:8px;left:8px;background:white;padding:10px;z-index:10}
.layout{width:min(1184px,calc(100% - 88px));margin-inline:auto}
.top{border-bottom:1px solid #e4e6df;background:#fafaf6}
.top-inner{min-height:80px;display:flex;align-items:center;gap:58px}
.brand{font-size:21px;font-weight:750;letter-spacing:.035em;display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.wave{width:35px;height:35px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;gap:2px;background:var(--blue)}
.wave i{width:2.8px;background:white;border-radius:4px;height:8px}
.wave i:nth-child(2){height:15px}.wave i:nth-child(3){height:22px}.wave i:nth-child(4){height:13px}
nav,.header-tools{display:flex;align-items:center;gap:24px}
nav button,nav a,.account-nav,.footer button{font-size:14px}
nav button,.footer button{padding:10px 0}
nav .nav-store{font-weight:700;position:relative}
nav .nav-store:after{content:"";display:block;height:3px;width:18px;margin:3px auto -6px;background:var(--blue);border-radius:3px}
.header-tools{margin-left:auto;gap:18px}
.account-nav,.bag-nav{display:flex;align-items:center;justify-content:center;gap:9px;padding:8px 2px;min-height:40px}
.user-ico{position:relative;width:17px;height:18px;display:inline-block}
.user-ico:before,.user-ico:after{position:absolute;content:"";border:1.7px solid currentColor;left:50%;transform:translateX(-50%)}
.user-ico:before{width:6px;height:6px;border-radius:50%;top:0}
.user-ico:after{width:13px;height:6px;border-bottom:0;border-radius:9px 9px 0 0;bottom:1px}
.bag-nav{gap:7px;border-left:1px solid var(--line);padding-left:19px}
.bag-ico{display:inline-block;width:16px;height:15px;border:1.7px solid currentColor;border-radius:2px;position:relative;margin-top:4px}
.bag-ico:before{content:"";position:absolute;border:1.7px solid currentColor;border-bottom:0;border-radius:7px 7px 0 0;left:3px;top:-6px;width:6px;height:5px}
#bag-count{min-width:19px;text-align:center;color:var(--blue);background:#e4ebfd;border-radius:20px;padding:0 5px;font-size:12px;font-weight:700}
.hero{display:grid;grid-template-columns:1.04fr 1fr;min-height:294px;position:relative;isolation:isolate;border-radius:22px;overflow:hidden;margin-top:30px;background:linear-gradient(112deg,#dae8f2 4%,#e9f0f2 62%,#e9e6d9 100%)}
.hero:after{content:"";position:absolute;right:-14%;top:-85%;width:71%;aspect-ratio:1;z-index:-1;border:1px solid #fff8;border-radius:50%;box-shadow:0 0 0 30px #fff2,0 0 0 75px #fff1;pointer-events:none}
.hero-copy{padding:48px clamp(26px,4vw,64px);align-self:center}
.hero h1{font-size:clamp(38px,4.3vw,64px);font-weight:800;line-height:1.12;letter-spacing:-.046em;margin:0;color:#1e3446}
.hero p{font-size:16px;line-height:1.75;margin:17px 0 23px;color:#435766}
.hero-button,.primary{background:var(--blue);color:white;display:inline-flex;align-items:center;justify-content:center;gap:18px;border-radius:999px;min-height:42px;padding:10px 21px;font-size:14px;font-weight:650}
.hero-button:hover,.primary:hover{background:var(--blue-dark)}
.hero-feature{align-self:stretch;position:relative;display:grid;place-items:center;padding:22px 38px 38px;min-height:238px;isolation:isolate}
.hero-orbit{position:absolute;width:min(72%,330px);height:60%;border-radius:50%;bottom:6%;background:radial-gradient(ellipse at center,#babdab55,transparent 73%);z-index:-1}
.hero-feature img{max-width:88%;width:280px;height:208px;object-fit:contain;mix-blend-mode:multiply;transition:transform .2s}
.hero-feature:hover img{transform:translateY(-3px)}
.hero-tag{position:absolute;right:18px;bottom:14px;display:flex;align-items:center;gap:9px;padding:5px 11px;border-radius:20px;background:#ffffffc9;font-size:12px;color:#354854}
.catalog{margin-top:43px;scroll-margin-top:20px}
.section-heading,.section-heading>div,.footer{display:flex;align-items:baseline}
.section-heading{justify-content:space-between;gap:14px}
.section-heading>div{gap:13px}
h2,h3,p{overflow-wrap:anywhere}
.section-heading h2,.drawer-head h2{margin:0;font-size:26px;line-height:1.3;letter-spacing:-.045em}
.muted{color:var(--muted);font-size:13px}
.sort select{background:transparent;color:var(--muted);font-size:13px;padding:8px 1px;border:none;cursor:pointer}
.categories{display:flex;gap:8px;margin:18px 0 0;overflow-x:auto;padding:1px 2px 3px}
.chip{white-space:nowrap;padding:7px 15px;border-radius:999px;border:1px solid #d6dcd9;font-size:13px;font-weight:550;background:#fbfcf8}
.chip[aria-pressed=true]{background:#263d55;color:#fff;border-color:#263d55}
.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 21px;margin-top:20px}
.product{min-width:0}
.product-visual,.detail-visual{position:relative;display:grid;place-items:center;background:#f3f1ed;overflow:hidden}
.product-visual{width:100%;aspect-ratio:1.27;border-radius:var(--corner);padding:10%;isolation:isolate}
.product-visual img,.detail-visual img{width:100%;height:100%;max-height:100%;object-fit:contain;mix-blend-mode:multiply}
.product-visual img{position:absolute;inset:10%;width:80%;height:80%;transition:transform .22s}
.product-visual:hover{box-shadow:0 0 0 1px #bcc8d2}
.missing-image{font-size:13px;color:#6a7374}
.card-body{padding:12px 1px 0}
.card-body>button{padding:0;text-align:left;font-size:16px;font-weight:650;line-height:1.45}
.card-meta{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:8px}
.points{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;color:var(--blue)}
.points strong{font:bold 22px/1.25 "Segoe UI",Arial,sans-serif;letter-spacing:-.04em}
.points small{font-size:12px;font-weight:550}
.add{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;border:1px solid #c9d2da;background:#fff9;color:#324556;font:25px/1 Arial,sans-serif}
.add:hover{background:var(--blue);border-color:var(--blue);color:white}
.stock{font-size:12px;color:var(--muted);margin-top:5px}
.blank{grid-column:1/-1;margin:5px 0 0;padding:28px 20px;color:var(--muted);text-align:center;border-radius:var(--corner);background:#eeefeb}
.footer{justify-content:space-between;color:var(--muted);margin-top:48px;padding:17px 0 29px;border-top:1px solid var(--line);font-size:12px}
.footer button{font-size:12px;color:var(--ink)}
dialog{color:var(--ink);padding:0;border:0;width:min(480px,100%);height:100%;height:100dvh;max-height:100dvh;max-width:100%;position:fixed;inset:0 0 0 auto;margin:0;background:var(--paper);box-shadow:-8px 0 60px #10212e18}
dialog[open]{animation:slide-in .17s ease-out}
dialog::backdrop{background:#13232d68}
body.modal-open{overflow:hidden}
.drawer{padding:21px clamp(20px,4vw,31px) max(32px,env(safe-area-inset-bottom));}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:2px 0 17px;border-bottom:1px solid var(--line);gap:14px}
.drawer-head h2{font-size:23px}
.round{border-radius:50%;width:37px;height:37px;background:#e8eae5;font:24px/1 Arial,sans-serif}
#panel-body{padding-top:20px}
.detail-visual{height:250px;border-radius:var(--corner);padding:16px}
.detail-copy h3{font-size:23px;margin:18px 0 8px}
.detail-copy p{color:var(--muted);font-size:14px;line-height:1.8}
.detail-cta{margin-top:17px;display:flex;gap:10px;flex-wrap:wrap}
.secondary,.outline,.link-button{display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:600}
.secondary,.outline{min-height:42px;border-radius:999px;padding:9px 18px;border:1px solid #bec9cb}
.secondary{background:#fff}
.link-button{color:var(--blue);padding:6px 0}
.notice{background:#edf1ef;border-radius:10px;padding:11px 13px;margin:12px 0;color:#44545d;font-size:13px;line-height:1.65}
.notice.error{color:#813b32;background:#f7e8e3}
.form-label{display:block;margin:22px 0 8px;font-weight:600}
.code{width:100%;border:1px solid #b9c6c8;border-radius:10px;background:white;padding:12px 14px;font-size:16px;letter-spacing:.06em}
.form-actions{display:flex;align-items:center;gap:12px;margin-top:17px}
.wallet{padding:22px;border-radius:16px;background:#e0ebf5}
.wallet p{margin:0;color:#465b6b;font-size:14px}
.wallet strong{display:block;margin-top:7px;color:var(--blue);font:bold 38px/1.25 "Segoe UI",Arial,sans-serif}
.wallet span{font-size:14px;margin-left:5px}
.wallet-actions,.bag-actions{margin:18px 0;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.order{border-bottom:1px solid var(--line);padding:14px 0}
.order:first-child{padding-top:4px}
.order-heading,.bag-title,.total-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.order h3,.bag-title h3{margin:0;font-size:16px}
.order p{margin:5px 0 0;font-size:13px;color:var(--muted)}
.status{font-size:12px;white-space:nowrap;border-radius:99px;padding:4px 9px;color:#36566c;background:#e3edf4}
.status.issued{color:#24664c;background:#e0eee5}.status.cancelled{color:#60676a;background:#e8eae9}
.bag-row{display:grid;grid-template-columns:68px minmax(0,1fr);gap:13px;align-items:start;padding:14px 0;border-bottom:1px solid var(--line)}
.bag-row:first-child{padding-top:0}
.thumb{height:68px;border-radius:9px;background:#ecede6;display:grid;place-items:center;overflow:hidden}
.thumb img{width:90%;height:90%;object-fit:contain;mix-blend-mode:multiply}
.bag-title h3{line-height:1.4}
.bag-row .points strong{font-size:16px}
.quantity-row{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.stepper{display:inline-flex;align-items:center;justify-content:space-between;border:1px solid #d2d7d5;border-radius:999px;background:#fff;min-height:31px}
.stepper button{min-width:31px;font-size:17px;line-height:1.2}
.stepper span{min-width:22px;text-align:center;font-size:13px}
.remove{font-size:12px;color:var(--muted);min-height:31px;padding:0 3px 0 10px;text-decoration:underline;text-underline-offset:3px}
.total-row{padding:18px 0 4px}
.total-row .points strong{font-size:25px}
.empty-view{padding:40px 12px;text-align:center}
.empty-view h3{margin:5px 0;font-size:18px}.empty-view p{color:var(--muted);font-size:14px;margin:9px 0 18px}
.full{width:100%}.toast{position:fixed;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);background:#20323b;color:#fff;padding:11px 19px;border-radius:999px;font-size:14px;min-width:max-content;max-width:94vw;z-index:10;opacity:0;pointer-events:none;transition:opacity .15s}.toast.visible{opacity:1}
@keyframes slide-in{from{transform:translateX(8%);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(max-width:960px){.layout{width:calc(100% - 56px)}.products{grid-template-columns:repeat(3,minmax(0,1fr))}.top-inner{gap:32px}.hero-copy{padding:35px 32px}.hero{min-height:250px}}
@media(max-width:670px){.layout{width:calc(100% - 32px)}.top-inner{min-height:61px;gap:12px}.brand{font-size:17px;gap:6px}.wave{width:29px;height:29px}.top nav{margin-left:auto;gap:0}.nav-store{display:none}nav button,.account-nav{font-size:12px}.header-tools{gap:9px;margin-left:0}.account-nav{gap:4px}.bag-nav{padding-left:9px;gap:4px}.hero{margin-top:16px;display:grid;grid-template-columns:1.18fr 1fr;min-height:199px;border-radius:16px}.hero-copy{padding:24px 0 24px 18px;position:relative;z-index:1}.hero h1{font-size:clamp(26px,6vw,38px);letter-spacing:-.055em}.hero p{font-size:12px;max-width:170px;margin:11px 0 14px}.hero-button{min-height:35px;font-size:12px;padding:7px 12px;gap:8px}.hero-feature{min-height:168px;padding:16px 4px 24px}.hero-feature img{height:126px;width:100%;max-width:92%}.hero-tag{bottom:9px;right:9px;font-size:10px;padding:3px 6px;max-width:95%;gap:3px}.hero-tag span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog{margin-top:27px}.section-heading h2{font-size:22px}.section-heading>div{gap:7px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 13px;margin-top:14px}.categories{margin-top:12px;gap:6px}.chip{padding:5px 11px;font-size:12px}.product-visual{border-radius:12px;aspect-ratio:1.16}.card-body{padding-top:8px}.card-body>button{font-size:14px}.card-meta{margin-top:4px}.points strong{font-size:20px}.add{width:30px;height:30px;font-size:21px}.footer{margin-top:28px}.detail-visual{height:210px}}
@media(max-width:370px){.layout{width:calc(100% - 24px)}.top-inner{gap:7px}.header-tools{gap:5px}.account-nav .user-ico{display:none}.hero-copy{padding-left:14px}.brand{font-size:16px}.top nav button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.product-visual { padding:0; aspect-ratio:1; background:#f3f1ed; }
.product-visual img { inset:0; width:100%; height:100%; object-fit:contain; mix-blend-mode:normal; }
.detail-visual img{object-fit:contain;mix-blend-mode:normal}
.hero-feature img { mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent); mask-composite:intersect; }
.status.returned { color:#536766; background:#e4eae8; }
.hero-tag #hero-price{white-space:nowrap;flex:none;font-weight:700;color:var(--blue)}

.catalog-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }
.catalog-tools .categories { margin:0; }
.affordable-filter { flex:none; display:inline-flex; align-items:center; gap:6px; padding:7px 12px; min-height:36px; border:1px solid #bfcbd4; border-radius:99px; color:#294257; background:#fff; font-size:13px; }
.affordable-filter span { display:grid; place-items:center; width:16px; height:16px; border:1px solid #899baa; border-radius:50%; color:transparent; font:600 11px/1 Arial,sans-serif; }
.affordable-filter[aria-pressed=true] { color:var(--blue); border-color:#798ed0; background:#edf1ff; }
.affordable-filter[aria-pressed=true] span { color:#fff; border-color:var(--blue); background:var(--blue); }
.blank p { margin:5px 0; font-size:13px; }
.mobile-nav { display:none; }
.drawer-head { position:sticky; top:0; z-index:2; background:var(--paper); padding-top:16px; margin-top:-15px; }
.drawer { max-width:100%; }
.detail-visual { height:clamp(200px,34vh,335px); padding:0; margin-top:15px; }
.gallery-count { position:absolute; right:11px; bottom:10px; color:#3d5060; background:#fffffff0; border-radius:99px; padding:3px 9px; font-size:12px; }
.photo-strip { display:flex; gap:7px; overflow-x:auto; padding:4px 2px; margin-top:7px; }
.photo-strip button { flex:0 0 55px; height:50px; display:grid; place-items:center; padding:2px; background:#f3f1ed; border:1px solid #d6dad6; border-radius:8px; }
.photo-strip button[aria-pressed=true] { border:2px solid var(--blue); }
.photo-strip img { width:100%; height:100%; object-fit:contain; min-height:0; }
.photo-strip .missing-image { font-size:9px; }
.pickup-block { display:flex; flex-direction:column; align-items:start; gap:3px; margin:15px 0 0; padding:12px 14px; border:1px solid #d9e1dd; border-radius:11px; background:#eff3ef; }
.pickup-block strong { font-size:13px; color:#294a3c; }
.pickup-block p, .order .pickup-block p, .detail-copy .pickup-block p { margin:0; font-size:13px; line-height:1.5; color:#45584f; white-space:pre-line; }
.auth-switch { display:flex; gap:4px; padding:4px; border-radius:12px; background:#e8ece9; margin:16px 0 10px; }
.auth-switch button { flex:1; min-height:40px; padding:8px; border-radius:8px; font-size:14px; color:#49575e; }
.auth-switch button[aria-pressed=true] { background:#fff; color:#223e54; font-weight:650; box-shadow:0 1px 3px #20354812; }
.auth-field { display:grid; gap:6px; margin-top:14px; font-size:14px; font-weight:600; }
.auth-field .code { letter-spacing:normal; min-width:0; }
.field-help { display:block; margin-top:5px; font-size:12px; color:var(--muted); }
.reset-link { margin-top:12px; }
.wallet { margin-top:15px; }
.account-list { margin:16px 0; border-top:1px solid var(--line); }
.account-list button { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; border-bottom:1px solid var(--line); text-align:left; padding:15px 1px; }
.account-list span { font-weight:650; }
.account-list small { display:block; margin-top:3px; color:var(--muted); font-size:13px; font-weight:400; }
.account-list b { color:var(--blue); }
.balance-lines { display:grid; gap:5px; margin:11px 0; padding:11px 0; border-block:1px solid var(--line); }
.balance-lines p, .ledger-balance { display:flex; gap:10px; justify-content:space-between; align-items:baseline; margin:0; }
.balance-lines p { font-size:13px; color:var(--muted); }
.balance-lines strong { color:var(--ink); }
.ledger-balance { margin:16px 0; border-radius:14px; background:#e5edf5; color:#304a61; padding:15px 17px; }
.ledger-balance strong { font-size:29px; line-height:1.2; color:var(--blue); }
.opening-periods { margin:12px 0; padding:9px 12px; border:1px solid var(--line); border-radius:10px; }
.opening-periods summary { font-size:13px; font-weight:650; cursor:pointer; }
.opening-periods div { display:flex; flex-wrap:wrap; gap:6px 14px; color:var(--muted); margin-top:7px; font-size:13px; }
.opening-periods b { color:var(--ink); }
.movement { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; border-bottom:1px solid var(--line); padding:13px 0; }
.movement h3 { font-size:15px; margin:0 0 5px; }
.movement p, .movement small { margin:2px 0; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.movement-value { display:grid; align-content:start; justify-items:end; }
.movement-value b { font-size:19px; }
.credit { color:#216347; }
.cancel-link { color:#8a4138; margin:6px 0 0; min-height:36px; }
.cancel-summary { padding:15px 0; border-bottom:1px solid var(--line); }
.cancel-summary h3, .cancel-summary p { margin:3px 0; }
.cancel-summary p { color:var(--muted); font-size:13px; }
@media(min-width:900px) {
  dialog { width:min(540px,100%); }
}
@media(max-width:670px) {
  body { padding-bottom:calc(60px + env(safe-area-inset-bottom)); }
  .top-inner { justify-content:space-between; }
  .top nav { display:none; }
  .header-tools { margin-left:auto; }
  .catalog-tools { align-items:flex-start; flex-wrap:wrap; gap:6px 8px; margin-top:12px; }
  .catalog-tools .categories { width:auto; max-width:100%; flex:1 1 240px; }
  .affordable-filter { font-size:12px; min-height:30px; padding:4px 9px; }
  .mobile-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); position:fixed; bottom:0; z-index:2; inset-inline:0; padding:4px max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)); background:#fbfcf8f5; border-top:1px solid #dbe0da; }
  .mobile-nav a,.mobile-nav button { position:relative; display:flex; gap:4px; justify-content:center; align-items:center; min-height:43px; padding:6px 1px; color:#40525e; font-size:13px; white-space:nowrap; }
  .mobile-nav [aria-current=page] { color:var(--blue); font-weight:700; }
  .mobile-nav [aria-current=page]::before { content:''; width:14px; height:2px; border-radius:2px; background:var(--blue); position:absolute; top:3px; }
  #mobile-bag-count:not(:empty) { border-radius:99px; background:#e5ebfb; color:var(--blue); padding:0 5px; font:600 11px/17px Arial,sans-serif; }
  .toast { bottom:calc(62px + env(safe-area-inset-bottom)); }
  .add { min-width:36px; height:36px; }
  .stepper button,.remove { min-height:36px; }
}
@media(max-width:360px) {
  .hero h1 { font-size:24px; white-space:nowrap; }
  .hero-copy { padding-left:11px; }
  .hero p { max-width:141px; }
  .hero-tag { right:5px; }
  .drawer { padding-inline:15px; }
}

.section-heading .catalog-heading-controls { align-items:center; gap:12px; }
.catalog-tools .categories { flex:1 1 100%; }
@media(max-width:670px) {
  .section-heading { align-items:center; gap:5px; }
  .section-heading .catalog-heading-controls { gap:6px; }
  .catalog-heading-controls .sort select { max-width:98px; }
}
@media(max-width:360px) {
  .catalog-heading-controls .sort select { width:76px; font-size:12px; }
  .section-heading .catalog-heading-controls { gap:5px; }
  .affordable-filter { padding-inline:6px; }
  .catalog-tools .categories { flex-wrap:wrap; }
}

@media(max-width:360px) {
  .section-heading h2 { font-size:20px; white-space:nowrap; }
  #catalog-count { white-space:nowrap; font-size:12px; }
  .section-heading>div:first-child { gap:4px; }
  .catalog-heading-controls .sort select { width:70px; }
  .catalog-heading-controls .affordable-filter { gap:3px; font-size:11px; }
  .categories .chip { padding:5px 8px; }
}
