/* quiet-ui.css — 文案减法、布局解释、交互加法
   只在高端版生效；完整版 / 极简版保留原有信息密度。 */

/* 顶部添加课：只留一个加号，动作本身说明一切 */
html[data-theme][data-view="high"] #add {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-grid;
  place-items: center;
}
html[data-theme][data-view="high"] #add .add-label { display: none; }
html[data-theme][data-view="high"] #add .add-icon {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}
html[data-theme][data-view="high"] #add:active { transform: scale(.94); }

/* 今天：状态空白即收起；空的明天只留一条线，不再写“明天没有课” */
html[data-theme][data-view="high"] .td-now-status:empty { display: none; }
html[data-theme][data-view="high"] .td-tomorrow-empty {
  height: 1px;
  margin: 16px 0 2px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--td-line) 16%, var(--td-line) 84%, transparent);
}
html[data-theme][data-view="high"] .td-empty-add {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0 !important;
  border-radius: 999px !important;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}
html[data-theme][data-view="high"] .td-empty-add:active { transform: scale(.94); }
html[data-theme][data-view="high"] .td-course-list.is-empty::before { display: none; }
html[data-theme][data-view="high"] .td-empty strong {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .02em;
}

/* 周表：控制按钮回到图标，列头不再重复报“几节大课 / 无课” */
html[data-theme][data-view="high"] .week-controls #week-density,
html[data-theme][data-view="high"] .week-controls #share-more {
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
}
html[data-theme][data-view="high"] .week-controls #week-density svg,
html[data-theme][data-view="high"] .week-controls #share-more svg {
  width: 15px;
  height: 15px;
  display: block;
}
html[data-theme][data-view="high"] .week-controls #share-more::after { display: none; }
html[data-theme][data-view="high"] .week-controls #share-more { width: 33px; padding: 0; }
html[data-theme][data-view="high"] .week-controls #week-density:active,
html[data-theme][data-view="high"] .week-controls #share-more:active {
  transform: scale(.94);
}
html[data-theme][data-view="high"] .schedule-corner {
  color: transparent;
  letter-spacing: 0;
}
html[data-theme][data-view="high"] .schedule-head small {
  letter-spacing: .06em;
}

/* 课程页：更多操作只留一个圆点；空列表不再写教学句 */
html[data-theme][data-view="high"] .course-row-more summary {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  transition: background .16s ease, color .16s ease;
}
html[data-theme][data-view="high"] .course-row-more summary:active {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
html[data-theme][data-view="high"] .course-list-empty {
  padding: 24px 0 18px;
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.4;
}
@media (max-width: 750px) {
  html[data-theme][data-view="high"] .course-manager-bar {
    justify-content: flex-end;
  }
  html[data-theme][data-view="high"] .course-manager-bar .course-search {
    flex: 1 1 100%;
  }
  html[data-theme][data-view="high"] .course-manager-bar > button {
    flex: 0 0 auto !important;
    min-width: 64px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
  }
}

/* 设置：分组标题与说明退场，卡片之间的距离成为层级 */
html[data-theme][data-view="high"] .set-gtitle,
html[data-theme][data-view="high"] .set-sub,
html[data-theme][data-view="high"] .set-note,
html[data-theme][data-view="high"] .settings-overview-intro {
  display: none !important;
}
html[data-theme][data-view="high"] .set-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 112px;
}
html[data-theme][data-view="high"] .set-wrap .set-card {
  margin: 0;
}
html[data-theme][data-view="high"] .set-wrap > .set-back {
  align-self: flex-start;
  width: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
html[data-theme][data-view="high"] .set-wrap > .set-back:active {
  transform: scale(.94);
}
html[data-theme][data-view="high"] .settings-detail .settings-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 工具箱：三枚玻璃工具格。图标先说话，标题只保留名字 */
html[data-theme][data-view="high"] .tool-directory {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  min-height: calc(100vh - 210px);
  min-height: calc(100dvh - 210px);
  align-content: center;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
@media (max-height: 720px) {
  html[data-theme][data-view="high"] .tool-directory {
    min-height: 0;
    align-content: start;
    padding-top: 4px !important;
  }
}
html[data-theme][data-view="high"] .tool-directory .directory-item {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 144px;
  padding: 15px 14px 14px !important;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(36, 92, 255, .10), rgba(36, 92, 255, 0) 56%),
    linear-gradient(155deg, rgba(255, 255, 255, .84), rgba(255, 252, 247, .54)) !important;
  box-shadow:
    0 16px 34px -24px rgba(58, 47, 31, .30),
    inset 0 1px 0 rgba(255, 255, 255, .94),
    inset 0 0 0 1px rgba(255, 255, 255, .30) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, background .22s ease;
}
html[data-theme][data-view="high"] .tool-directory .directory-icon {
  width: 46px;
  height: 46px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--green);
  background:
    radial-gradient(95% 95% at 20% 0%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .42) 58%, rgba(245, 239, 229, .30));
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow:
    0 6px 16px -8px rgba(58, 47, 31, .28),
    inset 0 1px 0 rgba(255, 255, 255, .98);
}
html[data-theme][data-view="high"] .tool-directory .directory-icon svg {
  width: 27px;
  height: 27px;
}
html[data-theme][data-view="high"] .tool-directory .directory-item h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-wrap: balance;
}
html[data-theme][data-view="high"] .tool-directory .directory-item:active {
  transform: scale(.975);
  box-shadow:
    0 8px 20px -20px rgba(58, 47, 31, .26),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-theme][data-view="high"] .tool-directory .directory-item:hover {
    transform: translateY(-2px);
    box-shadow:
      0 20px 38px -26px rgba(36, 47, 66, .38),
      inset 0 1px 0 rgba(255, 255, 255, .98) !important;
  }
}
html[data-theme][data-view="high"][data-scheme="dark"] .tool-directory .directory-item {
  border-color: rgba(255, 255, 255, .13) !important;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(96, 136, 255, .18), rgba(96, 136, 255, 0) 58%),
    linear-gradient(155deg, rgba(31, 40, 56, .80), rgba(18, 26, 38, .58)) !important;
  box-shadow:
    0 18px 38px -26px rgba(0, 0, 0, .60),
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 0 0 1px rgba(255, 255, 255, .04) !important;
}
html[data-theme][data-view="high"][data-scheme="dark"] .tool-directory .directory-icon {
  background:
    radial-gradient(95% 95% at 20% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 58%, rgba(255, 255, 255, 0));
  border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 6px 16px -8px rgba(0, 0, 0, .55);
}

/* 工具子页：标题与说明收走；空档用长度条，而不是“适合自习 / 运动” */
html[data-theme][data-view="high"] .tools-intro { display: none !important; }
html[data-theme][data-view="high"] .free-card {
  display: block;
  padding: 18px 0 16px;
}
html[data-theme][data-view="high"] .free-card b {
  display: block;
  color: var(--ink);
  font-size: 21px;
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
html[data-theme][data-view="high"] .free-bar {
  display: block;
  height: 3px;
  margin-top: 13px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
html[data-theme][data-view="high"] .free-bar i {
  display: block;
  width: var(--free-pct, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(36, 92, 255, .42), rgba(36, 92, 255, .84));
}

/* 专注：面板自己解释；不给“准备好就开始 / 结束后会轻震”的旁白 */
html[data-theme][data-view="high"] .focus-panel {
  min-height: min(520px, calc(100vh - 170px));
  min-height: min(520px, calc(100dvh - 170px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html[data-theme][data-view="high"] .focus-readout small:empty { display: none; }

/* 同校：去掉副标题、重复 tag、空会话文案后，列表只保留人与入口 */
html[data-theme][data-view="high"] .room-thread-main em:empty { display: none; }
html[data-theme][data-view="high"] .room-add-copy small { display: none; }
html[data-theme][data-view="high"] .room-thread:active { background: color-mix(in srgb, var(--ink) 5%, transparent); }

/* 换页时的轻微落位：只在真正有内容的卡片上出现 */
@keyframes quiet-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
html[data-theme][data-view="high"] .tool-directory .directory-item {
  animation: quiet-in .46s cubic-bezier(.22, 1, .36, 1) backwards;
}
html[data-theme][data-view="high"] .tool-directory .directory-item:nth-child(2) { animation-delay: .055s; }
html[data-theme][data-view="high"] .tool-directory .directory-item:nth-child(3) { animation-delay: .11s; }
html[data-theme][data-view="high"] .room-page .room-thread {
  animation: quiet-in .38s cubic-bezier(.22, 1, .36, 1) backwards;
}
html[data-theme][data-view="high"] .set-card {
  animation: quiet-in .4s cubic-bezier(.22, 1, .36, 1) backwards;
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme][data-view="high"] .tool-directory .directory-item,
  html[data-theme][data-view="high"] .room-page .room-thread,
  html[data-theme][data-view="high"] .set-card {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme][data-view="high"] #add:active,
  html[data-theme][data-view="high"] .week-controls #week-density:active,
  html[data-theme][data-view="high"] .week-controls #share-more:active,
  html[data-theme][data-view="high"] .set-wrap > .set-back:active,
  html[data-theme][data-view="high"] .tool-directory .directory-item:active,
  html[data-theme][data-view="high"] .td-empty-add:active,
  html[data-theme][data-view="high"] .room-thread:active {
    transform: none;
  }
}

/* 版本提示：只留一句“更新了什么”，不再把整段发布说明压在底栏上 */
html[data-theme][data-view="high"] .update-notice {
  left: 16px;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: auto;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 18px;
}
html[data-theme][data-view="high"] .update-notice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
html[data-theme][data-view="high"] .update-notice-copy strong {
  font-size: 13.5px;
  line-height: 1.25;
}
html[data-theme][data-view="high"] .update-notice-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme][data-view="high"] .update-notice-actions {
  flex: none;
  gap: 7px;
  margin-left: auto;
}
html[data-theme][data-view="high"] .update-notice-actions a {
  font-size: 11.5px;
  text-decoration: none;
}
html[data-theme][data-view="high"] .update-notice-actions button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
}
/* ── .164 深色「今天」玻璃：同一夜色，不再灰雾 / 绿偏 ── */

html[data-theme][data-view="high"][data-scheme="dark"] body[data-page="today"] {
  background-color: #070b11;
  background-image:
    radial-gradient(60% 32% at 10% 0%, rgba(120, 84, 62, .10), transparent 70%),
    radial-gradient(60% 32% at 94% 0%, rgba(58, 96, 172, .12), transparent 68%),
    linear-gradient(160deg, #070b11 0%, #0b121c 52%, #070d14 100%);
  background-attachment: fixed;
}
html[data-theme][data-view="high"][data-scheme="dark"] body[data-page="today"]::after {
  opacity: .08;
  background: radial-gradient(34vw 24vw at 86% 18%, rgba(83, 126, 214, .18), transparent 72%);
}
html[data-theme][data-view="high"][data-scheme="dark"] .td-page::before {
  opacity: .16;
  background:
    radial-gradient(42% 24% at 12% 22%, rgba(80, 132, 255, .18), transparent 74%),
    radial-gradient(40% 24% at 88% 34%, rgba(58, 96, 180, .14), transparent 76%),
    radial-gradient(50% 26% at 52% 92%, rgba(28, 58, 112, .16), transparent 78%);
}
html[data-theme][data-view="high"][data-scheme="dark"] .td-sheet {
  border-color: rgba(255, 255, 255, .11);
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .030) 0,
      rgba(255, 255, 255, .012) 3px,
      rgba(255, 255, 255, .004) 44px,
      rgba(255, 255, 255, 0) 100%),
    radial-gradient(72% 22% at 20% 0%, rgba(130, 170, 235, .035), transparent 72%),
    rgba(7, 12, 18, .58);
  -webkit-backdrop-filter: blur(50px) saturate(.86) brightness(.94);
  backdrop-filter: blur(50px) saturate(.86) brightness(.94);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, .12),
    0 -28px 60px rgba(0, 0, 0, .42),
    0 -4px 12px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(210, 228, 255, .16),
    inset 0 -1px 0 rgba(255, 255, 255, .04);
}
html[data-theme][data-view="high"][data-scheme="dark"] .td-sheet::before {
  height: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .028) 0, rgba(255, 255, 255, .006) 26%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(214, 234, 255, .24) 12%, rgba(214, 234, 255, .24) 88%, rgba(255, 255, 255, 0)) 0 0 / 100% 1px no-repeat;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  filter: none;
}
html[data-theme][data-view="high"][data-scheme="dark"] .td-sheet::after {
  opacity: .16;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-repeat: repeat;
}

/* ── .164 设置页：大标题 + 更松的卡片节奏；深色页面也用蓝黑底 ── */

html[data-theme][data-view="high"][data-scheme="dark"] body[data-page="settings"] {
  background-color: #070b11;
  background-image:
    radial-gradient(58% 30% at 8% 0%, rgba(120, 84, 62, .10), transparent 70%),
    radial-gradient(58% 30% at 92% 0%, rgba(58, 96, 172, .12), transparent 68%),
    linear-gradient(160deg, #070b11 0%, #0b121c 52%, #070d14 100%);
  background-attachment: fixed;
}
html[data-theme][data-view="high"][data-scheme="dark"] body[data-page="settings"]::after {
  opacity: .10;
  background:
    radial-gradient(28vw 20vw at 10% 10%, rgba(160, 108, 80, .12), transparent 72%),
    radial-gradient(32vw 24vw at 88% 18%, rgba(84, 128, 218, .16), transparent 72%);
}

/* 设置根页：收起全局返回条，标题与内容从同一顶线开始 */
html[data-theme][data-view="high"] body[data-page="settings"] .pb-bar {
  display: none !important;
}
html[data-theme][data-view="high"] .set-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 0 140px;
}
html[data-theme][data-view="high"] .set-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0 0 2px;
}
html[data-theme][data-view="high"] .set-page-title {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.045em;
}
html[data-theme][data-view="high"] .set-top .set-back,
html[data-theme][data-view="high"] body[data-page="settings"] .set-back {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}
html[data-theme][data-view="high"] .set-top .set-back:active,
html[data-theme][data-view="high"] body[data-page="settings"] .set-back:active {
  transform: scale(.94);
  transition: transform .18s var(--ease, ease);
}
html[data-theme][data-view="high"] .set-wrap .set-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
}
html[data-theme][data-view="high"] .set-wrap .set-row {
  min-height: 52px;
  padding: 0 18px;
}
html[data-theme][data-view="high"] .set-wrap .set-row strong {
  font-size: 15.5px;
  letter-spacing: -.01em;
}
html[data-theme][data-view="high"] .set-wrap .set-row .set-val {
  max-width: 174px;
  font-size: 12.5px;
}
html[data-theme][data-view="high"] .set-wrap .set-row .chev {
  width: 12px;
  height: 12px;
  margin-left: 5px;
  opacity: .62;
}
html[data-theme][data-view="high"] .set-wrap .set-row + .set-row {
  border-top-color: color-mix(in srgb, var(--ink) 7%, transparent);
}
html[data-theme][data-view="high"] .set-wrap > .set-foot {
  margin-top: 2px;
}
/* ── .167 深色今天页：玻璃再提一档蓝，仍与上半屏同一夜色；设置页去掉孤立页脚线 ── */

html[data-theme][data-view="high"][data-scheme="dark"] .td-sheet {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .034) 0,
      rgba(255, 255, 255, .010) 3px,
      rgba(255, 255, 255, 0) 36%,
      rgba(255, 255, 255, 0) 100%),
    radial-gradient(70% 20% at 18% 0%, rgba(120, 168, 240, .045), transparent 75%),
    rgba(12, 21, 35, .56);
  -webkit-backdrop-filter: blur(48px) saturate(.92) brightness(.98);
  backdrop-filter: blur(48px) saturate(.92) brightness(.98);
  border-color: rgba(205, 225, 255, .10);
  box-shadow:
    0 -1px 0 rgba(220, 238, 255, .13),
    0 -26px 56px rgba(0, 0, 0, .36),
    0 -4px 12px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(215, 235, 255, .14),
    inset 0 -1px 0 rgba(255, 255, 255, .03);
}
html[data-theme][data-view="high"][data-scheme="dark"] .td-sheet::before {
  height: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025) 0, rgba(255, 255, 255, 0) 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(201, 226, 255, .20) 12%, rgba(201, 226, 255, .20) 88%, rgba(255, 255, 255, 0)) 0 0 / 100% 1px no-repeat;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  filter: none;
}
html[data-theme][data-view="high"][data-scheme="dark"] .td-sheet::after {
  opacity: .16;
}

html[data-theme][data-view="high"] body[data-page="settings"] footer {
  display: none !important;
}
/* ── .173 周表「今天」日期数字：深蓝列上的近黑字改成浅字玻璃底 ── */
html[data-theme][data-view="high"][data-scheme="dark"] .schedule-head.is-today > b {
  background: rgba(255, 255, 255, .12) !important;
  color: #f1f5ff !important;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  padding: 1px 5px;
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
}
/* ── .175 周表「今天」日期数字：深蓝列上的近黑字改成浅字玻璃底 ── */
html[data-theme][data-view="high"][data-scheme="dark"] .schedule-head.is-today > b {
  background: rgba(255, 255, 255, .12) !important;
  color: #f1f5ff !important;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  padding: 1px 5px;
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
}
/* ── .176 浅色高端版：今天日期不再是一块实心蓝，改成浅蓝玻璃小胶囊 ── */
html[data-theme][data-view="high"]:not([data-scheme="dark"]) .schedule-head.is-today > b {
  background: color-mix(in srgb, var(--green) 9%, transparent) !important;
  color: var(--green) !important;
  border: 1px solid color-mix(in srgb, var(--green) 16%, transparent);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  padding: 1px 7px;
  min-width: 27px;
  min-height: 27px;
  display: grid;
  place-items: center;
}
/* 紧凑周表里再瘦一圈，避免撑高表头 */
html[data-theme][data-view="high"] .schedule-scroll.is-compact .schedule-head.is-today > b {
  min-width: 20px;
  min-height: 20px;
  padding: 1px 4px;
  border-radius: 6px;
}
/* ── .177 今天日期：去掉色块/描边，只留蓝色数字，让今天列自己做提示 ── */
html[data-theme][data-view="high"]:not([data-scheme="dark"]) .schedule-head.is-today > b {
  background: transparent !important;
  color: var(--green) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: inline-block !important;
}
html[data-theme][data-view="high"][data-scheme="dark"] .schedule-head.is-today > b {
  background: transparent !important;
  color: #f1f5ff !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: inline-block !important;
}

/* ── .183 体育优优：一张玻璃卡，微信号是唯一焦点 ── */
html[data-theme][data-view="high"] .sports-page {
  width: 100%;
  max-width: 680px;
  min-height: calc(100vh - 260px);
  min-height: calc(100dvh - 260px);
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 0 0 96px;
}
html[data-theme][data-view="high"] .sports-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: 24px 22px 22px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background:
    radial-gradient(110% 120% at 96% -6%, rgba(36, 92, 255, .16), rgba(36, 92, 255, 0) 58%),
    radial-gradient(90% 90% at 4% 104%, rgba(37, 100, 83, .08), rgba(37, 100, 83, 0) 60%),
    linear-gradient(155deg, rgba(255, 255, 255, .88), rgba(255, 252, 247, .55));
  box-shadow:
    0 24px 54px -32px rgba(58, 47, 31, .36),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 0 0 1px rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  backdrop-filter: blur(28px) saturate(1.45);
}
html[data-theme][data-view="high"] .sports-card::after {
  content: "体";
  position: absolute;
  right: 12px;
  bottom: -34px;
  z-index: 0;
  color: var(--green);
  font-size: 148px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.08em;
  opacity: .055;
  pointer-events: none;
  user-select: none;
}
html[data-theme][data-view="high"] .sports-card > * { position: relative; z-index: 1; }
html[data-theme][data-view="high"] .sports-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
html[data-theme][data-view="high"] .sports-mark {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #2d6dff 0%, #255e91 100%);
  box-shadow:
    0 12px 24px -14px rgba(36, 92, 255, .62),
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -8px 18px -12px rgba(0, 0, 0, .38);
}
html[data-theme][data-view="high"] .sports-mark svg {
  width: 30px;
  height: 30px;
  display: block;
}
html[data-theme][data-view="high"] .sports-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
html[data-theme][data-view="high"] .sports-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.04em;
}
html[data-theme][data-view="high"] .sports-sub {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: .02em;
}
html[data-theme][data-view="high"] .sports-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
html[data-theme][data-view="high"] .sports-contact-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .14em;
}
html[data-theme][data-view="high"] .sports-wechat {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px 0 16px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .94), rgba(247, 249, 252, .66));
  box-shadow:
    0 8px 18px -14px rgba(37, 52, 79, .26),
    inset 0 1px 0 rgba(255, 255, 255, .98);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease, background .18s ease;
}
html[data-theme][data-view="high"] .sports-wechat b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
}
html[data-theme][data-view="high"] .sports-wechat:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  html[data-theme][data-view="high"] .sports-wechat:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow:
      0 12px 24px -16px rgba(37, 52, 79, .34),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }
}
html[data-theme][data-view="high"] .sports-copy-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, transparent);
}
html[data-theme][data-view="high"] .sports-copy-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
html[data-theme][data-view="high"] .sports-wechat.is-empty {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--ink) 20%, transparent);
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  cursor: default;
}
html[data-theme][data-view="high"] .sports-wechat.is-empty b {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
}
html[data-theme][data-view="high"] .sports-wechat.is-empty .sports-copy-icon {
  color: var(--muted);
  background: transparent;
  font-size: 15px;
}
html[data-theme][data-view="high"][data-scheme="dark"] .sports-card {
  border-color: rgba(255, 255, 255, .13);
  background:
    radial-gradient(110% 120% at 96% -6%, rgba(96, 136, 255, .20), rgba(96, 136, 255, 0) 58%),
    radial-gradient(90% 90% at 4% 104%, rgba(110, 210, 165, .08), rgba(110, 210, 165, 0) 60%),
    linear-gradient(155deg, rgba(31, 40, 56, .82), rgba(18, 26, 38, .60));
  box-shadow:
    0 26px 58px -34px rgba(0, 0, 0, .74),
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
}
html[data-theme][data-view="high"][data-scheme="dark"] .sports-card::after {
  color: #8bb6ff;
  opacity: .075;
}
html[data-theme][data-view="high"][data-scheme="dark"] .sports-wechat {
  border-color: rgba(255, 255, 255, .15);
  background: linear-gradient(155deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045));
  box-shadow:
    0 10px 22px -16px rgba(0, 0, 0, .60),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}
html[data-theme][data-view="high"][data-scheme="dark"] .sports-wechat:not(.is-empty) b { color: #f1f5ff; }
html[data-theme][data-view="high"][data-scheme="dark"] .sports-copy-icon {
  color: #9fc3ff;
  background: rgba(96, 136, 255, .12);
}
html[data-theme][data-view="high"][data-scheme="dark"] .sports-wechat.is-empty {
  border-color: rgba(255, 255, 255, .14);
  background: transparent;
}
@media (max-width: 650px) {
  html[data-theme][data-view="high"] .sports-page {
    min-height: calc(100vh - 250px);
    min-height: calc(100dvh - 250px);
    padding-bottom: 92px;
  }
  html[data-theme][data-view="high"] .sports-card {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }
  html[data-theme][data-view="high"] .sports-mark { width: 52px; height: 52px; border-radius: 17px; }
  html[data-theme][data-view="high"] .sports-heading h2 { font-size: 23px; }
  html[data-theme][data-view="high"] .sports-contact { margin-top: 24px; padding-top: 17px; }
  html[data-theme][data-view="high"] .sports-wechat { min-height: 54px; }
}
@media (max-height: 720px) {
  html[data-theme][data-view="high"] .sports-page {
    min-height: 0;
    align-items: flex-start;
    padding-top: 6px;
  }
}

/* 运势抽签：工具箱里的温暖入口 */

html[data-theme][data-view="high"] .tool-directory .directory-item.fortune-entry .directory-icon {
  color: #9a4a38;
  background:
    radial-gradient(95% 95% at 20% 0%, rgba(255, 255, 255, .98), rgba(255, 247, 239, .46) 58%, rgba(238, 224, 210, .32));
  border-color: rgba(255, 255, 255, .9);
}

html[data-theme][data-view="high"][data-scheme="dark"] .tool-directory .directory-item.fortune-entry .directory-icon {
  color: #e1a28c;
  background:
    radial-gradient(95% 95% at 20% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 58%, rgba(255, 255, 255, 0));
  border-color: rgba(255, 255, 255, .13);
}

/* 运势抽签：一筒、一签、一句 */
html[data-theme][data-view="high"] .fortune-page {
  width: 100%;
  max-width: 680px;
  min-height: calc(100vh - 260px);
  min-height: calc(100dvh - 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 0 96px;
}
html[data-theme][data-view="high"] .fortune-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: 23px 22px 20px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background:
    radial-gradient(110% 130% at 96% -6%, rgba(161, 76, 56, .12), rgba(161, 76, 56, 0) 56%),
    radial-gradient(90% 90% at 4% 104%, rgba(37, 100, 83, .07), rgba(37, 100, 83, 0) 60%),
    linear-gradient(155deg, rgba(255, 255, 255, .90), rgba(255, 251, 246, .56));
  box-shadow:
    0 24px 54px -32px rgba(58, 47, 31, .36),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 0 0 1px rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  backdrop-filter: blur(28px) saturate(1.45);
}
html[data-theme][data-view="high"] .fortune-card::after {
  content: "签";
  position: absolute;
  right: 14px;
  bottom: -40px;
  z-index: 0;
  color: #9a4a38;
  font-size: 148px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.08em;
  opacity: .045;
  pointer-events: none;
  user-select: none;
}
html[data-theme][data-view="high"] .fortune-card > * {
  position: relative;
  z-index: 1;
}
html[data-theme][data-view="high"] .fortune-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .26em;
  text-align: center;
}
html[data-theme][data-view="high"] .fortune-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 280px;
  margin-top: 2px;
}
html[data-theme][data-view="high"] .fortune-tube-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 200px;
  height: 280px;
}
html[data-theme][data-view="high"] .fortune-tube {
  position: relative;
  width: 90px;
  height: 184px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 16px 16px 22px 22px / 24px 24px 26px 26px;
  background:
    linear-gradient(100deg, rgba(72, 82, 96, .24), rgba(255, 255, 255, .16) 17%, rgba(255, 255, 255, .62) 38%, rgba(165, 175, 188, .14) 63%, rgba(37, 46, 58, .24) 100%),
    radial-gradient(85% 80% at 18% 8%, rgba(255, 255, 255, .90), rgba(255, 255, 255, 0) 58%);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, .28),
    inset 0 -24px 30px rgba(20, 28, 38, .18),
    0 28px 48px -30px rgba(35, 45, 60, .50);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  transform-origin: 50% 92%;
}
html[data-theme][data-view="high"] .fortune-tube::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 24px;
  width: 10px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, 0) 78%);
  filter: blur(2px);
  opacity: .82;
  z-index: 2;
  pointer-events: none;
}
html[data-theme][data-view="high"] .fortune-tube::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 16px;
  width: 6px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28));
  filter: blur(2px);
  z-index: 2;
  pointer-events: none;
}
html[data-theme][data-view="high"] .fortune-mouth {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .38), rgba(255, 255, 255, .06) 56%, rgba(255, 255, 255, .24) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 1px 0 rgba(255, 255, 255, .80);
  z-index: 2;
}
html[data-theme][data-view="high"] .fortune-mouth::before {
  content: "";
  position: absolute;
  inset: 3px 5px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 48%, rgba(14, 20, 27, .58) 0 38%, rgba(31, 40, 51, .28) 58%, rgba(255, 255, 255, .10) 74%, transparent 100%);
  box-shadow: inset 0 8px 10px rgba(0, 0, 0, .26);
}
html[data-theme][data-view="high"] .fortune-stick {
  position: absolute;
  bottom: 14px;
  width: 8px;
  height: 240px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #c8b08a, #f7eedf 28%, #fffaf0 48%, #e7d1ad 72%, #bca27e);
  box-shadow:
    0 3px 8px rgba(62, 45, 26, .16),
    inset 0 0 0 1px rgba(120, 90, 50, .10);
  transform-origin: 50% 100%;
  z-index: 1;
}
html[data-theme][data-view="high"] .fortune-stick.s1 { left: 29px; transform: rotate(-3deg); }
html[data-theme][data-view="high"] .fortune-stick.s2 { left: 41px; transform: rotate(1deg); }
html[data-theme][data-view="high"] .fortune-stick.s3 { left: 53px; transform: rotate(4deg); }
html[data-theme][data-view="high"] .fortune-stick.s2::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background: #9a4a38;
  opacity: .72;
}
html[data-theme][data-view="high"] .fortune-paper {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 46px;
  height: 190px;
  padding: 8px 3px 7px;
  border: 1px solid rgba(166, 132, 89, .35);
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(95deg, #fffaf0, #f4e5cc 55%, #e7d3b3);
  box-shadow:
    0 14px 24px -14px rgba(50, 40, 26, .50),
    inset 0 1px 0 rgba(255, 255, 255, .90);
  transform: translateX(-50%) translateY(0) rotate(2deg);
  transform-origin: 50% 100%;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: transform .58s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
}
html[data-theme][data-view="high"] .fortune-card.is-drawn .fortune-paper {
  transform: translateX(-50%) translateY(-56px) rotate(-2.2deg);
  opacity: 1;
}
html[data-theme][data-view="high"] .fortune-paper-level {
  flex: 0 0 auto;
  color: #9a3f32;
  font-size: 8px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}
html[data-theme][data-view="high"] .fortune-paper-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 0;
  color: #3f3126;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: 0;
}
html[data-theme][data-view="high"] .fortune-paper-text span { display: block; }
html[data-theme][data-view="high"] .fortune-seal {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(154, 63, 50, .55);
  border-radius: 2px;
  color: #9a3f32;
  font-size: 6.5px;
  line-height: 1;
  letter-spacing: .02em;
  opacity: .78;
}
html[data-theme][data-view="high"] .fortune-shadow {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 80px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(46, 56, 70, .28), rgba(46, 56, 70, 0) 70%);
  filter: blur(6px);
  transform: translateX(-50%);
  z-index: 0;
}
html[data-theme][data-view="high"] .fortune-card.is-shaking .fortune-tube {
  animation: fortune-tube-shake .62s cubic-bezier(.36, .07, .19, .97) both;
}
html[data-theme][data-view="high"] .fortune-card.is-shaking .fortune-stick {
  animation: fortune-stick-shake .62s cubic-bezier(.36, .07, .19, .97) both;
}
html[data-theme][data-view="high"] .fortune-card.is-shaking .fortune-shadow {
  animation: fortune-shadow-pulse .62s ease both;
}
@keyframes fortune-tube-shake {
  0%, 100% { transform: rotate(0deg); }
  16% { transform: rotate(-5deg); }
  33% { transform: rotate(4deg); }
  50% { transform: rotate(-3deg); }
  68% { transform: rotate(2deg); }
  84% { transform: rotate(-1deg); }
}
@keyframes fortune-stick-shake {
  0%, 100% { margin-left: 0; }
  18% { margin-left: -2px; }
  38% { margin-left: 2px; }
  58% { margin-left: -1px; }
  78% { margin-left: 1px; }
}
@keyframes fortune-shadow-pulse {
  0%, 100% { opacity: .8; transform: translateX(-50%) scaleX(1); }
  45% { opacity: 1; transform: translateX(-50%) scaleX(.9); }
}
html[data-theme][data-view="high"] .fortune-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
html[data-theme][data-view="high"] .fortune-card.is-drawn .fortune-result {
  opacity: 1;
  transform: none;
}
html[data-theme][data-view="high"] .fortune-level {
  color: #9a3f32;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .18em;
}
html[data-theme][data-view="high"] .fortune-phrase {
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
  text-align: center;
  text-wrap: balance;
}
html[data-theme][data-view="high"] .fortune-shake {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .90);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .94), rgba(247, 249, 252, .62));
  box-shadow:
    0 8px 18px -14px rgba(37, 52, 79, .26),
    inset 0 1px 0 rgba(255, 255, 255, .98);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
html[data-theme][data-view="high"] .fortune-shake:active:not(:disabled) { transform: scale(.985); }
html[data-theme][data-view="high"] .fortune-shake:disabled {
  cursor: default;
  opacity: .62;
}
@media (hover: hover) and (pointer: fine) {
  html[data-theme][data-view="high"] .fortune-shake:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow:
      0 12px 24px -16px rgba(37, 52, 79, .34),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }
}
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-card {
  border-color: rgba(255, 255, 255, .13);
  background:
    radial-gradient(110% 130% at 96% -6%, rgba(193, 111, 86, .16), rgba(193, 111, 86, 0) 58%),
    radial-gradient(90% 90% at 4% 104%, rgba(110, 210, 165, .07), rgba(110, 210, 165, 0) 60%),
    linear-gradient(155deg, rgba(33, 34, 42, .86), rgba(18, 20, 27, .64));
  box-shadow:
    0 26px 58px -34px rgba(0, 0, 0, .74),
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
}
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-card::after {
  color: #ffb38f;
  opacity: .06;
}
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-kicker { color: rgba(235, 239, 247, .54); }
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-tube {
  border-color: rgba(255, 255, 255, .16);
  background:
    linear-gradient(100deg, rgba(5, 12, 20, .58), rgba(255, 255, 255, .10) 18%, rgba(150, 165, 182, .18) 40%, rgba(7, 13, 21, .46) 100%),
    radial-gradient(85% 80% at 18% 8%, rgba(255, 255, 255, .44), rgba(255, 255, 255, 0) 58%);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, .10),
    inset 0 -24px 30px rgba(0, 0, 0, .25),
    0 30px 54px -30px rgba(0, 0, 0, .70);
}
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-mouth {
  border-color: rgba(255, 255, 255, .20);
  background: radial-gradient(ellipse at 50% 43%, rgba(0, 0, 0, .72), rgba(8, 14, 22, .40) 48%, rgba(255, 255, 255, .08) 72%, rgba(255, 255, 255, .22) 100%);
}
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-level { color: #d2a78f; }
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-phrase { color: #f1f5ff; }
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-shake {
  border-color: rgba(255, 255, 255, .16);
  background: linear-gradient(155deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045));
  box-shadow:
    0 10px 22px -16px rgba(0, 0, 0, .60),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #f1f5ff;
}
html[data-theme][data-view="high"][data-scheme="dark"] .fortune-shake:disabled { opacity: .5; }
@media (max-width: 650px) {
  html[data-theme][data-view="high"] .fortune-page {
    min-height: calc(100vh - 250px);
    min-height: calc(100dvh - 250px);
    padding-bottom: 92px;
  }
  html[data-theme][data-view="high"] .fortune-card {
    padding: 20px 16px 18px;
    border-radius: 24px;
  }
  html[data-theme][data-view="high"] .fortune-stage {
    height: 280px;
  }
  html[data-theme][data-view="high"] .fortune-tube-wrap {
    height: 280px;
    transform: scale(.94);
    transform-origin: 50% 100%;
  }
  html[data-theme][data-view="high"] .fortune-card::after { font-size: 124px; }
  html[data-theme][data-view="high"] .fortune-phrase { font-size: 20px; }
}
@media (max-height: 720px) {
  html[data-theme][data-view="high"] .fortune-page {
    min-height: 0;
    align-items: flex-start;
    padding-top: 6px;
  }
}

/* 工具箱图标统一色号：运势签也用同一支蓝 */
html[data-theme][data-view="high"] .tool-directory .directory-item.fortune-entry .directory-icon {
  color: var(--green);
  background:
    radial-gradient(95% 95% at 20% 0%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .42) 58%, rgba(245, 239, 229, .30));
  border-color: rgba(255, 255, 255, .86);
}
html[data-theme][data-view="high"][data-scheme="dark"] .tool-directory .directory-item.fortune-entry .directory-icon {
  color: var(--green);
  background:
    radial-gradient(95% 95% at 20% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 58%, rgba(255, 255, 255, 0));
  border-color: rgba(255, 255, 255, .12);
}

/* 工具箱统一：反馈永远最后一格，运势签和其他卡同一块玻璃 */
html[data-theme][data-view="high"] .tool-directory .directory-item[data-tab="feedback"] {
  order: 99;
}
html[data-theme][data-view="high"] .tool-directory .directory-item.fortune-entry .directory-icon {
  color: var(--green);
  background:
    radial-gradient(95% 95% at 20% 0%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .42) 58%, rgba(245, 239, 229, .30));
  border-color: rgba(255, 255, 255, .86);
}
html[data-theme][data-view="high"][data-scheme="dark"] .tool-directory .directory-item.fortune-entry .directory-icon {
  color: var(--green);
  background:
    radial-gradient(95% 95% at 20% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 58%, rgba(255, 255, 255, 0));
  border-color: rgba(255, 255, 255, .12);
}
