/* 萬大 WANDA —— 無印風：紙色、墨綠、鼠尾草綠、杏色點綴。
   顏色與字體集中在最上面的 :root，想微調改這裡就好。 */
:root{
  --paper:#f7f7f2; --paper-2:#eef2eb; --ink:#26332d;
  --sage:#91a08f; --sage-dark:#657565; --apricot:#dca36f;
  --line:#d8ded6; --white:#fffefa; --muted:#6f7871;
  --sans:"Noto Sans TC","PingFang TC","Hiragino Sans","Microsoft JhengHei",sans-serif;
  --serif:"Noto Serif TC","Songti TC","Yu Mincho","Hiragino Mincho ProN",serif;
  --header-h:76px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{position:relative;background:var(--paper);color:var(--ink);margin:0;font-family:var(--sans);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
h1,h2,h3,p{margin-top:0}
section,footer{position:relative;scroll-margin-top:calc(var(--header-h) - 4px)}
#top{scroll-margin-top:0}
:focus-visible{outline:2px solid var(--sage-dark);outline-offset:3px}

/* ---- 淡淡的紙張紋路（純 CSS，不載入任何圖） ---- */
body::after{
  content:"";position:absolute;inset:0;z-index:5;pointer-events:none;mix-blend-mode:multiply;opacity:.32;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch' result='t'/><feColorMatrix in='t' values='0 0 0 0 .42  0 0 0 0 .38  0 0 0 0 .30  1.3 0 0 0 -.52'/></filter><rect width='260' height='260' filter='url(%23n)'/></svg>");
  background-size:260px 260px;
}

/* ---- 手繪感分隔線：每個區塊上緣的一條微微晃動的線 ---- */
.hand-top::before{
  content:"";position:absolute;left:0;right:0;top:-3px;height:6px;z-index:3;pointer-events:none;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='6' viewBox='0 0 160 6'><path d='M0 3 C12 1.2 24 4.8 40 3 S68 1.4 80 3 S108 4.8 120 3 S148 1.4 160 3' fill='none' stroke='%2391a08f' stroke-width='1.4' stroke-linecap='round'/></svg>") repeat-x 0 0/160px 6px;
  opacity:.8;
}
/* 從貼圖原圖剪下來的小貓，坐在分隔線上（白底用 multiply 去掉） */
.peek{position:absolute;bottom:100%;z-index:4;display:block;pointer-events:none;mix-blend-mode:multiply}
.peek img{width:100%;height:auto}
.peek-bust{left:27vw;width:92px}
.peek-paws{left:9vw;width:116px}
.peek-bust2{left:12vw;width:86px;transform:scaleX(-1)}

/* ---- 頂欄（會跟著捲動） ---- */
.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;height:var(--header-h);padding:0 5vw;
  background:#f7f7f2f2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:baseline;gap:9px;font-family:var(--serif);font-size:23px;font-weight:700;letter-spacing:.12em}
.brand small{font:500 9px/1 Arial,sans-serif;letter-spacing:.24em;color:var(--sage-dark)}
.site-header nav{display:flex;gap:40px;margin:auto;font-size:13px;font-weight:500;letter-spacing:.05em}
.site-header nav a,.contact-link{padding:8px 0;border-bottom:1px solid transparent;transition:border-color .2s}
.site-header nav a:hover,.contact-link:hover{border-color:var(--sage-dark)}
.contact-link{font-size:13px;font-weight:600}
.menu-btn{display:none;width:44px;height:44px;margin-left:6px;padding:0;border:0;background:none;cursor:pointer;
  flex-direction:column;align-items:center;justify-content:center;gap:5px}
.menu-btn span{display:block;width:22px;height:1.6px;background:var(--ink);border-radius:2px;transition:transform .25s,opacity .2s}
.menu-open .menu-btn span:nth-child(1){transform:translateY(6.6px) rotate(45deg)}
.menu-open .menu-btn span:nth-child(2){opacity:0}
.menu-open .menu-btn span:nth-child(3){transform:translateY(-6.6px) rotate(-45deg)}

/* ---- Hero ---- */
.hero{display:grid;grid-template-columns:minmax(0,44fr) minmax(0,56fr);gap:5vw;min-height:680px;padding:32px 4vw 58px;overflow:hidden}
.hero-copy{position:relative;z-index:2;align-self:center;padding:7vh 1vw 4vh}
.eyebrow,.section-kicker{font:600 11px/1.3 Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:var(--sage-dark)}
.eyebrow::before,.section-kicker::before{content:"";display:inline-block;width:24px;height:1px;margin-right:12px;vertical-align:middle;background:var(--apricot)}
h1,.cast-title h2,.section-head h2,.book-copy h2,.goods-head h2,footer h2{font-family:var(--serif)}
h1{margin:30px 0 28px;font-size:clamp(34px,3.9vw,62px);font-weight:650;line-height:1.28;letter-spacing:-.035em}
h1 em,footer h2 em{font-style:normal;color:var(--sage-dark)}
.intro{max-width:480px;color:var(--muted);font-size:17px;line-height:2}
.hero-actions{display:flex;align-items:center;gap:30px;margin-top:38px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border:1px solid var(--sage-dark);border-radius:999px;font-weight:600;transition:all .2s}
.button:hover{background:var(--sage-dark);color:#fff;transform:translateY(-2px)}
.primary{background:var(--ink);border-color:var(--ink);color:#fff}
.text-link{font-size:14px;font-weight:600}
.text-link span{margin-left:8px;color:var(--apricot)}
.hero-art{position:relative;place-self:center;width:100%;max-width:720px;aspect-ratio:1;overflow:hidden;background:#222827;border-radius:7px 72px 7px 7px}
.hero-art img,.story-image img,.book-cover img,.goods-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---- 主角們 ---- */
.cast{background:var(--paper-2);padding:100px 5vw 110px}
.cast>.section-kicker{margin-bottom:32px}
.cast-grid{display:grid;grid-template-columns:1.15fr repeat(3,1fr);border-top:1px solid var(--line)}
.cast-grid>*{padding:38px 30px;border-right:1px solid var(--line)}
.cast-grid>:first-child{padding-left:0}
.cast-grid>:last-child{border-right:0}
.cast-title h2,.section-head h2,.book-copy h2,.goods-head h2,footer h2{font-size:clamp(36px,3.8vw,58px);font-weight:650;line-height:1.32;letter-spacing:-.035em}
.cast-title p{color:var(--muted);line-height:1.8}
.cast article{display:flex;flex-direction:column;gap:25px}
.cat-portrait{position:relative;display:block;width:122px;height:122px;overflow:hidden;border:5px solid #ffffffd1;border-radius:50%;box-shadow:0 8px 22px #43524621}
.cat-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cat-portrait.heihei img{object-position:53% 31%;transform-origin:53% 34%;transform:scale(1.5) rotate(-5deg)}
.cat-portrait.nini img{object-position:50% 36%;transform-origin:50% 38%;transform:scale(1.48)}
.cast article h3{margin-bottom:12px;font-family:var(--serif);font-size:25px;font-weight:650}
.cast article h3 small{display:block;margin:8px 0 0;font:500 14px/1.6 var(--sans);letter-spacing:.03em;color:var(--sage-dark)}
.cast article p{color:var(--muted);font-size:16px;line-height:2}

/* ---- 故事牆 ---- */
.stories{padding:110px 5vw}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:56px}
.section-head h2{margin:22px 0 0}
.section-head>p{color:var(--muted);line-height:1.9}
.story-list{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.story-card{position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:10px;transition:transform .25s,box-shadow .25s}
a.story-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px #37483e17}
.story-image{position:relative;aspect-ratio:1;overflow:hidden;background:var(--paper-2)}
.story-image img{transition:transform .35s}
a.story-card:hover .story-image img{transform:scale(1.02)}
.story-text{flex:1;padding:25px 56px 31px 26px}
.story-no{display:block;margin-bottom:18px;font:600 12px Arial,sans-serif;color:var(--apricot)}
.story-tag{margin-bottom:10px;font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--sage-dark)}
.story-card h3{margin-bottom:13px;font-family:var(--serif);font-size:29px;font-weight:650;line-height:1.3}
.story-copy{max-width:330px;margin:0;color:var(--muted);font-size:14px;line-height:1.85}
.story-arrow{position:absolute;right:22px;bottom:20px;font-size:20px;color:var(--sage-dark)}
/* 預留的空格（預設不顯示，只在預覽時出現） */
.story-card.placeholder{background:transparent;border:1.5px dashed var(--sage)}
.story-card.placeholder .story-image{display:flex;align-items:center;justify-content:center;background:var(--paper-2)}
.ph-label{padding:6px 16px;border:1px dashed var(--sage);border-radius:999px;font-size:13px;letter-spacing:.2em;color:var(--sage-dark)}
.story-card.placeholder h3{font-size:22px;color:var(--sage-dark)}
.noscript{color:var(--muted);line-height:1.9}

/* ---- 書 ---- */
.book{display:grid;grid-template-columns:minmax(300px,.85fr) 1.2fr;align-items:center;gap:9vw;padding:115px 12vw;background:var(--paper-2)}
.book-cover{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:#fff;border-radius:6px;box-shadow:0 20px 50px #303f3529}
.book-copy h2{margin:22px 0 31px}
.book-copy>p:not(.section-kicker):not(.quote){max-width:580px;color:var(--muted);font-size:16px;line-height:2}
.quote{max-width:620px;padding-left:22px;border-left:2px solid var(--apricot);font-family:var(--serif);font-size:21px;font-weight:600;line-height:1.8}
.book-note{display:inline-block;margin-top:24px;padding-top:17px;border-top:1px solid var(--line);font-size:12px;font-weight:500;letter-spacing:.08em;color:var(--muted)}
.purchase-area{margin-top:34px;padding-top:30px;border-top:1px solid var(--line)}
.purchase-group+.purchase-group{margin-top:30px}
.purchase-heading{display:flex;justify-content:space-between;align-items:baseline;gap:18px;margin-bottom:14px}
.purchase-heading h3{margin:0;font-family:var(--serif);font-size:22px;font-weight:650}
.purchase-heading span{font-size:13px;color:var(--muted)}
.store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.store-link{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:62px;padding:13px 40px 13px 15px;background:#fffefa9e;border:1px solid var(--line);border-radius:8px;font-size:15px;font-weight:600;transition:all .2s}
.store-link:hover{border-color:var(--sage-dark);background:var(--white);transform:translateY(-2px)}
.store-link small{margin-top:4px;font-size:12px;font-weight:500;line-height:1.45;color:var(--sage-dark)}
.store-link b{position:absolute;top:50%;right:15px;transform:translateY(-50%);font-size:16px;font-weight:500;color:var(--sage-dark)}
.store-link.featured{background:#f9fbf7;border-color:#bdc7ba}
.store-link.featured::before{content:"限定";width:fit-content;margin-bottom:5px;padding:2px 7px;border-radius:999px;background:var(--apricot);color:#fff;font-size:10px;font-weight:600;letter-spacing:.08em}
.store-link.compact{flex-direction:row;justify-content:flex-start;align-items:center;min-height:48px;font-size:14px}

/* ---- 貼圖 / 周邊 ---- */
.goods{padding:110px 7vw 120px;border-top:1px solid var(--line)}
.goods-head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;max-width:1280px;margin:0 auto 50px}
.goods-head h2{margin:22px 0 0}
.goods-head>p{margin-bottom:4px;color:var(--muted);font-size:16px;line-height:1.9}
.goods-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:1280px;margin:0 auto}
.goods-card{display:block;overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:12px;transition:transform .25s,box-shadow .25s}
.goods-card:hover{transform:translateY(-5px);box-shadow:0 16px 38px #37483e1a}
.goods-image{position:relative;aspect-ratio:1100/747;overflow:hidden;background:#fff}
.goods-image img{transition:transform .35s}
.goods-card:hover .goods-image img{transform:scale(1.025)}
.goods-copy{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;min-height:176px;padding:25px 27px 27px}
.goods-copy span{font-size:11px;font-weight:600;letter-spacing:.13em;color:var(--sage-dark)}
.goods-copy h3{margin:9px 0 10px;font-family:var(--serif);font-size:27px;font-weight:650}
.goods-copy p{max-width:430px;margin-bottom:0;color:var(--muted);font-size:15px;line-height:1.85}
.goods-copy b{font-size:22px;font-weight:500;color:var(--sage-dark)}

/* ---- 頁尾 ---- */
footer{padding:100px 5vw 35px;background:#738273;color:#fffefa;text-align:center}
footer.hand-top::before{opacity:.5}
footer .section-kicker{color:#e8ece6}
footer h2{margin:34px 0;font-size:clamp(48px,6.5vw,88px)}
footer h2 em{color:#f0c99f}
footer>p:not(.section-kicker){font-size:17px;line-height:1.9;color:#edf0eb}
footer a{text-decoration:underline;text-decoration-color:#ffffff66;text-underline-offset:5px}
.footer-bottom{display:flex;justify-content:space-between;margin-top:88px;padding-top:24px;border-top:1px solid #ffffff57;font-size:11px;font-weight:500;letter-spacing:.08em;color:#e4e9e2}

/* ---- 平板 / 手機 ---- */
@media (max-width:900px){
  :root{--header-h:64px}
  .menu-btn{display:flex}
  .contact-link{margin-left:auto}
  .site-header nav{display:none;position:absolute;left:0;right:0;top:100%;margin:0;padding:6px 6vw 18px;flex-direction:column;gap:0;
    background:#f7f7f2fa;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);box-shadow:0 14px 24px #37483e14}
  .menu-open nav{display:flex}
  .site-header nav a{padding:15px 0;border-bottom:1px solid var(--line);font-size:15px}
  .site-header nav a:last-child{border-bottom:0}
  .hero{display:flex;flex-direction:column;min-height:0;padding:0 0 84px}
  .hero-copy{padding:70px 7vw 60px}
  .hero-art{width:86%;max-width:620px;margin:0 auto;border-radius:5px 48px 5px 5px}
  .cast{padding:76px 7vw}
  .cast-grid{grid-template-columns:1fr}
  .cast-grid>*{padding:30px 0;border-right:0;border-bottom:1px solid var(--line)}
  .cast article{flex-direction:row;align-items:flex-start}
  .cat-portrait{flex:0 0 104px;width:104px;height:104px}
  .story-list{grid-template-columns:repeat(2,1fr)}
  .book{grid-template-columns:1fr;padding:82px 12vw}
  .book-cover{max-width:430px}
  .book-copy{margin-top:45px}
  .goods{padding:82px 7vw 90px}
  h1{font-size:clamp(34px,8.6vw,56px)}
  .peek-bust{left:auto;right:8vw;width:64px}
  .peek-paws{left:7vw;width:92px}
  .peek-bust2{left:8vw;width:70px}
}
@media (max-width:640px){
  .story-list{grid-template-columns:1fr}
  .story-card h3{font-size:26px}
}
@media (max-width:560px){
  .contact-link{font-size:12px}
  .site-header{padding:0 4vw 0 6vw}
  .hero-copy{padding-top:55px}
  .hero-actions{flex-direction:column;align-items:flex-start;gap:22px}
  .section-head{flex-direction:column;align-items:flex-start}
  .section-head>p{margin-bottom:0}
  .stories{padding:72px 7vw}
  .book{padding:70px 9vw}
  .goods-head{flex-direction:column;align-items:flex-start}
  .goods-grid{grid-template-columns:1fr}
  .goods-copy{min-height:0;padding:22px}
  .store-grid{grid-template-columns:1fr}
  .purchase-heading{flex-direction:column;align-items:flex-start;gap:3px}
  .footer-bottom{flex-direction:column;gap:12px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .story-card,.goods-card,.button,.store-link,.story-image img,.goods-image img,.menu-btn span{transition:none}
}
