/* 字体引入 (保持不变) */
@font-face { font-display: swap; font-family: 'Noto Serif SC'; font-style: normal; font-weight: 200; src: url('../fonts/noto-serif-sc-v35-chinese-simplified_latin-200.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Serif SC'; font-style: normal; font-weight: 300; src: url('../fonts/noto-serif-sc-v35-chinese-simplified_latin-300.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Serif SC'; font-style: normal; font-weight: 400; src: url('../fonts/noto-serif-sc-v35-chinese-simplified_latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Serif SC'; font-style: normal; font-weight: 500; src: url('../fonts/noto-serif-sc-v35-chinese-simplified_latin-500.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Serif SC'; font-style: normal; font-weight: 600; src: url('../fonts/noto-serif-sc-v35-chinese-simplified_latin-600.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Serif SC'; font-style: normal; font-weight: 700; src: url('../fonts/noto-serif-sc-v35-chinese-simplified_latin-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Serif SC'; font-style: normal; font-weight: 800; src: url('../fonts/noto-serif-sc-v35-chinese-simplified_latin-800.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Serif SC'; font-style: normal; font-weight: 900; src: url('../fonts/noto-serif-sc-v35-chinese-simplified_latin-900.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'ZCOOL XiaoWei'; font-style: normal; font-weight: 400; src: url('../fonts/zcool-xiaowei-v15-chinese-simplified_latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 400; src: url('../fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 400; src: url('../fonts/playfair-display-v40-latin-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 500; src: url('../fonts/playfair-display-v40-latin-500.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 500; src: url('../fonts/playfair-display-v40-latin-500italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 600; src: url('../fonts/playfair-display-v40-latin-600.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 600; src: url('../fonts/playfair-display-v40-latin-600italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 700; src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 700; src: url('../fonts/playfair-display-v40-latin-700italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 800; src: url('../fonts/playfair-display-v40-latin-800.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 800; src: url('../fonts/playfair-display-v40-latin-800italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 900; src: url('../fonts/playfair-display-v40-latin-900.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 900; src: url('../fonts/playfair-display-v40-latin-900italic.woff2') format('woff2'); }

:root {
  --night: #06100e;
  --deep: #0b1f1a;
  --jade: #2d6a4f;
  --sage: #52b788;
  --mist: #b7e4c7;
  --ivory: #f0ebe1;
  --gold: #d4af6a;
  --blush: #f4c2b0;
  --lily: #fff5f0;
  --warm: #e8c4a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--night); color: var(--ivory); font-family: 'Noto Serif SC', serif; overflow-x: hidden; }

/* 前台密码锁屏 */
.access-gate { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 50% 28%, #15382e 0, #0b1f1a 34%, #06100e 75%); transition: opacity .45s ease, visibility .45s ease; }
.access-gate.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-loading { position: relative; display: flex; flex-direction: column; align-items: center; gap: 15px; color: rgba(240,235,225,.7); font-size: 13px; letter-spacing: .12em; }
.gate-spinner { width: 34px; height: 34px; border: 2px solid rgba(183,228,199,.18); border-top-color: var(--sage); border-radius: 50%; animation: lightboxSpin .8s linear infinite; }
.access-gate.login-required .gate-loading { display: none; }
.gate-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(82,183,136,.1); filter: blur(55px); animation: gateBreath 4s ease-in-out infinite; }
@keyframes gateBreath { 50% { transform: scale(1.22); opacity: .6; } }
.gate-card { position: relative; display: none; width: min(390px, 100%); padding: 40px 32px 34px; border: 1px solid rgba(212,175,106,.28); border-radius: 24px; background: rgba(6,16,14,.76); box-shadow: 0 26px 80px rgba(0,0,0,.45); backdrop-filter: blur(18px); text-align: center; }
.access-gate.login-required .gate-card { display: block; }
.gate-flower { margin-bottom: 14px; font-size: 38px; filter: drop-shadow(0 0 16px rgba(244,194,176,.3)); }
.gate-title { color: var(--lily); font-family: 'ZCOOL XiaoWei', serif; font-size: 30px; font-weight: 400; letter-spacing: .16em; }
.gate-subtitle { margin: 12px 0 26px; color: rgba(183,228,199,.58); font-size: 13px; letter-spacing: .12em; }
.gate-input { width: 100%; height: 50px; padding: 0 18px; border: 1px solid rgba(212,175,106,.35); border-radius: 14px; outline: none; background: rgba(255,255,255,.055); color: var(--ivory); font-size: 18px; letter-spacing: .15em; text-align: center; transition: border-color .2s, box-shadow .2s; }
.gate-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,106,.1); }
.gate-input::placeholder { color: rgba(240,235,225,.3); font-size: 14px; letter-spacing: .08em; }
.gate-button { width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #367c5e, #245941); color: #fff; font-family: 'Noto Serif SC', serif; font-size: 15px; letter-spacing: .16em; cursor: pointer; box-shadow: 0 8px 24px rgba(45,106,79,.28); }
.gate-button:disabled { opacity: .6; cursor: wait; }
.gate-error { min-height: 20px; margin-top: 12px; color: #f4a99b; font-size: 13px; }

/* 动态背景 */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.star { position: absolute; border-radius: 50%; background: white; animation: twinkle var(--d,3s) ease-in-out infinite; animation-delay: var(--delay,0s); }
@keyframes twinkle { 0%,100%{opacity: var(--lo,.2);transform: scale(1)} 50%{opacity: var(--hi,.9);transform: scale(1.3)} }

.firefly { position: fixed; width: 4px; height: 4px; border-radius: 50%; background: #b7e4c7; box-shadow: 0 0 6px 2px #52b78866; pointer-events: none; z-index: 1; animation: float var(--fd,8s) ease-in-out infinite; animation-delay: var(--fdelay,0s); opacity: 0; }
@keyframes float { 0%{transform: translate(0,0);opacity: 0} 20%{opacity: .8} 50%{transform: translate(var(--fx,40px),var(--fy,-60px));opacity: .6} 80%{opacity: .3} 100%{transform: translate(var(--fx2,-20px),var(--fy2,-120px));opacity: 0} }

@keyframes fadeUp { from{opacity:0; transform:translateY(24px)} to{opacity:1; transform:translateY(0)} }

section { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; }

/* 头部 */
.hero { 
  text-align: center; 
  overflow: hidden; 
  min-height: 100vh; 
  justify-content: center; 
  padding-bottom: 0; 
}
.hero-date { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(12px, 2vw, 14px); letter-spacing: .4em; color: var(--sage); opacity: 0; animation: fadeUp 1s ease forwards .3s; margin-bottom: 24px; }
.hero-title { font-family: 'ZCOOL XiaoWei', serif; font-size: clamp(40px, 8vw, 70px); line-height: 1.2; color: var(--lily); text-shadow: 0 0 40px rgba(212,175,106,.2); opacity: 0; animation: fadeUp 1.2s ease forwards .6s; margin-bottom: 16px; }
.hero-title span { color: var(--gold); font-style: italic; font-size: 1.1em; margin-left: 8px;}
.hero-sub { font-size: clamp(13px, 2vw, 15px); color: var(--mist); letter-spacing: .25em; opacity: 0; animation: fadeUp 1s ease forwards 1s; }
.together-timer { margin: 28px 0 0; color: rgba(183,228,199,.8); opacity: 0; animation: fadeUp 1s ease forwards 1.35s; }
.together-label { display: block; color: rgba(183,228,199,.72); font-family: 'ZCOOL XiaoWei', serif; font-size: clamp(16px, 2.4vw, 19px); letter-spacing: .25em; }
.together-count { display: block; margin-top: 11px; color: var(--gold); font-family: 'Playfair Display', 'Noto Serif SC', serif; font-size: clamp(20px, 3.2vw, 25px); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.together-count .unit { color: rgba(240,235,225,.62); font-family: 'Noto Serif SC', serif; font-size: .58em; font-weight: 400; margin: 0 .18em 0 .06em; vertical-align: .12em; }

/* 增加下滑提示动画 */
.scroll-hint { opacity: 0; animation: fadeUp 1s ease forwards 1.8s; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--sage); font-size: 12px; letter-spacing: .2em; cursor: pointer; margin-top: 80px; }
.scroll-hint .arrow { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--sage), transparent); animation: pulse-line 2s ease-in-out infinite; }
@keyframes pulse-line { 0%,100%{transform: scaleY(1);opacity: .7} 50%{transform: scaleY(.6);opacity: .3} }


/* ================= 新增：搜索与分页样式 ================= */
.controls-container { width: min(800px, 100%); display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; z-index: 3; position: relative; }
.search-input { width: 80%; max-width: 320px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(212, 175, 106, 0.3); border-radius: 20px; padding: 10px 20px; color: var(--ivory); font-family: 'Noto Serif SC', serif; font-size: 14px; outline: none; transition: all 0.3s ease; text-align: center; backdrop-filter: blur(5px); }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 15px rgba(212, 175, 106, 0.15); background: rgba(255, 255, 255, 0.06); }
.search-input::placeholder { color: rgba(240, 235, 225, 0.3); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; width: 100%; }
.page-btn { background: transparent; border: 1px solid rgba(82, 183, 136, 0.5); color: var(--sage); padding: 6px 18px; border-radius: 16px; cursor: pointer; transition: all 0.3s; font-family: 'Noto Serif SC', serif; font-size: 13px; }
.page-btn:hover:not(:disabled) { background: rgba(82, 183, 136, 0.1); border-color: var(--sage); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-info { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 14px; letter-spacing: 0.1em; }
.no-results { color: rgba(240, 235, 225, 0.5); text-align: center; margin: 40px 0; font-size: 14px; letter-spacing: 0.1em; }
/* ======================================================== */


/* 话语时间轴 */
.quotes-section { padding-top: 40px; }
.q-timeline { width: min(800px, 100%); position: relative; padding: 40px 0; display: flex; flex-direction: column; gap: 40px; }
.q-timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, rgba(212,175,106,.3), rgba(82,183,136,.3), transparent); transform: translateX(-50%); }

.q-item { display: flex; width: 100%; opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }
.q-item.left { justify-content: flex-end; padding-right: 50%; transform: translateX(-30px); }
.q-item.right { justify-content: flex-start; padding-left: 50%; transform: translateX(30px); }
.q-item.visible { opacity: 1; transform: translateX(0); }

.q-content { width: 90%; max-width: 360px; background: rgba(255,255,255,.02); border: 1px solid rgba(212,175,106,.15); border-radius: 16px; padding: 24px 30px; position: relative; backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
.q-item.left .q-content { margin-right: 30px; border-right-color: rgba(82,183,136,.3); }
.q-item.right .q-content { margin-left: 30px; border-left-color: rgba(244,194,176,.3); }

/* 连接点 */
.q-content::before { content: ''; position: absolute; top: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--night); border: 2px solid var(--gold); box-shadow: 0 0 10px var(--gold); }
.q-item.left .q-content::before { right: -35px; border-color: var(--sage); box-shadow: 0 0 10px rgba(82,183,136,.5); }
.q-item.right .q-content::before { left: -35px; border-color: var(--blush); box-shadow: 0 0 10px rgba(244,194,176,.5); }

/* 连接线 */
.q-content::after { content: ''; position: absolute; top: 33px; width: 25px; height: 1px; background: rgba(212,175,106,.3); }
.q-item.left .q-content::after { right: -26px; }
.q-item.right .q-content::after { left: -26px; }

.q-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: 12px; }
.q-name { font-family: 'ZCOOL XiaoWei', serif; font-size: 18px; letter-spacing: .1em; }
.q-name.lingxi { color: var(--blush); }
.q-name.nan { color: var(--sage); }
.q-date { font-family: 'Playfair Display', serif; font-size: 12px; color: rgba(212,175,106,.7); letter-spacing: .15em; }

.q-text { font-size: 14px; line-height: 2.2; color: rgba(240,235,225,.85); letter-spacing: .08em; white-space: pre-wrap; }

/* 朋友圈式媒体宫格 */
.q-media { display: grid; gap: 4px; margin-top: 16px; overflow: hidden; border-radius: 8px; }
.q-media.images-1 { grid-template-columns: minmax(0, 1fr); }
.q-media.images-2, .q-media.images-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-media.images-3, .q-media.images-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q-media-button { display: block; padding: 0; border: 0; background: rgba(255,255,255,.04); cursor: zoom-in; overflow: hidden; aspect-ratio: 1; }
.q-media.images-1 .q-media-button { width: 100%; max-height: 320px; border-radius: 8px; aspect-ratio: auto; }
.q-media-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.q-media.images-1 .q-media-image { height: auto; max-height: 320px; object-fit: contain; }
.q-media-button:hover .q-media-image { transform: scale(1.03); }
.q-video-button { position: relative; display: block; width: min(100%, 360px); max-height: 360px; margin-top: 16px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #000; cursor: pointer; }
.q-video-poster { display: block; width: 100%; max-height: 360px; object-fit: contain; transition: transform .3s ease; }
.q-video-button:hover .q-video-poster { transform: scale(1.025); }
.q-video-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(0,0,0,.48); transform: translate(-50%,-50%); box-shadow: 0 5px 22px rgba(0,0,0,.35); }
.q-video-play::after { content: ''; position: absolute; left: 22px; top: 17px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid #fff; }
.q-social { margin-top: 15px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.q-social-actions { display: flex; justify-content: flex-end; }
.q-comment-trigger { padding: 5px 10px; border: 0; border-radius: 5px; background: rgba(255,255,255,.07); color: rgba(183,228,199,.82); font-size: 12px; cursor: pointer; }
.q-comments-list { position: relative; margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.045); }
.q-comments-list::before { content: ''; position: absolute; right: 17px; top: -6px; border-right: 6px solid transparent; border-bottom: 6px solid rgba(255,255,255,.045); border-left: 6px solid transparent; }
.q-comment-line { display: block; width: 100%; padding: 4px 0; border: 0; background: transparent; color: rgba(240,235,225,.82); font-size: 12px; line-height: 1.65; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.q-comment-line + .q-comment-line { border-top: 1px solid rgba(255,255,255,.035); }
.q-comment-line .q-comment-name { font-weight: 600; }
.q-comment-line .q-comment-name.lingxi { color: var(--blush); }
.q-comment-line .q-comment-name.nan { color: var(--sage); }
.q-comment-line time { display: block; color: rgba(240,235,225,.3); font-size: 10px; }
.q-comment-form { margin-top: 8px; }
.q-comment-compose { display: flex; gap: 6px; }
.q-comment-compose input { min-width: 0; flex: 1; height: 34px; padding: 0 10px; border: 1px solid rgba(183,228,199,.2); border-radius: 6px; outline: none; background: rgba(0,0,0,.18); color: var(--ivory); font-size: 12px; }
.q-comment-compose input:focus { border-color: rgba(82,183,136,.65); }
.q-comment-compose button { flex: 0 0 auto; padding: 0 11px; border: 0; border-radius: 6px; background: var(--jade); color: white; font-size: 12px; cursor: pointer; }
.q-comment-compose button:disabled { opacity: .55; cursor: wait; }
.q-reply-tip { margin-bottom: 5px; color: rgba(240,235,225,.48); font-size: 11px; }
.q-reply-tip button { margin-left: 6px; border: 0; background: transparent; color: var(--gold); font-size: 11px; cursor: pointer; }
.video-lightbox { position: fixed; inset: 0; z-index: 21000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.94); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility 0s linear .28s; }
.video-lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.video-lightbox video { position: relative; z-index: 1; display: block; max-width: 100%; max-height: 100%; opacity: 0; transition: opacity .25s ease; }
.video-lightbox.ready video { opacity: 1; }
.video-close { position: absolute; right: 18px; top: max(18px, env(safe-area-inset-top)); z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.13); color: #fff; font-size: 30px; line-height: 38px; cursor: pointer; }
.video-loading { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--sage); border-radius: 50%; transform: translate(-50%,-50%); animation: lightboxSpin .8s linear infinite; }
.video-lightbox.ready .video-loading { display: none; }
.media-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,0); opacity: 0; visibility: hidden; pointer-events: none; cursor: zoom-out; transition: opacity .28s ease, background-color .28s ease, visibility 0s linear .28s; }
.media-lightbox.open { background: rgba(0,0,0,.92); opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.lightbox-stage { width: 100%; height: 100%; overflow: hidden; opacity: 0; transform: scale(.94); touch-action: none; transition: transform .32s cubic-bezier(.2,.75,.25,1), opacity .24s ease; }
.media-lightbox.open .lightbox-stage { opacity: 1; transform: scale(1); }
.lightbox-track { display: flex; width: 100%; height: 100%; transform: translate3d(-100%,0,0); will-change: transform; }
.lightbox-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox-slide img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-out; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .28s ease; }
.lightbox-slide.loaded img { opacity: 1; }
.lightbox-slide img[data-current="true"] { transform-origin: center center; touch-action: none; will-change: transform; }
.lightbox-loader { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 13px; transform: translate(-50%,-50%); color: rgba(240,235,225,.68); font-size: 13px; letter-spacing: .1em; white-space: nowrap; transition: opacity .2s ease; }
.lightbox-loader::before { content: ''; width: 30px; height: 30px; border: 2px solid rgba(183,228,199,.18); border-top-color: var(--sage); border-radius: 50%; animation: lightboxSpin .8s linear infinite; }
.lightbox-slide.loaded .lightbox-loader { opacity: 0; pointer-events: none; }
.lightbox-slide.load-error .lightbox-loader { color: rgba(244,169,155,.85); }
.lightbox-slide.load-error .lightbox-loader::before { content: '✦'; display: flex; align-items: center; justify-content: center; border: 0; color: var(--gold); font-size: 24px; animation: none; }
@keyframes lightboxSpin { to { transform: rotate(360deg); } }
.lightbox-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-nav:hover { background: rgba(45,106,79,.8); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-family: sans-serif; font-size: 13px; letter-spacing: .08em; }

/* 音乐控件 */
.music-toggle { position: fixed; top: 24px; right: 24px; z-index: 9999; width: 36px; height: 36px; border-radius: 50%; background: rgba(6, 16, 14, 0.7); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(8px); transition: background 0.3s, transform 0.3s, box-shadow 0.3s; box-shadow: 0 0 15px rgba(212, 175, 106, 0.2); }
.music-toggle:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(212, 175, 106, 0.4); }
.music-icon { width: 18px; height: 18px; fill: var(--gold); }
.music-toggle.playing .music-icon { animation: rotateMusic 4s linear infinite; }
@keyframes rotateMusic { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.music-toggle.paused::after { content: ''; position: absolute; width: 22px; height: 1.5px; background: var(--sage); transform: rotate(-45deg); }
.song-toast { position: fixed; top: 70px; right: 24px; z-index: 9998; max-width: min(260px, calc(100vw - 48px)); padding: 9px 14px; border: 1px solid rgba(212,175,106,.3); border-radius: 18px; background: rgba(6,16,14,.82); color: var(--ivory); font-size: 12px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(10px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.song-toast.show { opacity: 1; transform: translateY(0); }

/* 底部结语 */
.closing-section { padding: 100px 20px 80px; text-align: center; }
.closing-text { font-family: 'ZCOOL XiaoWei', serif; font-size: 18px; color: var(--gold); letter-spacing: .2em; opacity: 0; transition: opacity 1s ease; }
.closing-text.visible { opacity: 1; }

@media (max-width: 768px) {
  .quotes-section { padding-inline: 0; }
  .q-timeline::before { left: 16px; }
  .q-item.left, .q-item.right { padding: 0 12px 0 38px; justify-content: flex-start; transform: translateY(12px); }
  .q-item.left.visible, .q-item.right.visible { transform: translateY(0); }
  .q-content { width: 100%; max-width: 100%; margin: 0 !important; padding: 20px 18px; }
  .q-content::before { left: -27px !important; }
  .q-content::after { left: -21px !important; width: 21px !important; }
  .lightbox-nav { display: none !important; }
  .media-lightbox, .lightbox-slide { padding: 0; }
  .lightbox-slide img { max-width: 100vw; max-height: 100dvh; }
}

@media (hover: none) and (pointer: coarse) {
  .lightbox-nav { display: none !important; }
}

  /* 左上角返回主页链接样式 */
  .back-link { position: fixed !important; top: 24px !important; left: 24px !important; z-index: 9999 !important; padding: 0 16px; height: 36px; border-radius: 18px; background: rgba(6, 16, 14, 0.7); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; color: var(--gold); font-family: 'ZCOOL XiaoWei', serif; font-size: 13px; letter-spacing: .1em; white-space: nowrap !important; margin: 0 !important; box-sizing: border-box !important; transition: background 0.3s, transform 0.3s, box-shadow 0.3s !important; box-shadow: 0 0 15px rgba(212, 175, 106, 0.2); }
  .back-link:hover { transform: scale(1.05) !important; box-shadow: 0 0 20px rgba(212, 175, 106, 0.4); color: var(--lily); border-color: var(--sage); }
