/* ============ 基礎 ============ */
:root {
  --ink: #071510;
  --forest: #0d241b;
  --gold: #e8c582;
  --gold-2: #f3dfb0;
  --cream: #f5ecd8;
  --text: #e6eee8;
  --muted: #9db8aa;
  --serif: 'Noto Serif TC', serif;
  --sans: 'Noto Sans TC', system-ui, sans-serif;
  --en: 'Cinzel', 'Noto Serif TC', serif;
  --header-h: 70px;
  --radius: 14px;
  --bg-shift: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0; }
p { margin: 0; }
.en { font-family: var(--en); letter-spacing: .14em; text-transform: uppercase; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }
.eyebrow { font-size: 12px; color: var(--gold); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 700; letter-spacing: .08em; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #f3dfb0, #c89a4b); color: #1b140a; box-shadow: 0 10px 30px rgba(232, 197, 130, .25); }
.btn-ember { background: linear-gradient(135deg, #ffb36b, #e0573a); color: #1d0b06; box-shadow: 0 10px 34px rgba(255, 120, 60, .35); }
.muted { opacity: .6; }

/* ============ Header ============ */
.site-header { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 40px); background: linear-gradient(to bottom, rgba(5, 16, 12, .85), rgba(5, 16, 12, 0)); backdrop-filter: blur(6px); }
.site-nav { display: flex; gap: clamp(10px, 2vw, 28px); font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.site-nav a { white-space: nowrap; color: var(--gold-2); opacity: .8; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { opacity: 1; border-color: var(--gold); }
/* 手機：右上漢堡選單 */
.menu-btn { display: none; }
@media (max-width: 767px) {
  .menu-btn { all: unset; display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; position: relative; z-index: 2; }
  .menu-btn span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--gold-2); transition: transform .35s, opacity .25s; }
  .menu-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  /* 右上角往下展開的小選單（不蓋滿畫面） */
  .site-nav { position: absolute; top: calc(var(--header-h) - 6px); right: 12px; z-index: 1; width: min(220px, calc(100vw - 24px));
    flex-direction: column; gap: 0; padding: 8px; border-radius: 14px;
    background: rgba(8, 26, 21, .97); border: 1px solid rgba(232, 197, 130, .35); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: top right;
    transition: opacity .25s, transform .25s, visibility .25s; }
  .site-nav a { font-size: 15px; padding: 12px 14px; border-radius: 8px; border-bottom: 0; opacity: 1; }
  .site-nav a:hover, .site-nav a:focus-visible { background: rgba(232, 197, 130, .12); }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; } /* 有模糊時，固定定位的選單會被限制在 header 範圍內 */
}

/* ============ Hero：原主視覺 ＋ WebGL 景深 ============ */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; background: #0a2219; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.hero.gl-ready .hero-gl { opacity: 1; }
.hero.gl-ready .hero-img { visibility: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
  linear-gradient(90deg, rgba(6, 22, 16, .88) 0%, rgba(6, 22, 16, .55) 30%, transparent 55%),
  linear-gradient(0deg, var(--ink) 0%, transparent 16%); }
@media (max-width: 767px) { .hero-img { object-position: 71% 50%; } }
.hero-copy { position: absolute; z-index: 4; left: clamp(16px, 7vw, 120px); top: 50%; transform: translateY(-50%); max-width: 560px; }
.hero-copy h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 900; letter-spacing: .04em; margin: 18px 0 20px; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero-copy .gold { background: linear-gradient(120deg, #fff4d6, #e8c582 50%, #b9873d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { color: #cfe0d6; font-size: clamp(15px, 1.4vw, 18px); max-width: 30em; margin-bottom: 28px; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.hero-scroll { position: absolute; z-index: 4; left: 50%; bottom: 26px; width: 24px; height: 40px; border: 1px solid rgba(243, 223, 176, .5); border-radius: 12px; transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 767px) {
  .hero-copy { top: auto; bottom: 90px; transform: none; right: 16px; }
  .hero::after { background: linear-gradient(0deg, rgba(4, 14, 10, .95) 0%, rgba(4, 14, 10, .55) 45%, transparent 75%); }
}

/* ============ 區塊共用 ============ */
.sec { position: relative; padding: clamp(72px, 10vw, 128px) 0; overflow: hidden; isolation: isolate; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 12px 0 10px; }
.sec-head .sub { color: var(--muted); }
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
a.card:hover { transform: translateY(-6px); }
.cover { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) - 4px); background: #fff; }
.cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
a.card:hover .cover img { transform: scale(1.05); }
.badge { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.meta { padding: 14px 4px 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta h3 { font-size: 16px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price strong { font-family: var(--en); font-size: 18px; letter-spacing: .02em; }
.price s { font-size: 13px; opacity: .7; }
.cta { font-size: 13px; font-weight: 700; letter-spacing: .1em; }

/* ============ 新書預購：餘燼冥（黑紫＋火星） ============ */
.sec-ember { background:
  radial-gradient(ellipse 70% 60% at 30% 100%, rgba(255, 110, 50, .28), transparent 70%),
  radial-gradient(ellipse 50% 50% at 85% 10%, rgba(120, 60, 160, .3), transparent 70%),
  linear-gradient(180deg, #0a0f0d 0%, #140a14 40%, #1b0b10 100%); }
.embers { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image:
  radial-gradient(2px 2px at 10% 80%, #ffb36b, transparent), radial-gradient(1.5px 1.5px at 25% 60%, #ff8a4c, transparent),
  radial-gradient(2px 2px at 40% 90%, #ffd08a, transparent), radial-gradient(1.5px 1.5px at 55% 70%, #ff8a4c, transparent),
  radial-gradient(2.5px 2.5px at 70% 85%, #ffb36b, transparent), radial-gradient(1.5px 1.5px at 85% 65%, #ffd08a, transparent),
  radial-gradient(2px 2px at 95% 95%, #ff8a4c, transparent);
  background-size: 100% 100%; animation: rise 9s linear infinite; opacity: .9; }
.embers::after { content: ''; position: absolute; inset: 0; background: inherit; animation: rise 13s linear infinite -6s; transform: scaleX(-1); }
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes rise { from { background-position: 0 0; transform: translateY(20%); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-60%); opacity: 0; } }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.feat-cover { position: relative; max-width: 420px; justify-self: center; }
.feat-cover img { position: relative; border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 179, 107, .3); }
.feat-glow { position: absolute; inset: -18%; background: radial-gradient(circle, rgba(255, 130, 70, .45), transparent 65%); filter: blur(20px); animation: breathe 5s ease-in-out infinite; }
.feat-info h2 { font-size: clamp(26px, 3.4vw, 42px); margin: 14px 0 8px; }
.pill { display: block; width: fit-content; margin-top: 16px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 140, 80, .16); border: 1px solid rgba(255, 160, 100, .5); color: #ffc79a; font-size: 13px; font-weight: 700; }
.feat-sub { color: #ffc79a; margin-bottom: 14px; }
.feat-desc { color: #d8cdd2; max-width: 34em; margin-bottom: 18px; }
.feat-period { color: #ffb36b; font-size: 14px; margin-bottom: 10px; }
.feat-info .price { margin: 10px 0 24px; }
.feat-info .price strong { font-size: 30px; color: #ffd8a8; }
.sec-ember .eyebrow { color: #ffb36b; }
@media (max-width: 767px) { .feat { grid-template-columns: 1fr; } .feat-cover { max-width: 280px; } }

/* ============ 系列套書：羊皮紙地圖（淺色） ============ */
.sec-parchment { color: #2b2216; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
  repeating-linear-gradient(0deg, transparent 0 79px, rgba(120, 90, 50, .09) 79px 80px),
  repeating-linear-gradient(90deg, transparent 0 79px, rgba(120, 90, 50, .09) 79px 80px),
  radial-gradient(ellipse at 50% 40%, #f6ecd4 0%, #e9d9b6 70%, #d9c399 100%);
  background-position: 0 var(--bg-shift), 0 var(--bg-shift), 0 var(--bg-shift), 0 0; }
.sec-parchment::before { content: ''; position: absolute; right: -80px; top: 40px; width: 420px; height: 420px; opacity: .14; z-index: 0; transform: translateY(var(--bg-shift)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cg fill='none' stroke='%235a3d1c' stroke-width='1.2'%3E%3Ccircle r='90'/%3E%3Ccircle r='70'/%3E%3Ccircle r='12'/%3E%3C/g%3E%3Cpath d='M0-95 L10-10 L95 0 L10 10 L0 95 L-10 10 L-95 0 L-10-10Z' fill='%235a3d1c'/%3E%3C/svg%3E") center/contain no-repeat; }
.sec-parchment .eyebrow { color: #8a5a22; }
.sec-parchment .sec-head .sub { color: #6b5638; }
.grid-bundle { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-bundle { background: #fbf5e6; padding: 12px; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 14px 30px rgba(90, 60, 20, .18); border: 1px solid #d8c39a; }
.card-bundle .badge { background: #6b3f17; color: #fbe9c6; }
.card-bundle .price strong { color: #7a3d0c; }
.card-bundle .cta { color: #8a5a22; }
a.card-bundle:hover { box-shadow: 0 22px 40px rgba(90, 60, 20, .28); }
@media (max-width: 960px) { .grid-bundle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============ 限量收藏：黃銅聖物 ============ */
.sec-brass { background:
  radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 197, 130, .16), transparent 70%),
  repeating-linear-gradient(115deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 6px),
  linear-gradient(180deg, #17120b 0%, #1f170d 50%, #120e08 100%); }
.grid-relic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.card-relic { padding: 16px; background: linear-gradient(160deg, #2a2114, #17110a); border: 1px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 1px #8c6b35, 0 0 0 5px #1c150c, 0 0 0 6px #5c4521, 0 24px 50px rgba(0, 0, 0, .55); }
.card-relic::before, .card-relic::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6dfa6, #8c6b35); top: 8px; left: 8px; }
.card-relic::after { left: auto; right: 8px; }
.card-relic .badge { background: linear-gradient(135deg, #f3dfb0, #b98a3e); color: #22180a; }
.card-relic .price strong { color: var(--gold-2); }
.card-relic .cta { color: var(--gold); }
.sec-brass .eyebrow { color: #e3b866; }
@media (max-width: 767px) { .grid-relic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .card-relic { padding: 10px; } }

/* ============ 六大系列：分頁＋每個世界一種材質 ============ */
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; }
.tab { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: rgba(14, 40, 31, .85); backdrop-filter: blur(8px); border: 1px solid rgba(243, 223, 176, .14); transition: background .3s, border-color .3s, transform .3s; }
.tab:hover { border-color: rgba(243, 223, 176, .4); }
.tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tab-en { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-zh { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.tab[aria-selected='true'] { background: linear-gradient(135deg, rgba(232, 197, 130, .28), rgba(232, 197, 130, .08)); border-color: var(--gold); }
@media (max-width: 960px) {
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .tab { flex: 0 0 auto; }
}
.series-panel { position: relative; border-radius: 20px; padding: clamp(20px, 4vw, 44px); overflow: hidden; border: 1px solid rgba(243, 223, 176, .14); transition: background .6s; }
.series-panel::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; border-radius: inherit; }
.series-panel > * { position: relative; z-index: 1; }
.series-intro { max-width: 640px; margin-bottom: 28px; }
.series-intro h3 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0; }
.series-intro p:last-child { color: rgba(230, 238, 232, .8); }
.grid-book { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-book { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-book { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-book { padding: 10px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); }
.card-book .cover { aspect-ratio: 3 / 4; background: #f1e8d5; }
.card-book .cover img { padding: 8px; }
.card-book .meta h3 { font-size: 14px; }
.card-book .price strong { font-size: 16px; color: var(--gold-2); }
a.card-book:hover { box-shadow: 0 18px 36px rgba(0, 0, 0, .45); border-color: rgba(243, 223, 176, .35); }

.look-sky { background: linear-gradient(160deg, #0c1a3a, #0a1226 60%, #070c1a); }
.look-sky::before { background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #cfe0ff, transparent), radial-gradient(1.5px 1.5px at 200px 20px, #fff, transparent), radial-gradient(1px 1px at 260px 140px, #9fc0ff, transparent); background-size: 300px 180px; }
.look-sea { background: linear-gradient(160deg, #0b3a2f, #08291f 60%, #061d16); }
.look-sea::before { background-image: radial-gradient(3px 3px at 30px 40px, rgba(140, 255, 200, .35), transparent), radial-gradient(2px 2px at 140px 110px, rgba(140, 255, 200, .25), transparent), radial-gradient(4px 4px at 230px 60px, rgba(140, 255, 200, .2), transparent); background-size: 280px 160px; animation: drift 30s linear infinite; }
.look-mist { background: linear-gradient(160deg, #2a2620, #1b1915 60%, #121110); }
.look-mist::before { background: radial-gradient(ellipse 60% 40% at 20% 30%, rgba(200, 190, 170, .16), transparent 70%), radial-gradient(ellipse 50% 40% at 80% 70%, rgba(200, 190, 170, .12), transparent 70%); animation: drift 40s ease-in-out infinite alternate; }
.look-steel { background: linear-gradient(160deg, #2b1013, #1a0c0e 60%, #120809); }
.look-steel::before { background: repeating-linear-gradient(135deg, rgba(255, 80, 70, .06) 0 2px, transparent 2px 18px); }
.look-storm { background: linear-gradient(160deg, #0b2a44, #0a1d30 60%, #06121f); }
.look-storm::before { background: repeating-linear-gradient(100deg, transparent 0 60px, rgba(150, 220, 255, .08) 60px 62px), radial-gradient(ellipse 40% 30% at 75% 20%, rgba(150, 220, 255, .18), transparent 70%); }
.look-sand { background: linear-gradient(160deg, #3a2a14, #2a1e0e 60%, #1a1309); }
.look-sand::before { background: repeating-radial-gradient(ellipse 140% 60% at 50% 120%, transparent 0 22px, rgba(255, 210, 140, .07) 22px 24px); }
.tab.look-sky[aria-selected='true'] { background: linear-gradient(135deg, #1b3266, #0c1a3a); }
.tab.look-sea[aria-selected='true'] { background: linear-gradient(135deg, #12604c, #0b3a2f); }
.tab.look-mist[aria-selected='true'] { background: linear-gradient(135deg, #4a4337, #2a2620); }
.tab.look-steel[aria-selected='true'] { background: linear-gradient(135deg, #5a1d22, #2b1013); }
.tab.look-storm[aria-selected='true'] { background: linear-gradient(135deg, #17507e, #0b2a44); }
.tab.look-sand[aria-selected='true'] { background: linear-gradient(135deg, #6b4c22, #3a2a14); }
@keyframes drift { from { background-position: 0 0; } to { background-position: 280px -160px; } }

/* ============ 露透社：報刊紙（淺色） ============ */
.sec-paper { color: #1f1d18; background:
  repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(0, 0, 0, .05) calc(25% - 1px) 25%),
  linear-gradient(180deg, #f3eee3, #ebe4d4); }
.sec-paper .eyebrow { color: #7a5a2a; }
.sec-paper .sec-head .sub { color: #5d574b; }
.articles { display: grid; gap: 24px; }
.article { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: #fffdf7; border: 1px solid #d9d1bf; border-radius: 4px; overflow: hidden; box-shadow: 0 16px 40px rgba(40, 30, 10, .12); transition: transform .35s, box-shadow .35s; }
a.article:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(40, 30, 10, .18); }
.article-img { min-height: 260px; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.15); transition: transform .8s; }
a.article:hover .article-img img { transform: scale(1.04); }
.article-body { padding: clamp(20px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.article-body h3 { font-size: clamp(20px, 2.4vw, 28px); }
.article-body p { color: #4a463c; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #a0471c; }
.more { margin-top: auto; font-weight: 700; color: #7a5a2a; }
@media (max-width: 767px) { .article { grid-template-columns: 1fr; } .article-img { min-height: 200px; } }

/* ============ 優惠：票券 ============ */
.sec-offers { background: linear-gradient(180deg, #0a1d17, #0d261d); }
.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ticket { display: grid; grid-template-columns: 180px 1fr; border-radius: 12px; overflow: hidden; background: #f5ecd8; color: #2b2216; position: relative; }
.ticket::before, .ticket::after { content: ''; position: absolute; left: 172px; width: 16px; height: 16px; border-radius: 50%; background: #01331e; } /* 打孔顏色＝章節底色 */
.ticket::before { top: -8px; } .ticket::after { bottom: -8px; }
.ticket-l { background: linear-gradient(135deg, #e8c582, #c89a4b); padding: 20px; display: flex; flex-direction: column; justify-content: center; border-right: 2px dashed rgba(43, 34, 22, .35); }
.ticket-l .kicker { color: #5a3a10; }
.ticket-l strong { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.ticket-r { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ticket-r a { font-weight: 700; color: #8a5a22; }
/* 手機：兩張一排，改成直式票券（上：金色優惠，下：說明），中間橫向撕線、兩側半圓打孔 */
@media (max-width: 767px) {
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ticket { grid-template-columns: 1fr; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; } /* 同一排的金色區與撕線對齊 */
  .tickets { row-gap: 0; } .ticket:nth-child(n+3) { margin-top: 12px; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-l { position: relative; padding: 14px 12px; border-right: 0; border-bottom: 2px dashed rgba(43, 34, 22, .35); text-align: center; align-items: center; }
  .ticket-l::before, .ticket-l::after { content: ''; position: absolute; bottom: -8px; width: 14px; height: 14px; border-radius: 50%; background: #01331e; }
  .ticket-l::before { left: -7px; } .ticket-l::after { right: -7px; }
  .ticket-l .kicker { font-size: 11px; }
  .ticket-l strong { font-size: 18px; }
  .ticket-r { padding: 12px; justify-content: flex-start; gap: 6px; font-size: 13px; line-height: 1.55; }
  .ticket-r a { font-size: 13px; }
}

/* ============ 會員 / Footer ============ */
.sec-member { background: radial-gradient(ellipse at 50% 120%, rgba(232, 197, 130, .2), transparent 60%), #071510; padding: 80px 0; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.member h2 { font-size: clamp(22px, 3vw, 32px); margin: 10px 0 8px; }
.member p { color: var(--muted); }
.site-footer { padding: 28px 16px; text-align: center; font-size: 13px; color: #6f8a7d; background: #050f0b; }
.load-error { text-align: center; padding: 60px 16px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ GPT 紙雕素材區塊 ============ */
/* 每個區塊一張插畫：等比放大蓋滿整個區塊（cover），上下緣淡出、與相鄰區塊用模糊銜接 */
.sec-art { background: #0c2327; } /* 三個區塊統一底色，交界不會有色差 */
.art-1 { --art: url(../img/art-1-wide.webp); }
.art-2 { --art: url(../img/art-2-wide.webp); }
.art-3 { --art: url(../img/art-3-wide.webp); }
@media (max-width: 767px) { /* 手機用直式素材 */
  .art-1 { --art: url(../img/art-1.webp); }
  .art-2 { --art: url(../img/art-2.webp); }
  .art-3 { --art: url(../img/art-3.webp); }
}
.sec-art::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  inset: -60px 0; /* 多留上下空間給捲動視差 */
  background: var(--art) center / cover no-repeat;
  transform: translateY(calc(var(--bg-shift) * .6));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
/* 區塊交界：一條往上下淡出的模糊帶，蓋住上一區塊的底部與本區塊的頂部 */
.sec-art::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 35, 39, .9), rgba(12, 35, 39, 0));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.sec-art .sec-head h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }

/* 新書預購改成金色系，跟素材一致 */
.sec-art .pill { background: rgba(232, 197, 130, .14); border-color: rgba(232, 197, 130, .5); color: var(--gold-2); }
.sec-art .feat-sub, .sec-art .feat-period { color: var(--gold); }
.sec-art .feat-desc { color: #d3e0da; }
.sec-art .feat-info .price strong { color: var(--gold-2); }
.sec-art .feat-glow { background: radial-gradient(circle, rgba(232, 197, 130, .32), transparent 65%); }
.sec-art .feat-cover img { box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(232, 197, 130, .35); }

/* 六大系列：分頁面板改半透明，讓後面的素材透出來 */
.sec-art .series-panel { background-color: transparent; backdrop-filter: blur(2px); }
.sec-art .series-panel.look-sky { background: linear-gradient(160deg, rgba(12, 26, 58, .82), rgba(7, 12, 26, .88)); }
.sec-art .series-panel.look-sea { background: linear-gradient(160deg, rgba(11, 58, 47, .82), rgba(6, 29, 22, .88)); }
.sec-art .series-panel.look-mist { background: linear-gradient(160deg, rgba(42, 38, 32, .84), rgba(18, 17, 16, .9)); }
.sec-art .series-panel.look-steel { background: linear-gradient(160deg, rgba(43, 16, 19, .84), rgba(18, 8, 9, .9)); }
.sec-art .series-panel.look-storm { background: linear-gradient(160deg, rgba(11, 42, 68, .82), rgba(6, 18, 31, .88)); }
.sec-art .series-panel.look-sand { background: linear-gradient(160deg, rgba(58, 42, 20, .84), rgba(26, 19, 9, .9)); }

/* Logo：依原圖比例（737×401）顯示 */
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

/* ============ 颶光光痕轉場 ============ */
.streak { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: 0; overflow: hidden; }
.streak-beam { position: absolute; left: -30%; top: 50%; width: 160%; height: 160px; margin-top: -80px; transform: rotate(-14deg);
  background:
    linear-gradient(to bottom, transparent 49.4%, rgba(255, 250, 235, .95) 50%, transparent 50.6%),
    linear-gradient(to bottom, transparent 46%, rgba(243, 223, 176, .45) 50%, transparent 54%),
    linear-gradient(to bottom, transparent 30%, rgba(232, 197, 130, .12) 50%, transparent 70%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 42%, #000 58%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(243, 223, 176, .7)); }
.streak-wash { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(243, 223, 176, .08), transparent 70%); opacity: 0; }
/* 標題被光掃過 */
.sec-head h2, .feat-info h2 {
  background-image: linear-gradient(100deg, transparent 40%, #fff6dc 50%, transparent 60%), linear-gradient(currentColor, currentColor);
  background-size: 220% 100%, 100% 100%; background-repeat: no-repeat; background-position: -120% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }

/* ============ 六大系列：奇幻鏡面＋紙雕鏡框 ============ */
.sec-art .series-panel { position: relative; border-radius: 26px; border: 0; overflow: visible; margin: 18px 6px;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, .55),
    0 0 0 6px #e9dcc0,                  /* 米白紙層 */
    0 0 0 9px #1c4436,                  /* 深綠紙層 */
    0 0 0 12px #c9a25a,                 /* 金色紙層 */
    0 0 0 18px #0f2a22,                 /* 外圈深綠 */
    0 0 0 19px rgba(232, 197, 130, .5),
    0 26px 50px 12px rgba(0, 0, 0, .55); }
/* 鏡面反光 */
.sec-art .series-panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .07) 42%, rgba(255, 255, 255, .02) 48%, transparent 56%) -100% 0 / 260% 100% no-repeat;
  animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%, 20% { background-position: 120% 0; } 70%, 100% { background-position: -60% 0; } }

/* 主視覺標題：襯一塊半透明深色底，避免被背景干擾 */
.hero-copy { padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 40px); border-radius: 18px;
  background: rgba(6, 22, 16, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 197, 130, .22); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.hero-copy h1 { margin-top: 12px; }
@media (max-width: 767px) { .hero-copy { left: 12px; right: 12px; bottom: 72px; } }
.hero-copy { max-width: 500px; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: 16px; }
.hero-copy .lead { margin-bottom: 22px; }

/* 素材元素動態（浮空島）：canvas 取代 CSS 背景，位置、淡出與視差跟 ::before 一致 */
.floaters { position: absolute; left: 0; right: 0; top: -60px; width: 100%; height: calc(100% + 120px); z-index: 0; pointer-events: none;
  transform: translateY(calc(var(--bg-shift) * .6));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
.sec-art.has-floaters::before { display: none; }

/* ============ 章節：每章一張素材當整片背景 ============ */
/* 桌機：寬度滿版，高度最多拉到原比例 2 倍，置中；超出部分用底色淡出 */
.chapter { position: relative; overflow: hidden; isolation: isolate; background: #0c2327; --bg-shift: 0px; }
.chapter > .sec { background: transparent !important; color: var(--text); }
.chapter > .sec::before, .chapter > .sec::after { display: none !important; }
.chapter > .sec > .floaters { display: block; }
.chapter::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; z-index: 0; pointer-events: none;
  height: min(100% + 120px, 100vw * 941 / 1672 * 2);
  transform: translateY(calc(-50% + var(--bg-shift) * .6));
  background: var(--art) center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
/* 章節交界的模糊帶 */
.chapter::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 35, 39, .9), rgba(12, 35, 39, 0));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.chapter > .sec { z-index: 1; }
.chapter.art-2::before { top: -60px; transform: translateY(calc(var(--bg-shift) * .6)); } /* 六大系列那章從頂部開始放 */
@media (max-width: 767px) {
  .chapter::before, .chapter.art-2::before { top: 0; height: 100%; transform: none; background-size: cover; }
}
/* 原本單色底的區塊改透出章節背景：標題與說明改淺色 */
.chapter .sec-paper, .chapter .sec-paper .sec-head h2 { color: var(--text); }
.chapter .sec-paper .eyebrow, .chapter .sec-brass .eyebrow { color: var(--gold); }
.chapter .sec-paper .sec-head .sub { color: var(--muted); }
.chapter .sec-paper { color: var(--text); }
.chapter .sec-paper .article { color: #1f1d18; }

.hero-copy .ln { display: block; } /* 標題拆行，逐行浮出 */
.hero-copy { max-width: 600px; }
.hero-copy .ln { white-space: nowrap; } /* 每一行標題不斷行 */

/* ============ 游標：金色星芒（桌機） ============ */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; will-change: transform; }
.cursor-star, .cursor-ring { position: absolute; display: block; }
.cursor-star { width: 22px; height: 22px; left: -11px; top: -11px; filter: drop-shadow(0 0 6px rgba(243, 213, 143, .9)); }
.cursor-ring { width: 58px; height: 58px; left: -29px; top: -29px; filter: drop-shadow(0 0 4px rgba(232, 197, 130, .5)); }

/* ============ 六大系列章節：六片世界碎片 ============ */
.chapter.art-2.has-worlds { background: #01331e; }
.chapter.art-2.has-worlds::before { display: none; }
.worlds { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.worlds-orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.worlds-orbits path { fill: none; stroke: rgba(232, 197, 130, .5); stroke-width: 1.2; }
.worlds-orbits circle { fill: #d9b46a; }
.world { position: absolute; width: clamp(120px, 15vw, 240px); aspect-ratio: var(--ratio); will-change: transform; }
.world-left { left: max(10px, calc((100vw - 1200px) / 2 - 12vw)); }
.world-right { right: max(10px, calc((100vw - 1200px) / 2 - 12vw)); }
.world canvas { display: block; width: 100%; height: 100%; transition: filter .5s;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)) brightness(.82) saturate(.85); }
.world.is-active canvas { filter: drop-shadow(0 0 20px rgba(243, 213, 143, .6)) drop-shadow(0 18px 24px rgba(0, 0, 0, .5)) brightness(1.08) saturate(1.05); }
.world-thumb { display: none; }
@media (max-width: 767px) {
  .worlds { display: none; }
  .world-thumb { display: block; float: right; width: 72px; height: auto; margin: 0 0 8px 12px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
}
/* 碎片章節：內容寬度讓出兩側碎片的位置（桌機） */
@media (min-width: 768px) {
  .chapter.art-2.has-worlds .wrap { width: min(1200px, 100% - 2 * (clamp(120px, 15vw, 240px) + 24px)); }
  .world-left { left: 12px; }
  .world-right { right: 12px; }
}
/* 系列套書＋限量收藏：素材維持原比例（不拉長），寬度滿版、置中於兩區交界 */
@media (min-width: 768px) {
  .chapter.art-1::before { height: calc(100vw * 941 / 1672); }
}
/* 鏡框是畫在面板外圈的陰影（不佔版面），所以分頁與面板之間要另外留出鏡框的厚度 */
.sec-art .series-panel { margin: 44px 6px 24px; }
@media (max-width: 767px) {
  .sec-art .series-panel { margin: 30px 14px 16px; border-radius: 20px;
    box-shadow:
      inset 0 0 40px rgba(0, 0, 0, .55),
      0 0 0 4px #e9dcc0, 0 0 0 6px #1c4436, 0 0 0 8px #c9a25a, 0 0 0 12px #0f2a22, 0 0 0 13px rgba(232, 197, 130, .5),
      0 18px 36px 8px rgba(0, 0, 0, .5); }
}
/* 碎片縮小（桌機）：寬度約 11vw、最大 180px；內容讓出的兩側空間跟著縮 */
.world { width: clamp(96px, 11vw, 180px); }
@media (min-width: 768px) {
  .chapter.art-2.has-worlds .wrap { width: min(1200px, 100% - 2 * (clamp(96px, 11vw, 180px) + 24px)); }
}

/* ============ 新書預購：書封放在淺色卡片上（白底用 multiply 融進卡片＝去背效果） ============ */
.feat-glow { display: none; }
.feat-cover { max-width: 380px; width: 100%; padding: clamp(22px, 3vw, 36px); border-radius: 22px;
  background: linear-gradient(160deg, #f6efd9, #e9ddbb);
  border: 1px solid rgba(201, 162, 90, .6);
  box-shadow: 0 0 0 6px rgba(241, 233, 205, .12), 0 30px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: rotate(-2deg); }
.sec-art .feat-cover img, .feat-cover img { mix-blend-mode: multiply; box-shadow: none; border-radius: 0; transform: rotate(2deg); }
/* 文案直接放在插畫上：後面襯一層柔和的暗色，讓字清楚 */
.feat-info { position: relative; }
.feat-info::before { content: ''; position: absolute; inset: -40px -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 40% 50%, rgba(6, 20, 16, .72), rgba(6, 20, 16, 0) 70%); }
.feat-info .price strong { color: var(--gold-2); }
@media (max-width: 767px) { .feat-cover { max-width: 260px; justify-self: center; } }

/* ============ 系列套書＋限量收藏：星球素材拆開的裝飾 ============ */
.chapter.deco { background: #0d2428; }
.chapter.deco::before { display: none; }
.deco-top, .deco-bottom { position: absolute; left: 0; width: 100%; z-index: 0; pointer-events: none; display: block; }
.deco-top { top: 0; aspect-ratio: 1672 / 425;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.deco-bottom { bottom: 0; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%); mask-image: linear-gradient(to bottom, transparent, #000 18%); }
