/* Rotasys Sticker Configurator — soft gradient theme, mobile-first */
.rsc{
  --acc:#e0557a; --acc-d:#c9406a; --ink:#2f2430; --muted:#8b7d88;
  --bd:#efe3ea; --bd-soft:#f5ecf1; --card:#ffffff; --chip:#fbeef4;
  --grad:linear-gradient(120deg,#fff5f8 0%,#fdf2f7 45%,#f3e8fd 100%);
  --radius:20px; --shadow:0 6px 24px rgba(90,40,70,.06);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink); -webkit-font-smoothing:antialiased; padding:8px 4px 90px;
}
.rsc *, .rsc *::before, .rsc *::after{ box-sizing:border-box; }
.rsc-inner{ max-width:1140px; margin:0 auto; }

/* Header */
.rsc-head{ text-align:center; margin:8px 0 26px; }
.rsc-title{ font-size:clamp(26px,4vw,38px); font-weight:800; letter-spacing:-.02em; margin:0 0 10px; color:var(--ink); }
.rsc-title em{ font-style:normal; color:var(--acc); }
.rsc-sub{ margin:0 auto; max-width:620px; color:var(--muted); font-size:15px; line-height:1.6; }

/* Layout */
.rsc-cols{ display:grid; grid-template-columns:1fr 350px; gap:26px; align-items:start; }
.rsc-main{ display:flex; flex-direction:column; gap:16px; min-width:0; }

/* Steps */
.rsc-step{ background:var(--card); border:1px solid var(--bd); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); }
.rsc-step-title{ display:flex; align-items:center; gap:10px; font-size:16px; font-weight:700; margin:0 0 16px; }
.rsc-step-note{ font-weight:500; color:var(--muted); font-size:12px; margin-left:2px; }
.rsc-mat-link{ font-size:12.5px; font-weight:600; color:var(--acc); text-decoration:underline; text-underline-offset:3px; margin-left:6px; white-space:nowrap; }
.rsc-mat-link:hover{ color:var(--acc-d); }


.rsc-num{ width:26px;height:26px;border-radius:8px; background:var(--chip); color:var(--acc);
  display:inline-flex;align-items:center;justify-content:center; font-size:13px; font-weight:800; flex-shrink:0; }

/* Shape cards */
.rsc-shapes{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.rsc-card{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:18px 8px;
  background:#fff; border:1.5px solid var(--bd); border-radius:16px; cursor:pointer;
  font-size:13px; font-weight:600; color:var(--ink)!important; transition:all .16s ease; }
.rsc-card:hover{ border-color:#e7b9cc; transform:translateY(-2px); box-shadow:0 6px 14px rgba(160,60,110,.08); }
.rsc-card.is-active{ border-color:var(--acc); background:var(--grad); color:var(--acc); box-shadow:0 4px 12px rgba(224,85,122,.15); }
.rsc-ic{ width:34px; height:34px; }

/* Size input */
.rsc-size-input-row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.rsc-size-box{ display:flex; align-items:stretch; border:1.5px solid var(--bd); border-radius:14px; overflow:hidden; background:#fff; transition:border .15s; }
.rsc-size-box:focus-within{ border-color:var(--acc); box-shadow:0 0 0 3px rgba(224,85,122,.12); }
.rsc-size-input{ border:none; outline:none; padding:14px 16px; font-size:20px; font-weight:700; color:var(--ink); width:130px; background:transparent; }
.rsc-size-input.is-err{ color:#dc2626; }
.rsc-size-input::-webkit-outer-spin-button,.rsc-size-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.rsc-size-input[type=number]{ -moz-appearance:textfield; appearance:textfield; }
.rsc-unit-toggle{ display:flex; border-left:1px solid var(--bd); }
.rsc-unit{ border:none; background:var(--bd-soft); color:var(--muted); padding:0 16px; font-size:13px; font-weight:700; cursor:pointer; transition:all .14s; }
.rsc-unit.is-active{ background:var(--acc); color:#fff; }
.rsc-size-range{ margin:0; color:var(--muted); font-size:12.5px; }
.rsc-size-notes{ margin:14px 0 0; padding:0 0 0 2px; list-style:none; }
.rsc-size-notes li{ position:relative; padding-left:16px; margin-bottom:8px; font-size:12.5px; line-height:1.55; color:var(--muted); }
.rsc-size-notes li::before{ content:''; position:absolute; left:0; top:7px; width:6px; height:6px; border-radius:50%; background:var(--acc); opacity:.5; }
.rsc-size-notes b{ color:var(--ink); font-weight:600; }
.rsc-hint-err{ color:#b91c1c; background:#fef2f2; border-color:#fecaca; }

/* Materials */
.rsc-mats{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.rsc-mat{ display:flex; align-items:center; gap:13px; text-align:left; padding:13px 15px;
  background:#fff; border:1.5px solid var(--bd); border-radius:14px; cursor:pointer; transition:all .16s ease; color:var(--ink); }
.rsc-mat:hover{ border-color:#e7b9cc; transform:translateY(-1px); }
.rsc-mat.is-active{ border-color:var(--acc); background:var(--grad); box-shadow:0 4px 12px rgba(224,85,122,.12); }
.rsc-swatch{ width:40px; height:40px; border-radius:11px; flex-shrink:0; box-shadow:inset 0 0 0 1px rgba(0,0,0,.04); }
.rsc-mat-img{ width:52px; height:52px; object-fit:cover; border-radius:12px; flex-shrink:0;
  border:1.5px solid #e3d3dd; background:#faf5f8; display:block; }
.rsc-mat.is-active .rsc-mat-img{ border-color:var(--acc); }
.rsc-mat-img--ph{ display:inline-block; }
.rsc-ph-art{ background:linear-gradient(135deg,#60a5fa,#2563eb); }
.rsc-ph-pet{ background:linear-gradient(135deg,#f3f4f6,#9ca3af); }
.rsc-ph-hol{ background:linear-gradient(135deg,#c084fc,#f472b6,#38bdf8); }
.rsc-ph-was{ background:linear-gradient(135deg,#fde68a,#f59e0b); }
.rsc-ph-tre{ background:linear-gradient(135deg,#a7f3d0,#10b981); }
.rsc-mat-t b{ display:block; font-size:13.5px; color:var(--ink); }
.rsc-mat-t i{ font-style:normal; font-size:11.5px; color:var(--muted); }

/* Quantity */
.rsc-qtys{ display:flex; flex-wrap:wrap; gap:9px; }
.rsc-qty{ padding:10px 15px; min-width:56px; background:#fff; border:1.5px solid var(--bd); border-radius:11px;
  font-size:13.5px; font-weight:600; color:var(--ink)!important; cursor:pointer; transition:all .14s ease; }
.rsc-qty:hover{ border-color:#e7b9cc; }
.rsc-qty.is-active{ background:var(--acc); border-color:var(--acc); color:#fff; box-shadow:0 4px 10px rgba(224,85,122,.28); }

/* Price panel */
.rsc-panel{ position:sticky; top:24px; background:var(--card); border:1px solid var(--bd);
  border-radius:var(--radius); padding:26px 24px; box-shadow:var(--shadow); }
.rsc-panel-label{ margin:0; font-size:12.5px; color:var(--muted); text-align:center; text-transform:uppercase; letter-spacing:.08em; }
.rsc-price{ margin:6px 0 4px; font-size:46px; font-weight:800; color:var(--acc); text-align:center; line-height:1; letter-spacing:-.02em; }
.rsc-ship{ margin:0 0 20px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; color:var(--muted); }
.rsc-ic-s{ width:18px; height:18px; color:var(--acc); }
.rsc-summary{ margin:0 0 18px; border-top:1px solid var(--bd-soft); }
.rsc-summary > div{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--bd-soft); font-size:13px; }
.rsc-summary dt{ color:var(--muted); margin:0; }
.rsc-summary dd{ margin:0; font-weight:600; }
.rsc-summary .rsc-unit dd{ color:var(--acc); }
.rsc-add{ width:100%; padding:16px; border:none; border-radius:14px; background:var(--acc); color:#fff;
  font-size:16px; font-weight:700; cursor:pointer; transition:all .16s ease; box-shadow:0 6px 16px rgba(224,85,122,.28); }
.rsc-add:hover{ background:var(--acc-d); transform:translateY(-1px); }
.rsc-add:active{ transform:translateY(0); }
.rsc-add:disabled,.rsc-add.is-loading{ opacity:.75; cursor:wait; transform:none; }
.rsc-panel-sub{ margin:12px 0 0; text-align:center; font-size:12px; color:var(--muted); }
.rsc-tip{ margin-top:14px; font-size:12px; color:#9a5b17; background:#fdf6ec; border:1px solid #f3e2c7; border-radius:11px; padding:11px 13px; line-height:1.5; }
.rsc-tip:empty{ display:none; }

/* Mobile sticky bar */
.rsc-bar{ display:none; }

/* Toast */
.rsc-toast{ position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:99999;
  display:flex; align-items:center; gap:12px; background:#22303a; color:#fff;
  padding:14px 18px; border-radius:14px; box-shadow:0 12px 34px rgba(0,0,0,.28); font-size:14px; max-width:92vw; }
.rsc-toast-dot{ width:9px; height:9px; border-radius:50%; background:#34d399; flex-shrink:0; }
.rsc-toast.is-err .rsc-toast-dot{ background:#f87171; }
.rsc-toast-links{ display:flex; align-items:center; gap:6px; margin-left:6px; }
.rsc-toast-links a{ color:#ffd6e3; font-weight:600; text-decoration:underline; white-space:nowrap; font-size:13px; }
.rsc-toast-links a.rsc-toast-cta{ background:var(--acc); color:#fff; text-decoration:none; padding:7px 13px; border-radius:9px; }
.rsc-toast-x{ background:none; border:none; color:#9fb0bb; font-size:20px; cursor:pointer; padding:0 0 0 6px; line-height:1; }

/* ============ RESPONSIVE ============ */
@media (max-width:900px){
  .rsc-cols{ grid-template-columns:1fr; }
  .rsc-panel{ position:static; }
}
@media (max-width:640px){
  .rsc{ padding-bottom:96px; }
  .rsc-step{ padding:18px 16px; }
  .rsc-shapes{ grid-template-columns:repeat(2,1fr); }
  .rsc-mats{ grid-template-columns:1fr; }
  .rsc-size-input-row{ flex-direction:column; align-items:stretch; gap:10px; }
  .rsc-size-box{ width:100%; }
  .rsc-size-input{ flex:1; width:auto; }
  .rsc-size-range{ text-align:center; }
  /* 桌面价格面板隐藏, 用底部固定条 */
  .rsc-panel{ display:none; }
  .rsc-bar{ display:flex; align-items:center; justify-content:space-between; gap:14px;
    position:fixed; left:0; right:0; bottom:0; z-index:9999;
    background:rgba(255,255,255,.92); backdrop-filter:blur(10px);
    border-top:1px solid var(--bd); padding:12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .rsc-bar-price strong{ display:block; font-size:22px; font-weight:800; color:var(--acc); line-height:1; }
  .rsc-bar-price small{ color:var(--muted); font-size:11px; }
  .rsc-bar-btn{ width:auto; flex:1; max-width:220px; padding:14px; }
  .rsc-toast{ bottom:86px; }
}


/* ============ Materials Page ============ */
.rsc-mats-page{ --acc:#e0557a; --acc-d:#c9406a; --ink:#2f2430; --muted:#8b7d88; --bd:#efe3ea; --card:#fff;
  --grad:linear-gradient(120deg,#fff5f8 0%,#fdf2f7 45%,#f3e8fd 100%);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink); max-width:1100px; margin:0 auto; padding:20px 4px 40px; }
.rsc-mats-page *{ box-sizing:border-box; }
.rsc-mp-head{ text-align:center; margin-bottom:34px; }
.rsc-mp-head h2{ font-size:clamp(26px,4vw,36px); font-weight:800; letter-spacing:-.02em; margin:0 0 12px; }
.rsc-mp-head p{ color:var(--muted); max-width:640px; margin:0 auto; font-size:15px; line-height:1.6; }
.rsc-mp-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media(max-width:760px){ .rsc-mp-grid{ grid-template-columns:1fr; } }
.rsc-mp-card{ background:var(--card); border:1px solid var(--bd); border-radius:20px; overflow:hidden;
  box-shadow:0 6px 24px rgba(90,40,70,.06); display:flex; flex-direction:column; transition:transform .18s, box-shadow .18s; }
.rsc-mp-card:hover{ transform:translateY(-3px); box-shadow:0 14px 34px rgba(160,50,100,.12); }
.rsc-mp-img{ height:200px; overflow:hidden; background:var(--grad); }
.rsc-mp-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.rsc-mp-body{ padding:22px 24px 24px; display:flex; flex-direction:column; flex:1; }
.rsc-mp-title{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:4px; }
.rsc-mp-title h3{ margin:0; font-size:20px; font-weight:700; }
.rsc-mp-badge{ font-size:11px; font-weight:700; padding:4px 10px; border-radius:99px; letter-spacing:.02em; }
.rsc-mp-badge.is-gloss{ background:#fde3ee; color:var(--acc-d); }
.rsc-mp-badge.is-matte{ background:#eef0f2; color:#6b7280; }
.rsc-mp-tagline{ color:var(--acc); font-size:13.5px; font-weight:600; margin:6px 0 12px; }
.rsc-mp-features{ list-style:none; padding:0; margin:0 0 14px; }
.rsc-mp-features li{ position:relative; padding-left:22px; margin-bottom:8px; font-size:13.5px; color:#4b3f47; line-height:1.5; }
.rsc-mp-features li::before{ content:'✓'; position:absolute; left:0; top:0; color:var(--acc); font-weight:800; }
.rsc-mp-best{ font-size:13px; color:var(--muted); background:var(--grad); border-radius:11px; padding:11px 13px; margin:0 0 16px; line-height:1.5; }
.rsc-mp-best b{ color:var(--ink); }
.rsc-mp-cta{ margin-top:auto; display:inline-block; text-align:center; background:var(--acc); color:#fff;
  padding:12px 18px; border-radius:12px; font-weight:700; font-size:14px; text-decoration:none; transition:background .15s; }
.rsc-mp-cta:hover{ background:var(--acc-d); }
.rsc-mp-note{ margin-top:26px; background:var(--grad); border:1px solid var(--bd); border-radius:20px; padding:24px 26px; }
.rsc-mp-note h3{ margin:0 0 10px; font-size:18px; }
.rsc-mp-note p{ margin:0; color:#4b3f47; font-size:14px; line-height:1.65; }
