/* ============================================
   DAILYMOVE — Global Styles
   Design: Dark glassmorphism, vibrant accents
   ============================================ */

/* ---- FONTS & RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:        hsl(228, 30%, 6%);
  --clr-bg2:       hsl(228, 28%, 9%);
  --clr-surface:   hsl(228, 25%, 12%);
  --clr-glass:     hsla(228, 30%, 18%, 0.55);
  --clr-border:    hsla(228, 40%, 60%, 0.15);
  --clr-text:      hsl(220, 20%, 88%);
  --clr-muted:     hsl(220, 15%, 55%);
  --clr-gold:      hsl(42,  90%, 62%);
  --clr-teal:      hsl(174, 70%, 52%);
  --clr-purple:    hsl(268, 75%, 70%);
  --clr-pink:      hsl(330, 75%, 68%);
  --clr-green:     hsl(142, 60%, 55%);
  --clr-blue:      hsl(210, 80%, 62%);

  --grad-hero:     linear-gradient(135deg, hsl(268,60%,15%) 0%, hsl(228,40%,8%) 40%, hsl(174,40%,10%) 100%);
  --grad-gold:     linear-gradient(135deg, hsl(42,90%,62%), hsl(30,90%,55%));
  --grad-teal:     linear-gradient(135deg, hsl(174,70%,52%), hsl(200,75%,50%));
  --grad-purple:   linear-gradient(135deg, hsl(268,75%,70%), hsl(300,70%,62%));

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  --shadow-card: 0 8px 40px hsla(228,50%,5%,0.6), 0 2px 8px hsla(228,50%,5%,0.3);
  --shadow-glow-gold: 0 0 24px hsla(42,90%,62%,0.25);
  --shadow-glow-teal: 0 0 24px hsla(174,70%,52%,0.25);

  --font-sans: 'Inter', 'Noto Sans SC', sans-serif;
  --font-zh:   'Noto Sans SC', 'Inter', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
  --clr-bg:        hsl(220, 30%, 97%);
  --clr-bg2:       hsl(220, 25%, 93%);
  --clr-surface:   hsl(220, 30%, 99%);
  --clr-glass:     hsla(220, 30%, 98%, 0.75);
  --clr-border:    hsla(220, 30%, 50%, 0.18);
  --clr-text:      hsl(228, 30%, 14%);
  --clr-muted:     hsl(220, 15%, 48%);
  --clr-gold:      hsl(38,  88%, 46%);
  --clr-teal:      hsl(174, 65%, 38%);
  --clr-purple:    hsl(268, 65%, 52%);
  --clr-pink:      hsl(330, 70%, 52%);
  --clr-green:     hsl(142, 55%, 38%);
  --clr-blue:      hsl(210, 75%, 46%);

  --grad-hero:     linear-gradient(135deg, hsl(268,50%,90%) 0%, hsl(220,40%,95%) 50%, hsl(174,40%,90%) 100%);
  --shadow-card:   0 4px 24px hsla(220,30%,40%,0.12), 0 1px 4px hsla(220,30%,40%,0.08);
  --shadow-glow-gold: 0 0 20px hsla(38,88%,46%,0.2);
  --shadow-glow-teal: 0 0 20px hsla(174,65%,38%,0.2);
}

/* ---- LIGHT MODE: component overrides for hardcoded dark colors ---- */
[data-theme="light"] .nav,
[data-theme="light"] .nav.scrolled {
  background: hsla(220, 30%, 98%, 0.88);
  border-bottom-color: hsla(220, 30%, 60%, 0.15);
}

[data-theme="light"] .nav__logo,
[data-theme="light"] .nav__link { color: hsl(228, 30%, 20%); }

[data-theme="light"] .mobile-menu {
  background: hsl(220, 30%, 97%);
  border-color: hsla(220,30%,50%,0.15);
}

/* Calendar dots */
[data-theme="light"] .cal-dot {
  background: hsl(220, 20%, 88%);
  border-color: hsla(220, 20%, 60%, 0.2);
  color: hsl(220, 15%, 50%);
}

[data-theme="light"] .cal-dot--active {
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-purple));
  color: white;
}

/* Exercise cards */
[data-theme="light"] .ex-card {
  background: hsl(220, 30%, 100%);
  border-color: hsla(220, 20%, 60%, 0.18);
}

[data-theme="light"] .ex-card__ratings {
  background: hsl(220, 20%, 94%);
  border-color: hsla(220,20%,60%,0.2);
}

[data-theme="light"] .ex-card__tips {
  background: hsl(220, 20%, 94%);
  border-color: hsla(220,20%,60%,0.2);
}

[data-theme="light"] .ex-card__tips h4 { color: var(--clr-teal); }
[data-theme="light"] .ex-card__tips li { color: hsl(228, 25%, 25%); }

[data-theme="light"] .ex-card__search-tip {
  background: hsl(220, 20%, 94%);
  border-color: hsla(220,20%,60%,0.2);
  color: hsl(228, 20%, 40%);
}

[data-theme="light"] .ex-card__name-cn { color: hsl(220, 15%, 50%); }

/* Checklist items */
[data-theme="light"] .checklist-item {
  background: hsl(220, 25%, 97%);
  border-color: hsla(220, 20%, 60%, 0.2);
}

[data-theme="light"] .checklist-item:hover {
  background: hsl(220, 25%, 95%);
  border-color: hsla(268, 50%, 55%, 0.3);
}

[data-theme="light"] .checklist-item__box {
  border-color: hsla(220, 20%, 55%, 0.4);
}

/* Mode buttons */
[data-theme="light"] .mode-btn {
  background: hsl(220, 25%, 98%);
  border-color: hsla(220, 20%, 60%, 0.25);
}

/* Knowledge & ability cards with hardcoded dark bg */
[data-theme="light"] .knowledge-card {
  background: hsl(220, 30%, 100%);
  border-color: hsla(220, 20%, 60%, 0.18);
}

[data-theme="light"] .ability-item {
  background: hsl(220, 25%, 98%);
  border-color: hsla(220, 20%, 60%, 0.18);
}

[data-theme="light"] .ability-item__feel {
  background: hsl(220, 20%, 94%);
  border-color: hsla(220,20%,60%,0.2);
  color: hsl(228, 20%, 40%);
}

/* Mode cards in the modes section */
[data-theme="light"] .mode-card {
  background: hsl(220, 30%, 100%);
  border-color: hsla(220, 20%, 60%, 0.2);
}

[data-theme="light"] .mode-card--green:hover { box-shadow: 0 12px 40px hsla(220,30%,40%,0.12), 0 0 20px hsla(142,55%,38%,0.15); }
[data-theme="light"] .mode-card--blue:hover  { box-shadow: 0 12px 40px hsla(220,30%,40%,0.12), 0 0 20px hsla(210,75%,46%,0.15); }
[data-theme="light"] .mode-card--purple:hover{ box-shadow: 0 12px 40px hsla(220,30%,40%,0.12), 0 0 20px hsla(268,65%,52%,0.15); }

[data-theme="light"] .mode-card__exercises li {
  background: hsl(220, 20%, 94%);
  border-color: hsla(220, 20%, 60%, 0.2);
  color: hsl(228, 25%, 20%);
}

[data-theme="light"] .mode-card__exercises li strong { color: hsl(228, 30%, 18%); }

[data-theme="light"] .mode-card__emphasis {
  background: hsla(174, 65%, 38%, 0.07);
  border-left-color: var(--clr-teal);
  color: hsl(174, 55%, 28%);
}

[data-theme="light"] .mode-card__mantra {
  background: hsl(220, 20%, 96%);
  border-color: hsla(220, 20%, 60%, 0.2);
  color: hsl(228, 25%, 25%);
}

[data-theme="light"] .mode-card__exercises li { color: hsl(228, 20%, 30%); }

/* Phase items in full mode card */
[data-theme="light"] .phase {
  background: hsl(220, 20%, 95%);
  border-color: hsla(220,20%,60%,0.2);
}

[data-theme="light"] .phase__items { color: hsl(228, 15%, 45%); }

/* Tags that use hardcoded colors */
[data-theme="light"] .tag--core    { background: hsla(174, 65%, 38%, 0.12); color: hsl(174, 65%, 30%); }
[data-theme="light"] .tag--lower   { background: hsla(268, 65%, 52%, 0.12); color: hsl(268, 65%, 40%); }
[data-theme="light"] .tag--upper   { background: hsla(210, 75%, 46%, 0.12); color: hsl(210, 75%, 36%); }
[data-theme="light"] .tag--mobility{ background: hsla(38,  88%, 46%, 0.12); color: hsl(38,  88%, 34%); }
[data-theme="light"] .tag--cardio  { background: hsla(330, 70%, 52%, 0.12); color: hsl(330, 70%, 40%); }
[data-theme="light"] .tag--control { background: hsla(142, 55%, 38%, 0.12); color: hsl(142, 55%, 28%); }
[data-theme="light"] .tag--gold    { background: hsla(38,  88%, 46%, 0.12); color: hsl(38,  88%, 34%); }
[data-theme="light"] .tag--silver  { background: hsla(220, 15%, 55%, 0.12); color: hsl(220, 15%, 40%); }

/* Priority badge */
[data-theme="light"] .priority--star {
  background: hsla(38, 88%, 46%, 0.12);
  color: hsl(38, 88%, 34%);
  border-color: hsla(38, 88%, 46%, 0.25);
}

/* Rating stars on light */
[data-theme="light"] .rating-row span { color: hsl(228, 20%, 35%); }

/* Philosophy cards */
[data-theme="light"] .philosophy__card {
  background: hsl(220, 30%, 100%);
  border-color: hsla(220, 20%, 60%, 0.18);
}

/* Milestone cards */
[data-theme="light"] .milestone {
  background: hsl(220, 30%, 100%);
  border-color: hsla(220, 20%, 60%, 0.18);
}

/* Filter tabs */
[data-theme="light"] .filter-tab {
  background: hsl(220, 25%, 94%);
  border-color: hsla(220, 20%, 60%, 0.25);
  color: hsl(228, 20%, 45%);
}
[data-theme="light"] .filter-tab.active {
  background: var(--clr-purple);
  color: white;
  border-color: transparent;
}

/* Today bg gradient */
[data-theme="light"] .today-bg {
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, hsla(268,60%,80%,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, hsla(174,50%,70%,0.15) 0%, transparent 60%),
    var(--clr-bg);
}

/* Section backgrounds */
[data-theme="light"] .section { background: transparent; }
[data-theme="light"] .abilities { background: hsl(220, 25%, 95%); }
[data-theme="light"] .history-section { background: transparent; }

/* Final CTA */
[data-theme="light"] .final-cta { background: hsl(220, 25%, 95%); }

/* Footer */
[data-theme="light"] .footer { background: hsl(220, 25%, 93%); }


html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: hsla(268,60%,60%,0.5); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-purple); }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: hsla(228, 30%, 6%, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--clr-border);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__logo-icon {
  font-size: 1.4rem;
  -webkit-text-fill-color: initial;
  color: var(--clr-purple);
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--clr-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-purple);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--clr-text);
}

.nav__link:hover::after {
  width: 100%;
}

/* THEME TOGGLE */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out-expo);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: hsla(268,60%,70%,0.4);
  transform: rotate(20deg) scale(1.08);
}

.theme-toggle__icon::before {
  content: '🌙';
  font-size: 1rem;
  display: block;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

[data-theme="light"] .theme-toggle__icon::before {
  content: '☀️';
}

/* NAV RIGHT GROUP */
.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LANGUAGE TOGGLE */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-muted);
  transition: all 0.25s var(--ease-out-expo);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

.lang-toggle:hover {
  border-color: hsla(268,60%,70%,0.4);
  color: var(--clr-text);
}

.lang-toggle__zh,
.lang-toggle__en {
  transition: color 0.25s ease, font-weight 0.25s ease;
  padding: 0 2px;
}

.lang-toggle__divider {
  color: hsla(220,15%,45%,1);
  margin: 0 2px;
}

/* Active language is brighter */
[data-lang="zh"] .lang-toggle__zh,
[data-lang="en"] .lang-toggle__en {
  color: var(--clr-purple);
  font-weight: 800;
}

/* Transition overlay for language switch */
.lang-switching * {
  transition: opacity 0.15s ease !important;
  opacity: 0.6;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: hsla(228, 30%, 6%, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-menu__link {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--clr-muted);
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: var(--clr-text);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding: 120px 24px 80px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-teal);
  background: hsla(174,70%,52%,0.1);
  border: 1px solid hsla(174,70%,52%,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) both;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s 0.1s var(--ease-out-expo) both;
}

.hero__title-highlight {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--clr-muted);
  margin-bottom: 40px;
  animation: fadeSlideUp 0.8s 0.2s var(--ease-out-expo) both;
  line-height: 1.8;
}

.hero__cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeSlideUp 0.8s 0.3s var(--ease-out-expo) both;
}

.hero__manifesto {
  display: inline-block;
  padding: 20px 32px;
  background: var(--clr-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--clr-muted);
  font-style: italic;
  line-height: 1.8;
  animation: fadeSlideUp 0.8s 0.4s var(--ease-out-expo) both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-muted);
  font-size: 0.75rem;
  animation: fadeSlideUp 0.8s 0.6s var(--ease-out-expo) both;
}

.hero__scroll-hint span:first-child {
  display: block;
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--clr-muted));
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-text { letter-spacing: 0.1em; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  border: none;
}

.btn--primary {
  background: var(--grad-purple);
  color: #fff;
  box-shadow: 0 0 24px hsla(268,70%,60%,0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px hsla(268,70%,60%,0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: var(--clr-glass);
  border-color: hsla(228,40%,60%,0.35);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ============================================================
   SECTION HEADERS
============================================================ */
.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1rem;
  color: var(--clr-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   TAGS
============================================================ */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.tag--gold   { background: hsla(42,90%,62%,0.15); color: var(--clr-gold); border: 1px solid hsla(42,90%,62%,0.25); }
.tag--silver { background: hsla(220,20%,60%,0.12); color: var(--clr-muted); border: 1px solid hsla(220,20%,60%,0.2); }
.tag--core    { background: hsla(42,90%,62%,0.1); color: var(--clr-gold); border: 1px solid hsla(42,90%,62%,0.2); }
.tag--lower   { background: hsla(160,60%,50%,0.1); color: var(--clr-teal); border: 1px solid hsla(160,60%,50%,0.2); }
.tag--upper   { background: hsla(268,70%,65%,0.1); color: var(--clr-purple); border: 1px solid hsla(268,70%,65%,0.2); }
.tag--mobility{ background: hsla(200,75%,60%,0.1); color: var(--clr-blue); border: 1px solid hsla(200,75%,60%,0.2); }
.tag--control { background: hsla(330,70%,65%,0.1); color: var(--clr-pink); border: 1px solid hsla(330,70%,65%,0.2); }
.tag--cardio  { background: hsla(142,60%,55%,0.1); color: var(--clr-green); border: 1px solid hsla(142,60%,55%,0.2); }

/* ============================================================
   PHILOSOPHY SECTION
============================================================ */
.philosophy { background: var(--clr-bg2); }

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.philosophy__card {
  background: var(--clr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

.philosophy__card:hover {
  transform: translateY(-4px);
  border-color: hsla(268,60%,70%,0.3);
  box-shadow: 0 12px 48px hsla(228,50%,5%,0.5);
}

.philosophy__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.philosophy__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-text);
}

.philosophy__card p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

/* ============================================================
   ABILITIES SECTION
============================================================ */
.abilities__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ability-item {
  background: var(--clr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ability-item:hover {
  transform: translateX(4px);
  border-color: hsla(268,60%,70%,0.3);
}

.ability-item__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 50px;
}

.ability-item__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
}

.ability-item__icon {
  font-size: 2rem;
}

.ability-item__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ability-item__content p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.ability-item__feel {
  font-size: 0.82rem;
  color: var(--clr-teal);
  background: hsla(174,70%,52%,0.08);
  border: 1px solid hsla(174,70%,52%,0.15);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.ability-item__bar {
  width: 6px;
  height: 80px;
  background: hsla(228,40%,30%,0.5);
  border-radius: 100px;
  overflow: hidden;
}

.ability-item__bar-fill {
  width: 100%;
  height: var(--pct);
  background: var(--color);
  border-radius: 100px;
  transition: height 1s var(--ease-out-expo);
}

/* ============================================================
   EXERCISES SECTION
============================================================ */
.exercises { background: var(--clr-bg2); }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-tab {
  padding: 9px 22px;
  border-radius: 100px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  font-family: var(--font-sans);
}

.filter-tab:hover {
  color: var(--clr-text);
  border-color: hsla(268,60%,70%,0.3);
}

.filter-tab.active {
  background: var(--grad-purple);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px hsla(268,70%,60%,0.35);
}

.exercises__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ---- EXERCISE CARD ---- */
.ex-card {
  background: var(--clr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.ex-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-purple);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ex-card:hover {
  transform: translateY(-6px);
  border-color: hsla(268,60%,70%,0.35);
  box-shadow: 0 20px 60px hsla(228,50%,5%,0.7), var(--shadow-glow-teal);
}

.ex-card:hover::before {
  opacity: 1;
}

.ex-card.hidden {
  display: none;
}

.ex-card__priority {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.priority--star {
  background: hsla(42,90%,62%,0.15);
  color: var(--clr-gold);
  border: 1px solid hsla(42,90%,62%,0.3);
}

.ex-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 90px;
}

.ex-card__emoji {
  font-size: 2.4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px hsla(268,70%,60%,0.4));
}

.ex-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.ex-card__name-cn, .ex-card__name-ch {
  font-size: 0.82rem;
  color: var(--clr-muted);
}

.ex-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-card__desc {
  font-size: 0.88rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

.ex-card__ratings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  background: hsla(228,30%,8%,0.6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.rating-row span { color: var(--clr-muted); }
.rating-row .stars { color: var(--clr-gold); letter-spacing: 2px; }

.ex-card__tips {
  padding: 14px 16px;
  background: hsla(228,30%,8%,0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}

.ex-card__tips h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 10px;
}

.ex-card__tips ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ex-card__tips li {
  font-size: 0.82rem;
  color: var(--clr-muted);
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}

.ex-card__tips li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--clr-purple);
  font-weight: 700;
}

.ex-card__search-tip {
  font-size: 0.8rem;
  color: var(--clr-muted);
  padding: 10px 14px;
  background: hsla(228,30%,8%,0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}

.ex-card__search-tip code {
  color: var(--clr-gold);
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
}

.ex-card__video-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--grad-teal);
  color: hsl(228,30%,10%);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  margin-top: auto;
  box-shadow: 0 0 16px hsla(174,70%,52%,0.3);
}

.ex-card__video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px hsla(174,70%,52%,0.45);
}

.video-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: hsla(228,30%,10%,0.3);
  border-radius: 50%;
  font-size: 0.7rem;
}

/* ============================================================
   TODAY MODES
============================================================ */
.modes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.mode-card {
  background: var(--clr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.mode-card:hover {
  transform: translateY(-6px);
}

.mode-card--green { border-top: 3px solid var(--clr-green); }
.mode-card--green:hover { box-shadow: 0 20px 60px hsla(228,50%,5%,0.6), 0 0 30px hsla(142,60%,55%,0.2); }

.mode-card--blue  { border-top: 3px solid var(--clr-blue); }
.mode-card--blue:hover  { box-shadow: 0 20px 60px hsla(228,50%,5%,0.6), 0 0 30px hsla(210,80%,62%,0.2); }

.mode-card--purple{ border-top: 3px solid var(--clr-purple); }
.mode-card--purple:hover{ box-shadow: 0 20px 60px hsla(228,50%,5%,0.6), 0 0 30px hsla(268,70%,60%,0.2); }

.mode-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mode-card__badge {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px currentColor);
}

.mode-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.mode-card__time {
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-top: 4px;
}

.mode-card__desc {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

.mode-card__emphasis {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--clr-teal);
  padding: 10px 14px;
  background: hsla(174,70%,52%,0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--clr-teal);
  line-height: 1.6;
}

.mode-card__exercises {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-card__exercises li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: hsla(228,30%,8%,0.6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  transition: background 0.3s ease;
}

.mode-ex-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.mode-card__exercises li div {
  display: flex;
  flex-direction: column;
}

.mode-card__exercises li strong {
  font-size: 0.88rem;
  line-height: 1.3;
}

.mode-card__exercises li span {
  font-size: 0.78rem;
  color: var(--clr-muted);
}

.mode-card__phases {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phase {
  padding: 12px 16px;
  background: hsla(228,30%,8%,0.6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  transition: background 0.3s ease;
}

.phase__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-purple);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.phase__items {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.5;
}

.mode-card__mantra {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
  padding: 12px 16px;
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ============================================================
   MILESTONES
============================================================ */
.milestones { background: var(--clr-bg2); }

.milestones__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 24px;
  background: var(--clr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
}

.milestone:hover {
  transform: translateY(-4px);
  border-color: hsla(268,60%,70%,0.3);
}

.milestone__icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 0 12px hsla(268,70%,60%,0.5));
}

.milestone p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

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

/* ============================================================
   KNOWLEDGE
============================================================ */
.knowledge__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.knowledge-card {
  background: var(--clr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
}

.knowledge-card:hover {
  transform: translateY(-4px);
  border-color: hsla(42,90%,62%,0.3);
  box-shadow: 0 12px 40px hsla(228,50%,5%,0.5);
}

.knowledge-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.knowledge-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-gold);
}

.knowledge-card p {
  font-size: 0.88rem;
  color: var(--clr-muted);
  line-height: 1.8;
}

.knowledge-card strong {
  color: var(--clr-text);
  font-weight: 600;
}

/* ============================================================
   FINAL CTA
============================================================ */
.final-cta {
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, hsla(268,60%,25%,0.25) 0%, transparent 70%);
}

.final-cta__inner {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px;
}

.final-cta__inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.final-cta__inner > p {
  font-size: 1rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.final-cta__big {
  font-size: 1.05rem;
  color: var(--clr-text) !important;
  margin-bottom: 40px !important;
  line-height: 1.8 !important;
}

.final-cta__big strong {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--clr-border);
  text-align: center;
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 8px;
}

.footer__note {
  font-size: 0.78rem;
  color: hsla(220,15%,45%,1);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   KEYFRAME ANIMATIONS
============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsla(268,70%,60%,0.4); }
  50% { box-shadow: 0 0 0 8px hsla(268,70%,60%,0); }
}

/* ============================================================
   SCROLL-DRIVEN ANIMATIONS (Baseline: widely available soon)
============================================================ */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .reveal {
    animation: revealFade auto linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
    opacity: 0;
    transform: translateY(28px);
    transition: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .lang-toggle { font-size: 0.72rem; padding: 5px 10px; }

  .hero__title { font-size: 2.4rem; }
  .hero__cta-group { flex-direction: column; align-items: center; }

  .ability-item {
    grid-template-columns: auto 1fr;
  }
  .ability-item__bar { display: none; }

  .exercises__grid {
    grid-template-columns: 1fr;
  }

  .modes__grid {
    grid-template-columns: 1fr;
  }

  .milestones__grid {
    grid-template-columns: 1fr 1fr;
  }

  .knowledge__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .milestones__grid {
    grid-template-columns: 1fr;
  }

  .hero__manifesto {
    padding: 16px 20px;
    font-size: 0.84rem;
  }
}

/* =====================================================
   TODAY DASHBOARD
===================================================== */
.today-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--nav-h, 68px) + 40px);
  padding-bottom: 64px;
  overflow: hidden;
}

.today-bg {
  position: absolute;
  /* 视差最多位移 ~4px，多留一圈避免露边 */
  inset: -24px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, hsla(268,70%,40%,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, hsla(174,70%,35%,0.12) 0%, transparent 60%),
    var(--clr-bg);
  z-index: 0;
  will-change: transform;
}

/* bokeh 背景图。webp 11KB，jpg 作回退。 */
.today-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: image-set(url('hero_bg.webp') type('image/webp'),
                              url('hero_bg.jpg')  type('image/jpeg'));
  background-image: -webkit-image-set(url('hero_bg.webp') type('image/webp'),
                                      url('hero_bg.jpg')  type('image/jpeg'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.3;
}

/* 浅色主题下这张深色图会变成一块污渍，直接不显示 */
[data-theme="light"] .today-bg::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  .today-bg { will-change: auto; }
}

.today-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Header */
.today-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.today-date {
  font-size: 0.85rem;
  color: var(--clr-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.today-greeting {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--clr-text) 30%, var(--clr-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 过去 30 天徽章（原 streak badge） */
.recent-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 18px;
  flex-shrink: 0;
}

.recent-badge__ring {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--clr-teal);
}
.recent-badge__count {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-teal);
  line-height: 1;
}
.recent-badge__label {
  font-size: 0.68rem;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
  max-width: 13ch;
  line-height: 1.3;
}

/* Mode selector */
.mode-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease-out-expo);
  font-family: var(--font-sans);
}

.mode-btn:hover {
  transform: translateY(-2px);
  border-color: currentColor;
}

.mode-btn.active { transform: translateY(-2px); }

.mode-btn--green { --c: hsl(142,60%,55%); }
.mode-btn--blue  { --c: hsl(210,80%,62%); }
.mode-btn--purple{ --c: hsl(268,75%,70%); }

.mode-btn--green.active  { border-color: hsl(142,60%,55%); background: hsla(142,60%,55%,0.08); }
.mode-btn--blue.active   { border-color: hsl(210,80%,62%); background: hsla(210,80%,62%,0.08); }
.mode-btn--purple.active { border-color: hsl(268,75%,70%); background: hsla(268,75%,70%,0.08); }

.mode-btn__emoji { font-size: 1.4rem; flex-shrink: 0; }
.mode-btn__info { display: flex; flex-direction: column; gap: 2px; }
.mode-btn__title { font-size: 0.95rem; font-weight: 700; color: var(--clr-text); }
.mode-btn__meta  { font-size: 0.72rem; color: var(--clr-muted); }

/* Checklist panel */
.checklist-panel {
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 28px;
  min-height: 160px;
}

.checklist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  color: var(--clr-muted);
}

.checklist-empty__icon { font-size: 2rem; }
.checklist-empty p { font-size: 0.95rem; }

/* Progress bar */
.checklist-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.checklist-progress__track {
  flex: 1;
  height: 6px;
  background: hsla(228,30%,30%,0.4);
  border-radius: 100px;
  overflow: hidden;
}

.checklist-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-teal), var(--clr-purple));
  border-radius: 100px;
  transition: width 0.5s var(--ease-out-expo);
}

.checklist-progress__label {
  font-size: 0.8rem;
  color: var(--clr-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Checklist items */
.checklist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: hsla(228, 25%, 14%, 0.6);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.checklist-item:hover { border-color: hsla(228,40%,60%,0.3); transform: translateX(2px); }

.checklist-item.done {
  opacity: 0.55;
  border-color: hsla(142,60%,55%,0.3);
  background: hsla(142,60%,40%,0.06);
}

.checklist-item.done .checklist-item__name { text-decoration: line-through; }

/* Custom checkbox */
.checklist-item__box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.checklist-item.done .checklist-item__box {
  background: hsl(142,60%,45%);
  border-color: hsl(142,60%,45%);
  color: white;
}

.checklist-item__emoji { font-size: 1.2rem; flex-shrink: 0; }

.checklist-item__content { flex: 1; }
.checklist-item__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
}
.checklist-item__detail {
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-top: 2px;
}

/* Actions */
.checklist-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.complete-btn {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-purple));
  color: hsl(228, 30%, 8%);
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  box-shadow: 0 4px 20px hsla(268,70%,60%,0.3);
}

.complete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px hsla(268,70%,60%,0.4);
}

.reset-link {
  background: none;
  border: none;
  color: var(--clr-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  padding: 4px;
}

.reset-link:hover { color: var(--clr-text); }

/* Checklist → card link button */
.checklist-item__link {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
  font-family: var(--font-sans);
}

.checklist-item:hover .checklist-item__link {
  opacity: 1;
}

.checklist-item__link:hover {
  background: hsla(268,65%,60%,0.12);
  border-color: var(--clr-purple);
  color: var(--clr-purple);
  transform: translateY(-1px);
}

.checklist-item.done .checklist-item__link {
  opacity: 0.5;
}

/* Highlight pulse when scrolled-to */
@keyframes cardHighlight {
  0%   { box-shadow: var(--shadow-card), 0 0 0 0 hsla(268,70%,60%,0.5); }
  30%  { box-shadow: var(--shadow-card), 0 0 0 8px hsla(268,70%,60%,0.3); }
  100% { box-shadow: var(--shadow-card), 0 0 0 0 hsla(268,70%,60%,0); }
}

.ex-card--highlight {
  animation: cardHighlight 1.6s var(--ease-out-expo) forwards;
}

/* Done state */
.checklist-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px 0;
}

.done-circle {
  font-size: 3rem;
  animation: popIn 0.5s var(--ease-out-expo);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.checklist-done h2 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.done-sub { color: var(--clr-muted); font-size: 0.9rem; }
.done-mantra { color: var(--clr-text); font-style: italic; }

.done-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.done-log-btn {
  padding: 10px 22px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.done-log-btn:hover { border-color: var(--clr-purple); }

/* =====================================================
   HISTORY SECTION
===================================================== */
.history-section { padding-top: 80px; }

/* Calendar strip */
.calendar-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 20px;
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
}

.cal-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--clr-muted);
  background: hsla(228,25%,15%,0.8);
  border: 1px solid var(--clr-border);
  transition: all 0.2s;
  position: relative;
  cursor: default;
}

.cal-dot--active {
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-purple));
  border-color: transparent;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.cal-dot--today {
  box-shadow: 0 0 0 2px var(--clr-gold);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
}

.stat-card__num {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.78rem;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Log entries */
.log-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  transition: border-color 0.2s;
}

.log-entry:hover { border-color: hsla(228,40%,60%,0.25); }

.log-entry__icon { font-size: 1.5rem; flex-shrink: 0; }

.log-entry__info { flex: 1; }
.log-entry__date { font-size: 0.78rem; color: var(--clr-muted); margin-bottom: 2px; }
.log-entry__mode { font-size: 0.95rem; font-weight: 600; color: var(--clr-text); }
.log-entry__exercises { font-size: 0.75rem; color: var(--clr-muted); margin-top: 2px; }

.log-entry__badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
  flex-shrink: 0;
}

.log-entry__badge--minimal { background: hsla(142,60%,55%,0.15); color: hsl(142,60%,60%); }
.log-entry__badge--normal  { background: hsla(210,80%,62%,0.15); color: hsl(210,80%,70%); }
.log-entry__badge--full    { background: hsla(268,75%,70%,0.15); color: hsl(268,75%,75%); }

.log-empty {
  text-align: center;
  padding: 40px;
  color: var(--clr-muted);
  font-size: 0.9rem;
}

.clear-btn {
  background: none;
  border: 1px solid hsla(0,60%,55%,0.3);
  border-radius: 100px;
  color: hsla(0,60%,65%,0.7);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.clear-btn:hover { border-color: hsla(0,60%,55%,0.7); color: hsl(0,60%,65%); }

/* ---- Responsive today + history ---- */
@media (max-width: 640px) {
  .mode-selector { grid-template-columns: 1fr; }
  .mode-btn { padding: 14px 16px; }

  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 16px 12px; }
  .stat-card__num { font-size: 1.8rem; }

  .today-header { flex-direction: column; gap: 12px; }
  .recent-badge { align-self: flex-start; }

  .checklist-panel { padding: 20px 16px; }
  .checklist-actions { flex-direction: column; }
  .complete-btn { width: 100%; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .mode-selector { grid-template-columns: 1fr; }
}

/* ============================================================
   新增组件
   补记日期 · 感受记录 · 感受趋势 · 学习路径 · 备份 · 红旗 · Toast
============================================================ */

/* ---- 空态提示 ---- */
.checklist-empty__hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--clr-muted);
  max-width: 46ch;
  line-height: 1.6;
}
.checklist-empty__hint a { color: var(--clr-teal); text-decoration: underline; text-underline-offset: 3px; }

/* ---- 记给哪一天 ---- */
.logdate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.logdate-row__label {
  font-size: 0.78rem;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
}
.logdate-chip {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}
.logdate-chip:hover { border-color: hsla(174,70%,52%,0.45); color: var(--clr-text); }
.logdate-chip.active {
  background: hsla(174,70%,52%,0.12);
  border-color: hsla(174,70%,52%,0.5);
  color: var(--clr-teal);
  font-weight: 600;
}

/* ---- 清单条目：键盘可用 ---- */
.checklist-item:focus-visible,
.logdate-chip:focus-visible,
.feel-btn:focus-visible,
.learn-step__mark:focus-visible,
.data-btn:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 2px;
}
.checklist-item { cursor: pointer; }

/* ---- 感受记录 ---- */
.feel-picker {
  margin: 20px auto 4px;
  max-width: 460px;
  width: 100%;
}
.feel-picker__q {
  font-size: 0.9rem;
  color: var(--clr-text);
  margin-bottom: 10px;
  font-weight: 600;
}
.feel-picker__opts {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.feel-btn {
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}
.feel-btn:hover { transform: translateY(-1px); color: var(--clr-text); border-color: hsla(174,70%,52%,0.4); }
.feel-btn.active {
  background: hsla(174,70%,52%,0.15);
  border-color: hsla(174,70%,52%,0.6);
  color: var(--clr-teal);
  font-weight: 700;
}
.feel-picker__note {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--clr-muted);
  line-height: 1.6;
  opacity: 0.85;
}

/* ---- 感受趋势 ---- */
.feel-trend:not(:empty) {
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.feel-trend__title { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.feel-trend__sub { font-size: 0.74rem; color: var(--clr-muted); margin-bottom: 14px; }
.feel-trend__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.feel-trend__label {
  font-size: 0.82rem;
  color: var(--clr-muted);
  min-width: 9ch;
}
.feel-trend__dots { display: flex; gap: 6px; }
.feel-dot { font-size: 1.05rem; cursor: help; }

/* ---- 日志条目里的感受 ---- */
.log-entry__feel {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--clr-muted);
  font-weight: 400;
}

/* ---- 动作卡：搜索按钮变体 ---- */
.ex-card__video-btn--search {
  background: hsla(220, 20%, 60%, 0.08);
  border-color: var(--clr-border);
  color: var(--clr-muted);
}
.ex-card__video-btn--search:hover { color: var(--clr-text); }
.ex-card__search-tip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--clr-teal);
}

/* ---- 学习路径 ---- */
.learn-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 28px;
}
.learn-progress__track {
  flex: 1;
  height: 6px;
  background: hsla(220,20%,60%,0.15);
  border-radius: 100px;
  overflow: hidden;
}
.learn-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-teal), var(--clr-purple));
  border-radius: 100px;
  transition: width 0.6s var(--ease-out-expo);
}
.learn-progress__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-muted);
  min-width: 4ch;
}

.learn-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.learn-step {
  display: flex;
  gap: 16px;
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease-out-expo), opacity 0.3s;
}
.learn-step:hover { border-color: hsla(174,70%,52%,0.3); }
.learn-step--done { border-color: hsla(142,60%,55%,0.35); }
.learn-step--done .learn-step__num {
  background: hsla(142,60%,55%,0.18);
  color: var(--clr-green);
  border-color: hsla(142,60%,55%,0.4);
}
.learn-step__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: hsla(220,20%,60%,0.08);
  color: var(--clr-muted);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.learn-step__body { flex: 1; min-width: 0; }
.learn-step__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.learn-step__cn { font-size: 0.82rem; font-weight: 400; color: var(--clr-muted); }
.learn-step__why {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--clr-muted);
  margin-bottom: 14px;
}
.learn-step__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.learn-step__video,
.learn-step__detail {
  font-size: 0.8rem;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 100px;
  transition: all 0.2s var(--ease-out-expo);
}
.learn-step__video {
  background: hsla(174,70%,52%,0.12);
  border: 1px solid hsla(174,70%,52%,0.3);
  color: var(--clr-teal);
}
.learn-step__video:hover { background: hsla(174,70%,52%,0.2); }
.learn-step__detail { color: var(--clr-muted); border: 1px solid var(--clr-border); }
.learn-step__detail:hover { color: var(--clr-text); }
.learn-step__mark {
  margin-left: auto;
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}
.learn-step__mark:hover { border-color: hsla(142,60%,55%,0.5); color: var(--clr-text); }
.learn-step__mark[aria-pressed="true"] {
  background: hsla(142,60%,55%,0.12);
  border-color: hsla(142,60%,55%,0.45);
  color: var(--clr-green);
  font-weight: 700;
}
.learn-note {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: 0.82rem;
  color: var(--clr-muted);
  line-height: 1.7;
  text-align: center;
  opacity: 0.85;
}

/* ---- 备份 ---- */
.data-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.data-btn {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}
.data-btn:hover { border-color: hsla(174,70%,52%,0.5); color: var(--clr-teal); }
.data-note {
  text-align: center;
  font-size: 0.74rem;
  color: var(--clr-muted);
  margin-top: 12px;
  opacity: 0.75;
  line-height: 1.6;
}

/* ---- 红旗（需要就医） ---- */
.red-flag {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: hsla(0, 65%, 55%, 0.08);
  border: 1px solid hsla(0, 65%, 55%, 0.3);
  border-left-width: 3px;
}
.red-flag strong {
  display: block;
  font-size: 0.85rem;
  color: hsl(0, 70%, 68%);
  margin-bottom: 6px;
}
.red-flag p { font-size: 0.82rem; line-height: 1.7; color: var(--clr-text); }
.red-flag b { color: hsl(0, 70%, 68%); font-weight: 700; }
[data-theme="light"] .red-flag strong,
[data-theme="light"] .red-flag b { color: hsl(0, 65%, 44%); }

/* ---- 导航当前区块高亮（取代内联 style） ---- */
.nav__link--active { color: var(--clr-text); }
.nav__link--active::after { width: 100%; }

/* ---- 英文模式下空的中文术语 span 不占位 ---- */
.knowledge-card h3 span:empty { display: none; }

/* ---- Toast ---- */
.dm-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-teal));
  color: hsl(228, 30%, 8%);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-zh);
  z-index: 9999;
  box-shadow: 0 8px 32px hsla(268,70%,60%,0.5);
  max-width: min(90vw, 460px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}
.dm-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .learn-step { flex-direction: column; gap: 12px; padding: 18px; }
  .learn-step__mark { margin-left: 0; }
  .learn-step__actions { gap: 8px; }
  .feel-trend__label { min-width: 100%; }
  .data-actions { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   演示模式横幅
   portfolio 链接进来时显示。必须一眼看出「这不是真实数据」。
============================================================ */
.demo-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: var(--clr-glass);
  border-top: 1px solid var(--clr-border);
  backdrop-filter: blur(16px);
  font-size: 0.8rem;
  color: var(--clr-muted);
}
.demo-bar__dot { color: var(--clr-teal); }
.demo-bar__text { line-height: 1.5; }
.demo-bar__exit {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  flex-shrink: 0;
}
.demo-bar__exit:hover { border-color: hsla(174,70%,52%,0.5); color: var(--clr-teal); }
.demo-bar__exit:focus-visible { outline: 2px solid var(--clr-teal); outline-offset: 2px; }

/* 给横幅让出位置，别盖住页脚 */
body.has-demo-bar { padding-bottom: 52px; }
body.has-demo-bar .dm-toast { bottom: 76px; }

@media (max-width: 640px) {
  .demo-bar { gap: 8px; padding: 9px 14px; font-size: 0.74rem; }
  body.has-demo-bar { padding-bottom: 68px; }
}
