#raymond-smart-work{color-scheme:light;font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;color:#243e40;padding:116px 24px 40px;border:0;background:transparent;width:min(426px,100%);max-width:none;max-height:calc(100dvh - 12px);overflow:auto;box-sizing:border-box}
#raymond-smart-work:not([open]){display:none}
#raymond-smart-work::backdrop{background:rgb(22 35 35 / .55);backdrop-filter:blur(7px)}
#raymond-smart-work *{box-sizing:border-box}
#raymond-smart-work button,#raymond-smart-work a{font:inherit;-webkit-tap-highlight-color:transparent}
#raymond-smart-work button,#raymond-smart-work a{touch-action:manipulation}
#raymond-smart-work .rsw-deck{display:grid;position:relative;isolation:isolate}
#raymond-smart-work .rsw-card{grid-area:1/1;border-radius:24px;background:#fcffff;box-shadow:0 8px 18px #153a3f30;position:relative;border:0;transform-origin:center center;min-width:0}
#raymond-smart-work .rsw-card.is-front{z-index:2;animation:rsw-front .45s cubic-bezier(.22,1,.36,1)}
#raymond-smart-work .rsw-card.is-back{z-index:1;transform:translate(3px,-85px) rotate(2deg) scale(.97);animation:rsw-bounce 3.8s ease-in-out infinite}
#raymond-smart-work .rsw-book{background:#fff8ee;color:#3e3027}
#raymond-smart-work .is-back .rsw-detail{display:none}
#raymond-smart-work .rsw-card{align-self:start}
#raymond-smart-work .rsw-peek{display:none}
#raymond-smart-work .is-back .rsw-peek{display:flex;align-items:center;justify-content:center;gap:16px;position:absolute;inset:0 0 auto;width:100%;height:80px;padding:10px 18px;border:0;border-radius:24px 24px 0 0;background:linear-gradient(110deg,#ffe0a688,#ed844b44);color:#482e1c;cursor:pointer;transition:filter .2s}
#raymond-smart-work .rsw-peek img{display:block;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 3px 3px #26363726)}
#raymond-smart-work .rsw-peek-copy{display:grid;gap:4px;text-align:left}
#raymond-smart-work .rsw-peek-copy strong{font-size:16px;font-weight:750}
#raymond-smart-work .rsw-peek-copy span{font-size:14px;font-weight:450}
#raymond-smart-work .rsw-peek:hover{filter:brightness(1.07)}
#raymond-smart-work .is-back:hover{animation-play-state:paused}
#raymond-smart-work .rsw-close{position:absolute;right:10px;top:10px;z-index:4;width:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;color:#2f4f51;font:300 34px/1 sans-serif;cursor:pointer}
#raymond-smart-work .rsw-close:hover{color:#132f31}
#raymond-smart-work .rsw-art{height:232px;border-radius:23px 23px 0 0;background:radial-gradient(ellipse at 50% 8%,#b9e9ea,#e8f7f4 52%,#fcffff 80%);display:flex;align-items:center;justify-content:center;padding-top:14px}
#raymond-smart-work .rsw-art>img{display:block;width:226px;height:226px;object-fit:contain;filter:drop-shadow(0 7px 8px #1d7b8610)}
#raymond-smart-work .rsw-book .rsw-art{height:336px;padding-top:26px;background:linear-gradient(180deg,transparent 0%,#fff8ee 100%),linear-gradient(100deg,#f4c294,#e3e6cf 55%,#a8d1bd)}
#raymond-smart-work .rsw-copy{padding:8px 26px 26px;text-align:center}
#raymond-smart-work h2{font-size:32px;line-height:1.3;letter-spacing:-.045em;margin:0;font-weight:750}
#raymond-smart-work .rsw-book h2{font-size:28px}
#raymond-smart-work .rsw-description{font-size:15px;line-height:1.85;color:#587173;margin:16px 0 26px}
#raymond-smart-work .rsw-book .rsw-description{color:#796353;margin:18px 0 26px}
#raymond-smart-work .rsw-primary{display:flex;width:100%;min-height:54px;align-items:center;justify-content:center;margin-top:12px;padding:14px 16px;border:0;border-radius:12px;background:linear-gradient(110deg,#137c8b,#155058);color:white;text-decoration:none;font-size:16px;font-weight:650;cursor:pointer;box-shadow:0 5px 13px #198f9c20;transition:filter .18s,transform .18s}
#raymond-smart-work .rsw-book .rsw-primary{background:linear-gradient(110deg,#ffc38b,#ed9968);color:#482b1b;box-shadow:0 5px 13px #d7874520}
#raymond-smart-work .rsw-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}
#raymond-smart-work [hidden]{display:none!important}
#raymond-smart-work :focus-visible{outline:3px solid #21a4b1;outline-offset:3px}
#raymond-smart-work h2:focus{outline:none;box-shadow:none}
/* Move the original physical book as one object: no second cover perspective or oversized fake pages. */
#raymond-smart-work .rsw-book-preview{display:block;padding:12px 16px;text-decoration:none;border-radius:8px;perspective:1100px}
#raymond-smart-work .rsw-book-object{display:block;position:relative;width:190px;transform-style:preserve-3d;transform:rotateY(0deg);transition:transform .5s cubic-bezier(.2,.65,.3,1);filter:drop-shadow(6px 11px 10px #3d352625)}
#raymond-smart-work .rsw-book-object img{position:relative;display:block;width:100%;height:auto;object-fit:contain;filter:none;transform:none;backface-visibility:hidden}
#raymond-smart-work .rsw-book-object::before{content:'';position:absolute;right:1px;top:3.2%;bottom:2.1%;width:4px;background:repeating-linear-gradient(90deg,#e4ded2 0,#faf7ef 1px,#d7cfc0 2px);transform-origin:right center;transform:rotateY(90deg);backface-visibility:hidden}
#raymond-smart-work .rsw-book-preview:focus-visible .rsw-book-object{transform:rotateY(-12deg) translateY(-3px)}
@media(hover:hover){#raymond-smart-work .rsw-book-preview:hover .rsw-book-object{transform:rotateY(-12deg) translateY(-3px)}}
@keyframes rsw-bounce{0%,65%,100%{transform:translate(3px,-85px) rotate(2deg) scale(.97)}75%{transform:translate(3px,-93px) rotate(2deg) scale(.97)}85%{transform:translate(3px,-85px) rotate(2deg) scale(.97)}92%{transform:translate(3px,-88px) rotate(2deg) scale(.97)}}
@keyframes rsw-front{from{opacity:.75;transform:translate(8px,-25px) rotate(2deg) scale(.97)}to{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}
@media(max-width:600px){#raymond-smart-work{padding:112px 22px 36px}#raymond-smart-work .rsw-copy{padding:10px 22px 22px}#raymond-smart-work .rsw-art{height:216px}#raymond-smart-work .rsw-art>img{width:210px;height:210px}#raymond-smart-work .rsw-book .rsw-art{height:310px}#raymond-smart-work .rsw-book-object{width:176px}#raymond-smart-work .rsw-description{font-size:14px}#raymond-smart-work .rsw-peek-copy strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){#raymond-smart-work .rsw-card{animation:none!important}#raymond-smart-work .rsw-primary,#raymond-smart-work .rsw-book-object{transition:none}}

/* 新書在後方時：無底色，只露出書的上半部（超級），旁邊是對話框 */
#raymond-smart-work .rsw-card.is-back{background:transparent;box-shadow:none;transform:translate(0,-104px);animation:rsw-bounce-book 3.8s ease-in-out infinite}
#raymond-smart-work .rsw-card.is-back .rsw-peek{height:104px;padding:0 0 0 40px;gap:14px;justify-content:flex-start;align-items:flex-start;background:none;border-radius:0}
#raymond-smart-work .rsw-peek-art{display:block;flex-shrink:0;transform:rotate(-6deg);transform-origin:center bottom}
#raymond-smart-work .rsw-peek-book{width:128px;margin-top:34px}
#raymond-smart-work .rsw-peek-gift{width:150px;margin-top:18px;margin-left:-14px;transform:rotate(-8deg)}
#raymond-smart-work .rsw-peek-art img{display:block;width:100%;height:auto;filter:drop-shadow(0 8px 12px #10282a55)}
#raymond-smart-work .rsw-bubble{position:relative;margin-top:30px;padding:10px 16px;border-radius:14px;background:#fff;color:#3e3027;font-size:16px;font-weight:700;line-height:1.4;white-space:nowrap;box-shadow:0 6px 16px #10282a30}
#raymond-smart-work .rsw-bubble::before{content:'';position:absolute;left:-7px;top:50%;width:14px;height:14px;background:#fff;transform:translateY(-50%) rotate(45deg);border-radius:2px}
#raymond-smart-work .rsw-card.is-back .rsw-peek:hover .rsw-peek-book{transform:rotate(-6deg) translateY(-4px)}
#raymond-smart-work .rsw-card.is-back .rsw-peek:hover .rsw-peek-gift{transform:rotate(-8deg) translateY(-4px)}
#raymond-smart-work .rsw-peek-art{transition:transform .25s ease}
@keyframes rsw-bounce-book{0%,65%,100%{transform:translate(0,-104px)}75%{transform:translate(0,-112px)}85%{transform:translate(0,-104px)}92%{transform:translate(0,-107px)}}
@media(max-width:600px){#raymond-smart-work .rsw-card.is-back .rsw-peek{padding-left:28px}#raymond-smart-work .rsw-peek-book{width:116px}#raymond-smart-work .rsw-peek-gift{width:136px}#raymond-smart-work .rsw-bubble{font-size:15px}}
/* Keep the peek callout inside the smallest supported phone layout. */
@media (max-width: 380px) {
  #raymond-smart-work .rsw-card.is-back .rsw-peek { padding-left: 12px; gap: 10px; }
  #raymond-smart-work .rsw-peek-book { width: 106px; }
  #raymond-smart-work .rsw-peek-gift { width: 120px; }
  #raymond-smart-work .rsw-bubble { padding-inline: 12px; }
}
