/* ============================================
   阿迟 · 个人工作台  ·  暖金色调
   ============================================ */

:root {
  --bg-cream: #f7efe1;
  --bg-cream-2: #efe5d0;
  --bg-paper: #fbf5e7;
  --gold-1: #b8965a;
  --gold-2: #d6b97a;
  --gold-3: #8c6d3f;
  --gold-deep: #6e4f25;
  --gold-soft: #e8d5a8;
  --ink: #3a2a14;
  --ink-soft: #6a553a;
  --ink-muted: #a18c6d;
  --line: rgba(110, 79, 37, 0.15);
  --line-strong: rgba(110, 79, 37, 0.3);
  --shadow-soft: 0 10px 30px -10px rgba(110, 79, 37, 0.18);
  --shadow-strong: 0 20px 50px -15px rgba(110, 79, 37, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --transition: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top right, rgba(214, 185, 122, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(184, 150, 90, 0.12), transparent 50%),
    var(--bg-cream);
}

/* ============================================
   顶栏（移动端）
   ============================================ */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gold-soft), var(--bg-paper));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.topbar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
}
.brand-emoji { font-size: 18px; }
.topbar-right { display: flex; align-items: center; }
.online-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.18);
}

/* ===== 云端同步状态条（v26 跨设备同步）===== */
.sync-badge {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
  text-align: center;
  font-size: 12px;
  padding: 4px 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: default;
  user-select: none;
}
.sync-idle    { background: #f5f0e6; color: #8b7a55; }
.sync-pending { background: #fff7d6; color: #a07820; }
.sync-syncing { background: #e3f2fd; color: #1565c0; }
.sync-synced  { background: #e8f5e9; color: #2e7d32; }
.sync-error   { background: #ffebee; color: #c62828; }
.sync-badge.sync-synced::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #2e7d32;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: sync-pulse 2s ease-in-out infinite;
}
@keyframes sync-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ============================================
   整体布局
   ============================================ */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ============================================
   左侧导航
   ============================================ */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-cream-2) 100%);
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 20px -10px rgba(110, 79, 37, 0.1);
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 16px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.brand-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: var(--gold-deep);
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold-2));
  border-radius: 50%;
  box-shadow: inset 0 -3px 8px rgba(110, 79, 37, 0.2), 0 4px 10px -4px rgba(110, 79, 37, 0.3);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.brand-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-2);
  box-shadow: 0 4px 10px -4px rgba(110, 79, 37, 0.3);
  flex-shrink: 0;
}
.brand-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; font-family: "STKaiti", "KaiTi", "楷体", serif; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.nav-item:hover {
  background: rgba(214, 185, 122, 0.18);
  color: var(--ink);
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: white;
  box-shadow: 0 6px 16px -6px rgba(110, 79, 37, 0.5);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 24px;
  background: var(--gold-deep);
  border-radius: 0 4px 4px 0;
}
.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.nav-label { flex: 1; }

.sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.footer-quote {
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  line-height: 1.6;
  padding: 0 4px;
}

/* ============================================
   主区域
   ============================================ */
.main {
  padding: 32px 40px;
  min-width: 0;
}

.view { display: none; animation: fadeIn 360ms ease-out; }
.view.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.page-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  display: flex; align-items: center; gap: 12px;
}
.month-tag {
  font-size: 14px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: white;
  border-radius: 100px;
  font-family: "PingFang SC", sans-serif;
  font-weight: 500;
}
.month-tip {
  background: rgba(214, 185, 122, 0.18);
  border-left: 3px solid var(--gold-1);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* ============================================
   首页 Hero
   ============================================ */
.hero-card {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(214, 185, 122, 0.25), transparent 70%),
    linear-gradient(135deg, var(--bg-paper), var(--bg-cream-2));
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.hero-deco {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.4;
}
.hero-deco-l {
  top: -50px; left: -50px;
  background: var(--gold-soft);
}
.hero-deco-r {
  bottom: -80px; right: -50px;
  background: var(--gold-2);
}

.date-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.date-solar { flex: 1; min-width: 240px; }
.date-week {
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.date-big {
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  font-family: "Helvetica Neue", sans-serif;
  letter-spacing: -1px;
}
.date-time {
  font-size: 28px;
  font-weight: 300;
  color: var(--gold-3);
  margin-top: 8px;
  font-family: "Helvetica Neue", sans-serif;
  letter-spacing: 2px;
}
.date-lunar {
  text-align: right;
  background: rgba(255, 255, 255, 0.45);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.lunar-label {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.lunar-text {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.lunar-fest {
  font-size: 12px;
  color: var(--gold-deep);
  margin-top: 4px;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}

.quote-card {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold-1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote-mark {
  position: absolute;
  top: -8px; left: 12px;
  font-size: 40px;
  color: var(--gold-1);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  line-height: 1;
}
.quote-text {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.7;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  margin-left: 24px;
  /* ⇆ 胶囊已挪到文字上方，不再需要让位 */
  padding-right: 0;
}
.quote-source {
  font-size: 12px;
  color: var(--gold-deep);
  margin-top: 8px;
  text-align: right;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}

/* ===== 每日一句 · 换一句按钮 + 淡入淡出 ===== */
.quote-refresh-btn {
  align-self: flex-end;
  background: rgba(184, 150, 90, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--gold-deep);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  letter-spacing: 1px;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.quote-refresh-btn:hover {
  background: var(--gold-1);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px -4px rgba(110, 79, 37, 0.3);
}
.quote-refresh-btn:active {
  transform: scale(0.96);
}
@keyframes quoteFadeIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes quoteFadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
.quote-fade-out {
  animation: quoteFadeOut 220ms ease forwards;
  pointer-events: none;
}
.quote-fade-in {
  animation: quoteFadeIn 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Section
   ============================================ */
.section {
  margin-bottom: 28px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  display: flex; align-items: center; gap: 8px;
}
.section-icon { font-size: 18px; }
.section-actions { display: flex; gap: 8px; }

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tri-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 16px;
}
.card-grid {
  display: grid;
  gap: 16px;
}
.card-grid.two { grid-template-columns: 1fr 1fr; }

/* 含 embed-placeholder 的卡片：默认独占整行（飞书 view 需要横宽） */
.section-grid > .card:has(.embed-placeholder),
.tri-grid > .card:has(.embed-placeholder),
.card-grid > .card:has(.embed-placeholder) {
  grid-column: 1 / -1;
}

/* ============================================
   Card
   ============================================ */
.card {
  background: var(--bg-paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-header-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.section-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.card-desc {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.highlight-card {
  background: linear-gradient(135deg, #fff7e3, #f7e8c4);
}
.accent-card {
  background: linear-gradient(135deg, #f9efd9, #ecd9a4);
}

textarea.auto-save {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
  line-height: 1.7;
}
textarea.auto-save:focus {
  border-color: var(--gold-1);
  background: white;
  box-shadow: 0 0 0 3px rgba(214, 185, 122, 0.2);
}

.plan-textarea-wrap textarea {
  min-height: 280px;
}

.save-hint {
  font-size: 11px;
  color: var(--gold-deep);
  margin-top: 8px;
  opacity: 0.7;
}

/* ============================================
   按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  user-select: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: white;
  box-shadow: 0 4px 12px -4px rgba(110, 79, 37, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(110, 79, 37, 0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-accent {
  background: linear-gradient(135deg, #5b6f8a, #3d4f6a);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #6b7f9a, #4d5f7a);
  box-shadow: 0 8px 20px -8px rgba(60, 79, 106, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(214, 185, 122, 0.18);
  color: var(--ink);
}
.btn-large {
  padding: 12px 24px;
  font-size: 14px;
  margin-top: 12px;
  width: 100%;
}

/* ============================================
   飞书嵌入占位
   ============================================ */
.embed-card, .embed-card-inner {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  padding: 16px;
  min-height: 240px;
}
.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--ink-muted);
  gap: 8px;
  cursor: pointer;
  transition: color var(--transition);
  position: relative;
}
.embed-placeholder:hover { color: var(--gold-deep); }
.placeholder-icon { font-size: 36px; opacity: 0.7; }
.placeholder-text { font-size: 13px; }
.placeholder-hint { display: block; margin-top: 6px; font-size: 11px; opacity: 0.6; line-height: 1.6; }

/* 走浮窗的占位（不内嵌 iframe）：紧凑模式 */
.embed-placeholder.modal-only {
  min-height: 80px;
  padding: 12px;
  background: rgba(184, 150, 90, 0.06);
  border-radius: var(--radius-sm);
}
.embed-placeholder.modal-only .placeholder-icon { font-size: 20px; }
.embed-placeholder.modal-only .placeholder-text { font-size: 12px; }

/* 加载后的内嵌 iframe */
.embed-placeholder.loaded {
  align-items: stretch;
  justify-content: flex-start;
  cursor: default;
  min-height: 540px;
}
.embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--gold-soft), var(--bg-paper));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: -1px;
}
.embed-bar-title {
  font-size: 13px;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.embed-bar-actions {
  display: flex;
  gap: 4px;
}
.embed-bar-actions .icon-btn {
  width: 28px; height: 28px;
  font-size: 14px;
}
.embed-frame {
  width: 100%;
  height: 820px;
  min-height: 700px;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   云端迷你页 iframe（内嵌 feishu-media-mini.pages.dev）
   ============================================ */
.cloud-mini-frame {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 16px;
}
.cloud-mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--bg-cream-2));
  border-bottom: 1px solid var(--line);
}
.cloud-mini-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.5px;
}
.cloud-mini-actions {
  display: flex;
  gap: 4px;
}
.cloud-mini-actions .icon-btn {
  width: 28px; height: 28px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  transition: var(--transition);
}
.cloud-mini-actions .icon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}
.cloud-mini-iframe {
  width: 100%;
  height: 820px;
  min-height: 700px;
  border: 0;
  background: #fff;
  display: block;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.local-fallback {
  /* 默认显示，云端 iframe 加载时隐藏 */
}

/* ============================================
   打卡状态
   ============================================ */
.checkin-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  background: linear-gradient(135deg, #fafafa, #f1ebe0);
  border: 2px dashed var(--gold-1, #b8965a);
  border-radius: var(--radius-md, 12px);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-soft, #6e4f25);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.checkin-toggle:hover {
  background: linear-gradient(135deg, #fff7e8, #f7e9c8);
  transform: translateY(-1px);
}
.checkin-toggle:active { transform: translateY(0); }
.checkin-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold-1, #b8965a);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.checkin-toggle.is-done {
  background: linear-gradient(135deg, var(--gold-1, #b8965a), #9c7e44);
  border-color: var(--gold-1, #b8965a);
  color: #fff;
  border-style: solid;
}
.checkin-toggle.is-done .checkin-box {
  background: #fff;
  color: var(--gold-1, #b8965a);
  border-color: #fff;
}
.checkin-toggle.is-done .checkin-box::before {
  content: '✓';
  font-weight: 700;
}
.checkin-toggle.is-done .checkin-label { color: #fff; font-weight: 600; }
.checkin-label { flex: 1; text-align: left; }

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.checkin-status {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.checkin-status.done {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-2));
  color: white;
  font-weight: 600;
}

/* ============================================
   飞书提醒
   ============================================ */
.reminder-list {
  max-height: 360px;
  overflow-y: auto;
}
.reminder-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
}
.reminder-tip {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 12px;
  border-radius: 8px;
}
.reminder-tip code {
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10.5px;
}
.reminder-loading {
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  animation: pulse 1.5s infinite;
}
.reminder-error {
  padding: 16px;
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.6;
}
.reminder-item {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  border-left: 3px solid var(--gold-1);
  transition: background 0.2s;
}
.reminder-item:hover {
  background: rgba(255, 255, 255, 0.85);
}
.reminder-text {
  color: var(--ink-main);
  line-height: 1.5;
  word-break: break-word;
}
.reminder-meta {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
}
.reminder-err-tag {
  display: inline-block;
  background: #dc2626;
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}
.reminder-footer {
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted);
  border-top: 1px dashed rgba(0,0,0,0.1);
  margin-top: 6px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   汉服按钮
   ============================================ */
.hanfu-tip-card {
  background: linear-gradient(135deg, #fff7e3, #f7e8c4);
  margin-bottom: 20px;
}
.hanfu-tip {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.hanfu-tip strong { color: var(--gold-deep); font-weight: 600; }

.hanfu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.hanfu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-soft);
  font-family: inherit;
}
.hanfu-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold-1);
}
.hanfu-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-cream-2);
}
.hanfu-btn span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}

/* ============================================
   设置页（更换链接）
   ============================================ */
.settings-group {
  margin-bottom: 24px;
}
.settings-group h3 {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-weight: 600;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.settings-row > span {
  flex-shrink: 0;
  width: 110px;
  font-size: 13px;
  color: var(--ink-soft);
}
.settings-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: all var(--transition);
}
.settings-row input:focus {
  border-color: var(--gold-1);
  background: white;
  box-shadow: 0 0 0 3px rgba(214, 185, 122, 0.18);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.month-block {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.month-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--gold-deep);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.month-block label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.month-block label > span {
  width: 36px;
  font-size: 11px;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.month-block input {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: all var(--transition);
}
.month-block input:focus {
  border-color: var(--gold-1);
  box-shadow: 0 0 0 2px rgba(214, 185, 122, 0.18);
}

.settings-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ============================================
   飞书 Modal
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.open { display: block; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(58, 42, 20, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 200ms ease;
}
.modal-panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 980px;
  height: 88vh;
  background: var(--bg-paper);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  animation: modalIn 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-paper), var(--bg-cream-2));
}
.modal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.modal-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.icon-btn:hover {
  background: var(--gold-soft);
  color: var(--ink);
}
.modal-body {
  flex: 1;
  background: white;
  overflow: hidden;
}
.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  box-shadow: 0 10px 30px -8px rgba(110, 79, 37, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   滚动条
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(184, 150, 90, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(184, 150, 90, 0.7); }

/* ============================================
   响应式：平板
   ============================================ */
@media (max-width: 1100px) {
  .section-grid { grid-template-columns: repeat(2, 1fr); }
  .tri-grid { grid-template-columns: 1fr; }
  .month-grid { grid-template-columns: repeat(2, 1fr); }
  .hanfu-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   响应式：移动端
   ============================================ */
@media (max-width: 768px) {
  .topbar { display: flex; }
  .layout { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100vh;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 55;
  }
  .sidebar-backdrop.open { display: block; }

  .main { padding: 20px 16px; }
  .hero-card { padding: 24px 20px; }
  .date-big { font-size: 36px; }
  .date-time { font-size: 22px; }
  .date-lunar { text-align: left; width: 100%; }

  .section-grid { grid-template-columns: 1fr; }
  .card-grid.two { grid-template-columns: 1fr; }
  .hanfu-grid { grid-template-columns: repeat(2, 1fr); }
  .month-grid { grid-template-columns: 1fr; }
  .settings-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .settings-row > span { width: auto; }

  .modal-panel { width: 96%; height: 92vh; }

  /* 手机端：日历 iframe 完整缩放显示 + 上下滑动 */
  .embed-frame {
    height: 70vh;
    min-height: 520px;
  }
  .embed-bar-title { font-size: 12px; }

  /* 手机端：云端迷你页 iframe 同等高度 */
  .cloud-mini-iframe {
    height: 75vh;
    min-height: 600px;
  }
  .cloud-mini-bar { padding: 6px 10px; }
  .cloud-mini-title { font-size: 12px; }
  .card-header-actions { gap: 6px; }
  .card-header-actions .btn { font-size: 12px; padding: 6px 10px; }

  /* 自媒体板块 - 移动端（概览三列保持横向三列，卡片单列） */
  .media-stats { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .stat-num { font-size: 18px; }
  .stat-cell { padding: 8px 2px; }
  .media-entry { padding: 18px 16px; }
  .entry-icon { font-size: 32px; }
  .topic-track-grid, .remix-track-grid { grid-template-columns: 1fr; gap: 12px; }
  .trend-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .month-tabs { flex-wrap: wrap; }
}

/* =====================================================
   自媒体板块样式
===================================================== */

/* 按钮 loading 态 */
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 0.7;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-secondary.is-loading::after,
.btn-ghost.is-loading::after,
.btn-accent.is-loading::after {
  border-color: rgba(184, 150, 90, 0.3);
  border-top-color: var(--gold-1, #b8965a);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 概览页：标题行（🎆 烟花 + 标题 + 状态 pill） */
.media-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.media-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink, #3a2a14);
}
.media-hero-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 200, 80, 0.45));
  animation: firework-pulse 2.6s ease-in-out infinite;
}
@keyframes firework-pulse {
  0%, 100% { transform: scale(1)    rotate(0deg);  filter: drop-shadow(0 0 4px rgba(255, 200, 80, 0.35)); }
  50%      { transform: scale(1.12) rotate(8deg);  filter: drop-shadow(0 0 10px rgba(255, 200, 80, 0.7)); }
}
.media-cloud-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(184, 150, 90, 0.08);
  border: 1px solid var(--line, rgba(110, 79, 37, 0.18));
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft, #6e4f25);
}
.media-cloud-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #aaa;
  transition: background 0.3s ease;
}
.media-cloud-dot.is-loading { background: #d0b070; animation: dot-pulse 1s infinite; }
.media-cloud-dot.is-on      { background: #5cb85c; box-shadow: 0 0 6px rgba(92, 184, 92, 0.6); animation: dot-pulse 2.4s infinite; }
.media-cloud-dot.is-warn    { background: #e6a23c; }
.media-cloud-dot.is-off     { background: #c75a5a; }
@keyframes dot-pulse {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.4; }
}

/* 概览页：统计 — 横向三列（label 上 / num 下，居中） */
.media-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(184, 150, 90, 0.08), rgba(214, 185, 122, 0.04));
  border-radius: 12px;
}
.stat-cell {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-right: 1px solid rgba(110, 79, 37, 0.08);
  border-bottom: none;
}
.stat-cell:last-child { border-right: none; }
.stat-label {
  font-size: 12px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.7;
  margin-bottom: 4px;
}
.stat-num {
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-1, #b8965a);
  font-family: 'KaiTi', '楷体', serif;
}

/* 概览页：3 个入口卡片 */
.media-entry-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.media-entry {
  background: var(--card-bg, #fffaf0);
  border: 1px solid rgba(184, 150, 90, 0.2);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: inherit;
}
.media-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(110, 79, 37, 0.12);
  border-color: var(--gold-1, #b8965a);
}
.media-entry:active { transform: translateY(-1px); }
.entry-icon { font-size: 40px; margin-bottom: 12px; }
.entry-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink, #3a2a14);
  margin-bottom: 8px;
  font-family: 'KaiTi', '楷体', serif;
}
.entry-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-light, #6e4f25);
  opacity: 0.75;
  margin-bottom: 12px;
  min-height: 42px;
}
.entry-meta {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(184, 150, 90, 0.1);
  color: var(--gold-1, #b8965a);
  border-radius: 12px;
  display: inline-block;
}

/* 选题灵感 / 爆款二创：单列纵向堆叠（不分栏） */
.topic-track-grid, .remix-track-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.topic-track, .remix-track { display: flex; flex-direction: column; }

.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(110, 79, 37, 0.1);
}
.track-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #3a2a14);
  display: flex;
  align-items: center;
  gap: 8px;
}
.track-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.track-dot-hanfu { background: linear-gradient(135deg, #b8965a, #d6b97a); }
.track-dot-beauty { background: linear-gradient(135deg, #c47a8c, #e6a8b8); }
.track-meta {
  font-size: 12px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.65;
}

/* 更新时间行 */
.topic-update-row, .remix-update-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(184, 150, 90, 0.05);
  border: 1px solid rgba(184, 150, 90, 0.12);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}
.topic-update-label, .remix-update-label {
  color: var(--ink-light, #6e4f25);
  opacity: 0.7;
}
.topic-update-time, .remix-update-time {
  color: var(--gold-1, #b8965a);
  font-weight: 600;
}
.topic-update-source {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(184, 150, 90, 0.1);
  border-radius: 8px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.7;
}
.remix-update-row { gap: 14px; }
.remix-update-row > .remix-update-time { flex: 0 0 auto; }
.remix-update-row > .btn { margin-left: auto; }

/* 选题列表 */
.topic-list, .remix-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}
.topic-item, .remix-item {
  background: rgba(255, 250, 240, 0.6);
  border: 1px solid rgba(184, 150, 90, 0.15);
  border-radius: 12px;
  padding: 14px;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.topic-item:hover, .remix-item:hover {
  background: rgba(255, 250, 240, 0.95);
  border-color: rgba(184, 150, 90, 0.35);
  transform: translateX(2px);
}
.topic-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.5;
  font-size: 13px;
  border: 1px dashed rgba(184, 150, 90, 0.2);
  border-radius: 12px;
}

.topic-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.topic-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #3a2a14);
  line-height: 1.5;
  flex: 1;
}
.topic-source {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(184, 150, 90, 0.1);
  color: var(--gold-1, #b8965a);
  border-radius: 6px;
  white-space: nowrap;
}
.topic-source.douyin { background: rgba(0, 0, 0, 0.7); color: #fff; }
.topic-source.xiaohongshu { background: rgba(255, 36, 66, 0.1); color: #ff2442; }
.topic-source.bilibili { background: rgba(0, 161, 214, 0.1); color: #00a1d6; }

.topic-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.6;
}
.topic-meta span::before { content: '· '; opacity: 0.5; }
.topic-meta span:first-child::before { content: ''; }

.topic-analysis {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(214, 185, 122, 0.08);
  border-left: 2px solid var(--gold-2, #d6b97a);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-light, #6e4f25);
  line-height: 1.6;
}
.topic-analysis::before {
  content: '💡 ';
  font-size: 11px;
}

.topic-angle {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gold-1, #b8965a);
  font-weight: 500;
}
.topic-angle::before { content: '↪ 借势角度：'; opacity: 0.8; }

.topic-link {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.5;
  text-decoration: none;
  display: inline-block;
}
.topic-link:hover { opacity: 0.9; text-decoration: underline; }

/* 爆款二创 - 卡片带勾选 */
.remix-item { position: relative; padding-left: 42px; }
.remix-check {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold-1, #b8965a);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
  background: #fff;
}
.remix-check:hover { background: rgba(184, 150, 90, 0.08); }
.remix-check.checked {
  background: linear-gradient(135deg, #b8965a, #d6b97a);
  border-color: var(--gold-1, #b8965a);
}
.remix-check.checked::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.remix-check.checked ~ .remix-content .remix-title { text-decoration: line-through; opacity: 0.6; }
.remix-check.checked ~ .remix-content { opacity: 0.65; }
.remix-content { transition: opacity 200ms; }

.remix-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #3a2a14);
  line-height: 1.5;
  margin-bottom: 6px;
}
.remix-script {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(214, 185, 122, 0.06);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink, #3a2a14);
}
.remix-script-title {
  font-size: 11px;
  color: var(--gold-1, #b8965a);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.remix-script-content { white-space: pre-wrap; }

.remix-stats {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.65;
}
.remix-stats span::before { content: '· '; opacity: 0.5; }
.remix-stats span:first-child::before { content: ''; }

/* 标题 + 拍摄时长一行 */
.remix-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.remix-head .remix-title { flex: 1 1 auto; min-width: 0; }
.remix-time {
  font-size: 11px;
  color: var(--accent, #b8965a);
  background: rgba(184, 150, 90, 0.08);
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 脚本每行单独一条（更易读） */
.remix-script-content { white-space: normal; }
.remix-line {
  padding: 3px 0;
  border-bottom: 1px dashed rgba(110, 79, 37, 0.08);
  line-height: 1.7;
}
.remix-line:last-child { border-bottom: none; }

/* 原视频参考 */
.remix-ref {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(184, 150, 90, 0.06);
  border-radius: 10px;
  border-left: 3px solid var(--accent, #b8965a);
}
.remix-ref-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #b8965a);
  margin-bottom: 6px;
}
.remix-ref-link {
  font-size: 13px !important;
  color: var(--accent, #b8965a) !important;
  text-decoration: none !important;
  font-weight: 500;
  word-break: break-all;
}
.remix-ref-link:hover {
  color: #6e4f25 !important;
  text-decoration: underline !important;
}
.remix-ref-text {
  font-size: 12px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.75;
}

/* 月份切换 tabs */
.month-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}
.month-tab {
  padding: 6px 12px;
  background: rgba(255, 250, 240, 0.5);
  border: 1px solid rgba(184, 150, 90, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-light, #6e4f25);
  cursor: pointer;
  transition: all 200ms;
}
.month-tab:hover { background: rgba(255, 250, 240, 0.9); }
.month-tab.active {
  background: linear-gradient(135deg, #b8965a, #d6b97a);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

/* 流行趋势 - 6 卡片 */
.trend-season-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(184, 150, 90, 0.12), rgba(214, 185, 122, 0.08));
  border: 1px solid rgba(184, 150, 90, 0.2);
  border-radius: 16px;
  margin-bottom: 16px;
  font-family: 'KaiTi', '楷体', serif;
}
.season-icon { font-size: 36px; }
.season-text {
  font-size: 18px;
  color: var(--ink, #3a2a14);
  font-weight: 600;
}
.season-text::after {
  content: ' · 当前主流趋势';
  font-size: 13px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.7;
  font-weight: 400;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trend-card {
  background: var(--card-bg, #fffaf0);
  border: 1px solid rgba(184, 150, 90, 0.15);
  border-radius: 14px;
  padding: 18px;
  transition: all 280ms;
  cursor: default;
}
.trend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110, 79, 37, 0.1);
  border-color: var(--gold-1, #b8965a);
}
.trend-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(110, 79, 37, 0.12);
}
.trend-card-icon { font-size: 22px; }
.trend-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #3a2a14);
  font-family: 'KaiTi', '楷体', serif;
}
.trend-card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trend-card-item {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink, #3a2a14);
  padding: 4px 0;
  display: flex;
  gap: 6px;
}
.trend-card-item::before {
  content: '◆';
  color: var(--gold-1, #b8965a);
  font-size: 8px;
  flex-shrink: 0;
  margin-top: 5px;
}
.trend-card-loading, .trend-card-empty {
  text-align: center;
  padding: 24px 8px;
  color: var(--ink-light, #6e4f25);
  opacity: 0.5;
  font-size: 12px;
}

/* 数据加载中脉冲 */
@keyframes pulseGold {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.loading-pulse { animation: pulseGold 1.4s ease-in-out infinite; }

/* 滚动条美化（轨道列表） */
.topic-list::-webkit-scrollbar, .remix-list::-webkit-scrollbar { width: 6px; }
.topic-list::-webkit-scrollbar-track, .remix-list::-webkit-scrollbar-track { background: transparent; }
.topic-list::-webkit-scrollbar-thumb, .remix-list::-webkit-scrollbar-thumb {
  background: rgba(184, 150, 90, 0.3);
  border-radius: 3px;
}
.topic-list::-webkit-scrollbar-thumb:hover, .remix-list::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 150, 90, 0.5);
}

/* 飞书消息卡片（v36.20） */
.feishu-msg-count {
  display: inline-block;
  min-width: 22px;
  padding: 2px 8px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #b8965a, #6e4f25);
  border-radius: 11px;
  text-align: center;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feishu-msg-count.is-zero {
  background: rgba(184, 150, 90, 0.2);
  color: #9a7f5a;
}
.feishu-msg-count.is-pulse {
  animation: msgCountPulse 0.6s ease-out;
}
@keyframes msgCountPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); box-shadow: 0 0 16px rgba(184, 150, 90, 0.6); }
  100% { transform: scale(1); }
}

.feishu-msg-status {
  font-size: 12px;
  color: #9a7f5a;
  margin-right: 4px;
  font-family: 'Courier New', monospace;
}
.feishu-msg-status.is-ok { color: #6e4f25; }
.feishu-msg-status.is-error { color: #c33; }

.feishu-msg-list {
  padding: 8px 4px;
  min-height: 120px;
}
.feishu-msg-row {
  display: flex;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px dashed rgba(184, 150, 90, 0.18);
  transition: background 0.2s ease;
}
.feishu-msg-row:last-child { border-bottom: none; }
.feishu-msg-row:hover {
  background: rgba(184, 150, 90, 0.05);
  border-radius: 8px;
}
.feishu-msg-row.is-new {
  background: linear-gradient(90deg, rgba(184, 150, 90, 0.12), transparent);
  animation: msgRowFadeIn 0.8s ease-out;
}
.feishu-msg-row.is-history {
  background: rgba(184, 150, 90, 0.04);
  opacity: 0.78;
}
.feishu-msg-row.is-history .feishu-msg-sender {
  color: #9a7f5a;
}
.feishu-msg-row.is-history .feishu-msg-text {
  color: #6e4f25;
}
.feishu-msg-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 6px;
  background: rgba(110, 79, 37, 0.12);
  color: #6e4f25;
  letter-spacing: 0.5px;
}
@keyframes msgRowFadeIn {
  from { background: rgba(184, 150, 90, 0.4); }
  to { background: transparent; }
}
.feishu-msg-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: rgba(184, 150, 90, 0.25);
}
.feishu-msg-dot.is-unread {
  background: #c33;
  box-shadow: 0 0 6px rgba(204, 51, 51, 0.5);
}
.feishu-msg-body {
  flex: 1;
  min-width: 0;
}
.feishu-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9a7f5a;
  margin-bottom: 4px;
}
.feishu-msg-sender {
  font-weight: 700;
  color: #6e4f25;
}
.feishu-msg-time {
  font-family: 'Courier New', monospace;
  font-size: 11px;
}
.feishu-msg-text {
  font-size: 14px;
  line-height: 1.55;
  color: #3a2e1f;
  word-break: break-word;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feishu-msg-empty {
  text-align: center;
  color: #9a7f5a;
  font-size: 13px;
  padding: 30px 10px;
}
.feishu-msg-error {
  text-align: center;
  color: #c33;
  font-size: 13px;
  padding: 20px 10px;
}