/* ==========================================================================
   Sotheby — Personal site
   Design system: iOS-like cards, soft surfaces, glass blur
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f2f2f7;
  --bg-veil: radial-gradient(900px 620px at 12% -8%, rgba(10, 132, 255, 0.18), transparent 62%),
             radial-gradient(760px 560px at 92% 4%, rgba(255, 55, 95, 0.14), transparent 60%),
             radial-gradient(820px 620px at 60% 100%, rgba(94, 92, 230, 0.14), transparent 62%);

  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-sunken: rgba(120, 120, 128, 0.08);
  --border: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);

  --text: #1d1d1f;
  --text-2: #5f6064;
  --text-3: #636366;
  --text-4: #757579;

  --accent: #007aff;
  --accent-deep: #0055d4;
  --accent-2: #5e5ce6;
  --accent-text: #0056c7;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --accent-shadow: rgba(0, 122, 255, 0.55);
  --purple: #5e5ce6;
  --pink: #ff375f;
  --orange: #ff9f0a;
  --green: #34c759;
  --teal: #30b0c7;

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --shadow-sm: 0 1px 2px rgba(16, 16, 24, 0.05), 0 1px 1px rgba(16, 16, 24, 0.03);
  --shadow: 0 2px 8px rgba(16, 16, 24, 0.05), 0 16px 36px -16px rgba(16, 16, 24, 0.18);
  --shadow-lg: 0 4px 14px rgba(16, 16, 24, 0.06), 0 32px 64px -24px rgba(16, 16, 24, 0.28);
  --glass: saturate(180%) blur(22px);

  --header-bg: rgba(242, 242, 247, 0.76);
  --dock-bg: rgba(255, 255, 255, 0.82);

  --container: 1120px;
  --header-h: 62px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #07070a;
  --bg-veil: radial-gradient(900px 620px at 12% -8%, rgba(10, 132, 255, 0.24), transparent 62%),
             radial-gradient(760px 560px at 92% 4%, rgba(255, 55, 95, 0.16), transparent 60%),
             radial-gradient(820px 620px at 60% 100%, rgba(94, 92, 230, 0.2), transparent 62%);

  --surface: rgba(28, 28, 32, 0.68);
  --surface-strong: rgba(34, 34, 38, 0.86);
  --surface-solid: #15151a;
  --surface-sunken: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f7;
  --text-2: #a9a9b2;
  --text-3: #8a8a92;
  --text-4: #63636b;

  --accent: #0a84ff;
  --accent-deep: #0060df;
  --accent-2: #5e5ce6;
  --accent-text: #4da3ff;
  --accent-soft: rgba(10, 132, 255, 0.18);
  --accent-shadow: rgba(10, 132, 255, 0.6);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 4px 14px rgba(0, 0, 0, 0.45), 0 34px 68px -26px rgba(0, 0, 0, 0.8);

  --header-bg: rgba(7, 7, 10, 0.72);
  --dock-bg: rgba(28, 28, 32, 0.82);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-veil);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; border: none; background: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 4px solid transparent;
  border-radius: 99px;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-4); background-clip: content-box; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.page {
  padding-bottom: 140px;
}

.section {
  margin-top: 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head .more {
  font-size: 0.9rem;
  color: var(--accent-text);
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.section-head .more:hover { opacity: 0.7; }

.section-sub {
  color: var(--text-3);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(145deg, var(--accent), var(--accent-2) 60%, var(--pink));
  box-shadow: 0 4px 12px -4px var(--accent-shadow);
}

.brand-text { font-size: 1rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.main-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.main-nav a:hover { color: var(--text); }

.main-nav a.is-active {
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .main-nav a.is-active { background: rgba(255, 255, 255, 0.1); }

.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover { color: var(--text); background: var(--surface-strong); }
.icon-btn:active { transform: scale(0.94); }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- 5. Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.24s var(--ease),
    background 0.24s var(--ease), opacity 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 20px -8px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover { box-shadow: 0 12px 26px -8px var(--accent-shadow); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { background: var(--surface-strong); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 0.8rem;
  color: var(--text-2);
  border-radius: 999px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
}

/* ---------- 6. Cards ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}

a.card:hover, .card.is-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px -10px currentColor;
}

.card-icon.blue { background: linear-gradient(160deg, #4da3ff, #0060df); }
.card-icon.purple { background: linear-gradient(160deg, #8a86ff, #5e5ce6); }
.card-icon.pink { background: linear-gradient(160deg, #ff6b8a, #e01e4f); }
.card-icon.orange { background: linear-gradient(160deg, #ffc061, #e08600); }
.card-icon.green { background: linear-gradient(160deg, #6ee08a, #1fa845); }
.card-icon.teal { background: linear-gradient(160deg, #6fd6e8, #1a8fa6); }

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.62;
}

.card-arrow {
  position: absolute;
  top: 22px;
  right: 20px;
  color: var(--text-4);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

a.card:hover .card-arrow { transform: translate(3px, -3px); color: var(--accent); }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero > :not(.hero-bg) { position: relative; z-index: 1; }

/* 头像上方的封面图 */
.hero-cover {
  position: relative;
  width: 100%;
  /* 原图是 16:9，这里保持较接近的比例，避免裁掉太多画面 */
  height: clamp(200px, 36vw, 470px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  /* 第二层是跟着主题色变的柔光，换主题色时封面下方会跟着变色 */
  box-shadow: var(--shadow-lg), 0 26px 60px -34px var(--accent-shadow);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

/* 头像压在封面下沿，加一圈底色描边把它和照片分开 */
.hero .avatar {
  margin-top: -54px;
  box-shadow: 0 0 0 5px var(--bg), 0 20px 44px -18px var(--accent-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.media-teaser { display: flex; gap: 18px; align-items: center; }

.teaser-cover {
  width: 76px;
  flex: 0 0 auto;
  aspect-ratio: 2 / 3;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.media-teaser .teaser-body { min-width: 0; }
.media-teaser h3 { margin-top: 6px; }
.media-teaser p { margin-top: 6px; }

@media (max-width: 420px) {
  .teaser-cover { width: 62px; }
  .media-teaser { gap: 14px; }
}

.avatar {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  background: linear-gradient(150deg, var(--accent), var(--accent-2) 55%, var(--pink));
  box-shadow: 0 20px 44px -18px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.avatar-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--green);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.hero-eyebrow {
  margin-top: 26px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-title {
  margin-top: 10px;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, var(--text) 18%, var(--accent) 58%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

.hero-sub {
  margin-top: 14px;
  max-width: 600px;
  font-size: 1.06rem;
  color: var(--text-2);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.social-row a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: transform 0.22s var(--ease), color 0.22s var(--ease), background 0.22s var(--ease);
}

.social-row a:hover { transform: translateY(-3px); color: var(--accent); background: var(--surface-strong); }

/* ---------- 8. Widgets ---------- */
.widget-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  margin-top: 56px;
}

.widget {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.widget-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.widget-value {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.widget-note {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--text-3);
}

.widget-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-top: 14px;
}

.widget-bars span {
  flex: 1;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.85;
  animation: grow 2.4s var(--ease) infinite alternate;
  transform-origin: bottom;
}

.widget-bars span:nth-child(2n) { animation-delay: 0.3s; }
.widget-bars span:nth-child(3n) { animation-delay: 0.6s; }

@keyframes grow {
  from { transform: scaleY(0.45); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

.widget-dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.widget-dots i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.25;
}

.widget-dots i.on { opacity: 1; }

/* ---------- 9. Page header (inner pages) ---------- */
.page-head {
  padding-top: 56px;
  margin-bottom: 40px;
}

.page-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.page-head p {
  margin-top: 12px;
  max-width: 620px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
}

.page-head .chip { margin-top: 18px; }

/* ---------- 10. Works ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: all 0.22s var(--ease);
}

.filter-btn:hover { color: var(--text); }

.filter-btn.is-active {
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(10, 132, 255, 0.95);
}

.work-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.work-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  border-bottom: 1px solid var(--border);
}

.work-cover.c1 { background: linear-gradient(140deg, #cfe4ff, #a8c8ff 40%, #d8ccff); }
.work-cover.c2 { background: linear-gradient(140deg, #ffd9e2, #ffb3c6 45%, #ffdcc7); }
.work-cover.c3 { background: linear-gradient(140deg, #d6f5e3, #a9e9c4 45%, #cdf0f5); }
.work-cover.c4 { background: linear-gradient(140deg, #ffe9c2, #ffd591 45%, #ffc9b0); }
.work-cover.c5 { background: linear-gradient(140deg, #dcd9ff, #b9b6ff 45%, #ffd6f0); }
.work-cover.c6 { background: linear-gradient(140deg, #cfeeff, #9fd8f5 45%, #c9f0e6); }

[data-theme="dark"] .work-cover.c1 { background: linear-gradient(140deg, #12305c, #1c2f6b 45%, #2a2350); }
[data-theme="dark"] .work-cover.c2 { background: linear-gradient(140deg, #4d1830, #5a1f34 45%, #43231c); }
[data-theme="dark"] .work-cover.c3 { background: linear-gradient(140deg, #10382a, #14402f 45%, #10303a); }
[data-theme="dark"] .work-cover.c4 { background: linear-gradient(140deg, #4a3410, #4c3a12 45%, #4a2a20); }
[data-theme="dark"] .work-cover.c5 { background: linear-gradient(140deg, #241f52, #2b2560 45%, #3f1c3b); }
[data-theme="dark"] .work-cover.c6 { background: linear-gradient(140deg, #10303f, #123c48 45%, #10342f); }

.work-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.work-body h3 { font-size: 1.02rem; }
.work-body p { color: var(--text-3); font-size: 0.88rem; flex: 1; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 7px;
  color: var(--text-2);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}

.work-card.is-hidden { display: none; }

/* 作品封面用真实截图时 */
.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.work-actions .btn { height: 38px; padding: 0 16px; font-size: 0.86rem; }

/* 小游戏页面 */
.game-frame {
  display: block;
  width: 100%;
  height: min(80vh, 860px);
  border: 0;
  background: #0b0f14;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .game-frame { height: min(72vh, 620px); }
}

/* ---------- 11. Notes ---------- */
.note-list {
  display: grid;
  gap: 14px;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s var(--ease);
}

.note-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.note-date {
  flex: 0 0 auto;
  width: 74px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.4;
}

.note-main { flex: 1; min-width: 0; }

.note-main h3 { font-size: 1rem; }

.note-main p {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-item svg { color: var(--text-4); flex: 0 0 auto; }

/* ---------- 12. About ---------- */
.about-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

.prose p + p { margin-top: 14px; }

.prose p { color: var(--text-2); line-height: 1.82; }

.prose strong { color: var(--text); font-weight: 600; }

.skill-list { display: grid; gap: 16px; }

.skill-row .skill-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.skill-top span:last-child { color: var(--text-3); font-family: var(--font-mono); font-size: 0.78rem; }

.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--surface-sunken);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width 1.1s var(--ease);
}

.timeline { position: relative; padding-left: 26px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: var(--border-strong);
}

.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-item time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
}

.timeline-item h3 { font-size: 1rem; margin-top: 6px; }
.timeline-item p { color: var(--text-3); font-size: 0.88rem; margin-top: 4px; }

/* ---------- 13. Gallery ---------- */
.masonry {
  columns: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease);
}

.masonry-item:hover { transform: translateY(-4px) scale(1.006); box-shadow: var(--shadow-lg); }

.masonry-item .art {
  width: 100%;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.art.a1 { background: linear-gradient(150deg, #5aa9ff, #0a5bd6); aspect-ratio: 4 / 5; }
.art.a2 { background: linear-gradient(150deg, #ff8fa8, #d61e52); aspect-ratio: 1 / 1; }
.art.a3 { background: linear-gradient(150deg, #7fe0a3, #12924a); aspect-ratio: 4 / 3; }
.art.a4 { background: linear-gradient(150deg, #ffc46b, #d97a05); aspect-ratio: 3 / 4; }
.art.a5 { background: linear-gradient(150deg, #a9a5ff, #4b48d6); aspect-ratio: 1 / 1; }
.art.a6 { background: linear-gradient(150deg, #74d8ea, #0f8299); aspect-ratio: 5 / 4; }
.art.a7 { background: linear-gradient(150deg, #ffa8e0, #b02fa0); aspect-ratio: 4 / 5; }
.art.a8 { background: linear-gradient(150deg, #9fd0ff, #2b6fd6); aspect-ratio: 16 / 10; }
.art.a9 { background: linear-gradient(150deg, #cfe07f, #5c8c11); aspect-ratio: 1 / 1; }

.masonry-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 12px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.masonry-item:hover .masonry-caption { opacity: 1; transform: none; }

/* ---------- 14. Contact ---------- */
.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-list { display: grid; gap: 12px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
  text-align: left;
  width: 100%;
}

button.contact-row { cursor: pointer; }
.contact-row:hover { background: var(--surface-strong); transform: translateX(3px); }

.contact-row .ci {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
}

.contact-row .ci.blue { background: linear-gradient(160deg, #4da3ff, #0060df); }
.contact-row .ci.green { background: linear-gradient(160deg, #6ee08a, #1fa845); }
.contact-row .ci.purple { background: linear-gradient(160deg, #8a86ff, #5e5ce6); }
.contact-row .ci.pink { background: linear-gradient(160deg, #ff6b8a, #e01e4f); }
.contact-row .ci.orange { background: linear-gradient(160deg, #ffc061, #e08600); }

.contact-row .ct { flex: 1; min-width: 0; }
.contact-row .ct b { display: block; font-size: 0.9rem; font-weight: 500; }
.contact-row .ct span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; color: var(--text-2); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field textarea { min-height: 130px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-4); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-solid);
}

.form-note { font-size: 0.78rem; color: var(--text-4); margin-top: 12px; line-height: 1.6; }

/* ---------- 15. Footer ---------- */
.site-footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-3);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--text); }

/* ---------- 16. Dock (mobile nav) ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 70;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 8px;
  border-radius: 26px;
  background: var(--dock-bg);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.dock a {
  width: 50px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 0.6rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.dock a.is-active { color: var(--accent-text); background: var(--accent-soft); }

.dock a svg { width: 20px; height: 20px; }

/* ---------- 17. Lightbox & modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 14, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lightbox.is-open { display: grid; animation: fade 0.24s var(--ease); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-inner {
  width: min(880px, 100%);
  max-height: 86dvh;
  overflow: auto;
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: pop 0.3s var(--ease);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.lightbox-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 4rem;
}

.lightbox-body { padding: 24px 26px 28px; }
.lightbox-body h3 { font-size: 1.2rem; }
.lightbox-body .meta { margin-top: 8px; font-size: 0.8rem; color: var(--text-3); font-family: var(--font-mono); }
.lightbox-body .content { margin-top: 16px; color: var(--text-2); line-height: 1.85; font-size: 0.95rem; }
.lightbox-body .content p + p { margin-top: 14px; }
.lightbox-body .content h4 { font-size: 1rem; margin: 22px 0 8px; color: var(--text); }

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s var(--ease);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- 18. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  z-index: 300;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 19. Reveal animation ---------- */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

/* 只在 JS 正常工作时才先隐藏，避免任何情况下内容看不见 */
html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 20. 404 ---------- */
.error-wrap {
  min-height: 72dvh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-code {
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--purple) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
}

@media (max-width: 720px) {
  :root { --container: 100%; --header-h: 58px; }
  .main-nav { display: none; }
  .dock { display: flex; }
  .page { padding-bottom: 120px; }
  .hero { padding-top: 16px; }
  .avatar { width: 86px; height: 86px; border-radius: 27px; font-size: 2.1rem; }
  .hero .avatar { margin-top: -42px; box-shadow: 0 0 0 4px var(--bg), 0 16px 34px -16px var(--accent-shadow); }
  .hero-cover { height: clamp(170px, 46vw, 240px); border-radius: var(--radius-lg); }
  .hero-sub { font-size: 0.98rem; }
  .section { margin-top: 52px; }
  .section-head h2 { font-size: 1.28rem; }
  .card-grid { grid-template-columns: 1fr; }
  .widget-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 40px; }
  .widget { padding: 16px; border-radius: var(--radius); }
  .widget-value { font-size: 1.6rem; }
  .masonry { columns: 2; column-gap: 12px; }
  .masonry-item { margin-bottom: 12px; }
  .note-item { padding: 16px; gap: 12px; }
  .note-date { width: 58px; font-size: 0.72rem; }
  .page-head { padding-top: 34px; margin-bottom: 28px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .toast { bottom: 108px; }
}

@media (max-width: 380px) {
  .masonry { columns: 1; }
  .dock { padding: 7px; }
}

@media (max-width: 430px) {
  .dock a { width: 44px; font-size: 0.55rem; }
}

/* ---------- 22. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

@media print {
  .site-header, .dock, .lightbox, .toast { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  html.js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* ==========================================================================
   23. 主题色（个性化）
   ========================================================================== */
html[data-accent="blue"]   { --accent: #007aff; --accent-deep: #0055d4; --accent-2: #5e5ce6; --accent-text: #0056c7; --accent-soft: rgba(0, 122, 255, 0.12); --accent-shadow: rgba(0, 122, 255, 0.55); }
html[data-accent="purple"] { --accent: #6d5ce6; --accent-deep: #4b3fd0; --accent-2: #b45cf0; --accent-text: #5a48d6; --accent-soft: rgba(109, 92, 230, 0.14); --accent-shadow: rgba(109, 92, 230, 0.55); }
html[data-accent="pink"]   { --accent: #f0335c; --accent-deep: #cc1c42; --accent-2: #ff8a3d; --accent-text: #c7254a; --accent-soft: rgba(240, 51, 92, 0.13); --accent-shadow: rgba(240, 51, 92, 0.5); }
html[data-accent="orange"] { --accent: #ef7c00; --accent-deep: #c85f00; --accent-2: #f0335c; --accent-text: #9e4f00; --accent-soft: rgba(239, 124, 0, 0.14); --accent-shadow: rgba(239, 124, 0, 0.5); }
html[data-accent="green"]  { --accent: #12a150; --accent-deep: #0b7c3c; --accent-2: #16a3b5; --accent-text: #0a7d3d; --accent-soft: rgba(18, 161, 80, 0.14); --accent-shadow: rgba(18, 161, 80, 0.5); }
html[data-accent="teal"]   { --accent: #0d95b0; --accent-deep: #0a7183; --accent-2: #4b6ce0; --accent-text: #0a6c80; --accent-soft: rgba(13, 149, 176, 0.14); --accent-shadow: rgba(13, 149, 176, 0.5); }
html[data-accent="graphite"] { --accent: #5b5b66; --accent-deep: #3c3c45; --accent-2: #8e8e93; --accent-text: #4a4a54; --accent-soft: rgba(91, 91, 102, 0.14); --accent-shadow: rgba(91, 91, 102, 0.5); }

[data-theme="dark"][data-accent="blue"]   { --accent: #0a84ff; --accent-deep: #0060df; --accent-text: #4da3ff; --accent-soft: rgba(10, 132, 255, 0.18); }
[data-theme="dark"][data-accent="purple"] { --accent: #9b8cff; --accent-deep: #6d5ce6; --accent-text: #b3a7ff; --accent-soft: rgba(155, 140, 255, 0.2); }
[data-theme="dark"][data-accent="pink"]   { --accent: #ff5c80; --accent-deep: #d92e57; --accent-text: #ff8099; --accent-soft: rgba(255, 92, 128, 0.2); }
[data-theme="dark"][data-accent="orange"] { --accent: #ffa03d; --accent-deep: #e07a00; --accent-text: #ffb45f; --accent-soft: rgba(255, 160, 61, 0.2); }
[data-theme="dark"][data-accent="green"]  { --accent: #3ad46f; --accent-deep: #1fa356; --accent-text: #59dd87; --accent-soft: rgba(58, 212, 111, 0.2); }
[data-theme="dark"][data-accent="teal"]   { --accent: #3fc4dd; --accent-deep: #1596b0; --accent-text: #5fd2e7; --accent-soft: rgba(63, 196, 221, 0.2); }
[data-theme="dark"][data-accent="graphite"] { --accent: #a8a8b3; --accent-deep: #7c7c88; --accent-text: #b9b9c3; --accent-soft: rgba(168, 168, 179, 0.18); }

/* ==========================================================================
   24. 阅读进度条
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px -2px var(--accent-shadow);
}

/* ==========================================================================
   25. 顶部导航下拉 / 个性化面板
   ========================================================================== */
.nav-more { position: relative; display: flex; }

.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px 7px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-more-btn:hover { color: var(--text); }
.nav-more-btn.is-active { color: var(--text); background: var(--surface-solid); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .nav-more-btn.is-active { background: rgba(255, 255, 255, 0.1); }
.nav-more-btn svg { transition: transform 0.24s var(--ease); }
.nav-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  padding: 10px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.popover.is-open { opacity: 1; transform: none; pointer-events: auto; }

.nav-popover { min-width: 178px; }

.nav-popover a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-popover a:hover,
.nav-popover a.is-active { background: var(--surface-sunken); color: var(--text); }

.nav-popover a svg { width: 17px; height: 17px; color: var(--text-3); }

.palette-popover { width: 268px; padding: 16px; }

.palette-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.palette-group + .palette-group { margin-top: 18px; }

.swatches { display: flex; gap: 9px; flex-wrap: wrap; }

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--sw);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 2px 6px -3px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.swatch:hover { transform: scale(1.12); }
.swatch.is-active { border-color: var(--text); transform: scale(1.06); }

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-sunken);
}

.segmented button {
  flex: 1;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 0.8rem;
  color: var(--text-2);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.segmented button.is-active {
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .segmented button.is-active { background: rgba(255, 255, 255, 0.12); }

/* ==========================================================================
   26. 首页氛围：光斑与轮换词
   ========================================================================== */
.hero-bg {
  position: absolute;
  inset: -140px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: drift 20s ease-in-out infinite;
}

.orb-1 { width: 320px; height: 320px; left: -60px; top: 10px; background: var(--accent); }
.orb-2 { width: 260px; height: 260px; right: -50px; top: -20px; background: var(--accent-2); animation-delay: -6s; }
.orb-3 { width: 220px; height: 220px; left: 44%; top: -70px; background: var(--pink); animation-delay: -12s; opacity: 0.32; }

/* 在文字区域铺一层柔和底色，保证正文在任何主题色下都清晰 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 46% at 50% 72%, var(--bg) 22%, transparent 78%);
}

[data-theme="dark"] .orb { opacity: 0.36; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(28px, -20px, 0) scale(1.1); }
  66% { transform: translate3d(-22px, 16px, 0) scale(0.94); }
}

.rotate-word {
  display: inline-block;
  font-weight: 500;
  color: var(--accent-text);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.rotate-word.is-out { opacity: 0; transform: translateY(7px); filter: blur(3px); }

/* ==========================================================================
   27. 卡片跟随光效
   ========================================================================== */
.card::after,
.note-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

a.card:hover::after,
.card.is-interactive:hover::after,
.note-item:hover::after { opacity: 1; }

.note-item { position: relative; overflow: hidden; }

.card-icon { transition: transform 0.4s var(--ease); }
a.card:hover .card-icon { transform: scale(1.08) rotate(-5deg); }

/* ==========================================================================
   28. 课表
   ========================================================================== */
.tt2-scroll { overflow-x: auto; padding-bottom: 8px; }
.tt2-scroll::-webkit-scrollbar { height: 8px; }

.tt2 { --slot-h: 58px; --slot-gap: 8px; min-width: 990px; }

.tt2-head {
  display: grid;
  grid-template-columns: 78px repeat(7, minmax(112px, 1fr));
  gap: var(--slot-gap);
  margin-bottom: var(--slot-gap);
}

.tt2-corner { display: grid; place-items: center; font-size: 0.7rem; color: var(--text-4); }

.tt2-day {
  text-align: center;
  padding: 9px 6px;
  border-radius: 13px;
  background: var(--surface-sunken);
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.3;
}

.tt2-day small { display: block; font-size: 0.66rem; opacity: 0.72; margin-top: 2px; }

.tt2-day.is-today {
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 18px -10px var(--accent-shadow);
}

.tt2-body {
  display: grid;
  grid-template-columns: 78px repeat(7, minmax(112px, 1fr));
  gap: var(--slot-gap);
  align-items: start;
}

.tt2-times { display: flex; flex-direction: column; gap: var(--slot-gap); }

.tt2-time {
  height: var(--slot-h);
  display: grid;
  place-content: center;
  gap: 1px;
  border-radius: 12px;
  background: var(--surface-sunken);
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-3);
  line-height: 1.25;
}

.tt2-time b { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--text-2); }
.tt2-time span { font-family: var(--font-mono); font-size: 0.63rem; opacity: 0.6; }

.tt2-col {
  position: relative;
  border-radius: 14px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--surface-sunken) 0,
    var(--surface-sunken) var(--slot-h),
    transparent var(--slot-h),
    transparent calc(var(--slot-h) + var(--slot-gap))
  );
  background-repeat: repeat-y;
}

.tt2-course {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tt2-course:hover { transform: translateY(-2px); box-shadow: var(--shadow); z-index: 6; }
.tt2-course b { font-size: 0.82rem; font-weight: 600; line-height: 1.28; }
.tt2-course span { font-size: 0.68rem; opacity: 0.9; line-height: 1.32; }
.tt2-course.is-now { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: -4px; }
.tt2-course.is-done { filter: saturate(0.55) brightness(0.92); }

.tt2-course .conflict-tag {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
}

.tt2-col.is-today-col { background-color: var(--accent-soft); }

/* 周次选择器 */
.week-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.week-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.week-nav button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.week-nav button:hover:not(:disabled) { background: var(--surface-sunken); color: var(--text); }
.week-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

.week-label { min-width: 84px; text-align: center; font-size: 0.9rem; font-weight: 500; }
.week-dates { font-size: 0.82rem; color: var(--text-3); font-family: var(--font-mono); }

.week-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 14px; }
.week-chips::-webkit-scrollbar { height: 6px; }

.week-chip {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 0.76rem;
  color: var(--text-3);
  background: var(--surface-sunken);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}

.week-chip:hover { color: var(--text); }
.week-chip.is-active { color: #fff; background: linear-gradient(160deg, var(--accent), var(--accent-deep)); }
.week-chip.is-now:not(.is-active) { border-color: var(--accent); color: var(--accent-text); }
.week-chip.is-empty:not(.is-active) { opacity: 0.45; }

/* 课程条目 */
.course-item {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.course-item .ci-bar { width: 5px; border-radius: 99px; flex: 0 0 auto; }
.course-item h3 { font-size: 1rem; }
.course-item .ci-meta { margin-top: 5px; font-size: 0.8rem; color: var(--text-3); }
.course-item .ci-slots { margin-top: 10px; display: grid; gap: 5px; }
.course-item .ci-slot { font-size: 0.82rem; color: var(--text-2); display: flex; gap: 8px; align-items: baseline; }
.course-item .ci-slot b { font-weight: 500; color: var(--text); min-width: 74px; }
.course-item .ci-slot em { font-style: normal; color: var(--text-3); font-size: 0.78rem; }

.tt-c1 { background: linear-gradient(150deg, #4da3ff, #0060df); }
.tt-c2 { background: linear-gradient(150deg, #8a86ff, #5e5ce6); }
.tt-c3 { background: linear-gradient(150deg, #ff6b8a, #e01e4f); }
.tt-c4 { background: linear-gradient(150deg, #ffc061, #e08600); }
.tt-c5 { background: linear-gradient(150deg, #6ee08a, #1fa845); }
.tt-c6 { background: linear-gradient(150deg, #6fd6e8, #1a8fa6); }

.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.day-tabs::-webkit-scrollbar { height: 6px; }

.schedule-mobile { display: none; }

.day-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.22s var(--ease);
}

.day-tab.is-active {
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  border-color: transparent;
}

.day-list { display: grid; gap: 12px; }

.day-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.day-card .dc-bar { width: 5px; border-radius: 99px; flex: 0 0 auto; }
.day-card .dc-time { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); }
.day-card h3 { font-size: 1rem; margin-top: 5px; }
.day-card p { font-size: 0.84rem; color: var(--text-3); margin-top: 4px; }

.day-empty {
  padding: 28px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  border-radius: var(--radius);
  background: var(--surface-sunken);
}

/* ==========================================================================
   29. 海报卡片（影视 / 游戏）
   ========================================================================== */
.poster-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
}

.poster {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.poster:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.poster-img {
  position: relative;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.92);
}

.poster-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-img.has-image { background: var(--surface-sunken); }

.poster-img.has-image .poster-badge,
.poster-img.has-image .poster-score {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.poster-score {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.poster-body { padding: 14px 15px 16px; }
.poster-body h3 { font-size: 0.95rem; line-height: 1.35; }
.poster-body .sub { margin-top: 3px; font-size: 0.76rem; color: var(--text-3); font-family: var(--font-mono); }
.poster-body .note { margin-top: 10px; font-size: 0.84rem; color: var(--text-3); line-height: 1.6; }
.poster-body .tag-row { margin-top: 11px; }

.stars { position: relative; display: inline-block; font-size: 0.76rem; letter-spacing: 1.5px; color: var(--text-4); }
.stars::before { content: "★★★★★"; }
.stars::after {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--rating, 0) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--orange);
}

.feature {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
}

.feature-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.feature h2 { font-size: 1.35rem; }
.feature .feature-meta { margin-top: 8px; font-size: 0.82rem; color: var(--text-3); font-family: var(--font-mono); }
.feature p { margin-top: 12px; color: var(--text-2); font-size: 0.92rem; line-height: 1.7; }

/* ==========================================================================
   30. 移动端「更多」面板
   ========================================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  padding: 12px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  border-radius: 30px 30px 0 0;
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, 0.45);
  transform: translateY(112%);
  transition: transform 0.4s var(--ease);
}

.sheet.is-open { transform: none; }

.sheet-handle {
  width: 40px;
  height: 5px;
  border-radius: 99px;
  background: var(--border-strong);
  margin: 0 auto 18px;
}

.sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.sheet-item {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 16px 8px;
  border-radius: 20px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.sheet-item:hover { transform: translateY(-3px); background: var(--surface-strong); }
.sheet-item.is-active { color: var(--accent-text); border-color: var(--accent); }

.si-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
}

.si-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   31. 新增组件的响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav a, .nav-more-btn { padding: 7px 11px; font-size: 0.84rem; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .dock { display: flex; }
  .feature { grid-template-columns: 118px 1fr; gap: 18px; }
  .feature-poster { font-size: 2.2rem; }
  .schedule-desktop { display: none; }
  .schedule-mobile { display: block; }
}

@media (max-width: 720px) {
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .poster-body { padding: 12px; }
  .poster-body h3 { font-size: 0.88rem; }
  .poster-img { font-size: 2rem; }
  .feature { grid-template-columns: 96px 1fr; gap: 14px; }
  .feature h2 { font-size: 1.1rem; }
  .feature p { font-size: 0.86rem; }
  .tt { min-width: 860px; }
  .sheet-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 简洁动效模式 */
html[data-motion="calm"] .orb,
html[data-motion="calm"] .avatar,
html[data-motion="calm"] .widget-bars span { animation: none !important; }
html[data-motion="calm"] .card::after,
html[data-motion="calm"] .note-item::after { display: none; }
html[data-motion="calm"] a.card:hover .card-icon { transform: none; }

/* ==========================================================================
   32. 通用工具类
   ========================================================================== */
.is-hidden { display: none !important; }

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

.anim-in { animation: fadeUp 0.55s var(--ease) backwards; }

html[data-motion="calm"] .anim-in { animation: none; }

.note-bullets { display: grid; gap: 10px; }
.note-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}
.note-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   33. 相册（真实照片）
   ========================================================================== */
.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.photo-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.photo-card:hover img { transform: scale(1.05); }

.photo-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 13px;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 55%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.photo-card:hover .photo-cap { opacity: 1; transform: none; }

.photo-cap b { display: block; font-size: 0.9rem; font-weight: 600; }
.photo-cap span { display: block; font-size: 0.76rem; opacity: 0.85; margin-top: 3px; }

@media (hover: none) {
  .photo-card .photo-cap { opacity: 1; transform: none; }
}

.lightbox-media.has-image {
  aspect-ratio: auto;
  background: #0b0b0d;
  display: block;
  font-size: 0;
}

.lightbox-media.has-image img {
  width: 100%;
  height: auto;
  max-height: 68dvh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .photo-grid { grid-template-columns: 1fr; gap: 12px; }
  /* 小屏没有悬停，说明文字直接显示 */
  .photo-card .photo-cap { opacity: 1; transform: none; }
}

/* ==========================================================================
   34. 液态玻璃主题（iOS Liquid Glass 风格）
   --------------------------------------------------------------------------
   三个关键点：
   1. 背景要有柔和的色彩，玻璃才有东西可以「透」
   2. 面板用半透明填充 + 高斯模糊 + 高饱和
   3. 上沿一道亮边（specular highlight），这是液态玻璃最明显的特征
   ========================================================================== */
html[data-style="glass"] {
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius: 24px;
  --radius-sm: 18px;
  --radius-xs: 12px;

  --glass-fill: rgba(255, 255, 255, 0.58);
  --glass-fill-solid: rgba(255, 255, 255, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(30px) saturate(170%);
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0) 72%);
  --glass-rim:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
  --glass-shadow:
    0 2px 6px rgba(16, 16, 24, 0.05),
    0 22px 48px -26px rgba(16, 16, 24, 0.34),
    var(--glass-rim);
  --glass-shadow-lg:
    0 4px 12px rgba(16, 16, 24, 0.07),
    0 34px 70px -30px rgba(16, 16, 24, 0.45),
    var(--glass-rim);

  --header-bg: rgba(255, 255, 255, 0.4);
  --dock-bg: rgba(255, 255, 255, 0.52);

  /* 玻璃是半透明的，底色会被背景色场染上一点颜色，
     次要文字相应加深一档，保证在任何主题色下都能看清 */
  --text-2: #4d4d55;
  --text-3: #55555e;
  --text-4: #6a6a72;
}

html[data-theme="dark"][data-style="glass"] {
  --glass-fill: rgba(48, 48, 58, 0.58);
  --glass-fill-solid: rgba(56, 56, 66, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 44%, rgba(255, 255, 255, 0) 72%);
  --glass-rim:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.24),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --glass-shadow:
    0 2px 8px rgba(0, 0, 0, 0.32),
    0 24px 52px -28px rgba(0, 0, 0, 0.8),
    var(--glass-rim);
  --glass-shadow-lg:
    0 4px 14px rgba(0, 0, 0, 0.4),
    0 36px 76px -32px rgba(0, 0, 0, 0.9),
    var(--glass-rim);

  --header-bg: rgba(10, 10, 14, 0.42);
  --dock-bg: rgba(32, 32, 40, 0.55);

  --text-2: #bcbcc6;
  --text-3: #a4a4ae;
  --text-4: #8f8f99;
}

/* ---------- 背景：让玻璃有东西可以折射 ---------- */
html[data-style="glass"] body {
  background-image: var(--bg-veil);
  background-image:
    radial-gradient(48% 42% at 14% 10%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 70%),
    radial-gradient(42% 38% at 86% 6%, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent 72%),
    radial-gradient(52% 46% at 68% 96%, color-mix(in srgb, var(--pink) 20%, transparent), transparent 74%);
  background-size: 175% 175%, 165% 165%, 185% 185%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: glassFields 34s ease-in-out infinite alternate;
}

html[data-theme="dark"][data-style="glass"] body {
  background-image:
    radial-gradient(48% 42% at 14% 10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    radial-gradient(42% 38% at 86% 6%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 72%),
    radial-gradient(52% 46% at 68% 96%, color-mix(in srgb, var(--pink) 16%, transparent), transparent 74%);
}

@keyframes glassFields {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%; }
  100% { background-position: 28% 18%, 72% 24%, 42% 78%; }
}

html[data-style="glass"][data-motion="calm"] body { animation: none; }

/* ---------- 玻璃面板 ---------- */
html[data-style="glass"] .card,
html[data-style="glass"] .widget,
html[data-style="glass"] .note-item,
html[data-style="glass"] .poster,
html[data-style="glass"] .day-card,
html[data-style="glass"] .course-item,
html[data-style="glass"] .contact-row,
html[data-style="glass"] .hero-cover,
html[data-style="glass"] .popover,
html[data-style="glass"] .main-nav,
html[data-style="glass"] .dock,
html[data-style="glass"] .week-nav,
html[data-style="glass"] .sheet,
html[data-style="glass"] .lightbox-inner,
html[data-style="glass"] .btn-ghost,
html[data-style="glass"] .filter-btn,
html[data-style="glass"] .segmented {
  background-color: var(--glass-fill);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

a.card:hover,
html[data-style="glass"] .card.is-interactive:hover,
html[data-style="glass"] .note-item:hover,
html[data-style="glass"] .poster:hover,
html[data-style="glass"] .photo-card:hover,
html[data-style="glass"] a.card:hover,
html[data-style="glass"] .course-item:hover {
  box-shadow: var(--glass-shadow-lg);
}

html[data-style="glass"] .site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

html[data-style="glass"] .sheet { background-color: var(--glass-fill-solid); }
html[data-style="glass"] .lightbox-inner { background-color: var(--glass-fill-solid); }
html[data-style="glass"] .icon-btn,
html[data-style="glass"] .social-row a,
html[data-style="glass"] .sheet-item,
html[data-style="glass"] .tt2-day,
html[data-style="glass"] .tt2-time,
html[data-style="glass"] .day-tab,
html[data-style="glass"] .week-chip,
html[data-style="glass"] .chip {
  background-color: var(--glass-fill);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

html[data-style="glass"] .card-icon,
html[data-style="glass"] .ci-icon,
html[data-style="glass"] .si-icon {
  box-shadow: var(--glass-shadow);
}

/* 玻璃上的描边改为亮边，而不是深色分割线 */
html[data-style="glass"] .card,
html[data-style="glass"] .widget { border-width: 1px; }

html[data-style="glass"] .tt2-col {
  background-color: color-mix(in srgb, var(--glass-fill) 60%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

html[data-style="glass"] .tt2-course {
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* 主按钮也加一道高光，和玻璃面板呼应 */
html[data-style="glass"] .btn-primary {
  box-shadow: 0 10px 26px -12px var(--accent-shadow),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45);
}

html[data-style="glass"] .palette-popover {
  background-color: var(--glass-fill-solid);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
}

/* ==========================================================================
   35. Steam 游戏库时长榜
   ========================================================================== */
.steam-list { display: grid; gap: 2px; margin-top: 8px; }

.steam-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.steam-row:last-child { border-bottom: none; padding-bottom: 0; }

.steam-rank {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-4);
  text-align: right;
  padding-top: 2px;
}

.steam-row.is-top .steam-rank { color: var(--accent-text); font-weight: 600; }

.steam-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.steam-name { font-size: 0.92rem; color: var(--text); }
.steam-hours { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); white-space: nowrap; }

.steam-bar {
  margin-top: 6px;
  height: 5px;
  border-radius: 99px;
  background: var(--surface-sunken);
  overflow: hidden;
}

.steam-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.9s var(--ease);
}

.steam-recent { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

html[data-style="glass"] .steam-bar { background: color-mix(in srgb, var(--text-4) 20%, transparent); }
