/* ReadFlow · 激励体系（签到 / 打卡 / 阅历值） */

.home-incentive {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 144, 226, 0.14);
  box-shadow: 0 8px 28px rgba(74, 144, 226, 0.08);
}

.home-incentive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-incentive-row + .home-incentive-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(74, 144, 226, 0.1);
}

.home-incentive-week {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(74, 144, 226, 0.1);
}

.home-incentive-week-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.home-incentive-row--checkin {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}

.home-incentive-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-incentive-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
}

.home-incentive-sub {
  font-size: 11px;
  color: #86868b;
  line-height: 1.45;
}

.home-incentive-sub strong {
  color: #2563eb;
  font-weight: 700;
}

.home-incentive-btn {
  flex-shrink: 0;
  min-width: 72px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 144, 226, 0.22);
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.home-incentive-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.home-incentive-btn--primary {
  background: #4a90e2;
  border-color: #4a90e2;
  color: #fff;
}

.home-incentive-btn:disabled,
.home-incentive-btn.is-done {
  opacity: 0.55;
  cursor: default;
  background: rgba(74, 144, 226, 0.08);
  border-color: rgba(74, 144, 226, 0.12);
  color: #5c6678;
}

.home-incentive-progress {
  margin-top: 10px;
}

.home-incentive-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #86868b;
  margin-bottom: 6px;
}

.home-incentive-progress-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
  overflow: hidden;
}

.home-incentive-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a90e2, #7eb8f0);
  transition: width 0.35s ease;
}

.home-incentive-btn.is-burst {
  animation: incentiveBtnBurst 0.45s ease;
}

@keyframes incentiveBtnBurst {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* 签到 · 翻转对勾 */
.home-incentive-flip-btn {
  flex-shrink: 0;
  width: 96px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  perspective: 640px;
  cursor: pointer;
}

.home-incentive-flip-btn:disabled {
  cursor: default;
}

.home-incentive-flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.52s cubic-bezier(0.34, 1.1, 0.48, 1);
}

.home-incentive-flip-btn.is-flipping .home-incentive-flip-inner,
.home-incentive-flip-btn.is-flipped .home-incentive-flip-inner {
  transform: rotateY(180deg);
}

.home-incentive-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.home-incentive-flip-front {
  background: #4a90e2;
  border: 1px solid #4a90e2;
  color: #fff;
}

.home-incentive-flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #ecfdf3, #d1fae5);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #15803d;
  flex-direction: row;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
}

.home-incentive-flip-back-label {
  flex-shrink: 0;
  font-weight: 700;
}

.home-incentive-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  margin: 0;
}

.home-incentive-flip-btn.is-flipped.is-done .home-incentive-flip-back {
  animation: incentiveCheckPop 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

@keyframes incentiveCheckPop {
  0% { transform: rotateY(180deg) scale(0.88); }
  60% { transform: rotateY(180deg) scale(1.04); }
  100% { transform: rotateY(180deg) scale(1); }
}

/* 首页 · 周一～周日胶囊 */
.home-week-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.home-week-cap {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 34px;
  aspect-ratio: 1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #86868b;
  background: rgba(74, 144, 226, 0.06);
  border: 1px solid rgba(74, 144, 226, 0.12);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-week-cap.is-sign-in-reveal {
  animation: weekCapSignIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-week-cap-xp-burst {
  position: absolute;
  top: -2px;
  right: -6px;
  z-index: 2;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(232, 163, 23, 0.35);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  color: #e8a317;
  white-space: nowrap;
  animation: xpStarBurst 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes weekCapSignIn {
  0% { transform: scale(0.82); opacity: 0.55; }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes xpStarBurst {
  0% { opacity: 0; transform: scale(0.5) translateY(6px); }
  22% { opacity: 1; transform: scale(1.12) translateY(0); }
  100% { opacity: 0; transform: scale(1) translateY(-16px); }
}

.home-week-cap.is-lit {
  color: #fff;
  background: linear-gradient(145deg, #4a90e2, #2563eb);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.28);
}

.home-week-cap.is-lit.is-sign-in-reveal {
  animation: weekCapSignIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-week-cap.is-today {
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.22);
}

.home-week-cap.is-lit.is-today {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 4px 14px rgba(74, 144, 226, 0.32);
}

.home-week-cap.is-future:not(.is-lit) {
  opacity: 0.42;
}

.today-task-stat--week {
  flex: 1;
  min-width: 0;
}

.today-task-stat--week .today-task-stat-label {
  margin-top: 0;
}

/* 首页 · 本周挑战 */
.home-weekly-challenge {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 144, 226, 0.14);
  box-shadow: 0 8px 28px rgba(74, 144, 226, 0.08);
}

.home-weekly-challenge.is-completed {
  border-color: rgba(34, 197, 94, 0.22);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.88));
}

.home-weekly-challenge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-weekly-challenge-kicker {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 4px;
}

.home-weekly-challenge-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.home-weekly-challenge-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #86868b;
}

.home-weekly-challenge-desc strong {
  color: #e8a317;
  font-weight: 800;
}

.home-weekly-challenge-ring {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(#4a90e2 calc(var(--pct) * 1%), rgba(74, 144, 226, 0.12) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.home-weekly-challenge-ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.home-weekly-challenge-ring span {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  color: #2563eb;
}

.home-weekly-challenge-books {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-challenge-book {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(74, 144, 226, 0.12);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.home-challenge-book:active {
  transform: scale(0.985);
}

.home-challenge-book.is-done {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(236, 253, 245, 0.72);
}

.home-challenge-book-cover {
  flex-shrink: 0;
  width: 44px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
}

.home-challenge-cover-img,
.home-challenge-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-challenge-book-body {
  flex: 1;
  min-width: 0;
}

.home-challenge-book-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-challenge-book-sub {
  font-size: 11px;
  color: #86868b;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-challenge-book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #86868b;
}

.home-challenge-book-go {
  color: #2563eb;
  font-weight: 700;
}

.home-challenge-book-done {
  color: #15803d;
  font-weight: 700;
}

.home-weekly-challenge-foot {
  margin: 10px 0 0;
  font-size: 11px;
  color: #15803d;
  text-align: center;
}

/* 摘录 · 顶栏（返回 + 单词/句子切换） */
.notes-topbar {
  gap: 10px;
}

.notes-topbar .notes-section-tabs {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.notes-topbar--root {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 0;
  min-height: 28px;
}

.notes-topbar-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.notes-topbar-left .top-back {
  flex-shrink: 0;
  margin-right: 0;
}

.notes-topbar--root .top-back {
  flex-shrink: 0;
  width: 44px;
  height: 28px;
}

.notes-topbar--root .notes-section-tabs {
  flex: 0 1 auto;
  justify-content: flex-start;
  margin: 0;
}

.notes-topbar--root .home-xp-pill {
  flex-shrink: 0;
}

.shelf-head-row {
  align-items: center;
  min-height: 28px;
  margin: 0 0 8px;
}

.shelf-head-row .shelf-head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.shelf-page-title {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: #1d1d1f;
}

#view-shelf .shelf-head-row .home-xp-pill {
  flex-shrink: 0;
}

#view-shelf .wb-tool-switch {
  margin: 0 0 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#view-shelf .wb-tool-btn {
  flex-direction: row;
  min-height: 36px;
  padding: 8px 6px;
}

#view-shelf .wb-tool-label {
  font-size: 12px;
}

.meet-page-head-row {
  align-items: center;
  margin-bottom: 8px;
}

.meet-page-head-main {
  flex: 1;
  min-width: 0;
}

#view-meet.meet-list-view .notes-topbar--root,
#view-meet.meet-role-view .notes-topbar--root {
  margin: 0 0 8px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

#view-meet .meet-page-head-main .notes-section-tabs {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 0;
}

#view-meet .notes-section-tab {
  font-size: 14px;
}

#view-meet .notes-section-tab.active {
  color: #4a90e2;
}

#view-meet .meet-page-head-row .home-xp-pill {
  flex-shrink: 0;
}

#view-meet.meet-ari-view .meet-ari-scroll,
#view-meet.meet-role-view > .meet-list-nav {
  margin-top: 5px;
}

#view-meet .meet-ari-scroll,
#view-meet .meet-list-nav,
#view-meet .meet-search-wrap,
#view-meet .meet-session-list,
#view-meet .meet-catalog-toggle,
#view-meet .meet-ari-pin,
#view-meet .meet-ari-book-row,
#view-meet .meet-ari-book-list,
#view-meet .meet-ari-section-label,
#view-meet .meet-ari-section-head,
#view-meet .meet-ari-books-scroll,
#view-meet .meet-ari-books-list,
#view-meet .meet-ari-books-sort {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.chat-header.app-page-head-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 4px;
  padding: 4px var(--page-x);
  margin: 0 calc(-1 * var(--page-x)) 8px;
}

.chat-header.app-page-head-row .sub-title {
  justify-self: center;
}

.chat-header-profile--below {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 10px;
  margin-top: -4px;
}

.chat-mode-switch-row {
  display: flex;
  justify-content: center;
  padding: 0 0 8px;
}

.wb-story-para {
  margin-bottom: 14px;
}

.wb-story-body-cn {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(74, 144, 226, 0.08);
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
}

.wb-story-translate-loading {
  padding: 10px 0 4px;
  font-size: 13px;
  color: #86868b;
  text-align: center;
}

.wb-story-pick-panel {
  position: relative;
  z-index: 3;
}

/* 摘录 · 句子展开（胶囊卡片，与顶栏 Tab / XP 同宽对齐） */
.notes-sentence-row {
  margin: 0 0 10px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(74, 144, 226, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.notes-sentence-row.is-expanded {
  border-color: rgba(74, 144, 226, 0.2);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.1);
}

.notes-sentence-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.notes-sentence-cover {
  width: 40px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

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

.notes-sentence-text {
  font-size: 14px;
  line-height: 1.55;
  color: #1a1c1e;
  margin-bottom: 4px;
}

.notes-sentence-meta {
  font-size: 12px;
  color: #86868b;
}

.notes-sentence-chevron {
  flex-shrink: 0;
  color: #86868b;
  font-size: 12px;
  margin-top: 4px;
}

.notes-sentence-expand {
  padding: 0 16px 14px 68px;
}

.notes-sentence-expand[hidden] {
  display: none !important;
}

.notes-sentence-cn {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(74, 144, 226, 0.06);
}

.notes-sentence-actions {
  display: flex;
  gap: 8px;
}

.notes-sentence-action {
  flex: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(74, 144, 226, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.notes-sentence-action--primary {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
}

.reader-sentence-mark--flash {
  animation: sentenceMarkFlash 1.6s ease-in-out 2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.45);
  border-radius: 4px;
}

@keyframes sentenceMarkFlash {
  0%, 100% { background: rgba(74, 144, 226, 0.18); }
  50% { background: rgba(255, 214, 102, 0.55); }
}

.notes-section-tabs {
  display: flex;
  gap: 0;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.notes-section-tab {
  flex: 0 1 auto;
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--tab-inactive);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease, font-weight 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.notes-section-sep {
  flex-shrink: 0;
  width: 1px;
  height: 14px;
  margin: 0 8px;
  background: var(--tab-inactive-sep);
  pointer-events: none;
}

.notes-section-tab.active {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #1d1d1f;
  font-weight: 700;
}

/* 摘录 / 单词本 · 顶栏、工具 Tab、AI 短文区统一左对齐（跟随 .view 的 page-x 内边距） */
#view-wordbook .notes-topbar--root {
  margin: 0 0 8px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

#view-wordbook .notes-topbar--root .notes-section-tabs {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 0;
}

#view-wordbook .wb-panel-body,
#view-wordbook .wb-tool-switch,
#view-wordbook > .section-title,
#view-wordbook .wb-story-wrap,
#view-wordbook .wb-story-wrap .ai-guide,
#view-wordbook .wb-story-toolbar,
#view-wordbook .wb-story-card,
#view-wordbook .wb-story-pick-panel,
#view-wordbook .word-item,
#view-wordbook .notes-sentence-row,
#view-wordbook .empty-state {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#view-wordbook .wb-tool-switch {
  margin-bottom: 12px;
}

#view-wordbook .wb-story-wrap {
  padding-bottom: 28px;
}

/* 摘录 · 面板自上而下入场（参考 AI 学习空间站 section-enter + stagger） */
@keyframes wbPanelShellIn {
  from { opacity: 0.92; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#view-wordbook .wb-panel-body.wb-panel-enter-pending {
  animation: wbPanelShellIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#view-wordbook .wb-panel-body .ip-reveal-line.ip-reveal--shown {
  animation: ipLineIn 0.28s cubic-bezier(0.25, 1, 0.4, 1) both;
  animation-delay: calc(0.06s + var(--ip-i, 0) * 0.04s);
}

#view-wordbook .wb-panel-body .ip-reveal-block.ip-reveal--shown {
  animation-delay: calc(0.08s + var(--ip-i, 0) * 0.045s);
}

#view-wordbook .wb-panel-body .wb-panel-list.ip-reveal-stagger.ip-reveal--shown .ip-reveal-item {
  animation-delay: calc(0.1s + var(--ip-i, 0) * 0.04s);
}

#view-wordbook .wb-panel-body .wb-story-pick-chips.ip-reveal-stagger.ip-reveal--shown .ip-reveal-item {
  animation-delay: calc(0.12s + var(--ip-i, 0) * 0.035s);
}

@media (prefers-reduced-motion: reduce) {
  #view-wordbook .wb-panel-body.wb-panel-enter-pending {
    animation: none !important;
  }
}

.report-books {
  margin-bottom: 16px;
}

.report-books h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}

.report-books-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-book-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(74, 144, 226, 0.12);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
}

.report-book-cover {
  width: 44px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.report-book-body {
  flex: 1;
  min-width: 0;
}

.report-book-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.report-book-sub {
  font-size: 11px;
  color: #86868b;
  margin-bottom: 6px;
}

.report-book-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
  overflow: hidden;
}

.report-book-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a90e2, #7eb8f0);
}

@media (prefers-reduced-motion: reduce) {
  .home-incentive-flip-inner,
  .home-week-cap.is-lit,
  .home-incentive-flip-btn.is-flipped.is-done .home-incentive-flip-back {
    animation: none !important;
    transition-duration: 0.01ms;
  }
}

/* 我的 · 阅历值 Hero */
.profile-xp-hero {
  margin: 0 var(--page-x) 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 144, 226, 0.14);
  box-shadow: 0 8px 28px rgba(74, 144, 226, 0.08);
}

.profile-xp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-xp-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
}

.profile-xp-total {
  font-size: 12px;
  color: #86868b;
  white-space: nowrap;
}

.profile-xp-total strong {
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
}

.profile-xp-desc {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #5c6678;
}

.profile-xp-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
  overflow: hidden;
  margin-bottom: 10px;
}

.profile-xp-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a90e2, #7eb8f0);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-xp-rules summary {
  font-size: 12px;
  color: #86868b;
  cursor: pointer;
  list-style: none;
}

.profile-xp-rules summary::-webkit-details-marker {
  display: none;
}

.profile-xp-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 11px;
}

.profile-xp-table th,
.profile-xp-table td {
  padding: 6px 4px;
  text-align: left;
  border-bottom: 1px solid rgba(74, 144, 226, 0.08);
}

.profile-xp-table th {
  color: #86868b;
  font-weight: 600;
}

.profile-xp-table td:nth-child(2) {
  color: #2563eb;
  font-weight: 700;
  white-space: nowrap;
}

/* 我的 · 打卡月历 */
.profile-checkin-block {
  margin: 0 var(--page-x) 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 144, 226, 0.14);
  box-shadow: 0 6px 24px rgba(74, 144, 226, 0.06);
}

.profile-checkin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-checkin-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
}

.profile-checkin-toggle {
  border: none;
  background: transparent;
  color: #4a90e2;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.profile-checkin-summary {
  margin-top: 8px;
  font-size: 12px;
  color: #5c6678;
  line-height: 1.6;
}

.profile-checkin-summary strong {
  color: #2563eb;
}

.profile-checkin-cal {
  margin-top: 12px;
}

.profile-checkin-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.profile-checkin-cal-nav button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(74, 144, 226, 0.16);
  background: #fff;
  color: #4a90e2;
  cursor: pointer;
}

.profile-checkin-cal-month {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
}

.profile-checkin-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.profile-checkin-weekdays span {
  text-align: center;
  font-size: 10px;
  color: #86868b;
}

.profile-checkin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.profile-checkin-cell {
  aspect-ratio: 1;
  min-height: 32px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #86868b;
  background: rgba(74, 144, 226, 0.04);
  border: 1px solid transparent;
}

.profile-checkin-cell.is-empty {
  background: transparent;
}

.profile-checkin-cell.is-today {
  border-color: rgba(74, 144, 226, 0.35);
}

.profile-checkin-cell.is-signed::after,
.profile-checkin-cell.is-checked::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.profile-checkin-cell.is-signed::after {
  background: #f59e0b;
}

.profile-checkin-cell.is-checked::before {
  background: #4a90e2;
}

.profile-checkin-cell.is-checked {
  background: rgba(74, 144, 226, 0.12);
  color: #2563eb;
  font-weight: 700;
}

.profile-checkin-legend {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 10px;
  color: #86868b;
}

.profile-checkin-legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.profile-checkin-legend i.sign { background: #f59e0b; }
.profile-checkin-legend i.check { background: #4a90e2; }

.profile-xp-hero.is-level-up .profile-xp-bar i {
  animation: xpBarFlash 0.65s ease;
}

@keyframes xpBarFlash {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.25); }
}

/* ── 首页 · 今日热文（与今日任务卡片同宽同风格） ── */
.home-hot-daily {
  margin: 12px 0 14px;
  padding: 0;
}

.home-hot-daily-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark, #2563eb);
}

.home-hot-daily-sub {
  margin: 0 0 8px;
  font-size: 12px;
  color: #86868b;
  line-height: 1.45;
}

.home-hot-daily-pool {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  color: #4a90e2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.1);
}

.home-hot-daily-card {
  position: relative;
  overflow: hidden;
}

.home-hot-daily-card.is-hot-entering {
  animation: hotDailyEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hot-daily-card.is-hot-exiting-next {
  animation: hotDailyExitNext 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes hotDailyEnter {
  from { opacity: 0; transform: translateY(52px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hotDailyExitNext {
  to { opacity: 0; transform: translateY(-36px) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hot-daily-card.is-hot-entering,
  .home-hot-daily-card.is-hot-exiting-next {
    animation: none;
  }
}

.home-hot-daily-card--loading {
  padding: 28px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.home-hot-daily-card.today-task {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}

.home-hot-daily-main {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.home-hot-daily-open {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.home-hot-daily-cover {
  flex: 0 0 80px;
  width: 80px;
  align-self: stretch;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.18);
}

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

.home-hot-daily-main .today-task-book-meta.home-hot-daily-meta {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.home-hot-daily-meta .today-task-book-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hot-daily-meta .today-task-book-blurb {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hot-daily-cover-fallback {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, #7eb0ea 0%, #ffd4dc 100%);
}

.home-hot-daily-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
  padding-top: 2px;
}

.home-hot-daily-foot-open {
  flex: 0 1 auto;
  max-width: calc(100% - 72px);
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.home-hot-daily-tags.today-task-meta-row {
  margin-top: 0;
}

.home-hot-daily-refresh {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #4a90e2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-hot-daily-refresh:active {
  transform: scale(0.96);
}

.home-hot-daily-retry {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #4a90e2;
  cursor: pointer;
}
