:root{
  --purple-900:#2d0050;
  --purple-700:#6100a4;
  --purple-500:#7b2cbf;
  --purple-400:#8234c6;
  --lavender:#deb7ff;
  --ink:#1c1b1b;
  --gray:#4c4353;
  --bg:#fff7fe;
  --footer-bg:#eadfec;
  --dark:#2e2a24;
  --font-display:'Playfair Display',serif;
  --font-latin:'Work Sans',sans-serif;
  --font-cjk:'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;
  --shadow-glow:0 30px 60px 0 rgba(97,0,164,.08);
  --shadow-card:0 30px 30px rgba(97,0,164,.08);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  background:var(--bg);
  font-family:var(--font-cjk);
  color:var(--ink);
  overflow-x:clip; /* clip 不產生 scroll container，position:sticky 才能作用 */
}
img{display:block;}
a{text-decoration:none;color:inherit;}
button{font-family:inherit;border:none;background:none;cursor:pointer;}
input{font-family:inherit;border:none;background:none;outline:none;}
.only-m{display:none;}

/* ============ Desktop: Top Navigation ============ */
.site-nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  padding:16px 64px 17px;
  background:rgba(255,255,255,.7);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.2);
  box-shadow:var(--shadow-glow);
}
.nav-inner{
  max-width:1152px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;
}
.site-nav .nav-left{display:flex;align-items:center;gap:48px;min-width:0;}
.logo{
  font-family:var(--font-display);font-weight:600;
  font-size:40px;line-height:48px;letter-spacing:-2px;
  color:var(--purple-700);white-space:nowrap;
}
.nav-links{
  display:flex;align-items:center;gap:24px;
  max-width:600px;overflow-x:auto;
  scrollbar-width:none;
  padding-bottom:2px;
}
.nav-links::-webkit-scrollbar{display:none;}
.nav-links a{
  font-size:14px;line-height:19.6px;font-weight:500;
  color:var(--gray);white-space:nowrap;
  padding:2px 0 6px;
}
.nav-links a.active{
  color:var(--purple-900);
  border-bottom:2px solid var(--purple-700);
}
.nav-right{display:flex;align-items:center;gap:16px;flex-shrink:0;}
.nav-search-btn{
  width:40px;height:40px;border-radius:9999px;
  background:#fcf9f8;
  display:flex;align-items:center;justify-content:center;
}
.nav-search-btn img{width:18px;height:18px;}
.signin-btn{
  background:var(--purple-900);color:#fff;
  font-family:var(--font-latin);font-weight:500;
  font-size:14px;line-height:19.6px;
  padding:8px 24px;border-radius:9999px;
}

/* ============ Desktop: Layout shell ============ */
.page-d{
  max-width:1280px;margin:0 auto;
  padding:128px 0 0;
  display:flex;flex-direction:column;gap:96px;
}
.main-d{
  padding:0 64px;
  display:flex;flex-direction:column;gap:96px;
}

/* ============ Desktop: Hero ============ */
.hero{
  display:flex;align-items:center;gap:48px;
  min-height:600px;
}
.hero-left{
  flex:1;min-width:0;
  display:flex;flex-direction:column;align-items:flex-start;gap:31px;
  position:relative;z-index:2;
}
.hero-left h1{
  font-family:var(--font-display);font-weight:700;
  font-size:64px;line-height:80px;letter-spacing:-1.28px;
  color:var(--purple-900);
}
.hero-sub{
  max-width:448px;
  font-size:18px;line-height:28.8px;font-weight:500;
  color:var(--gray);
}
.ai-search-bar{
  width:100%;max-width:576px;
  display:flex;align-items:center;gap:16px;
  padding:10px 9px 9px 25px;
  border-radius:9999px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(255,255,255,.3);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  box-shadow:var(--shadow-glow);
}
.ai-search-bar .sparkle{width:22px;height:22px;flex-shrink:0;}
.ai-search-bar input{
  flex:1;min-width:0;
  padding:10px 12px;
  font-size:16px;font-weight:500;color:var(--gray);
}
.ai-search-bar input::placeholder{color:var(--gray);opacity:1;}
.explore-btn{
  flex-shrink:0;
  background:var(--purple-900);color:#fff;
  font-size:14px;line-height:19.6px;font-weight:500;
  padding:12px 24px;border-radius:9999px;
}
.hot-tags{
  display:flex;gap:12px;flex-wrap:wrap;
  padding-top:17px;
}
.hot-tags span{
  background:rgba(222,183,255,.3);
  color:var(--purple-700);
  font-size:12px;line-height:12px;font-weight:500;letter-spacing:1.2px;
  padding:8px 16px;border-radius:9999px;
  white-space:nowrap;
}

/* Hero right: swipeable bubble collage */
.hero-right{
  flex:1;min-width:0;
  position:relative;height:600px;
}
.hero-blob-bg{
  position:absolute;inset:-75px -69px;
  background:rgba(241,219,255,.4);
  filter:blur(32px);opacity:.5;
  border-radius:432px 138px 478.5px 241.5px;
  pointer-events:none;
}
.hero-blob-1{
  position:absolute;right:-24px;top:-24px;
  width:256px;height:256px;
  background:rgba(244,217,255,.3);
  filter:blur(8px);opacity:.4;
  transform:rotate(12deg);
  border-radius:64px 192px 51.2px 230.4px;
  pointer-events:none;
}
.hero-blob-2{
  position:absolute;left:48px;bottom:48px;
  width:288px;height:288px;
  background:rgba(222,183,255,.3);
  filter:blur(6px);opacity:.4;
  border-radius:201.6px 86.4px 201.6px 187.2px;
  pointer-events:none;
}
.bubble{
  position:absolute;
  border:4px solid rgba(255,255,255,.6);
  box-shadow:var(--shadow-glow);
  padding:4px;
  overflow:hidden;
}
.bubble .bubble-img{
  position:absolute;inset:4px;
  border-radius:inherit;
  overflow:hidden;
}
.bubble .bubble-img img{
  width:100%;height:100%;object-fit:cover;
}
.bubble .bubble-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 50%,rgba(45,0,80,.7) 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  text-align:center;
}
.bubble-title{
  color:#fff;font-weight:500;
  filter:drop-shadow(0 2px 1px rgba(0,0,0,.06)) drop-shadow(0 4px 1.5px rgba(0,0,0,.07));
}
.bubble-tag{
  background:rgba(255,255,255,.9);
  color:var(--purple-900);
  border-radius:9999px;font-weight:500;
}
/* breathing blob shapes — percent radii so any bubble size reuses them;
   rest frame (0%/100%) matches the Figma comp, mid frames morph hard */
@keyframes blob-a{
  0%,100%{border-radius:28% 85% 23% 100%;}
  25%{border-radius:55% 55% 45% 70% / 40% 75% 35% 85%;}
  50%{border-radius:20% 95% 40% 75% / 55% 60% 25% 95%;}
  75%{border-radius:45% 70% 30% 90% / 30% 85% 50% 70%;}
}
@keyframes blob-b{
  0%,100%{border-radius:47% 16% 51% 27%;}
  25%{border-radius:30% 40% 35% 50% / 45% 25% 55% 35%;}
  50%{border-radius:55% 25% 60% 20% / 35% 45% 40% 55%;}
  75%{border-radius:40% 30% 45% 40% / 55% 20% 50% 30%;}
}
@keyframes blob-c{
  0%,100%{border-radius:24% 29% 57% 53%;}
  25%{border-radius:45% 20% 40% 65% / 35% 45% 50% 45%;}
  50%{border-radius:20% 45% 65% 40% / 50% 30% 45% 60%;}
  75%{border-radius:35% 25% 50% 55% / 25% 55% 60% 40%;}
}
@keyframes blob-d{
  0%,100%{border-radius:60% 40% 55% 45% / 50% 60% 40% 55%;}
  25%{border-radius:40% 60% 45% 55% / 60% 40% 55% 45%;}
  50%{border-radius:55% 45% 60% 40% / 45% 55% 45% 60%;}
  75%{border-radius:45% 55% 40% 60% / 55% 45% 60% 40%;}
}
.shape-a{border-radius:28% 85% 23% 100%;animation:blob-a 7s ease-in-out infinite;}
.shape-b{border-radius:47% 16% 51% 27%;animation:blob-b 8.2s ease-in-out infinite;}
.shape-c{border-radius:24% 29% 57% 53%;animation:blob-c 7.6s ease-in-out infinite;}
.shape-d{border-radius:60% 40% 55% 45% / 50% 60% 40% 55%;animation:blob-d 6.5s ease-in-out infinite;}
.dl-1{animation-delay:-2.2s;}
.dl-2{animation-delay:-4.4s;}
.dl-3{animation-delay:-6.6s;}
.size-lg{width:369px;height:369px;}
.size-md{width:314px;height:314px;}
.size-sm{width:284px;height:284px;}
.size-xs{width:190px;height:190px;}
/* slide layouts — coords are inside the padded (+48px) carousel box */
.posA-1{right:16px;top:6px;z-index:3;}
.posA-2{right:48px;top:312px;z-index:2;}
.posA-3{left:15px;bottom:290px;z-index:1;}
.posA-1m{left:16px;top:6px;z-index:3;}
.posA-2m{left:48px;top:312px;z-index:2;}
.posA-3m{right:15px;bottom:290px;z-index:1;}
.posB-1{left:10px;top:40px;z-index:2;}
.posB-2{right:24px;top:6px;z-index:3;}
.posB-3{right:60px;bottom:30px;z-index:1;}
.posB-4{left:96px;bottom:64px;z-index:3;}
/* bubble typography variants */
.bubble .bubble-overlay{padding:0 16px 24px;}
.bubble .bubble-title{font-size:24px;line-height:31.2px;}
.bubble .bubble-tag{font-size:10px;line-height:15px;letter-spacing:.5px;padding:4px 12px;margin-top:8px;}
.bubble.title-lg .bubble-overlay{padding:0 16px 32px;}
.bubble.title-lg .bubble-title{font-size:40px;line-height:50px;}
.bubble.title-lg .bubble-tag{font-size:12px;line-height:18px;letter-spacing:.6px;padding:6px 16px;margin-top:12px;}
.bubble.size-xs .bubble-overlay{padding:0 12px 18px;}
.bubble.size-xs .bubble-title{font-size:16px;line-height:21px;}
.bubble.size-xs .bubble-tag{font-size:9px;padding:3px 10px;margin-top:6px;}
.bubble .bubble-title.latin{font-family:'Be Vietnam Pro',var(--font-cjk);font-weight:700;}
/* swipeable hero carousel */
.hero-carousel{
  position:absolute;inset:-48px;
  display:flex;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
}
.hero-carousel.dragging{scroll-snap-type:none;cursor:grabbing;}
.hero-carousel::-webkit-scrollbar{display:none;}
.hero-carousel img{user-select:none;-webkit-user-drag:none;}
.hero-slide{flex:0 0 100%;position:relative;scroll-snap-align:start;}
.hero-dots{
  position:absolute;bottom:16px;left:50%;transform:translateX(-50%);
  display:flex;gap:8px;align-items:center;z-index:5;
}
.hero-dots .dot{
  width:8px;height:8px;padding:0;border-radius:9999px;
  background:rgba(45,0,80,.3);
  transition:width .3s ease,background .3s ease;
}
.hero-dots .dot.active{width:32px;background:var(--purple-900);}

/* ============ Desktop: Bento Grid ============ */
.bento{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:24px;
  align-items:start;
}
.bento-left{
  grid-column:1/span 8;
  display:flex;flex-direction:column;gap:24px;
}
.featured-banner{
  position:relative;height:400px;width:100%;
  border-radius:32px;overflow:hidden;
  box-shadow:var(--shadow-glow);
}
.featured-banner>img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
.featured-banner .banner-gradient{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(46,42,36,.8) 0%,rgba(46,42,36,.2) 50%,rgba(46,42,36,0) 100%);
}
.banner-content{
  position:absolute;left:0;right:0;bottom:0;
  padding:36px 32px 32px;
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;
}
.banner-badge{
  background:var(--purple-900);color:#fff;
  font-size:12px;line-height:12px;font-weight:500;letter-spacing:1.2px;
  padding:4px 12px;border-radius:9999px;
}
.banner-content h2{
  padding-top:8px;
  color:#fff;font-size:40px;line-height:48px;font-weight:500;
}
.banner-sub{
  color:rgba(255,255,255,.8);
  font-size:16px;line-height:25.6px;font-weight:500;
}
.section-head{
  display:flex;align-items:center;justify-content:space-between;width:100%;
}
.section-title{
  display:flex;align-items:center;gap:12px;
  color:var(--purple-900);
  font-size:24px;line-height:31.2px;font-weight:500;
}
.section-title img{width:20px;height:19px;}
.more-link{
  display:flex;align-items:center;gap:4px;
  color:var(--purple-700);
  font-size:14px;line-height:19.6px;font-weight:500;
}
.more-link img{width:9.3px;height:9.3px;}
.picks-row{display:flex;gap:24px;width:100%;}
.article-card{
  flex:1;min-width:0;
  background:#fff;border-radius:48px;
  padding:16px;
  display:flex;gap:16px;align-items:flex-start;
  filter:drop-shadow(0 30px 30px rgba(97,0,164,.08));
}
.article-card .thumb{
  width:96px;height:96px;flex-shrink:0;
  border-radius:32px;overflow:hidden;
}
.article-card .thumb img{width:100%;height:100%;object-fit:cover;}
.article-card .card-body{
  flex:1;min-width:0;
  display:flex;flex-direction:column;justify-content:space-between;
  align-self:stretch;padding:4px 0;
}
.article-card h4{
  font-size:16px;line-height:25.6px;font-weight:500;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.article-card .card-cat{
  margin-top:11px;
  color:var(--purple-700);
  font-size:10px;line-height:15px;font-weight:500;letter-spacing:.5px;
}
.card-meta{
  display:flex;gap:8px;align-items:center;
  color:var(--gray);
  font-size:12px;line-height:18px;
}
.card-meta .num{font-family:var(--font-latin);}

/* Trending widget */
.bento-right{grid-column:9/span 4;}
.trending-widget{
  background:#f7f2f2;border-radius:16px;
  padding:24px 24px 32px;
  display:flex;flex-direction:column;gap:24px;
  filter:drop-shadow(0 30px 30px rgba(97,0,164,.08));
}
.trending-widget .section-title img{width:16px;height:19px;}
.rank-list{display:flex;flex-direction:column;gap:24px;padding-bottom:8px;}
.rank-item{display:flex;gap:16px;align-items:flex-start;}
.rank-badge{
  width:32px;height:32px;flex-shrink:0;
  border-radius:9999px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-weight:700;font-size:14px;
}
.rank-1 .rank-badge{background:#ba1a1a;color:#fff;}
.rank-2 .rank-badge{background:#8234c6;color:#fff;}
.rank-3 .rank-badge{background:#deb7ff;color:#673884;}
.rank-4 .rank-badge{background:#e6e1e1;color:#4c4353;}
.rank-item .rank-body{min-width:0;display:flex;flex-direction:column;gap:4px;}
.rank-item h4{
  font-size:16px;line-height:25.6px;font-weight:500;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.rank-item .rank-meta{
  font-family:var(--font-latin);
  color:var(--gray);font-size:12px;line-height:18px;
}
.full-rank-btn{
  width:100%;
  border:1px solid #cfc2d5;border-radius:48px;
  padding:13px 0;
  color:var(--purple-900);
  font-size:14px;line-height:19.6px;font-weight:500;text-align:center;
}

/* ============ Desktop: Collapsible AI Chat Footer ============ */
.mega-footer{
  background:var(--footer-bg);
  border-radius:32px 32px 0 0;
  overflow:hidden;
  width:100%;
}
.chat-toggle{
  width:100%;
  background:var(--dark);
  border-bottom:1px solid rgba(255,255,255,.1);
  padding:16px 64px 17px;
  display:flex;align-items:center;justify-content:space-between;
  text-align:left;
}
.chat-toggle .toggle-left{display:flex;align-items:center;gap:12px;}
.chat-toggle .toggle-left img{width:20px;height:20px;}
.chat-toggle h3{color:#fff;font-size:20px;line-height:30px;font-weight:500;}
.chat-toggle .chevron{width:12px;height:7.4px;transition:transform .3s ease;}
.mega-footer.collapsed .chat-toggle .chevron{transform:rotate(180deg);}
.chat-section-wrap{
  overflow:hidden;
  max-height:400px;
  transition:max-height .4s ease;
}
.mega-footer.collapsed .chat-section-wrap{max-height:0;}
.chat-section{
  position:relative;
  background:var(--dark);
  min-height:220px;max-height:400px;
  display:flex;align-items:center;justify-content:center;
  padding:24px 64px;
  overflow:hidden;
}
.chat-inner{
  position:relative;z-index:2;
  width:100%;max-width:672px;
  padding:24px 0;
  display:flex;flex-direction:column;gap:16px;
}
.chat-inner h4{
  text-align:center;
  color:rgba(255,255,255,.8);
  font-size:16px;line-height:24px;font-weight:500;
}
.chat-input-wrap{position:relative;width:100%;}
.chat-input-wrap input{
  width:100%;
  background:#444039;
  border:1px solid rgba(126,115,132,.5);
  border-radius:9999px;
  padding:19px 64px 18.6px 25px;
  font-size:16px;color:#fff;
  box-shadow:inset 0 2px 4px 1px rgba(0,0,0,.05);
}
.chat-input-wrap input::placeholder{color:rgba(255,255,255,.5);opacity:1;}
.chat-send{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:40px;height:40px;border-radius:9999px;
  background:var(--purple-900);
  display:flex;align-items:center;justify-content:center;
}
.chat-send img{width:13.3px;height:13.3px;}
/* scattered bottom blobs */
.chat-blobs{position:absolute;left:0;right:0;bottom:0;height:64px;opacity:.8;pointer-events:none;z-index:0;}
.chat-blobs i{position:absolute;display:block;}
.cb1{left:32px;bottom:0;width:48px;height:32px;background:#deb7ff;border-radius:16px 16px 0 48px;transform:rotate(12deg);}
.cb2{left:19%;bottom:0;width:64px;height:40px;background:#f1dbff;border-radius:9999px 9999px 32px 32px;transform:rotate(-12deg);}
.cb3{left:37%;bottom:0;width:80px;height:48px;background:#deb7ff;border-radius:9999px 16px 9999px 9999px;transform:rotate(-6deg);}
.cb4{left:55%;bottom:0;width:64px;height:32px;background:#f1dbff;border-radius:24px 24px 2px 2px;}
.cb5{left:73%;bottom:-5px;width:56px;height:48px;background:#e5b4ff;border-radius:0 9999px 0 9999px;transform:rotate(-12deg);}
.cb6{right:32px;bottom:0;width:96px;height:48px;background:#deb7ff;border-radius:24px 0 24px 0;}
/* floating jelly-bean tags — container ignores clicks, beans catch them */
.chat-tags{position:absolute;inset:0;pointer-events:none;z-index:1;}
@keyframes tag-drift{
  0%,100%{transform:translate(0,0) rotate(var(--rot,0deg));}
  25%{transform:translate(5px,-9px) rotate(calc(var(--rot,0deg) + 4deg));}
  50%{transform:translate(-6px,-4px) rotate(calc(var(--rot,0deg) - 3deg));}
  75%{transform:translate(4px,7px) rotate(calc(var(--rot,0deg) + 2deg));}
}
.chat-tag{
  position:absolute;
  pointer-events:auto;
  cursor:pointer;
  padding:12px 22px;border-radius:9999px;
  font-size:12px;line-height:18px;font-weight:700;
  white-space:nowrap;
  transform:rotate(var(--rot,0deg));
  /* candy shell: top sheen + bottom shading over the base color */
  background-image:linear-gradient(160deg,rgba(255,255,255,.55) 0%,rgba(255,255,255,.12) 42%,rgba(255,255,255,0) 55%,rgba(0,0,0,.06) 100%);
  box-shadow:
    0 10px 15px -3px rgba(0,0,0,.35),
    0 4px 6px -4px rgba(0,0,0,.3),
    inset 0 -6px 10px rgba(0,0,0,.18),
    inset 0 3px 5px rgba(255,255,255,.65);
  animation:tag-drift 8s ease-in-out infinite;
  transition:filter .2s ease;
}
.chat-tag::after{ /* specular gloss dot */
  content:'';
  position:absolute;left:12%;top:14%;
  width:34%;height:26%;
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.1));
  border-radius:50%;
  filter:blur(1px);
  pointer-events:none;
}
.chat-tag:hover{
  animation-play-state:paused; /* stop drifting under the cursor so it stays clickable */
  filter:brightness(1.08);
}
.chat-tag:active{filter:brightness(.95);}
.ct1{right:31px;top:34px;background-color:#ffceb2;color:#8e4a23;--rot:-5deg;animation-duration:7.2s;}
.ct2{right:45px;bottom:48px;background-color:#b2c9ff;color:#1a3875;--rot:10deg;animation-duration:8.8s;animation-delay:-2.4s;}
.ct3{right:189px;top:80px;background-color:#ffb2d9;color:#751a4a;--rot:-15deg;animation-duration:7.8s;animation-delay:-4.1s;}
.ct4{left:37px;bottom:40px;background-color:#deb7ff;color:var(--purple-900);--rot:12deg;animation-duration:9.4s;animation-delay:-1.6s;}
.ct5{left:46px;top:40px;background-color:#b2c9ff;color:#1a3875;--rot:-8deg;animation-duration:8.2s;animation-delay:-5.3s;}
.ct6{left:125px;top:130px;background-color:#ffceb2;color:#8e4a23;--rot:15deg;animation-duration:7.5s;animation-delay:-3.2s;}
/* footer info */
.footer-info{
  background:var(--footer-bg);
  border-top:1px solid rgba(207,194,213,.2);
  padding:28px 64px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.footer-info .f-logo{
  font-family:var(--font-display);font-weight:600;
  font-size:24px;line-height:31.2px;color:var(--purple-900);
}
.footer-info .f-copy{
  margin-top:15px;
  font-family:'Be Vietnam Pro',var(--font-cjk);
  font-size:16px;line-height:25.6px;color:var(--gray);
}
.footer-links{display:flex;gap:24px;flex-shrink:0;}
.footer-links a{
  font-size:14px;line-height:19.6px;font-weight:500;color:var(--gray);
  white-space:nowrap;
}

/* ============ Mobile ============ */
@media (max-width:767px){
  .only-d{display:none !important;}
  .only-m{display:block;}
  body{padding-bottom:80px;}

  .ambient-blobs{
    position:absolute;top:0;left:0;right:0;height:767px;
    overflow:hidden;pointer-events:none;z-index:0;
  }
  .ambient-blobs i{position:absolute;display:block;border-radius:9999px;}
  .ab1{left:-78px;top:-78px;width:300px;height:300px;background:rgba(222,183,255,.3);filter:blur(30px);}
  .ab2{right:-39px;top:312px;width:250px;height:250px;background:rgba(229,180,255,.2);filter:blur(25px);}
  .ab3{left:39px;bottom:-39px;width:200px;height:200px;background:rgba(129,53,196,.1);filter:blur(20px);}

  .page-m{
    position:relative;z-index:1;
    display:flex;flex-direction:column;align-items:center;gap:32px;
    padding:24px 0 32px;
  }

  /* hero */
  .m-hero{
    width:100%;max-width:390px;
    padding:0 20px;
    display:flex;flex-direction:column;gap:24px;
  }
  .m-branding{position:relative;display:flex;flex-direction:column;gap:8px;}
  .m-branding::before{
    content:'';
    position:absolute;left:-8px;top:-16px;
    width:64px;height:64px;
    background:rgba(222,183,255,.3);
    filter:blur(12px);
    border-radius:38.4px 12.8px 41.6px 22.4px;
  }
  .m-branding h1{
    position:relative;
    font-family:var(--font-display);font-weight:600;
    font-size:32px;line-height:32px;
    color:var(--purple-900);
  }
  .m-branding p{
    position:relative;
    font-size:14px;line-height:20px;font-weight:500;
    color:var(--purple-400);
  }
  .m-search-box{
    width:100%;
    background:rgba(255,255,255,.7);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    border:1px solid rgba(222,183,255,.3);
    border-radius:16px;
    box-shadow:0 1px 2px 0 rgba(0,0,0,.05);
    padding:17px;
    display:flex;flex-direction:column;gap:8px;
  }
  .m-search-label{
    display:flex;align-items:center;gap:8px;
    color:var(--purple-900);
    font-size:10px;line-height:15px;font-weight:500;
  }
  .m-search-label img{width:12.8px;height:12.8px;}
  .m-search-row{display:flex;align-items:center;gap:8px;}
  .m-search-row input{
    flex:1;min-width:0;
    font-size:16px;font-weight:500;color:var(--ink);
    padding:2px 0;
  }
  .m-search-row input::placeholder{color:#7e7384;opacity:1;}
  .m-search-go{
    flex-shrink:0;
    width:22.5px;height:22.5px;border-radius:9999px;
    background:var(--purple-900);
    display:flex;align-items:center;justify-content:center;
  }
  .m-search-go img{width:10.5px;height:10.5px;}

  /* bubble carousel — full bleed horizontal scroll, 6 bubbles */
  .m-carousel{
    width:100vw;
    margin:0 -20px;
    height:300.5px;
    display:flex;gap:16px;
    overflow-x:auto;
    scrollbar-width:none;
    padding:0 20px 8px;
    scroll-snap-type:x mandatory;
  }
  .m-carousel::-webkit-scrollbar{display:none;}
  .m-bubble{
    position:relative;
    flex:0 0 292.5px;
    height:292.5px;
    scroll-snap-align:start;
    border:2px solid #fff;
    padding:2px;
    overflow:hidden;
    box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  }
  @keyframes blob-m1{
    0%,100%{border-radius:60% 20% 65% 35%;}
    25%{border-radius:40% 45% 50% 55% / 50% 30% 70% 45%;}
    50%{border-radius:70% 30% 45% 50% / 40% 55% 50% 65%;}
    75%{border-radius:50% 35% 60% 40% / 65% 25% 55% 50%;}
  }
  @keyframes blob-m2{
    0%,100%{border-radius:25% 75% 20% 90%;}
    25%{border-radius:45% 55% 40% 65% / 35% 80% 30% 75%;}
    50%{border-radius:20% 85% 45% 70% / 55% 50% 25% 90%;}
    75%{border-radius:35% 65% 25% 85% / 25% 75% 45% 60%;}
  }
  @keyframes blob-m3{
    0%,100%{border-radius:45% 55% 30% 70% / 60% 35% 65% 40%;}
    25%{border-radius:60% 35% 50% 50% / 40% 60% 45% 60%;}
    50%{border-radius:35% 65% 40% 60% / 65% 30% 55% 50%;}
    75%{border-radius:55% 45% 60% 35% / 45% 55% 35% 70%;}
  }
  .m-shape-1{border-radius:60% 20% 65% 35%;animation:blob-m1 7.5s ease-in-out infinite;}
  .m-shape-2{border-radius:25% 75% 20% 90%;animation:blob-m2 8.5s ease-in-out infinite;}
  .m-shape-3{border-radius:45% 55% 30% 70% / 60% 35% 65% 40%;animation:blob-m3 7s ease-in-out infinite;}
  .m-carousel .m-bubble:nth-child(2){animation-delay:-3.8s;}
  .m-carousel .m-bubble:nth-child(3){animation-delay:-7s;}
  .m-carousel .m-bubble:nth-child(4){animation-delay:-1.9s;}
  .m-carousel .m-bubble:nth-child(5){animation-delay:-5.7s;}
  .m-carousel .m-bubble:nth-child(6){animation-delay:-8.5s;}
  .m-bubble .bubble-img{position:absolute;inset:2px;border-radius:inherit;overflow:hidden;}
  .m-bubble .bubble-img img{width:100%;height:100%;object-fit:cover;}
  .m-bubble .m-bubble-overlay{
    position:absolute;inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.6) 0%,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 100%);
    display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;
    padding:24px;
  }
  .m-bubble-tag{
    font-size:10px;line-height:15px;font-weight:500;
    padding:4px 8px;border-radius:9999px;
    margin-bottom:8px;
  }
  .m-bubble:nth-child(odd) .m-bubble-tag{background:#f4d9ff;color:#60327d;}
  .m-bubble:nth-child(even) .m-bubble-tag{background:#f1dbff;color:#6811aa;}
  .m-bubble h3{
    color:#fff;
    font-size:18px;line-height:22.5px;font-weight:500;
  }

  /* 社群熱議 */
  .m-trending{
    width:100%;max-width:390px;
    padding:0 20px;
    display:flex;flex-direction:column;gap:12px;
  }
  .m-section-title{
    display:flex;align-items:center;gap:8px;
    color:var(--purple-900);
    font-size:20px;line-height:28px;font-weight:500;
  }
  .m-trending .m-section-title img{width:16px;height:18px;}
  .m-topic-list{display:flex;flex-direction:column;gap:12px;padding-bottom:8px;}
  .m-topic{
    display:flex;align-items:center;gap:12px;
    background:rgba(255,255,255,.7);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,.3);
    border-radius:48px;
    box-shadow:0 10px 20px 0 rgba(123,44,191,.08);
    padding:13px;
  }
  .m-topic .t-rank{
    width:20px;flex-shrink:0;text-align:center;
    font-size:18px;line-height:28px;font-weight:500;
    color:var(--purple-500);
  }
  .m-topic:nth-child(2) .t-rank{color:rgba(123,44,191,.8);}
  .m-topic:nth-child(3) .t-rank{color:rgba(123,44,191,.6);}
  .m-topic .t-text{
    flex:1;min-width:0;
    font-size:14px;line-height:20px;font-weight:500;color:var(--ink);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .m-topic img{width:11.7px;height:7px;flex-shrink:0;}

  /* 編輯精選 */
  .m-editorial{
    width:100%;max-width:390px;
    display:flex;flex-direction:column;gap:16px;
  }
  .m-editorial .m-ed-head{
    padding:0 20px;
    display:flex;align-items:flex-end;justify-content:space-between;
  }
  .m-ed-head .m-more{
    font-size:12px;line-height:16px;font-weight:500;
    color:var(--purple-400);
  }
  .m-cards{
    display:flex;gap:16px;
    overflow-x:auto;
    scrollbar-width:none;
    padding:0 20px 16px;
    scroll-snap-type:x mandatory;
  }
  .m-cards::-webkit-scrollbar{display:none;}
  .m-card{
    flex:0 0 156px;
    scroll-snap-align:start;
    background:#fff;
    border-radius:24px;
    box-shadow:0 10px 20px 0 rgba(123,44,191,.08);
    overflow:hidden;
  }
  .m-card .m-card-img{
    position:relative;
    margin:6px 6px 0;
    border-radius:16px;
    overflow:hidden;
  }
  .m-card .m-card-img>img{width:100%;height:180px;object-fit:cover;}
  .m-card .m-chip{
    position:absolute;left:8px;top:8px;
    background:rgba(255,255,255,.7);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    border-radius:9999px;
    padding:2px 8px;
    font-size:9px;line-height:13.5px;font-weight:500;
    color:var(--purple-900);
  }
  .m-card .m-chip.alt{color:var(--purple-400);}
  .m-card h4{
    padding:10px 10px 14px;
    font-size:12px;line-height:16px;font-weight:500;color:var(--ink);
  }

  /* bottom nav */
  .m-bottom-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:50;
    background:rgba(252,249,248,.9);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-top:1px solid rgba(207,194,213,.2);
    box-shadow:0 -4px 20px 0 rgba(0,0,0,.05);
    padding-top:1px;
  }
  .m-bottom-nav .m-nav-row{
    height:56px;
    display:flex;align-items:center;justify-content:center;
  }
  .m-nav-item{
    flex:1;height:100%;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:2px;
    font-size:10px;line-height:15px;font-weight:500;
    color:var(--gray);
  }
  .m-nav-item.active{color:var(--purple-900);}
  .m-nav-item img{height:23px;width:auto;}
  .m-nav-item:nth-child(2) img{height:26.7px;}
  .m-nav-item.m-nav-publish img{height:30px;margin-bottom:-2px;}
  .m-nav-item:nth-child(4) img{height:23.3px;}
}

@media (prefers-reduced-motion:reduce){
  .bubble,.m-bubble,.chat-tag{animation:none !important;}
}

/* mid-size safety: keep desktop layout usable below 1280 */
@media (min-width:768px) and (max-width:1279px){
  .site-nav{padding:16px 32px 17px;}
  .main-d{padding:0 32px;}
  .logo{font-size:32px;}
  .nav-links{max-width:40vw;}
  .hero-left h1{font-size:52px;line-height:64px;}
  .hero-right{transform:scale(.8);transform-origin:center;}
  .bento{grid-template-columns:repeat(1,minmax(0,1fr));}
  .bento-left,.bento-right{grid-column:auto;}
  .chat-toggle,.footer-info{padding-left:32px;padding-right:32px;}
}

/* ============================================================
   v4 提案模組：波波吉祥物 / 每日新鮮 / 個人化三態 / 廣告位 /
   最新速報 / Demo 面板（柔霧模式基準；POP 模式見 styles-pop.css）
   ============================================================ */

/* layout rhythm: new sections need tighter stacking than the old 96px */
.page-d{gap:0;}
.page-d .ad-top{margin:0 auto 8px;}
.main-d{gap:56px;margin-top:24px;}
.page-d .mega-footer{margin-top:72px;}
.bento-right{display:flex;flex-direction:column;}

/* 波波 mascot — a living purple blob with eyes */
.bobo{
  position:relative;display:inline-block;flex-shrink:0;
  width:34px;height:34px;
  background:radial-gradient(circle at 32% 26%,#b36ae2 0%,#7b2cbf 45%,#6100a4 100%);
  border-radius:60% 40% 55% 45% / 50% 60% 40% 55%;
  animation:blob-d 6.5s ease-in-out infinite;
  transition:transform .25s ease;
}
.bobo .eye{
  position:absolute;top:36%;
  width:5px;height:8px;border-radius:50%;
  background:#fff;
  animation:bobo-blink 4.2s infinite;
}
.bobo .eye.l{left:29%;}
.bobo .eye.r{right:29%;}
@keyframes bobo-blink{0%,91%,100%{transform:scaleY(1);}94%{transform:scaleY(.08);}}
.ai-search-bar:focus-within .bobo,
.m-search-box:focus-within .bobo{transform:rotate(-12deg) scale(1.1);}
.bobo.bounce{animation:bobo-bounce .55s ease;}
@keyframes bobo-bounce{
  0%,100%{transform:translateY(0);}
  40%{transform:translateY(-12px) rotate(10deg);}
  70%{transform:translateY(3px);}
}
.bobo-sm{width:48px;height:48px;}
.bobo-xs{width:18px;height:18px;margin-right:2px;}
.bobo-xs .eye{width:3px;height:4px;}

/* member chip（登入身分） */
.member-chip{
  display:flex;align-items:center;gap:8px;
  background:rgba(222,183,255,.3);
  border-radius:9999px;padding:4px 14px 4px 4px;
  font-size:14px;font-weight:500;color:var(--purple-900);
}
.member-chip .avatar{
  width:32px;height:32px;border-radius:50%;
  background:var(--purple-900);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-latin);font-weight:600;font-size:14px;
}

/* 廣告位（§5 硬規格：不能假裝沒有） */
.ad-slot{
  display:flex;align-items:center;justify-content:center;
  color:#6d6176;font-size:13px;font-weight:700;letter-spacing:2px;
  border:2px dashed #a98fbd;border-radius:12px;
  background:repeating-linear-gradient(45deg,#fbf6fd 0 12px,#f1e8f5 12px 24px);
}
.ad-top{height:90px;width:min(970px,calc(100% - 128px));}
.ad-side{height:250px;width:100%;margin-top:24px;}
.ad-m{height:100px;width:calc(100% - 40px);max-width:350px;margin:0 auto;}

/* Pop × Daily 每日新鮮（品牌記憶點） */
.daily-fresh{
  display:flex;align-items:center;gap:20px;
  padding:16px 24px;border-radius:16px;
  background:linear-gradient(90deg,rgba(222,183,255,.25),rgba(255,255,255,.7));
  border:1px solid rgba(222,183,255,.4);
}
.df-brand{display:flex;align-items:baseline;gap:5px;font-family:'Anybody',var(--font-latin);font-weight:800;white-space:nowrap;}
.df-pop{color:var(--purple-700);font-size:20px;}
.df-x{color:#b36ae2;font-size:13px;}
.df-daily{color:var(--purple-900);font-size:20px;}
.df-label{font-family:var(--font-cjk);font-size:13px;font-weight:700;color:var(--purple-400);letter-spacing:3px;margin-left:6px;}
.df-date{font-family:var(--font-latin);font-size:13px;color:var(--gray);padding:2px 12px;border-radius:9999px;background:rgba(255,255,255,.8);white-space:nowrap;}
.df-ticker{position:relative;flex:1;min-width:0;height:22px;overflow:hidden;}
.df-item{
  position:absolute;inset:0;
  font-size:14px;font-weight:500;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:0;transform:translateY(12px);
  transition:opacity .45s ease,transform .45s ease;
}
.df-item.on{opacity:1;transform:none;}

/* 你可能會喜歡：未登入 / 空白 / 美妝咖 三態 */
.fy-variant{display:none;}
body.persona-guest .fy-guest{display:flex;}
body.persona-blank .fy-blank,
body.persona-follow .fy-blank{display:block;}
body.persona-beauty .fy-beauty{display:block;}
.fy-guest{
  align-items:center;gap:20px;
  padding:22px 28px;border-radius:24px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(222,183,255,.4);
  box-shadow:var(--shadow-glow);
}
.fy-guest-text{flex:1;min-width:0;}
.fy-guest-text h3{font-size:18px;font-weight:700;color:var(--purple-900);}
.fy-guest-text p{font-size:14px;color:var(--gray);margin-top:4px;}
.fy-blank{
  padding:22px 28px;border-radius:24px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(222,183,255,.4);
  box-shadow:var(--shadow-glow);
}
.fy-hint{font-size:13px;color:var(--gray);margin:8px 0 12px;}
.fy-chips{display:flex;gap:10px;flex-wrap:wrap;}
.fy-chips button{
  padding:10px 22px;border-radius:9999px;
  background:rgba(222,183,255,.3);color:var(--purple-700);
  font-size:14px;font-weight:500;
  transition:background .2s ease,color .2s ease;
}
.fy-chips button:hover{background:var(--purple-900);color:#fff;}
.fy-badge{
  margin-left:12px;font-size:11px;font-weight:500;letter-spacing:1px;
  background:rgba(222,183,255,.4);color:var(--purple-700);
  padding:4px 10px;border-radius:9999px;vertical-align:4px;
}
.fy-cards{display:flex;gap:20px;margin-top:16px;}
.fy-card{
  flex:1;min-width:0;
  display:flex;gap:14px;align-items:center;
  background:#fff;border-radius:24px;padding:12px;
  filter:drop-shadow(0 20px 25px rgba(97,0,164,.08));
}
.fy-card img{width:72px;height:72px;border-radius:20px;object-fit:cover;flex-shrink:0;}
.fy-card h4{font-size:15px;line-height:1.5;font-weight:500;color:var(--ink);}
.fy-card span{font-size:12px;color:var(--gray);}

/* 你追蹤的人最近寫了（僅 persona-follow） */
.follow-feed{display:none;}
body.persona-follow .follow-feed{display:block;}
.ff-row{display:flex;gap:20px;margin-top:16px;}
.ff-card{
  flex:1;min-width:0;
  display:flex;gap:12px;
  background:#fff;border-radius:24px;padding:16px;
  filter:drop-shadow(0 20px 25px rgba(97,0,164,.08));
}
.ff-card .avatar{
  width:44px;height:44px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:15px;font-weight:700;
}
.av-1{background:#7b2cbf;}
.av-2{background:#b36ae2;}
.av-3{background:#2d0050;}
.ff-card strong{font-size:13px;color:var(--purple-700);font-weight:500;}
.ff-card h4{font-size:14px;line-height:1.5;font-weight:500;color:var(--ink);margin:4px 0;}
.ff-card time{font-size:12px;color:#a99bb1;}

/* 登入狀態顯示 */
.auth-only{display:none;}
body.persona-blank .nav-right .auth-only,
body.persona-beauty .nav-right .auth-only,
body.persona-follow .nav-right .auth-only,
body.persona-blank .m-brandbar .auth-only,
body.persona-beauty .m-brandbar .auth-only,
body.persona-follow .m-brandbar .auth-only{display:flex;}
body.persona-blank .guest-only,
body.persona-beauty .guest-only,
body.persona-follow .guest-only{display:none;}

/* 最新速報（高密度清單） */
.newsflash{width:100%;}
.nf-list{list-style:none;padding:0;margin-top:8px;}
.nf-list li{
  display:flex;align-items:center;gap:16px;
  padding:14px 4px;
  border-bottom:1px solid rgba(207,194,213,.4);
}
.nf-list time{font-family:var(--font-latin);font-size:13px;color:#a99bb1;width:44px;flex-shrink:0;}
.nf-cat{
  font-size:11px;font-weight:500;color:var(--purple-700);
  background:rgba(222,183,255,.3);
  padding:3px 10px;border-radius:9999px;flex-shrink:0;
}
.nf-list a{
  flex:1;min-width:0;font-size:15px;font-weight:500;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.nf-list a:hover{color:var(--purple-700);}

/* 抽卡 popup */
.draw-card{
  position:absolute;left:50%;top:0;
  transform:translate(-50%,-90%);
  background:#fff;color:var(--purple-900);
  padding:12px 22px;border-radius:14px;
  font-size:15px;font-weight:700;white-space:nowrap;
  box-shadow:0 16px 40px rgba(0,0,0,.35);
  opacity:0;pointer-events:none;
  transition:opacity .3s ease,transform .3s ease;
  z-index:3;
}
.draw-card.show{opacity:1;transform:translate(-50%,-130%) rotate(-3deg);}
.draw-card::before{content:'🎴 ';}
.chat-tag.shake{animation:tag-shake .5s ease;}
@keyframes tag-shake{
  0%,100%{transform:rotate(var(--rot,0deg));}
  25%{transform:rotate(calc(var(--rot,0deg) + 10deg)) translateX(3px);}
  50%{transform:rotate(calc(var(--rot,0deg) - 10deg)) translateX(-3px);}
  75%{transform:rotate(calc(var(--rot,0deg) + 6deg));}
}

/* 波波小夥伴（柔霧版 POP 生物，全站漂浮） */
.bobo-fab{
  position:fixed;left:20px;bottom:20px;z-index:98;
  display:flex;align-items:center;gap:12px;
  padding:0;
}
.bobo-face{
  position:relative;flex-shrink:0;
  width:72px;height:72px;
  background:radial-gradient(circle at 32% 26%,#b36ae2 0%,#7b2cbf 45%,#6100a4 100%);
  border:3px solid rgba(255,255,255,.75);
  border-radius:58% 42% 55% 45% / 52% 58% 42% 48%;
  animation:blob-d 6.5s ease-in-out infinite;
  box-shadow:0 12px 32px rgba(97,0,164,.35);
  transition:transform .2s ease;
}
.bobo-fab:hover .bobo-face{transform:scale(1.1) rotate(-8deg);}
.bobo-face .eye{
  position:absolute;top:32%;
  width:15px;height:18px;border-radius:50%;
  background:#fff;overflow:hidden;
}
.bobo-face .eye.l{left:24%;}
.bobo-face .eye.r{right:24%;}
.bobo-face .eye b{
  position:absolute;left:50%;top:50%;
  width:7px;height:7px;border-radius:50%;
  background:#2d0050;
  transform:translate(-50%,-50%);
  transition:transform .08s linear;
}
.bobo-face .mouth{
  position:absolute;left:50%;top:60%;
  width:18px;height:9px;
  border:2.5px solid rgba(255,255,255,.9);border-top:none;
  border-radius:0 0 20px 20px;
  transform:translateX(-50%);
}
.bobo-fab-say{
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(222,183,255,.5);
  color:var(--purple-900);
  font-weight:700;font-size:13px;
  padding:10px 16px;border-radius:9999px;
  box-shadow:var(--shadow-glow);
}

/* Demo 控制面板（提案用） */
.demo-panel{
  position:fixed;right:16px;bottom:16px;z-index:99;
  display:flex;flex-direction:column;gap:8px;
  background:rgba(28,27,27,.92);color:#fff;
  border-radius:14px;padding:10px 14px;
  font-size:12px;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.demo-head{font-family:'Anybody',var(--font-latin);font-weight:800;font-size:10px;letter-spacing:2.5px;color:#deb7ff;}
.demo-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.demo-label{color:rgba(255,255,255,.55);margin-right:2px;}
.demo-row button{
  padding:5px 11px;border-radius:9999px;
  background:rgba(255,255,255,.12);color:#fff;font-size:12px;
  transition:background .2s ease;
}
.demo-row button.on{background:var(--lavender);color:var(--purple-900);font-weight:700;}
.demo-head{cursor:pointer;user-select:none;}
.demo-panel.min .demo-row{display:none;}
.demo-cur{padding:5px 11px;border-radius:9999px;background:rgba(255,255,255,.12);color:rgba(255,255,255,.65);}
.demo-go{padding:5px 11px;border-radius:9999px;background:var(--lavender);color:var(--purple-900);font-weight:700;}

/* v4 模組的手機版排版 */
@media (max-width:767px){
  .m-brandbar{
    display:flex;align-items:center;justify-content:space-between;
    position:sticky;top:0;z-index:55;
    width:100%;
    padding:10px 20px;
    background:rgba(255,247,254,.85);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(207,194,213,.25);
  }
  .m-brandbar .signin-btn,
  .m-brandbar .member-chip{margin-left:auto;}
  .m-newsflash{width:100%;max-width:390px;padding:0 20px;}
  .m-newsflash .nf-list li{padding:12px 0;gap:10px;}
  .m-newsflash .nf-list a{font-size:14px;}
  .m-newsflash .nf-list time{width:38px;font-size:12px;}
  .bobo-fab{left:12px;bottom:76px;}
  .bobo-face{width:56px;height:56px;}
  .bobo-face .eye{width:12px;height:14px;}
  .bobo-face .eye b{width:5px;height:5px;}
  .bobo-face .mouth{width:14px;height:7px;}
  .bobo-fab-say{display:none;}
  .m-logo{font-family:var(--font-display);font-weight:600;font-size:18px;letter-spacing:-.5px;color:var(--purple-700);}
  .m-signin{padding:6px 16px;font-size:12px;}
  .m-brandbar .member-chip{padding:3px;}
  .m-brandbar .member-chip .avatar{width:28px;height:28px;font-size:12px;}
  .m-daily-fresh{
    width:calc(100% - 40px);max-width:350px;
    flex-wrap:wrap;gap:8px;padding:14px 16px;
  }
  .m-daily-fresh .df-pop,.m-daily-fresh .df-daily{font-size:16px;}
  .m-daily-fresh .df-label{font-size:12px;letter-spacing:2px;}
  .m-daily-fresh .df-ticker{flex-basis:100%;height:20px;}
  .m-daily-fresh .df-item{font-size:13px;}
  .m-foryou{width:100%;max-width:390px;padding:0 20px;}
  .m-foryou .fy-guest{padding:18px 20px;gap:14px;}
  .m-foryou .fy-guest-text h3{font-size:15px;}
  .m-foryou .fy-guest-text p{font-size:12px;}
  .m-foryou .fy-guest .explore-btn{padding:10px 16px;font-size:12px;white-space:nowrap;}
  .m-foryou .fy-blank{padding:18px 20px;}
  .m-foryou .fy-cards{flex-direction:column;gap:12px;margin-top:12px;}
  .m-follow-feed{width:100%;max-width:390px;padding:0 20px;}
  .m-follow-feed .ff-row{flex-direction:column;gap:12px;margin-top:12px;}
  .demo-panel{right:12px;bottom:74px;}

  /* 手機漢堡導航 */
  .m-burger{
    display:flex;flex-direction:column;justify-content:center;gap:4px;
    width:36px;height:36px;padding:8px;
    border-radius:10px;background:rgba(222,183,255,.3);
    margin-left:10px;
  }
  .m-burger i{display:block;width:100%;height:2px;border-radius:2px;background:var(--purple-900);transition:transform .2s ease,opacity .2s ease;}
  .m-burger.open i:nth-child(1){transform:translateY(6px) rotate(45deg);}
  .m-burger.open i:nth-child(2){opacity:0;}
  .m-burger.open i:nth-child(3){transform:translateY(-6px) rotate(-45deg);}
  .m-drawer{
    display:none;
    position:fixed;inset:0;z-index:60;
    background:rgba(255,247,254,.97);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    padding:88px 32px 32px;
    overflow-y:auto;
  }
  .m-drawer.open{display:block;}
  .m-drawer a{
    display:block;
    font-size:20px;font-weight:700;color:var(--gray);
    padding:13px 0;
    border-bottom:1px solid rgba(207,194,213,.4);
  }
  .m-drawer a.on{color:var(--purple-900);}
  .m-drawer-close{position:fixed;top:20px;right:20px;z-index:61;}

  /* 跟波波聊（手機版收合卡） */
  .m-chat{
    width:calc(100% - 40px);max-width:350px;
    background:var(--dark);
    border-radius:24px;
    overflow:hidden;
  }
  .m-chat-toggle{
    width:100%;
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 18px;
    color:#fff;font-size:16px;font-weight:500;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  .m-chat-toggle span{display:flex;align-items:center;gap:10px;}
  .m-chat-toggle span img{width:18px;height:18px;}
  .m-chat-toggle .chevron{width:12px;height:7.4px;transition:transform .3s ease;}
  .m-chat.collapsed .m-chat-toggle .chevron{transform:rotate(180deg);}
  .m-chat-body{
    position:relative;
    padding:18px 16px 20px;
    max-height:320px;overflow:hidden;
    transition:max-height .35s ease,padding .35s ease;
  }
  .m-chat.collapsed .m-chat-body{max-height:0;padding-top:0;padding-bottom:0;}
  .m-chat-beans{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:16px;}
  .inline-tag{position:static;font-size:11px;padding:9px 16px;}
  .it-1{background-color:#ffceb2;color:#8e4a23;--rot:-4deg;animation-duration:7s;}
  .it-2{background-color:#b2c9ff;color:#1a3875;--rot:5deg;animation-duration:8.4s;animation-delay:-2s;}
  .it-3{background-color:#ffb2d9;color:#751a4a;--rot:-6deg;animation-duration:7.6s;animation-delay:-3.5s;}
  .it-4{background-color:#deb7ff;color:var(--purple-900);--rot:4deg;animation-duration:8s;animation-delay:-5s;}
  .m-chat .chat-input-wrap input{padding:14px 52px 14px 18px;font-size:14px;}
  .m-chat .chat-send{width:34px;height:34px;right:6px;}
  .m-chat .draw-card{font-size:13px;padding:10px 16px;top:auto;bottom:70px;}
  .m-chat .draw-card.show{transform:translate(-50%,0) rotate(-3deg);}
}



/* ============ v5 加料：影音 / 星座 / 更多廣告 / 排行加長 ============ */
.rank-5 .rank-badge,.rank-6 .rank-badge{background:#e6e1e1;color:#4c4353;}
.ad-side-tall{height:600px;width:100%;margin-top:24px;}
.ad-billboard{height:250px;width:100%;}
.card-cat.sponsored{color:#b25d00;}
.article-card.ad-card{background:#fffaf3;}
.video-sec,.zodiac-sec{display:flex;flex-direction:column;gap:20px;}
.video-row{display:flex;gap:24px;width:100%;}
.v-card{
  flex:1;min-width:0;
  background:#fff;border-radius:24px;overflow:hidden;
  filter:drop-shadow(0 20px 25px rgba(97,0,164,.08));
}
.v-thumb{position:relative;}
.v-thumb img{width:100%;height:170px;object-fit:cover;}
.play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:52px;height:52px;border-radius:50%;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
}
.play::after{
  content:'';position:absolute;left:56%;top:50%;transform:translate(-50%,-50%);
  border:10px solid transparent;border-right:0;
  border-left:16px solid var(--purple-900);
}
.v-dur{
  position:absolute;right:10px;bottom:10px;
  background:rgba(28,27,27,.8);color:#fff;
  font-family:var(--font-latin);font-size:11px;font-weight:500;
  padding:3px 8px;border-radius:6px;
}
.v-card h4{font-size:15px;line-height:1.5;font-weight:500;color:var(--ink);padding:12px 16px 16px;}
.zodiac-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;width:100%;}
.z-chip{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(222,183,255,.4);
  border-radius:16px;padding:12px 6px;
  font-size:13px;font-weight:700;color:var(--purple-900);
  text-align:center;
}
.z-chip em{font-style:normal;font-size:22px;line-height:1.2;}
.z-chip span{font-size:10px;font-weight:500;color:var(--purple-400);white-space:nowrap;}
.z-chip.hot{background:rgba(222,183,255,.45);border-color:var(--lavender);}
.z-chip.hot span{color:var(--purple-700);font-weight:700;}
@media (max-width:767px){
  .ad-m-hero{height:100px;width:100%;margin-top:16px;}
  .ad-m2{height:280px;width:calc(100% - 40px);max-width:350px;margin:0 auto;}
  .m-zodiac{width:100%;display:flex;flex-direction:column;gap:12px;}
  .m-zodiac .m-section-title{padding:0 20px;}
  .z-scroll{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:0 20px 8px;}
  .z-scroll::-webkit-scrollbar{display:none;}
  .z-scroll .z-chip{flex:0 0 86px;}
  .m-video{width:100%;display:flex;flex-direction:column;gap:12px;}
  .m-vrow{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding:0 20px 12px;}
  .m-vrow::-webkit-scrollbar{display:none;}
  .m-vrow .v-card{flex:0 0 240px;}
  .m-vrow .v-thumb img{height:140px;}
}

/* fix: m-ed-head 通用化（波波影音也要對齊） */
@media (max-width:767px){
  .m-video .m-ed-head{padding:0 20px;display:flex;align-items:flex-end;justify-content:space-between;}
}

/* ============ v6 密度緊縮：收掉空白、保留柔霧質感 ============ */
.main-d{gap:36px;margin-top:16px;}
.page-d .mega-footer{margin-top:44px;}
.page-d .ad-top{margin-bottom:4px;}
.hero{min-height:560px;}
.hero-left{gap:24px;}
.newsflash .nf-list li{padding:11px 4px;}
.video-sec,.zodiac-sec{gap:14px;}
.trending-widget{gap:18px;padding:20px 20px 24px;}
.rank-list{gap:18px;}
.foryou .fy-guest,.foryou .fy-blank{padding:18px 24px;}
@media (max-width:767px){
  .page-m{gap:18px;padding:14px 0 24px;}
  .m-hero{gap:14px;}
  .m-branding{gap:4px;}
  .m-carousel{height:296px;padding-bottom:4px;}
  .ad-m-hero{margin-top:8px;}
  .m-daily-fresh{padding:12px 14px;gap:6px;}
  .m-trending{gap:10px;}
  .m-topic-list{gap:10px;padding-bottom:4px;}
  .m-topic{padding:11px 13px;}
  .m-editorial{gap:12px;}
  .m-cards{padding-bottom:10px;}
  .m-video{gap:10px;}
  .m-vrow{padding-bottom:8px;}
  .m-zodiac{gap:10px;}
  .m-newsflash .nf-list li{padding:10px 0;}
  .m-foryou .fy-guest,.m-foryou .fy-blank{padding:16px 18px;}
}

/* ============ v7：編輯精選加文章格，吃滿左欄 ============ */
.picks-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%;}
.pick-card{
  background:#fff;border-radius:24px;overflow:hidden;
  filter:drop-shadow(0 20px 25px rgba(97,0,164,.08));
}
.pk-img{position:relative;}
.pk-img img{width:100%;height:150px;object-fit:cover;}
.pk-chip{
  position:absolute;left:10px;top:10px;
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  color:var(--purple-900);
  font-size:10px;font-weight:700;
  padding:3px 10px;border-radius:9999px;
}
.pick-card h4{
  font-size:14px;line-height:1.5;font-weight:500;color:var(--ink);
  padding:10px 14px 6px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.pick-card .card-meta{padding:0 14px 14px;}
.more-list{display:flex;flex-direction:column;width:100%;}
.more-list a{
  display:flex;gap:12px;align-items:center;
  padding:11px 4px;
  border-bottom:1px solid rgba(207,194,213,.4);
  font-size:14px;font-weight:500;color:var(--ink);
  min-width:0;
}
.more-list a:hover{color:var(--purple-700);}
.more-list em{
  font-family:var(--font-latin);font-style:normal;font-weight:600;
  color:var(--purple-400);font-size:13px;width:24px;flex-shrink:0;
}
.more-list span{margin-left:auto;color:var(--gray);font-size:12px;flex-shrink:0;}

/* fix: 三卡並排後 meta 防直排 */
.picks-row .card-meta{overflow:hidden;}
.picks-row .card-meta span{white-space:nowrap;}
.picks-row .article-card h4{font-size:15px;}

/* ============ v8 泡泡宇宙 ============ */
/* 全站肥皂泡上升層 */
.bubble-field{position:fixed;inset:0;pointer-events:none;z-index:80;overflow:hidden;}
.bubble-field i{
  position:absolute;bottom:-60px;display:block;border-radius:50%;
  background:radial-gradient(circle at 32% 28%,
    rgba(255,255,255,.9) 0%,rgba(255,255,255,.15) 22%,
    rgba(222,183,255,.1) 60%,rgba(222,183,255,.42) 100%);
  box-shadow:inset 0 0 6px rgba(255,255,255,.5);
  opacity:0;
  animation:bubble-rise linear infinite;
}
@keyframes bubble-rise{
  0%{transform:translate(0,0) scale(1);opacity:0;}
  8%{opacity:.55;}
  85%{opacity:.3;}
  100%{transform:translate(var(--sway,20px),-112vh) scale(1.18);opacity:0;}
}
.bubble-field i:nth-child(1){left:5%;width:18px;height:18px;animation-duration:15s;animation-delay:-2s;--sway:26px;}
.bubble-field i:nth-child(2){left:14%;width:11px;height:11px;animation-duration:12s;animation-delay:-7s;--sway:-18px;}
.bubble-field i:nth-child(3){left:26%;width:26px;height:26px;animation-duration:18s;animation-delay:-11s;--sway:32px;}
.bubble-field i:nth-child(4){left:38%;width:13px;height:13px;animation-duration:13s;animation-delay:-4s;--sway:-24px;}
.bubble-field i:nth-child(5){left:49%;width:20px;height:20px;animation-duration:16s;animation-delay:-9s;--sway:18px;}
.bubble-field i:nth-child(6){left:60%;width:10px;height:10px;animation-duration:11.5s;animation-delay:-6s;--sway:-30px;}
.bubble-field i:nth-child(7){left:70%;width:30px;height:30px;animation-duration:19s;animation-delay:-14s;--sway:22px;}
.bubble-field i:nth-child(8){left:80%;width:14px;height:14px;animation-duration:12.5s;animation-delay:-1s;--sway:-16px;}
.bubble-field i:nth-child(9){left:89%;width:22px;height:22px;animation-duration:17s;animation-delay:-12s;--sway:28px;}
.bubble-field i:nth-child(10){left:96%;width:12px;height:12px;animation-duration:13.5s;animation-delay:-5s;--sway:-20px;}

/* 衛星光珠 */
.orb{
  position:absolute;pointer-events:none;z-index:4;
  border:1px solid rgba(255,255,255,.6);
  background:radial-gradient(circle at 30% 28%,
    rgba(255,255,255,.95) 0%,rgba(244,217,255,.55) 40%,rgba(179,106,226,.35) 100%);
  box-shadow:0 8px 20px rgba(97,0,164,.15);
  animation:blob-d 6s ease-in-out infinite,orb-float 9s ease-in-out infinite;
}
@keyframes orb-float{
  0%,100%{translate:0 0;}
  50%{translate:6px -14px;}
}
.orb-1{left:6%;top:2%;width:34px;height:34px;}
.orb-2{left:15%;top:66%;width:22px;height:22px;animation-delay:-2s,-3s;}
.orb-3{right:42%;bottom:4%;width:28px;height:28px;animation-delay:-4s,-6s;}
.orb-4{left:1%;top:34%;width:16px;height:16px;animation-delay:-1s,-5s;}

/* 排行徽章呼吸泡泡化 */
.rank-badge{animation:blob-d 7s ease-in-out infinite;}
.rank-item:nth-child(2) .rank-badge{animation-delay:-1.2s;}
.rank-item:nth-child(3) .rank-badge{animation-delay:-2.4s;}
.rank-item:nth-child(4) .rank-badge{animation-delay:-3.6s;}
.rank-item:nth-child(5) .rank-badge{animation-delay:-4.8s;}
.rank-item:nth-child(6) .rank-badge{animation-delay:-6s;}

/* 互動元素 blob 化 */
.z-chip{transition:border-radius .45s ease,transform .2s ease,background .2s ease;}
.z-chip:hover{border-radius:45% 55% 40% 60% / 55% 45% 60% 40%;transform:translateY(-3px);}
.z-chip.hot{animation:blob-d 8s ease-in-out infinite;}
.hot-tags span{transition:border-radius .45s ease;}
.hot-tags span:hover{border-radius:48% 52% 42% 58% / 55% 45% 60% 40%;}
.fy-chips button{transition:border-radius .45s ease,background .2s ease,color .2s ease;}
.fy-chips button:hover{border-radius:46% 54% 42% 58% / 56% 44% 58% 42%;}

/* 波波吐泡泡 */
.bobo-blow{
  position:absolute;left:36px;bottom:56px;
  width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle at 32% 28%,
    rgba(255,255,255,.95) 0%,rgba(255,255,255,.2) 25%,
    rgba(222,183,255,.15) 60%,rgba(222,183,255,.5) 100%);
  pointer-events:none;
  animation:blow-up 3.4s ease-out forwards;
}
@keyframes blow-up{
  0%{transform:translate(0,0) scale(.35);opacity:0;}
  14%{opacity:.85;}
  100%{transform:translate(var(--bsway,12px),-150px) scale(1.15);opacity:0;}
}

@media (max-width:767px){
  .m-hero{position:relative;}
  .orb-m1{right:10px;top:100px;width:22px;height:22px;}
  .orb-m2{left:4px;top:215px;width:14px;height:14px;animation-delay:-3s,-4.5s;}
  .m-topic .t-rank{
    width:28px;height:28px;flex-shrink:0;
    display:flex;align-items:center;justify-content:center;
    font-size:15px;line-height:1;
    background:rgba(222,183,255,.35);
    border-radius:50%;
    animation:blob-d 6.5s ease-in-out infinite;
  }
  .m-topic:nth-child(2) .t-rank{animation-delay:-2.1s;}
  .m-topic:nth-child(3) .t-rank{animation-delay:-4.3s;}
  .bubble-field i:nth-child(3),.bubble-field i:nth-child(7),.bubble-field i:nth-child(9){display:none;} /* 手機少幾顆防干擾 */
}
@media (prefers-reduced-motion:reduce){
  .bubble-field i,.orb,.bobo-blow,.rank-badge,.z-chip.hot,.m-topic .t-rank{animation:none !important;}
  .bubble-field{display:none;}
}


/* ===== 今日 POP 卡（抽卡機制 demo）===== */
.demo-open{
  background:var(--lavender);color:var(--purple-900);
  border:0;border-radius:9999px;padding:4px 12px;
  font-size:12px;font-weight:700;cursor:pointer;
}
body.gacha-open{overflow:hidden;}
.gacha-overlay{
  position:fixed;inset:0;z-index:120;
  background:rgba(45,0,80,.5);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  animation:gachaFade .25s ease;
}
@keyframes gachaFade{from{opacity:0;}to{opacity:1;}}
.gacha-overlay[hidden]{display:none;}
.gacha-sheet{
  position:relative;
  width:min(92vw,390px);
  background:var(--bg);
  border-radius:26px;
  padding:22px 20px 18px;
  box-shadow:0 40px 90px rgba(45,0,80,.45);
  text-align:center;
  animation:gachaPop .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes gachaPop{from{transform:translateY(26px) scale(.94);opacity:0;}to{transform:none;opacity:1;}}
.gacha-close{
  position:absolute;right:14px;top:12px;
  width:30px;height:30px;border-radius:50%;
  border:0;background:rgba(45,0,80,.08);color:var(--purple-900);
  font-size:14px;cursor:pointer;
}
.gacha-head{display:flex;align-items:baseline;justify-content:center;gap:8px;margin-bottom:12px;}
.gacha-kicker{
  font-family:var(--font-display),var(--font-cjk);
  font-size:22px;font-weight:700;color:var(--purple-900);
}
.gacha-date{
  font-size:12px;font-weight:700;color:#fff;
  background:var(--purple-500);border-radius:9999px;padding:2px 10px;
}
.gacha-modes{display:flex;gap:6px;justify-content:center;margin-bottom:14px;}
.gacha-modes button{
  display:flex;align-items:center;gap:5px;
  border:1.5px solid var(--purple-500);background:#fff;color:var(--purple-700);
  border-radius:9999px;padding:6px 12px;
  font-size:13px;font-weight:700;cursor:pointer;
  transition:all .18s ease;
}
.gacha-modes button b{
  width:17px;height:17px;border-radius:50%;
  background:var(--purple-500);color:#fff;
  font-size:11px;line-height:17px;
}
.gacha-modes button.on{
  background:var(--purple-700);border-color:var(--purple-700);color:#fff;
  box-shadow:0 8px 20px rgba(45,0,80,.3);
}
.gacha-modes button.on b{background:#fff;color:var(--purple-700);}
.gacha-stage{position:relative;height:230px;margin:6px 0 12px;perspective:900px;}
.gacha-card{
  position:absolute;left:50%;top:0;transform:translateX(-50%);
  width:168px;height:226px;cursor:pointer;
  transform-style:preserve-3d;
  transition:transform .6s cubic-bezier(.3,1.2,.4,1);
}
.gacha-card.flipped{transform:translateX(-50%) rotateY(180deg);}
.gacha-card.shaking{animation:gachaShake .6s ease;}
@keyframes gachaShake{
  0%,100%{transform:translateX(-50%) rotate(0);}
  20%{transform:translateX(calc(-50% - 9px)) rotate(-6deg);}
  40%{transform:translateX(calc(-50% + 9px)) rotate(6deg);}
  60%{transform:translateX(calc(-50% - 7px)) rotate(-4deg);}
  80%{transform:translateX(calc(-50% + 7px)) rotate(4deg);}
}
.gacha-face{
  position:absolute;inset:0;border-radius:18px;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.gacha-back{
  background:linear-gradient(160deg,var(--purple-700),var(--purple-400) 55%,var(--lavender));
  box-shadow:0 24px 50px rgba(45,0,80,.4), inset 0 0 0 5px rgba(255,255,255,.28);
  gap:10px;color:#fff;
}
.gb-logo{font-family:var(--font-display),var(--font-cjk);font-size:17px;font-weight:700;letter-spacing:.5px;}
.gb-logo i{font-style:normal;color:#ffe9a8;}
.gb-emoji{font-size:52px;filter:drop-shadow(0 6px 12px rgba(45,0,80,.4));animation:gbFloat 2.6s ease-in-out infinite;}
@keyframes gbFloat{0%,100%{transform:translateY(0) rotate(-4deg);}50%{transform:translateY(-8px) rotate(4deg);}}
.gb-hint{font-size:12px;font-weight:700;opacity:.9;background:rgba(45,0,80,.28);border-radius:9999px;padding:4px 12px;}
.gacha-front{
  transform:rotateY(180deg);
  background:#fff;
  box-shadow:0 24px 50px rgba(45,0,80,.35), inset 0 0 0 2px var(--lavender);
  gap:7px;padding:16px 14px;
}
.g-emoji{font-size:40px;line-height:1;}
.g-tag{font-size:11.5px;font-weight:700;color:var(--purple-500);background:rgba(222,183,255,.35);border-radius:9999px;padding:3px 10px;}
.g-title{font-size:15.5px;line-height:1.35;color:var(--ink);font-weight:800;}
.g-line{font-size:12px;color:var(--gray);line-height:1.4;}
.g-cta{margin-top:2px;font-size:12.5px;font-weight:800;color:var(--purple-700);}
.gacha-burst{position:absolute;left:50%;top:55%;pointer-events:none;}
.gacha-burst i{
  position:absolute;left:0;top:0;font-size:17px;font-style:normal;
  animation:gachaSpark 1.2s ease-out forwards;animation-delay:var(--gd,0s);
  opacity:0;
}
@keyframes gachaSpark{
  0%{transform:translate(0,0) scale(.4);opacity:0;}
  15%{opacity:1;}
  100%{transform:translate(var(--gx),var(--gy)) scale(1.15);opacity:0;}
}
.gacha-how{display:flex;gap:6px;justify-content:center;margin-bottom:10px;}
.gacha-how button{
  border:1.5px solid rgba(45,0,80,.18);background:#fff;color:var(--gray);
  border-radius:9999px;padding:5px 13px;font-size:12.5px;font-weight:700;cursor:pointer;
}
.gacha-how button.on{border-color:var(--purple-500);color:var(--purple-700);background:rgba(222,183,255,.25);}
.gacha-again{
  border:0;border-radius:9999px;
  background:var(--purple-700);color:#fff;
  padding:9px 26px;font-size:14px;font-weight:800;cursor:pointer;
  box-shadow:0 12px 26px rgba(45,0,80,.35);
}
.gacha-again:active{transform:scale(.96);}
.gacha-note{
  margin:12px 4px 0;font-size:11.5px;line-height:1.55;color:var(--gray);
  border-top:1px dashed rgba(45,0,80,.15);padding-top:10px;text-align:left;
}
@media (max-width:767px){
  .gacha-sheet{padding:18px 14px 14px;}
  .gacha-stage{height:216px;}
  .gacha-card{width:158px;height:212px;}
}


/* ===== 波波 ChatBot ===== */
.bchat{
  position:fixed;z-index:130;
  right:24px;bottom:100px;
  width:min(92vw,375px);height:min(70vh,560px);
  background:var(--bg);border-radius:22px;
  box-shadow:0 30px 80px rgba(45,0,80,.45);
  display:flex;flex-direction:column;overflow:hidden;
  animation:bchatIn .3s cubic-bezier(.2,1.3,.4,1);
}
.bchat[hidden]{display:none;}
@keyframes bchatIn{from{transform:translateY(24px) scale(.95);opacity:0;}to{transform:none;opacity:1;}}
@media (max-width:767px){
  .bchat{right:0;left:0;bottom:0;width:100%;height:78vh;border-radius:22px 22px 0 0;}
  body.bchat-open{overflow:hidden;}
}
.bchat-head{
  display:flex;align-items:center;gap:10px;
  background:linear-gradient(120deg,var(--purple-700),var(--purple-400));
  padding:12px 14px;color:#fff;flex-shrink:0;
}
.bchat-face,.bavatar,.auth-bobo{
  position:relative;border-radius:50%;flex-shrink:0;
  background:radial-gradient(circle at 35% 30%,#fff,var(--lavender) 72%,var(--purple-400));
  box-shadow:0 4px 10px rgba(45,0,80,.3);
}
.bchat-face{width:38px;height:38px;}
.bavatar{width:26px;height:26px;margin-top:2px;}
.auth-bobo{width:56px;height:56px;margin:0 auto 10px;display:block;}
.be{position:absolute;top:36%;width:14%;height:20%;background:var(--purple-900);border-radius:50%;animation:bblink 4.2s infinite;}
.be.l{left:28%;}.be.r{right:28%;}
@keyframes bblink{0%,92%,100%{transform:scaleY(1);}95%{transform:scaleY(.12);}}
.bm{position:absolute;left:50%;top:62%;transform:translateX(-50%);width:26%;height:13%;border-radius:0 0 999px 999px;background:var(--purple-500);}
.bchat-who{flex:1;line-height:1.25;}
.bchat-who b{display:block;font-size:15px;}
.bchat-who span{font-size:11px;opacity:.85;}
.bchat-close{
  border:0;background:rgba(255,255,255,.18);color:#fff;
  width:28px;height:28px;border-radius:50%;font-size:13px;cursor:pointer;
}
.bchat-msgs{
  flex:1;overflow-y:auto;padding:16px 14px 8px;
  display:flex;flex-direction:column;gap:10px;
  background:
    radial-gradient(circle at 85% 12%,rgba(222,183,255,.18),transparent 40%),
    radial-gradient(circle at 10% 80%,rgba(222,183,255,.14),transparent 45%);
}
.bmsg{display:flex;gap:8px;max-width:88%;}
.bmsg.bot{align-self:flex-start;}
.bmsg.user{align-self:flex-end;}
.bmsg .bb{
  padding:10px 13px;border-radius:16px;
  font-size:13.5px;line-height:1.6;color:var(--ink);
  background:#fff;box-shadow:0 6px 16px rgba(45,0,80,.1);
  border-bottom-left-radius:5px;
  animation:bmsgIn .25s ease;
}
.bmsg.user .bb{
  background:var(--purple-700);color:#fff;
  border-radius:16px;border-bottom-right-radius:5px;
}
@keyframes bmsgIn{from{transform:translateY(6px);opacity:0;}to{transform:none;opacity:1;}}
.bwave{display:inline-block;animation:bwave 1.4s ease 2;transform-origin:70% 70%;}
@keyframes bwave{0%,100%{transform:rotate(0);}25%{transform:rotate(18deg);}50%{transform:rotate(-8deg);}75%{transform:rotate(14deg);}}
.btyping{display:inline-flex;gap:4px;padding:2px 0;}
.btyping i{width:7px;height:7px;border-radius:50%;background:var(--purple-400);animation:btyp 1s infinite;}
.btyping i:nth-child(2){animation-delay:.15s;}
.btyping i:nth-child(3){animation-delay:.3s;}
@keyframes btyp{0%,60%,100%{transform:translateY(0);opacity:.4;}30%{transform:translateY(-4px);opacity:1;}}
.bcard{
  display:block;margin-top:8px;
  background:rgba(222,183,255,.2);border:1px solid rgba(222,183,255,.7);
  border-radius:12px;padding:9px 12px;text-decoration:none;
}
.bcard span{font-size:10.5px;font-weight:800;color:var(--purple-500);}
.bcard b{display:block;font-size:13px;line-height:1.4;color:var(--ink);margin-top:2px;}
.bchat-chips{
  display:flex;gap:6px;flex-wrap:wrap;
  padding:6px 14px 8px;flex-shrink:0;
}
.bchat-chips button{
  border:1.5px solid var(--purple-500);background:#fff;color:var(--purple-700);
  border-radius:9999px;padding:6px 13px;font-size:12.5px;font-weight:700;cursor:pointer;
}
.bchat-chips button:active{background:var(--purple-700);color:#fff;}
.bchat-inputrow{
  display:flex;gap:8px;padding:10px 14px 14px;flex-shrink:0;
  background:var(--bg);
}
.bchat-inputrow input{
  flex:1;border:1.5px solid rgba(222,183,255,.8);border-radius:9999px;
  padding:10px 16px;font-size:14px;outline:0;background:#fff;color:var(--ink);
  font-family:inherit;
}
.bchat-inputrow input:focus{border-color:var(--purple-500);}
.bchat-send{
  border:0;width:42px;height:42px;border-radius:50%;
  background:var(--purple-700);color:#fff;font-size:15px;cursor:pointer;
  box-shadow:0 8px 18px rgba(45,0,80,.3);
}

/* ===== 登入／註冊（模擬）===== */
.auth-overlay{
  position:fixed;inset:0;z-index:140;
  background:rgba(45,0,80,.5);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:center;padding:20px;
  animation:gachaFade .25s ease;
}
.auth-overlay[hidden]{display:none;}
body.auth-open{overflow:hidden;}
.auth-sheet{
  position:relative;width:min(92vw,360px);
  background:var(--bg);border-radius:24px;padding:26px 24px 20px;
  box-shadow:0 40px 90px rgba(45,0,80,.45);text-align:center;
  animation:gachaPop .35s cubic-bezier(.2,1.4,.4,1);
}
.auth-close{
  position:absolute;right:14px;top:12px;
  width:30px;height:30px;border-radius:50%;border:0;
  background:rgba(45,0,80,.08);color:var(--purple-900);font-size:14px;cursor:pointer;
}
.auth-step h3{
  font-family:var(--font-display),var(--font-cjk);
  font-size:20px;color:var(--purple-900);margin:0 0 6px;
}
.auth-step>p{font-size:13px;color:var(--gray);margin:0 0 16px;line-height:1.6;}
.auth-social{
  display:block;width:100%;margin-bottom:9px;
  border:0;border-radius:9999px;padding:11px 0;
  font-size:14px;font-weight:800;cursor:pointer;font-family:inherit;
  transition:transform .15s ease;
}
.auth-social:active{transform:scale(.97);}
.s-line{background:#06c755;color:#fff;}
.s-fb{background:#1877f2;color:#fff;}
.s-google{background:#fff;color:var(--ink);border:1.5px solid rgba(45,0,80,.18);}
.auth-or{
  display:flex;align-items:center;gap:10px;margin:14px 0 10px;
  font-size:11.5px;color:var(--gray);
}
.auth-or::before,.auth-or::after{content:'';flex:1;height:1px;background:rgba(45,0,80,.12);}
.auth-email{display:flex;gap:8px;}
.auth-email input{
  flex:1;border:1.5px solid rgba(222,183,255,.8);border-radius:9999px;
  padding:10px 16px;font-size:13.5px;outline:0;font-family:inherit;background:#fff;
}
.auth-email .auth-go{
  border:0;border-radius:9999px;background:var(--purple-700);color:#fff;
  padding:0 20px;font-size:13.5px;font-weight:800;cursor:pointer;
}
.auth-tos{font-size:10.5px;color:var(--gray);opacity:.7;margin:14px 0 0;}
.auth-spinner{
  display:block;width:44px;height:44px;margin:18px auto 14px;
  border-radius:50%;border:4px solid rgba(222,183,255,.4);
  border-top-color:var(--purple-700);
  animation:aspin .8s linear infinite;
}
@keyframes aspin{to{transform:rotate(360deg);}}
.auth-interests{
  display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:16px;
}
.auth-interests button{
  border:1.5px solid rgba(45,0,80,.14);background:#fff;color:var(--ink);
  border-radius:9999px;padding:8px 15px;font-size:13.5px;font-weight:700;cursor:pointer;
  transition:all .15s ease;
}
.auth-interests button.on{
  border-color:var(--purple-700);background:var(--purple-700);color:#fff;
  box-shadow:0 8px 18px rgba(45,0,80,.28);
}
.auth-done{
  width:100%;border:0;border-radius:9999px;
  background:var(--purple-700);color:#fff;
  padding:12px 0;font-size:14.5px;font-weight:800;cursor:pointer;
  box-shadow:0 12px 26px rgba(45,0,80,.32);
}
.auth-done:disabled{opacity:.4;box-shadow:none;cursor:default;}


/* ===== 今日運勢（Kim 定案版）追加樣式 ===== */
.ai-mark{
  position:absolute;top:9px;right:9px;
  font-size:9.5px;font-weight:800;color:var(--purple-500);
  background:rgba(222,183,255,.35);border-radius:9999px;padding:2px 8px;
}
.g-lucky{
  font-size:11px;font-weight:700;color:var(--purple-700);
  background:rgba(222,183,255,.25);border-radius:9999px;padding:3px 10px;
  margin-top:2px;
}
.gacha-art{
  display:flex;align-items:center;gap:10px;
  background:#fff;border:1.5px solid rgba(222,183,255,.8);
  border-radius:14px;padding:10px 14px;margin:0 0 12px;
  text-decoration:none;text-align:left;
  animation:bmsgIn .3s ease;
}
.gacha-art[hidden]{display:none;}
.gacha-art .ga-label{
  flex-shrink:0;font-size:10px;font-weight:800;color:var(--purple-500);
  writing-mode:horizontal-tb;max-width:64px;line-height:1.4;
}
.gacha-art b{flex:1;font-size:13px;line-height:1.4;color:var(--ink);}
.gacha-art .ga-go{flex-shrink:0;font-size:11.5px;font-weight:800;color:var(--purple-700);white-space:nowrap;}
.gacha-tos{
  margin:8px 4px 0;font-size:10px;color:var(--gray);opacity:.75;text-align:center;
}

.p1-badge{
  font-style:normal;font-size:9px;font-weight:800;
  background:#ffe9a8;color:#7a5a00;border-radius:9999px;padding:1px 6px;margin-left:4px;
}
.gacha-modes button.on .p1-badge{background:#fff;color:#7a5a00;}
