/* ==========================================================================
   Brave 扩展功能样式：心情天气 / 那年今日 / 票根墙 / 默契问答 / 夜间模式
   只在新增模块与夜间模式下生效，不改动原有浅色外观。
   ========================================================================== */

/* ---------- 1. 心情 + 天气状态标签 ---------- */
.brave-mood-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 6px auto 0;
  padding: 0 12px;
  max-width: 560px;
}
.mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  color: #7a4553;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 143, 171, .35);
  box-shadow: 0 4px 12px -8px rgba(198, 74, 108, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mood-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(198, 74, 108, .7);
}
.mood-chip .mood-emoji { font-size: 13px; }
.mood-chip .mood-sep { opacity: .45; }
.mood-chip .mood-weather { font-variant-numeric: tabular-nums; }
.mood-chip .mood-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff8fab; margin-left: 2px;
  box-shadow: 0 0 0 0 rgba(255, 143, 171, .7);
  animation: moodPulse 2.4s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes moodPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 143, 171, .55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 143, 171, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 143, 171, 0); }
}

/* ---------- 2. 那年今日回忆卡 ---------- */
.brave-memory {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px auto 26px;
  max-width: 620px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 143, 171, .3);
  box-shadow: 0 16px 34px -26px rgba(180, 60, 96, .6);
  text-decoration: none !important;
  color: inherit !important;
  transform: rotate(-.6deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brave-memory:hover {
  transform: rotate(0) translateY(-2px);
  box-shadow: 0 22px 42px -26px rgba(180, 60, 96, .7);
}
.brave-memory .sharp-shot {
  flex: 0 0 auto;
  width: 74px; height: 74px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffeef3;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px -8px rgba(180, 60, 96, .5);
}
.brave-memory .sharp-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.brave-memory .sharp-body { min-width: 0; }
.brave-memory .sharp-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; letter-spacing: .1em; font-weight: 700;
  color: #d2507a; text-transform: uppercase;
}
.brave-memory .sharp-text {
  margin: 3px 0 2px;
  font-size: 14px; line-height: 1.5; color: #5b3541;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.brave-memory .sharp-date { font-size: 11px; color: #a8808d; }
.brave-memory .sharp-arrow {
  margin-left: auto; flex: 0 0 auto; color: #d2507a; opacity: .65; font-size: 16px;
}

/* ---------- 3. 票根收纳墙 ---------- */
.ticket-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  padding: 8px 0 30px;
}
.ticket {
  --tk-bg: #fffaf6;
  --tk-ink: #4a3a35;
  --tk-accent: #d2507a;
  position: relative;
  display: flex;
  min-height: 132px;
  background: var(--tk-bg);
  border-radius: 12px;
  color: var(--tk-ink);
  filter: drop-shadow(0 14px 22px rgba(120, 70, 60, .16));
  -webkit-mask-image:
    radial-gradient(circle 9px at 0 62%, transparent 98%, #000 100%),
    radial-gradient(circle 9px at 100% 62%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle 9px at 0 62%, transparent 98%, #000 100%),
    radial-gradient(circle 9px at 100% 62%, transparent 98%, #000 100%);
  mask-composite: intersect;
}
.ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .028) 0 1px, transparent 1px 4px);
  opacity: .55;
}
.ticket .tk-main {
  flex: 1 1 auto;
  padding: 16px 14px 14px 18px;
  min-width: 0;
}
.ticket .tk-kind {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: #fff; background: var(--tk-accent);
}
.ticket .tk-title {
  margin: 8px 0 3px;
  font-size: 17px; font-weight: 800; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticket .tk-sub {
  font-size: 12px; opacity: .72;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticket .tk-meta {
  margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: 11px; letter-spacing: .04em; opacity: .8;
  font-variant-numeric: tabular-nums;
}
.ticket .tk-meta span b { font-weight: 700; }
.ticket .tk-stub {
  flex: 0 0 96px;
  padding: 16px 12px 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center;
  border-left: 2px dashed rgba(0, 0, 0, .16);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .12));
}
.ticket .tk-stub .tk-code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px; letter-spacing: .18em; opacity: .62; writing-mode: horizontal-tb;
}
.ticket .tk-stub .tk-seat {
  font-size: 20px; font-weight: 800; color: var(--tk-accent);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.ticket .tk-stub .tk-date { font-size: 10px; opacity: .6; }
.ticket.tk-movie { --tk-bg: #fff6f8; --tk-accent: #d2507a; --tk-ink: #5a2f3d; }
.ticket.tk-train { --tk-bg: #f4f8ff; --tk-accent: #4a6fd8; --tk-ink: #2c3a5c; }
.ticket.tk-flight { --tk-bg: #f2fbf9; --tk-accent: #12a08b; --tk-ink: #1f4a45; }
.ticket.tk-park { --tk-bg: #fffaf0; --tk-accent: #d98a1f; --tk-ink: #5a421f; }

.ticket-wall-empty {
  padding: 60px 20px; text-align: center; color: #a8808d; font-size: 14px;
}

/* ---------- 4. 默契问答 ---------- */
.quiz-shell { max-width: 680px; margin: 0 auto 40px; }
.quiz-card {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 143, 171, .26);
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 22px 50px -34px rgba(180, 60, 96, .55);
}
.quiz-progress {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #a8808d; letter-spacing: .06em;
}
.quiz-progress .bar {
  flex: 1 1 auto; height: 6px; border-radius: 99px;
  background: rgba(255, 143, 171, .18); overflow: hidden;
}
.quiz-progress .bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #ffa6bf, #d2507a);
  border-radius: 99px; transition: width .35s ease;
}
.quiz-q {
  margin: 16px 0 18px;
  font-size: 19px; line-height: 1.6; font-weight: 700; color: #4d2b36;
}
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 143, 171, .32);
  background: #fff;
  color: #5b3541; font-size: 14.5px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.quiz-option:hover:not(:disabled) {
  transform: translateX(2px);
  border-color: #ff9db8;
  box-shadow: 0 10px 22px -18px rgba(180, 60, 96, .8);
}
.quiz-option .idx {
  width: 22px; height: 22px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  background: rgba(255, 143, 171, .16); color: #c6537a;
}
.quiz-option.is-correct {
  border-color: #4bbf8a; background: #effaf4; color: #1f6a4c;
}
.quiz-option.is-correct .idx { background: #4bbf8a; color: #fff; }
.quiz-option.is-wrong {
  border-color: #ec7a8f; background: #fff2f4; color: #8f2f42;
}
.quiz-option.is-wrong .idx { background: #ec7a8f; color: #fff; }
.quiz-option:disabled { cursor: default; }
.quiz-tip {
  margin-top: 14px; font-size: 13px; line-height: 1.7;
  color: #7a4553; padding: 10px 14px;
  border-radius: 12px; background: rgba(255, 240, 245, .9);
  border: 1px dashed rgba(255, 143, 171, .45);
}
.quiz-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.quiz-btn {
  padding: 11px 22px; border-radius: 999px; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #ff9db8, #d2507a);
  box-shadow: 0 12px 24px -14px rgba(210, 80, 122, .9);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.quiz-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(210, 80, 122, .95); }
.quiz-btn.ghost {
  background: #fff; color: #b8466b; border: 1px solid rgba(255, 143, 171, .5);
  box-shadow: none;
}
.quiz-result { text-align: center; padding: 10px 4px 4px; }
.quiz-result .score {
  font-size: 46px; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, #ff8fab, #c0407a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quiz-result .score small { font-size: 15px; color: #a8808d; -webkit-text-fill-color: #a8808d; }
.quiz-result .verdict { margin: 8px 0 18px; color: #6d4451; font-size: 15px; }

/* 烟花画布 */
#braveFireworks {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ---------- 5. 夜间模式 ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(52, 44, 110, .55), transparent 70%),
    radial-gradient(900px 600px at 90% 0%, rgba(24, 60, 98, .5), transparent 70%),
    linear-gradient(180deg, #0b1026 0%, #0d1230 45%, #0a0f22 100%) !important;
  color: #dcd8f0;
}
/* 原来的蓝色方格纸 → 星空 */
html[data-theme="dark"] body::before {
  background-color: transparent !important;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, .85) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 68% 32%, rgba(200, 220, 255, .75) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 38% 62%, rgba(255, 255, 255, .6) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 84% 74%, rgba(255, 230, 245, .7) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 26% 86%, rgba(190, 210, 255, .6) 50%, transparent 51%),
    linear-gradient(180deg, #0b1026 0%, #0d1230 55%, #0a0f22 100%) !important;
  background-size: 320px 320px, 420px 420px, 260px 260px, 520px 520px, 380px 380px, 100% 100% !important;
  background-repeat: repeat, repeat, repeat, repeat, repeat, no-repeat !important;
  opacity: 1 !important;
}
html[data-theme="dark"] body::after {
  filter: saturate(.45) brightness(.6);
  opacity: .35 !important;
}
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .mobile-navbar {
  background: rgba(16, 20, 44, .82) !important;
  border-color: rgba(255, 255, 255, .1) !important;
}
html[data-theme="dark"] .navbar a,
html[data-theme="dark"] .navbar-brand,
html[data-theme="dark"] .mobile-navbar a { color: #d9d5ee !important; }
html[data-theme="dark"] .love-container,
html[data-theme="dark"] #pjax-container,
html[data-theme="dark"] .indexPlate,
html[data-theme="dark"] .love-header { background: transparent !important; }
html[data-theme="dark"] .indexPlate .premium-card,
html[data-theme="dark"] .love-timer-section,
html[data-theme="dark"] .sweet-timer,
html[data-theme="dark"] .quiz-card,
html[data-theme="dark"] .brave-memory {
  background: rgba(255, 255, 255, .065) !important;
  border-color: rgba(255, 255, 255, .13) !important;
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, .8) !important;
  color: #e4e0f4 !important;
}
html[data-theme="dark"] .premium-id,
html[data-theme="dark"] .premium-desc,
html[data-theme="dark"] .love-title,
html[data-theme="dark"] .love-subtitle,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .quiz-q,
html[data-theme="dark"] .brave-memory .sharp-text {
  color: #ece8fa !important;
  -webkit-text-fill-color: #ece8fa !important;
}
html[data-theme="dark"] .premium-desc,
html[data-theme="dark"] .love-subtitle,
html[data-theme="dark"] .brave-memory .sharp-date,
html[data-theme="dark"] .quiz-progress { color: #a9a3c9 !important; -webkit-text-fill-color: #a9a3c9 !important; }
html[data-theme="dark"] .love-timer,
html[data-theme="dark"] .love-timer .num,
html[data-theme="dark"] .love-timer span { color: #ffc2d6 !important; }
html[data-theme="dark"] .mood-chip {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
  color: #e6e1f6;
}
html[data-theme="dark"] .quiz-option {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #e4e0f4;
}
html[data-theme="dark"] .quiz-option:hover:not(:disabled) { border-color: #ff9db8; }
html[data-theme="dark"] .quiz-option.is-correct { background: rgba(75, 191, 138, .18); color: #b7f0d3; }
html[data-theme="dark"] .quiz-option.is-wrong { background: rgba(236, 122, 143, .16); color: #ffc6d1; }
html[data-theme="dark"] .quiz-tip { background: rgba(255, 255, 255, .07); color: #cfc9e6; border-color: rgba(255, 255, 255, .16); }
html[data-theme="dark"] .quiz-result .verdict { color: #cfc9e6; }
html[data-theme="dark"] .romantic-footer { background: linear-gradient(180deg, transparent, rgba(20, 24, 52, .85)) !important; }
/* 首屏大图在夜里太亮，压一层暗幕；头像与文字提到上层 */
html[data-theme="dark"] .lover-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 8, 22, .62) 0%, rgba(6, 8, 22, .45) 55%, rgba(9, 12, 28, .72) 100%);
}
html[data-theme="dark"] .lover-container-wrapper {
  position: relative;
  z-index: 2;
}
/* 页脚与计时条在夜间统一成深色 */
html[data-theme="dark"] .footer-main-content,
html[data-theme="dark"] .footer-info,
html[data-theme="dark"] .footer-timer-container,
html[data-theme="dark"] .sweet-timer,
html[data-theme="dark"] #pjax-container {
  background: transparent !important;
  color: #cfc9e6 !important;
}
html[data-theme="dark"] .sweet-timer {
  background: rgba(255, 255, 255, .07) !important;
  border: 1px solid rgba(255, 255, 255, .12);
}
html[data-theme="dark"] .footer-copyright,
html[data-theme="dark"] .footer-icp,
html[data-theme="dark"] .footer-link,
html[data-theme="dark"] .timer-label,
html[data-theme="dark"] .timer-text { color: #a9a3c9 !important; }
html[data-theme="dark"] .time-number { color: #ffc2d6 !important; }
/* Aurora 欢迎气泡夜里降一点亮度，避免刺眼 */
html[data-theme="dark"] #Aurora-Dia--tips-wrapper,
html[data-theme="dark"] #bot-container { filter: brightness(.88) saturate(.92); }
html[data-theme="dark"] .sidebar-item {
  background: rgba(255, 255, 255, .08) !important;
  color: #d9d5ee !important;
  border-color: rgba(255, 255, 255, .12) !important;
}
html[data-theme="dark"] .floating-sidebar {
  background: rgba(18, 22, 46, .86) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  box-shadow: 0 18px 40px -30px #000 !important;
}
html[data-theme="dark"] .ticket-wall-empty { color: #9b95bd; }

/* 夜间切换按钮（浮层，避开返回顶部与机器人） */
.brave-theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 150px;
  z-index: 900;
  width: 42px; height: 42px;
  display: none; /* 桌面端用侧边导航项，避免与悬浮菜单重叠 */
  place-items: center;
  border: none; border-radius: 50%;
  cursor: pointer;
  font-size: 18px; line-height: 1;
  color: #8c5a68;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px -14px rgba(180, 60, 96, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.brave-theme-toggle:hover { transform: translateY(-2px) rotate(-8deg); }
html[data-theme="dark"] .brave-theme-toggle {
  color: #ffe6a7;
  background: rgba(30, 34, 66, .9);
  box-shadow: 0 10px 24px -14px #000;
}
@media (max-width: 768px) {
  .brave-theme-toggle { display: grid; right: 14px; bottom: calc(150px + env(safe-area-inset-bottom)); width: 38px; height: 38px; font-size: 16px; }
  .mood-chip { font-size: 11px; padding: 4px 10px; margin-top: 6px; }
  .brave-memory { max-width: none; margin: 14px 12px 22px; transform: none; }
  .brave-memory .sharp-shot { width: 62px; height: 62px; }
  .ticket-wall { grid-template-columns: 1fr; gap: 16px; }
  .quiz-card { padding: 20px 16px 18px; border-radius: 18px; }
  .quiz-q { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .mood-chip, .brave-memory, .quiz-option, .brave-theme-toggle { transition: none !important; }
  .mood-chip .mood-dot { animation: none !important; }
}

/* 底部导航：只做克制统一（图标略大、线宽一致、未选中稍淡），不改布局与数量 */
@media (max-width: 768px) {
  .mobile-navbar .nav-icon svg { width: 22px; height: 22px; stroke-width: 1.7; }
  .mobile-navbar .nav-item a { font-size: 11px; letter-spacing: .02em; }
  .mobile-navbar .nav-item:not(.active) .nav-icon { opacity: .74; }
}

/* 页脚次级入口（票根 / 问答） */
.brave-footer-links {
  margin: 8px 0 0;
  font-size: .74rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .82);
}
.brave-footer-links a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, .35);
  padding-bottom: 1px;
}
.brave-footer-links a:hover { border-bottom-color: #fff; }
.brave-footer-sep { margin: 0 6px; opacity: .6; }

/* 票根 / 问答这类内容较短的页面：撑住高度，避免页脚悬在屏幕中间 */
.brave-page { min-height: calc(100vh - 170px); }
@media (max-width: 768px) {
  .brave-page { min-height: calc(100vh - 220px); }
}

/* ==========================================================================
   v2 调整：心情标签归位到各自头像下 / 底部更多面板 / 柔光流带 / 说说夜间配色
   ========================================================================== */

/* ---------- 心情标签：贴在每个人头像下方，天然区分归属 ---------- */
.lover-avatar-wrapper { display: flex; flex-direction: column; align-items: center; }
.mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px auto 0;
  padding: 4px 10px;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.35;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mood-chip .mood-sep { opacity: .4; }
.mood-chip .mood-weather { display: inline-flex; align-items: center; gap: 3px; }
.mood-chip .mood-city { opacity: .8; }
.mood-chip .mood-temp { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

@media (max-width: 768px) {
  .mood-chip { font-size: 10px; padding: 3px 8px; gap: 3px; margin-top: 5px; }
  /* 手机上只留「心情 + 温度」，城市藏进 title，保证一行放得下 */
  .mood-chip .mood-city,
  .mood-chip .mood-sep,
  .mood-chip .mood-dot { display: none; }
  .mood-chip .mood-weather { gap: 2px; }
}

/* ---------- 底部「更多」面板 ---------- */
.brave-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(28, 16, 26, .38);
  opacity: 0;
  transition: opacity .22s ease;
}
.brave-sheet-mask.show { opacity: 1; }
.brave-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1401;
  padding: 8px 16px calc(96px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #fffafc;
  box-shadow: 0 -18px 46px -28px rgba(150, 60, 95, .5);
  transform: translateY(102%);
  transition: transform .28s cubic-bezier(.22, .8, .2, 1);
}
.brave-sheet.show { transform: translateY(0); }
.brave-sheet-handle {
  width: 42px; height: 4px; border-radius: 99px;
  background: rgba(160, 110, 130, .25);
  margin: 2px auto 14px;
}
.brave-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.brave-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  border-radius: 14px;
  background: rgba(255, 143, 171, .09);
  color: #6d4451;
  font-size: 11.5px;
  text-decoration: none !important;
  transition: background .16s ease, transform .16s ease;
}
.brave-sheet-item:active { transform: scale(.97); background: rgba(255, 143, 171, .2); }
.brave-sheet-item .ico { font-size: 19px; line-height: 1; }
.brave-sheet-close {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: none;
  border-radius: 14px;
  background: #f7eef2;
  color: #8c5a68;
  font-size: 13px;
  letter-spacing: .04em;
}
html[data-theme="dark"] .brave-sheet { background: #171a30; box-shadow: 0 -18px 46px -26px #000; }
html[data-theme="dark"] .brave-sheet-handle { background: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .brave-sheet-item { background: rgba(255, 255, 255, .07); color: #dcd7ef; }
html[data-theme="dark"] .brave-sheet-item:active { background: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .brave-sheet-close { background: rgba(255, 255, 255, .1); color: #cfc9e6; }

/* ---------- 小手一牵上方：保留白色分隔带，波浪换成缓慢漂移 + 柔光 ---------- */
.full-width-waves {
  position: relative;
  overflow: hidden;
}
/* SVG 是内容区白色底的一部分，不能隐藏，否则正文会透出背景图 */
.full-width-waves svg { display: block !important; opacity: .82; }
.full-width-waves .parallax {
  animation: braveWaveDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.full-width-waves::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%; top: 0; height: 130%;
  pointer-events: none;
  background:
    radial-gradient(38% 60% at 22% 55%, rgba(255, 168, 198, .42), transparent 70%),
    radial-gradient(34% 55% at 55% 40%, rgba(202, 176, 255, .34), transparent 72%),
    radial-gradient(38% 60% at 80% 60%, rgba(255, 210, 170, .36), transparent 72%);
  filter: blur(18px);
  mix-blend-mode: multiply;
  opacity: .85;
  animation: braveRibbon 22s ease-in-out infinite alternate;
}
html[data-theme="dark"] .full-width-waves svg { opacity: .55; }
html[data-theme="dark"] .full-width-waves::before {
  background:
    radial-gradient(38% 60% at 22% 55%, rgba(110, 90, 190, .5), transparent 70%),
    radial-gradient(34% 55% at 55% 40%, rgba(60, 110, 180, .45), transparent 72%),
    radial-gradient(38% 60% at 80% 60%, rgba(170, 110, 160, .45), transparent 72%);
  mix-blend-mode: screen;
  opacity: .6;
}
@keyframes braveWaveDrift {
  from { transform: translateX(-1.6%); }
  to { transform: translateX(1.6%); }
}
@keyframes braveRibbon {
  from { transform: translateX(-2%); }
  to { transform: translateX(2%); }
}

/* ---------- 说说页：手动夜间模式也要认（它原本只跟系统偏好） ---------- */
html[data-theme="dark"] {
  --cream: #12101a;
  --warm: #0e0c16;
  --rose: #3a2a3a;
  --lavender: #2e2a48;
  --glass: rgba(32, 28, 44, .86);
  --glass-solid: rgba(40, 35, 54, .97);
  --border: rgba(206, 158, 186, .22);
  --border-hover: rgba(226, 176, 204, .44);
  --text-1: #f2ecf6;
  --text-2: #c8bed6;
  --text-3: #8e849f;
  --accent: #e4a6c0;
  --glow: rgba(206, 146, 186, .3);
  --shadow: 0 6px 26px rgba(0, 0, 0, .45);
  --shadow-hover: 0 10px 34px rgba(0, 0, 0, .55);
  --gradient: linear-gradient(135deg, #e9a9c4, #b9a2e8);
  --gradient-soft: linear-gradient(135deg, rgba(233, 169, 196, .22), rgba(185, 162, 232, .18));
}
html[data-theme="dark"] .poetry-realm { color: var(--text-1); }
html[data-theme="dark"] .poetry-realm *:not(svg):not(path) { border-color: var(--border); }

@media (prefers-reduced-motion: reduce) {
  .full-width-waves::before { animation: none !important; }
  .brave-sheet, .brave-sheet-mask { transition: none !important; }
}

/* ---------- 恋爱清单：管理员编辑面板 ---------- */
.brave-check-list {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.brave-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fdf7fa;
  font-size: 13px;
  color: #5b3541;
}
.brave-check-item input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #d2507a;
}
.brave-check-item .txt { flex: 1 1 auto; min-width: 0; }
.brave-check-item img {
  width: 38px; height: 38px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}
html[data-theme="dark"] .brave-check-item { background: rgba(255, 255, 255, .06); color: #e0dbef; }

/* ---------- 首页内容区：一层薄纱，保证正文在背景图上可读 ----------
   主题默认 #pjax-container 透明以透出 body 背景图；只在有波浪区的首页加纱，
   其它页面（如说说页）保持原本的透明气质。 */
body:has(.full-width-waves) #pjax-container {
  background: linear-gradient(
    180deg,
    rgba(255, 252, 253, .78) 0%,
    rgba(255, 251, 253, .9) 14%,
    rgba(255, 250, 252, .95) 34%,
    rgba(255, 250, 252, .97) 100%
  ) !important;
  border-radius: 0;
}
html[data-theme="dark"] body:has(.full-width-waves) #pjax-container {
  background: linear-gradient(
    180deg,
    rgba(11, 16, 38, .72) 0%,
    rgba(11, 16, 38, .88) 14%,
    rgba(11, 16, 38, .94) 34%,
    rgba(11, 16, 38, .96) 100%
  ) !important;
}

/* 说说页「写点什么」框写死了白底，夜间单独覆盖 */
html[data-theme="dark"] .poetry-gate {
  background: rgba(255, 255, 255, .07) !important;
  color: var(--text-2) !important;
  border: 1px solid var(--border) !important;
}
html[data-theme="dark"] .poetry-gate input,
html[data-theme="dark"] .poetry-gate textarea,
html[data-theme="dark"] .poetry-editor input,
html[data-theme="dark"] .poetry-editor textarea {
  background: rgba(255, 255, 255, .06) !important;
  color: var(--text-1) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] .poetry-gate * { color: inherit; }

/* 说说卡片：.note-body 写死了白底，夜间必须一起换，否则白底白字 */
html[data-theme="dark"] .note-body {
  background: rgba(255, 255, 255, .065) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35) !important;
}
html[data-theme="dark"] .note-content,
html[data-theme="dark"] .note-content p,
html[data-theme="dark"] .note-content span {
  color: var(--text-2) !important;
}
html[data-theme="dark"] .note-content a { color: var(--accent) !important; }
html[data-theme="dark"] .note-toggle,
html[data-theme="dark"] .note-time,
html[data-theme="dark"] .note-meta {
  color: var(--text-3) !important;
}

/* ---------- 恋爱清单：进度条 / 列表 / 完成时间 ---------- */
.wish-progress {
  max-width: 700px;
  margin: 0 auto 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 143, 171, .28);
  box-shadow: 0 14px 30px -26px rgba(160, 60, 100, .55);
}
.wish-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: #8c6270;
  letter-spacing: .04em;
}
.wish-progress-top b {
  font-size: 20px;
  color: #c0407a;
  font-variant-numeric: tabular-nums;
}
.wish-bar {
  margin: 10px 0 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 143, 171, .18);
  overflow: hidden;
}
.wish-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffb0c6, #d2507a);
  transition: width .4s ease;
}
.wish-progress-sub { font-size: 11.5px; color: #a8808d; }

.wish-section { max-width: 700px; margin: 0 auto 18px; }
.wish-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #b8466b;
  margin: 0 0 10px;
  padding-left: 2px;
}
.wish-section-title span {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 99px;
  background: rgba(255, 143, 171, .16);
  font-size: 11px;
  font-weight: 700;
}
.wish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wish-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 143, 171, .2);
  box-shadow: 0 8px 20px -20px rgba(160, 60, 100, .5);
  transition: transform .16s ease, box-shadow .16s ease;
}
.wish-item:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -20px rgba(160, 60, 100, .6); }
.wish-check {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 143, 171, .55);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: #fff;
}
.wish-item.is-done .wish-check { background: #ff8fab; border-color: #ff8fab; }
.wish-body { flex: 1 1 auto; min-width: 0; }
.wish-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #4d2b36; }
.wish-item.is-done .wish-text { color: #a8808d; text-decoration: line-through; text-decoration-color: rgba(255, 143, 171, .7); }
.wish-done-at {
  margin: 3px 0 0;
  font-size: 11px;
  color: #c6537a;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.wish-thumb {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px -10px rgba(160, 60, 100, .6);
}
.wish-done-wrap > summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 10px;
}
.wish-done-wrap > summary::-webkit-details-marker { display: none; }
.wish-done-wrap > summary::before { content: "▸ "; color: #c6537a; }
.wish-done-wrap[open] > summary::before { content: "▾ "; }

/* ---------- 提示条 / 管理员身份条 / 登录卡片 ---------- */
.brave-tip {
  max-width: 700px;
  margin: 0 auto 14px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: .86rem;
}
.brave-tip.ok { background: #effaf4; color: #1f6a4c; }
.brave-tip.bad { background: #fff2f4; color: #8f2f42; }

.brave-admin-bar {
  max-width: 700px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  border: 1px dashed rgba(255, 143, 171, .45);
  font-size: 12px;
  color: #8c6270;
}
.brave-admin-bar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4bbf8a;
  box-shadow: 0 0 0 3px rgba(75, 191, 138, .18);
}
.brave-admin-bar b { color: #b8466b; }
.brave-admin-bar em { font-style: normal; color: #a8808d; }
.brave-admin-bar a {
  margin-left: auto;
  color: #b8466b;
  text-decoration: none;
  border-bottom: 1px dashed rgba(184, 70, 107, .4);
}
.brave-admin-bar a + a { margin-left: 10px; }

.brave-login-box {
  max-width: 700px;
  margin: 26px auto 20px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 143, 171, .26);
  box-shadow: 0 16px 34px -30px rgba(160, 60, 100, .5);
}
.brave-login-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #b8466b;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.brave-login-head em {
  font-style: normal;
  font-weight: 400;
  font-size: 11.5px;
  color: #a8808d;
}
.brave-login-form { display: flex; flex-wrap: wrap; gap: 8px; }
.brave-login-form input {
  flex: 1 1 150px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 143, 171, .38);
  background: #fff;
  font-size: 13px;
  color: #4d2b36;
}
.brave-login-form input:focus {
  outline: none;
  border-color: #ff9db8;
  box-shadow: 0 0 0 3px rgba(255, 143, 171, .16);
}
.brave-login-form button {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff9db8, #d2507a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.brave-login-tip { margin: 10px 0 0; font-size: 11.5px; color: #c6537a; }

/* ---------- 管理面板 ---------- */
.brave-admin-panel {
  max-width: 700px;
  margin: 24px auto 40px;
}
.brave-admin-panel > details {
  background: #fff;
  border: 1px solid rgba(255, 143, 171, .3);
  border-radius: 16px;
  padding: 14px 18px;
}
.brave-admin-panel > details > summary {
  cursor: pointer;
  font-weight: 700;
  color: #c6537a;
  font-size: 14px;
}
.brave-panel-hint { font-size: 12px; color: #8c6270; margin-bottom: 8px; }
.brave-panel-block {
  margin-top: 18px;
  border-top: 1px dashed rgba(255, 143, 171, .4);
  padding-top: 16px;
}
.brave-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.brave-inline-form select,
.brave-inline-form input[type="text"],
.brave-inline-form .grow {
  flex: 1 1 220px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 143, 171, .4);
  font-size: 13px;
  background: #fff;
  color: #4d2b36;
}
.brave-inline-form input[type="file"] { flex: 1 1 190px; font-size: 12px; }
.brave-check-item .at {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: #b8466b;
  font-variant-numeric: tabular-nums;
}

/* 夜间 */
html[data-theme="dark"] .wish-progress,
html[data-theme="dark"] .wish-item,
html[data-theme="dark"] .brave-admin-bar,
html[data-theme="dark"] .brave-login-box,
html[data-theme="dark"] .brave-admin-panel > details {
  background: rgba(255, 255, 255, .065) !important;
  border-color: rgba(255, 255, 255, .13) !important;
  color: #e4e0f4 !important;
}
html[data-theme="dark"] .wish-text { color: #e8e3f6 !important; }
html[data-theme="dark"] .wish-item.is-done .wish-text { color: #9b95bd !important; }
html[data-theme="dark"] .wish-check { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
html[data-theme="dark"] .wish-item.is-done .wish-check { background: #d2507a; border-color: #d2507a; }
html[data-theme="dark"] .wish-done-at,
html[data-theme="dark"] .wish-progress-top b,
html[data-theme="dark"] .wish-section-title { color: #f0a8c2 !important; }
html[data-theme="dark"] .brave-login-form input,
html[data-theme="dark"] .brave-inline-form select,
html[data-theme="dark"] .brave-inline-form .grow {
  background: rgba(255, 255, 255, .08);
  color: #ece8fa;
  border-color: rgba(255, 255, 255, .16);
}
html[data-theme="dark"] .brave-tip.ok { background: rgba(75, 191, 138, .15); color: #a9e8c8; }
html[data-theme="dark"] .brave-tip.bad { background: rgba(236, 122, 143, .15); color: #ffc0cc; }

@media (max-width: 768px) {
  .wish-item { padding: 10px 12px; gap: 10px; }
  .wish-text { font-size: 13.5px; }
  .wish-thumb { width: 46px; height: 46px; }
  .brave-login-form input { flex: 1 1 100%; }
  .brave-login-form button { flex: 1 1 100%; }
}

.brave-login-fold {
  max-width: 700px;
  margin: 30px auto 40px;
  text-align: center;
}
.brave-login-fold > summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 12px;
  color: #a8808d;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 143, 171, .28);
}
.brave-login-fold > summary::-webkit-details-marker { display: none; }
.wish-done-at.is-legacy { color: #b09aa3; font-size: 10.5px; }
html[data-theme="dark"] .brave-login-fold > summary {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #a9a3c9;
}

/* 登录入口：顶部紧凑版（默认折叠成小胶囊，点开才展开表单） */
.brave-login-fold.is-top {
  max-width: 700px;
  margin: 0 auto 16px;
  text-align: center;
}
.brave-login-fold.is-top > summary {
  background: rgba(255, 255, 255, .55);
  border-style: dashed;
}
.brave-login-fold.is-top[open] > summary {
  background: rgba(255, 255, 255, .8);
  border-style: solid;
}
.brave-login-fold.is-top > .brave-login-box {
  margin: 12px auto 0;
  text-align: left;
}

.brave-login-alt { margin: 10px 0 0; font-size: 11.5px; color: #a8808d; }
.brave-login-alt a {
  color: #b8466b;
  text-decoration: none;
  border-bottom: 1px dashed rgba(184, 70, 107, .45);
}
html[data-theme="dark"] .brave-login-alt { color: #a9a3c9; }
html[data-theme="dark"] .brave-login-alt a { color: #f0a8c2; }

/* ---------- 清单编辑面板：四列对齐（勾选 / 文案 / 时间 / 缩略图） ---------- */
.brave-check-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 104px 44px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}
.brave-check-item input[type="checkbox"] { justify-self: start; margin: 0; }
.brave-check-item .txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}
.brave-check-item .at {
  justify-self: end;
  font-size: 11px;
  color: #b8466b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.brave-check-item .thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 143, 171, .1);
}
.brave-check-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .brave-check-item {
    grid-template-columns: 18px minmax(0, 1fr) 40px;
    grid-template-rows: auto auto;
    row-gap: 2px;
    padding: 8px 10px;
  }
  .brave-check-item .txt { grid-column: 2; grid-row: 1; white-space: normal; }
  .brave-check-item .at { grid-column: 2; grid-row: 2; justify-self: start; font-size: 10.5px; }
  .brave-check-item .thumb { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---------- 图片点击放大 ---------- */
.wish-thumb { cursor: zoom-in; }
.tk-photo { cursor: zoom-in; }
.brave-zoom {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 7, 18, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.brave-zoom.show { display: flex; }
.brave-zoom img {
  max-width: min(94vw, 1080px);
  max-height: 84vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px #000;
  background: #fff;
}
.brave-zoom-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.brave-zoom-close:hover { background: rgba(255, 255, 255, .28); }

/* ---------- 票根识别 ---------- */
.tk-recog {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdf7fa;
  border: 1px dashed rgba(255, 143, 171, .45);
}
.tk-recog-head { font-size: 12.5px; font-weight: 700; color: #b8466b; margin-bottom: 8px; }
.tk-recog-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tk-recog-row input[type="file"] { flex: 1 1 220px; font-size: 12px; }
.tk-recog-tip { margin: 8px 0 0; font-size: 11px; color: #a8808d; }
.tk-photo-preview {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px -10px rgba(160, 60, 100, .6);
  cursor: zoom-in;
}
.ticket .tk-stub .tk-photo {
  width: 100%;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}
html[data-theme="dark"] .tk-recog { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
html[data-theme="dark"] .tk-recog-head { color: #f0a8c2; }

/* ==========================================================================
   v7 全站体检修复
   ========================================================================== */

/* 1) 首页两个人名：主题把 -webkit-text-fill-color 设成了透明，名字其实一直是隐形的 */
.lover-box .lover-avatar-wrapper .lover-name,
.lover-box .lover-avatar-wrapper .lover-name * {
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .75) !important;
}

/* 2) 侧边悬浮导航文字：浅色模式下曾出现白字白底 */
.floating-sidebar .sidebar-item,
.floating-sidebar .sidebar-item a,
.floating-sidebar .sidebar-item span { color: #6d4451 !important; }
html[data-theme="dark"] .floating-sidebar .sidebar-item,
html[data-theme="dark"] .floating-sidebar .sidebar-item a,
html[data-theme="dark"] .floating-sidebar .sidebar-item span { color: #dcd7ef !important; }

/* 3) 首页波浪：第三层是近白色渐变，夜里会变成一条白杠 */
html[data-theme="dark"] .full-width-waves svg use { fill: #0b1026 !important; }
html[data-theme="dark"] .full-width-waves svg use:nth-of-type(1) { opacity: .92 !important; }
html[data-theme="dark"] .full-width-waves svg use:nth-of-type(2) { opacity: .78 !important; }
html[data-theme="dark"] .full-width-waves svg use:nth-of-type(3) { opacity: 1 !important; }

/* 4) 票根 / 问答 / 清单 的页面标题写死了内联深色 */
html[data-theme="dark"] h2.fw-bold,
html[data-theme="dark"] .container > h2 { color: #f5eff9 !important; }
html[data-theme="dark"] h2.fw-bold + p,
html[data-theme="dark"] .container > h2 + p { color: #b9b2cf !important; }

/* 5) 祝福墙：整块白卡 */
html[data-theme="dark"] #comments .list-top,
html[data-theme="dark"] .commentframe,
html[data-theme="dark"] .cardshadow {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .13) !important;
  box-shadow: 0 18px 40px -30px #000 !important;
}
html[data-theme="dark"] .list-text,
html[data-theme="dark"] .loveList-title { color: #f0e9f8 !important; }
html[data-theme="dark"] .comment-body,
html[data-theme="dark"] .comment-main,
html[data-theme="dark"] .comment-content,
html[data-theme="dark"] .comment-meta { color: #ddd7ef !important; }
html[data-theme="dark"] .comment-author,
html[data-theme="dark"] .comment-date { color: #b7b0ce !important; }
html[data-theme="dark"] #comments textarea,
html[data-theme="dark"] #comments input[type="text"],
html[data-theme="dark"] #comments input[type="email"],
html[data-theme="dark"] #comments input[type="url"] {
  background: rgba(255, 255, 255, .07) !important;
  color: #ece7f6 !important;
  border-color: rgba(255, 255, 255, .16) !important;
}

/* 6) 点点滴滴：摘要与顶部快捷入口 */
html[data-theme="dark"] .post-card {
  background: rgba(255, 255, 255, .055) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  box-shadow: 0 18px 40px -32px #000 !important;
}
html[data-theme="dark"] .post-card-title,
html[data-theme="dark"] .post-card-title a { color: #f3edf9 !important; }
html[data-theme="dark"] .post-card-excerpt { color: #bdb6d3 !important; }
html[data-theme="dark"] .post-card-footer,
html[data-theme="dark"] .meta-item { color: #a9a2c4 !important; }
html[data-theme="dark"] .quick-nav-item {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .13) !important;
  color: #e3ddf1 !important;
}
html[data-theme="dark"] .quick-nav-item span { color: #e3ddf1 !important; }

/* 7) 相册页：此前完全不跟夜间走（整页仍是白的） */
html[data-theme="dark"] .header-title { color: #f4eef9 !important; }
html[data-theme="dark"] .header-desc { color: #bab3d0 !important; }
html[data-theme="dark"] .header-stats,
html[data-theme="dark"] .nav-btn {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #cec7e2 !important;
}
html[data-theme="dark"] .nav-btn.active {
  background: linear-gradient(135deg, #d2507a, #a83862) !important;
  color: #fff !important;
  border-color: transparent !important;
}
html[data-theme="dark"] .user-bar,
html[data-theme="dark"] .user-bar a { color: #d8d2ea !important; }
html[data-theme="dark"] .photo-card,
html[data-theme="dark"] .card {
  background: rgba(255, 255, 255, .06) !important;
  box-shadow: 0 16px 36px -30px #000 !important;
}
html[data-theme="dark"] .card-img { background: rgba(255, 255, 255, .05) !important; }
html[data-theme="dark"] .card-title { color: #ece7f6 !important; }
html[data-theme="dark"] .card-desc { color: #a9a2c4 !important; }
html[data-theme="dark"] .card-info { background: rgba(16, 20, 44, .92) !important; }
html[data-theme="dark"] .bg-layer { opacity: .3 !important; }
html[data-theme="dark"] .admin-fab { box-shadow: 0 10px 26px -14px #000 !important; }

/* 8) 问答：题目与提示在深色下也要够亮 */
html[data-theme="dark"] .quiz-q { color: #f5eff9 !important; }
html[data-theme="dark"] .quiz-tip { color: #cfc8e4 !important; }
html[data-theme="dark"] .quiz-progress,
html[data-theme="dark"] .quiz-count { color: #a9a2c4 !important; }

/* 9) 手机端：卡片标题不再断字、简介最多两行 */
@media (max-width: 768px) {
  .indexPlate .premium-card h3,
  .indexPlate .premium-card .card-title,
  .indexPlate .premium-card .premium-title {
    font-size: 15px !important;
    word-break: keep-all !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
  }
  .indexPlate .premium-card p,
  .indexPlate .premium-card .premium-desc,
  .indexPlate .premium-card .card-desc {
    font-size: 11.5px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* 10) 手机端票根：副券里的照片会把票号挤掉 */
@media (max-width: 640px) {
  .ticket .tk-stub {
    flex: 0 0 82px;
    padding: 10px 8px;
    gap: 4px;
    justify-content: flex-start;
  }
  .ticket .tk-stub .tk-photo { height: 34px; border-radius: 5px; margin-bottom: 2px; }
  .ticket .tk-stub .tk-seat { font-size: 16px; }
  .ticket .tk-stub .tk-code { font-size: 9px; letter-spacing: .08em; }
  .ticket .tk-stub .tk-date { font-size: 9px; }
}

/* 11) 手机端浮动夜间按钮会压住正文，收进「更多」面板 */
@media (max-width: 768px) {
  .brave-theme-toggle { display: none !important; }
}

/* 12) 首页内容区顶部那层白纱（.love-container::before 是纯白渐变） */
html[data-theme="dark"] .love-container::before {
  background: linear-gradient(rgba(11, 16, 38, .92) 0%, rgba(11, 16, 38, 0) 100%) !important;
}

/* 13) 相册页用一整套 CSS 变量配色，直接改变量比逐个元素覆盖更干净 */
html[data-theme="dark"] {
  --bg-primary: #0c1128;
  --bg-secondary: #141a34;
  --bg-card: rgba(255, 255, 255, .06);
  --glass-bg: rgba(255, 255, 255, .07);
  --glass-border: rgba(255, 255, 255, .14);
  --text-primary: #ece7f7;
  --text-secondary: rgba(236, 231, 247, .82);
  --text-muted: rgba(236, 231, 247, .52);
  --shadow-glow: 0 0 30px rgba(0, 0, 0, .45);
}

/* 14) 祝福墙：单条祝福本身还带白底 */
html[data-theme="dark"] .comment-body,
html[data-theme="dark"] .comment-main,
html[data-theme="dark"] .comment-item {
  background: rgba(255, 255, 255, .05) !important;
  border-color: rgba(255, 255, 255, .1) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .comment-text,
html[data-theme="dark"] .comment-content p,
html[data-theme="dark"] .comment-content { color: #e2dcf1 !important; }

/* 15) 点点滴滴：快捷入口容器与卡片底栏（底栏是 #fffafa 的白条） */
html[data-theme="dark"] .quick-nav-container {
  background: rgba(255, 255, 255, .05) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}
html[data-theme="dark"] .quick-nav-item {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}
html[data-theme="dark"] .post-card-footer {
  background: rgba(255, 255, 255, .05) !important;
  border-color: rgba(255, 255, 255, .1) !important;
}
html[data-theme="dark"] .post-card-thumbnail { background: rgba(255, 255, 255, .05) !important; }
html[data-theme="dark"] .post-card-footer .meta-item,
html[data-theme="dark"] .post-card-footer svg { color: #b6afd0 !important; fill: #b6afd0 !important; }

/* 16) 顶部品牌名/签名在子页面上是白字压在浅色背景上（几乎看不见）。
       首页有 .lover-background 大图，白字是对的；其它页面改深色。 */
html:not([data-theme="dark"]) body:not(:has(.lover-background)) .navbar-brand,
html:not([data-theme="dark"]) body:not(:has(.lover-background)) .navbar-text,
html:not([data-theme="dark"]) body:not(:has(.lover-background)) .navbar a,
html:not([data-theme="dark"]) body:not(:has(.lover-background)) .navbar .nav-link {
  color: #7a4557 !important;
  text-shadow: none !important;
}
html:not([data-theme="dark"]) body:not(:has(.lover-background)) .navbar-brand .tiktok-heart,
html:not([data-theme="dark"]) body:not(:has(.lover-background)) .navbar-brand::before { text-shadow: none !important; }

/* 17) 说说卡片底栏 / 时光轴卡片：夜间还是浅底 */
html[data-theme="dark"] .note-footer {
  background: rgba(255, 255, 255, .05) !important;
  border-color: rgba(255, 255, 255, .1) !important;
}
html[data-theme="dark"] .note-footer,
html[data-theme="dark"] .note-footer *,
html[data-theme="dark"] .note-footer a,
html[data-theme="dark"] .note-footer button { color: #b9b2cf !important; }
html[data-theme="dark"] .tl-card {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}
html[data-theme="dark"] .tl-card,
html[data-theme="dark"] .tl-card * { color: #e3ddf1 !important; }

/* 18) 关于我们：botui 聊天区在窄容器里溢出、按钮跑出左边界 */
#botui { overflow: hidden; border-radius: 10px; }
#botui .botui-actions-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px;
  justify-content: center;
  padding: 0 10px;
}
#botui .botui-actions-buttons-button { margin: 0 !important; max-width: 100%; }
#botui .botui-messages-container { padding: 0 10px; }
@media (max-width: 600px) {
  #botui { min-height: 260px; }
  #botui .botui-actions-buttons-button { font-size: 12px !important; }
}
