:root {
  /* Apple Official Website / macOS Light Theme (Default) */
  --bg-primary: #F5F5F7;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-card-subtle: #F5F5F7;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-highlight: rgba(255, 255, 255, 0.9);
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-muted: #A1A1A6;
  --accent-primary: #0071E3; /* Apple Blue */
  --accent-hover: #0077ED;
  --apple-blue: #0071E3;
  --apple-green: #34C759;
  --apple-orange: #FF9500;
  --apple-red: #FF3B30;
  --apple-purple: #AF52DE;
  --apple-teal: #30B0C7;
  --success: #34C759;
  --warning: #FF9500;
  --danger: #FF3B30;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --shadow-apple: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.06);
  --max-width: 1240px;
}

[data-theme="dark"] {
  /* Apple macOS Space Gray / OLED Dark Theme */
  --bg-primary: #000000;
  --bg-secondary: #161617;
  --bg-card: #1C1C1E;
  --bg-card-hover: #2C2C2E;
  --bg-card-subtle: #2C2C2E;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-highlight: rgba(255, 255, 255, 0.15);
  --text-primary: #F5F5F7;
  --text-secondary: #86868B;
  --text-muted: #6E6E73;
  --accent-primary: #2997FF;
  --accent-hover: #0071E3;
  --apple-blue: #2997FF;
  --apple-green: #30D158;
  --apple-orange: #FF9F0A;
  --apple-red: #FF453A;
  --apple-purple: #BF5AF2;
  --apple-teal: #63E6E2;
  --success: #30D158;
  --warning: #FF9F0A;
  --danger: #FF453A;
  --shadow-apple: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 36px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* 苹果风背景弥散微光 (Ambient Light Orb) */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: 25%;
  width: 50vw;
  height: 45vh;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.07) 0%, rgba(168, 85, 247, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* 顶部导航 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-primary);
}

.btn-boss {
  background: #dc2626;
  color: white;
  border-color: #ef4444;
  font-weight: 600;
  animation: pulse-border 2.5s infinite;
}

.btn-boss:hover {
  background: #b91c1c;
  border-color: #dc2626;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* 主内容容器 */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ==========================================
   🚀 Linear / Raycast 极简工位即时状态条
   ========================================== */
.linear-banner-section {
  width: 100%;
  margin-bottom: 0.5rem;
}

.linear-status-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 var(--border-highlight);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.linear-status-banner:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 左列：状态、倒计时与极简进度条 */
.banner-col-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.banner-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  letter-spacing: -0.2px;
}

.banner-status-badge.offwork {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.25);
}

.banner-status-badge.weekend {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.25);
}

.banner-status-badge.lunch {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.25);
}

.banner-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.banner-timer-group {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 0.82rem;
}

.banner-timer-label {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.banner-timer-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.banner-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.banner-progress-track {
  width: 70px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.banner-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.banner-progress-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  min-width: 26px;
}

/* 中列：核心收益度量 */
.banner-col-mid {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1rem;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.banner-metric-pill {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.banner-metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1;
}

.banner-metric-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
}

.banner-metric-num.earned {
  color: #10b981;
}

.banner-metric-num.profit {
  color: #f59e0b;
}

.banner-metric-divider {
  width: 1px;
  height: 22px;
  background: var(--border-color);
}

.banner-hourly-tag {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}

/* 右列：高频快反操作 */
.banner-col-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.banner-btn-moyu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.banner-btn-moyu:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.banner-btn-moyu.running {
  background: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.banner-quick-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

.banner-chip {
  padding: 5px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.banner-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.banner-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.banner-icon-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.banner-icon-btn.playing {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

/* 白噪音下拉收纳气泡 */
.banner-noise-dropdown-wrapper {
  position: relative;
}

.banner-noise-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 195px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 6px;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.banner-noise-menu.show {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.noise-menu-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2px;
}

.noise-menu-item {
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  font-size: 0.75rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.noise-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.noise-menu-item.stop {
  color: #ef4444;
  margin-top: 2px;
  border-top: 1px dashed var(--border-color);
}

.game-rest-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  width: fit-content;
}

/* 响应式排版 */
@media (max-width: 1024px) {
  .linear-status-banner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .banner-col-mid {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .linear-status-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .banner-col-left {
    justify-content: space-between;
    width: 100%;
  }
  .banner-col-mid {
    border-left: none;
    border-right: none;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 0.5rem 0;
    justify-content: space-between;
    width: 100%;
  }
  .banner-col-right {
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
  }
}

/* 摸鱼状态栏 & 倒计时 (保留向后兼容) */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.dash-card h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.countdown-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.countdown-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.countdown-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.countdown-sub {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 摸鱼金句 */
.quote-content {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.quote-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

/* 白噪音控制 */
.noise-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.noise-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.noise-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

/* 游戏分类与列表 */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title h2 {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 30px -10px rgba(59, 130, 246, 0.25);
}

.game-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.15));
}

.game-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  backdrop-filter: blur(4px);
}

.game-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.game-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-play {
  padding: 0.4rem 0.85rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-play:hover {
  opacity: 0.9;
}

/* 游戏运行模态框 (Modal) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modal-enter 0.3s ease-out;
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.modal-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.modal-body {
  flex: 1;
  background: #000;
  position: relative;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 工位作息与薪资深度设置中心模态框 */
.settings-modal-container {
  max-width: 520px;
  height: auto;
  max-height: 90vh;
  background: var(--bg-secondary);
}

.settings-modal-body {
  padding: 1.25rem 1.5rem;
  background: var(--bg-primary);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.settings-input, .settings-select {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.settings-input:focus, .settings-select:focus {
  border-color: var(--accent-primary);
}

.settings-suffix {
  position: absolute;
  right: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
}

.settings-time-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.settings-time-row .settings-input {
  width: 105px;
}

.settings-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 4px;
}

.settings-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.preview-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.preview-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.preview-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg-secondary);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.p-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.p-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.preview-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.settings-modal-footer {
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* 游戏分类筛选标签栏 */
.game-category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.game-cat-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.game-cat-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.game-cat-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
}

/* 老板键全屏覆盖 (多皮肤架构) */
.boss-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.boss-screen.active {
  display: flex;
}

.boss-skin-view {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  padding-bottom: 38px;
}

.boss-skin-view.active {
  display: flex;
}

/* 皮肤 1: Excel 样式 */
#skin-view-excel {
  background: #f3f2f1;
  color: #242424;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.excel-ribbon-top {
  background: #107c41;
  color: white;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.excel-tabs {
  display: flex;
  gap: 16px;
  padding: 4px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e1dfdd;
  font-size: 12px;
}

.excel-tabs span {
  padding: 4px 6px;
  cursor: pointer;
}

.excel-tabs span.active {
  border-bottom: 3px solid #107c41;
  font-weight: 600;
}

.excel-formula-bar {
  background: #faf9f8;
  border-bottom: 1px solid #e1dfdd;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.excel-grid {
  flex: 1;
  overflow: auto;
  background: white;
  display: grid;
  grid-template-columns: 40px repeat(10, 110px);
  grid-auto-rows: 24px;
}

.excel-cell {
  border-right: 1px solid #e1dfdd;
  border-bottom: 1px solid #e1dfdd;
  padding: 2px 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.excel-header-cell {
  background: #f3f2f1;
  font-weight: 600;
  justify-content: center;
  color: #605e5c;
}

/* 皮肤 2: VS Code 样式 */
#skin-view-vscode {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
}

.vscode-titlebar {
  background: #323233;
  color: #cccccc;
  font-size: 12px;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid #252526;
  position: relative;
}

.vscode-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.vscode-activity-bar {
  width: 48px;
  background: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 16px;
  font-size: 18px;
}

.vscode-activity-bar span {
  opacity: 0.5;
  cursor: pointer;
}

.vscode-activity-bar span.active {
  opacity: 1;
  border-left: 2px solid #ffffff;
  padding-left: 4px;
}

.vscode-sidebar {
  width: 200px;
  background: #252526;
  border-right: 1px solid #1e1e1e;
  padding: 10px 8px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vscode-sidebar-title {
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  color: #bbbbbb;
  margin-bottom: 8px;
}

.vscode-file {
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: #cccccc;
}

.vscode-file.active {
  background: #37373d;
  color: #ffffff;
}

.vscode-editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vscode-tabs {
  background: #2d2d2d;
  display: flex;
  border-bottom: 1px solid #1e1e1e;
}

.vscode-tab {
  background: #1e1e1e;
  color: #ffffff;
  padding: 7px 14px;
  font-size: 12px;
  border-top: 2px solid #007acc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vscode-code-area {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  position: relative;
}

.vscode-code-area pre {
  margin: 0;
  color: #d4d4d4;
  white-space: pre-wrap;
  font-family: inherit;
}

.vscode-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #007acc;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.vscode-terminal {
  height: 140px;
  background: #181818;
  border-top: 1px solid #333333;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  padding: 4px 12px;
  background: #252526;
  font-size: 11px;
  color: #cccccc;
  display: flex;
  justify-content: space-between;
}

.terminal-body {
  flex: 1;
  padding: 8px 12px;
  font-size: 11px;
  font-family: inherit;
  color: #d4d4d4;
  line-height: 1.6;
  overflow-y: auto;
}

/* 皮肤 3: 系统更新界面 */
#skin-view-update {
  background: #005a9e;
  color: #ffffff;
  font-family: "Segoe UI", -apple-system, sans-serif;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.update-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.update-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.update-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.update-subtitle {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 300;
}

.update-tip {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 30px;
}

/* 皮肤 4: IntelliJ IDEA (Java / Spring Boot) 样式 */
#skin-view-idea {
  background: #1e1f22;
  color: #bcbec4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
}

.idea-titlebar {
  background: #2b2d30;
  border-bottom: 1px solid #393b40;
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 12px;
  color: #bcbec4;
}

.idea-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.idea-logo {
  font-size: 14px;
}

.idea-proj-name {
  font-weight: 600;
  color: #dfe1e5;
  white-space: nowrap;
}

.idea-git-badge {
  font-size: 11px;
  color: #7f85a3;
  background: #393b40;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.idea-title-center {
  flex: 1;
  max-width: 320px;
  margin: 0 16px;
}

.idea-search-box {
  background: #1e1f22;
  border: 1px solid #393b40;
  border-radius: 6px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f737a;
  font-size: 11px;
  cursor: pointer;
}

.idea-title-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.idea-btn-run {
  background: #365880;
  color: #dfe1e5;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-weight: 500;
}

.run-icon {
  color: #59a869;
  font-size: 10px;
}

.idea-btn-icon {
  background: transparent;
  border: none;
  color: #bcbec4;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.idea-btn-icon:hover {
  background: #393b40;
}

.idea-title-sep {
  width: 1px;
  height: 14px;
  background: #393b40;
  margin: 0 2px;
}

.idea-main-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.idea-left-strip {
  width: 38px;
  background: #2b2d30;
  border-right: 1px solid #393b40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  gap: 8px;
  flex-shrink: 0;
}

.idea-strip-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #868a91;
  transition: all 0.15s;
}

.idea-strip-btn.active, .idea-strip-btn:hover {
  background: #393b40;
  color: #dfe1e5;
}

.idea-project-tree {
  width: 230px;
  background: #2b2d30;
  border-right: 1px solid #393b40;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  flex-shrink: 0;
}

.idea-tree-header {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #868a91;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #35373b;
}

.idea-tree-actions {
  font-size: 10px;
  opacity: 0.7;
}

.idea-tree-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  line-height: 1.4;
}

.tree-item {
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #bcbec4;
  font-size: 12px;
}

.tree-item:hover {
  background: #35373c;
}

.tree-item.active {
  background: #2e436e;
  color: #ffffff;
}

.file-icon-java {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #4a88c7;
  flex-shrink: 0;
}

.file-icon-yml {
  color: #e5a84b;
  font-size: 12px;
  flex-shrink: 0;
}

.file-icon-xml {
  color: #e25843;
  font-size: 12px;
  flex-shrink: 0;
}

.idea-editor-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1e1f22;
}

.idea-tabs-bar {
  height: 34px;
  min-height: 34px;
  background: #2b2d30;
  border-bottom: 1px solid #1e1f22;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
}

.idea-tab {
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #868a91;
  cursor: pointer;
  border-right: 1px solid #1e1f22;
  border-top: 2px solid transparent;
  white-space: nowrap;
}

.idea-tab.active {
  background: #1e1f22;
  color: #dfe1e5;
  border-top: 2px solid #3574f0;
}

.idea-tab-close {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 4px;
}

.idea-tab-close:hover {
  opacity: 1;
}

.idea-breadcrumbs {
  padding: 4px 14px;
  background: #1e1f22;
  border-bottom: 1px solid #2b2d30;
  font-size: 11px;
  color: #7f85a3;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
}

.idea-breadcrumbs .active {
  color: #dfe1e5;
}

.idea-code-editor {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #1e1f22;
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, Monaco, monospace;
}

.idea-gutter {
  width: 44px;
  background: #1e1f22;
  border-right: 1px solid #2b2d30;
  padding: 10px 8px 10px 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
  color: #4e5157;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.idea-code-content {
  flex: 1;
  padding: 10px 14px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.6;
  color: #bcbec4;
  user-select: text;
}

.idea-code-content pre {
  margin: 0;
  font-family: inherit;
  white-space: pre;
}

.idea-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #a9b7c6;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}

/* IntelliJ IDEA 语法着色高亮 */
.tok-ann { color: #bbb529; }
.tok-kw  { color: #cf8e6d; font-weight: 600; }
.tok-str { color: #6aab73; }
.tok-cmt { color: #7a7e85; font-style: italic; }

.idea-tool-window {
  height: 160px;
  min-height: 140px;
  background: #2b2d30;
  border-top: 1px solid #393b40;
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
}

.idea-tool-tabs {
  height: 28px;
  background: #2b2d30;
  border-bottom: 1px solid #35373b;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 10px;
  flex-shrink: 0;
}

.tool-tab {
  font-size: 11px;
  color: #868a91;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
}

.tool-tab.active {
  background: #393b40;
  color: #dfe1e5;
  font-weight: 600;
}

.idea-tool-content {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1.5;
  background: #1e1f22;
  user-select: text;
}

.idea-console-body {
  display: none;
}

.idea-console-body.active {
  display: block;
}

.idea-log-text, .idea-terminal-text {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  color: #bcbec4;
}

.log-info { color: #6897bb; }
.log-success { color: #59a869; }
.term-user { color: #59a869; font-weight: 600; }
.term-path { color: #4a88c7; }
.term-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #bcbec4;
  animation: blink 1s infinite;
  vertical-align: middle;
}

/* 皮肤 5: 飞书 (Feishu) 企业协同工作台样式 */
#skin-view-feishu {
  background: #ffffff;
  color: #1f2329;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  user-select: none;
}

.feishu-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.feishu-dock {
  width: 58px;
  background: #f0f2f5;
  border-right: 1px solid #dee0e3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 10px;
  flex-shrink: 0;
}

.feishu-avatar-wrapper {
  position: relative;
  margin-bottom: 18px;
}

.feishu-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3370ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.feishu-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #f0f2f5;
}

.feishu-status-dot.online {
  background: #34c759;
}

.feishu-dock-icons {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.feishu-dock-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  color: #646a73;
  transition: all 0.2s;
}

.feishu-dock-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.feishu-dock-btn.active {
  background: #e1eaff;
  color: #3370ff;
}

.feishu-dock-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: #f54a45;
  color: #fff;
  font-size: 9px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 600;
}

.feishu-dock-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feishu-session-list {
  width: 250px;
  background: #f7f8fa;
  border-right: 1px solid #dee0e3;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.feishu-search-bar {
  padding: 10px 12px;
  border-bottom: 1px solid #ebedef;
  position: relative;
  display: flex;
  align-items: center;
}

.feishu-search-bar .search-icon {
  position: absolute;
  left: 20px;
  font-size: 12px;
  color: #8f959e;
}

.feishu-search-input {
  width: 100%;
  height: 30px;
  background: #e8ebe9;
  border: none;
  border-radius: 6px;
  padding-left: 28px;
  padding-right: 8px;
  font-size: 11px;
  color: #1f2329;
  outline: none;
}

.feishu-sessions-container {
  flex: 1;
  overflow-y: auto;
}

.feishu-session-item {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  transition: background 0.15s;
}

.feishu-session-item:hover {
  background: #eef0f3;
}

.feishu-session-item.active {
  background: #e8f0fe;
}

.session-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
}

.session-avatar.group-proj {
  background: linear-gradient(135deg, #ff7d00, #f53f3f);
}

.session-avatar.group-team {
  background: linear-gradient(135deg, #3370ff, #00b42a);
}

.session-avatar.user-boss {
  background: linear-gradient(135deg, #722ed1, #2f54eb);
}

.session-avatar.bot-avatar {
  background: linear-gradient(135deg, #00c0c0, #165dff);
}

.session-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.session-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2329;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-time {
  font-size: 11px;
  color: #8f959e;
  flex-shrink: 0;
}

.session-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.session-preview {
  font-size: 11.5px;
  color: #646a73;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-badge {
  background: #f54a45;
  color: #ffffff;
  font-size: 9px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.feishu-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

.feishu-chat-header {
  height: 48px;
  border-bottom: 1px solid #dee0e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #ffffff;
  flex-shrink: 0;
}

.feishu-header-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.feishu-chat-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2329;
}

.feishu-chat-count {
  font-size: 11px;
  color: #8f959e;
}

.feishu-header-actions {
  display: flex;
  gap: 12px;
}

.feishu-action-icon {
  font-size: 14px;
  color: #646a73;
  cursor: pointer;
}

.feishu-msg-stream {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
}

.feishu-sys-msg {
  text-align: center;
  margin: 4px 0;
}

.feishu-sys-msg span {
  background: #f0f2f5;
  color: #8f959e;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
}

.feishu-msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feishu-msg-row.self {
  flex-direction: row;
  justify-content: flex-end;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3370ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.msg-avatar.self {
  background: #165dff;
}

.msg-content-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 65%;
}

.feishu-msg-row.self .msg-content-wrapper {
  align-items: flex-end;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.msg-sender {
  font-size: 11.5px;
  color: #646a73;
  font-weight: 500;
}

.msg-time {
  font-size: 10.5px;
  color: #8f959e;
}

.msg-bubble {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  background: #f2f3f5;
  color: #1f2329;
  border-top-left-radius: 2px;
  user-select: text;
}

.msg-bubble.self {
  background: #e1eaff;
  color: #1f2329;
  border-top-left-radius: 8px;
  border-top-right-radius: 2px;
}

.msg-read-status {
  font-size: 10px;
  color: #8f959e;
  margin-top: 2px;
  align-self: flex-end;
}

.feishu-input-area {
  height: 140px;
  min-height: 120px;
  border-top: 1px solid #dee0e3;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  flex-shrink: 0;
}

.feishu-input-toolbar {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  border-bottom: 1px solid #f2f3f5;
  flex-shrink: 0;
}

.feishu-tool-icon {
  font-size: 14px;
  color: #646a73;
  cursor: pointer;
}

.feishu-input-box-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 14px 8px;
}

.feishu-textarea {
  flex: 1;
  width: 100%;
  border: none;
  resize: none;
  outline: none;
  font-size: 13px;
  line-height: 1.5;
  color: #1f2329;
  font-family: inherit;
  background: transparent;
  user-select: text;
}

.feishu-textarea::placeholder {
  color: #8f959e;
}

.feishu-send-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.feishu-send-tip {
  font-size: 11px;
  color: #8f959e;
}

.btn-feishu-send {
  background: #3370ff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-feishu-send:hover {
  background: #245bdb;
}

/* 老板键底部快捷栏 & 退出提示 */
.boss-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #e2e8f0;
  z-index: 1000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-skin-quick-tabs {
  display: flex;
  gap: 8px;
}

.skin-tab-btn {
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  font-size: 11px;
}

.skin-tab-btn:hover, .skin-tab-btn.active {
  background: var(--accent-primary);
  color: white;
}

.boss-exit-tip {
  font-size: 11px;
  color: #94a3b8;
}

/* 页脚 */
footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-copyright {
  font-size: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  .logo-text p {
    display: none;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .modal-container {
    height: 95vh;
  }
}

/* 📌 游戏弹窗：迷你便签摸鱼模式 (Mini-Widget Mode) */
.modal-overlay.mini-mode {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding: 15px !important;
}

.modal-overlay.mini-mode .modal-container {
  pointer-events: auto !important;
  width: 320px !important;
  max-width: 90vw !important;
  height: 480px !important;
  border-radius: var(--radius-md) !important;
  border: 2px solid var(--accent-primary) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
  animation: none !important;
}

.modal-overlay.mini-mode .modal-header {
  padding: 0.4rem 0.8rem !important;
  background: var(--bg-secondary) !important;
}

.modal-overlay.mini-mode .modal-title span:last-child {
  font-size: 0.85rem !important;
}

/* 📑 全站：企业级 Confluence 技术文档伪装模式 (Doc Camouflage Mode) */
#doc-mode-wrapper {
  display: none;
  background: #ffffff;
  color: #172b4d;
  min-height: calc(100vh - 65px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body[data-doc-mode="true"] #normal-portal-view {
  display: none !important;
}

body[data-doc-mode="true"] #doc-mode-wrapper {
  display: flex !important;
}

body[data-doc-mode="true"] header {
  background: #0052cc !important;
  color: #ffffff !important;
  border-bottom: none !important;
}

body[data-doc-mode="true"] .logo-icon {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

body[data-doc-mode="true"] .logo-text h1 {
  color: #ffffff !important;
  font-size: 1.1rem !important;
}

body[data-doc-mode="true"] .logo-text p {
  color: #deebff !important;
}

body[data-doc-mode="true"] .btn {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

body[data-doc-mode="true"] .btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* 文档左侧侧边栏 */
.doc-sidebar {
  width: 260px;
  background: #f4f5f7;
  border-right: 1px solid #ebecf0;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-space-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5e6c84;
  text-transform: uppercase;
  padding: 0 0.5rem;
}

.doc-tree {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

.doc-tree li {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  color: #172b4d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-tree li:hover {
  background: #ebecf0;
}

.doc-tree li.active {
  background: #deebff;
  color: #0052cc;
  font-weight: 600;
}

/* 文档正文区 */
.doc-content {
  flex: 1;
  padding: 2rem 3rem;
  max-width: 960px;
  line-height: 1.7;
}

.doc-breadcrumb {
  font-size: 0.8rem;
  color: #6b778c;
  margin-bottom: 1rem;
}

.doc-content h1 {
  font-size: 1.8rem;
  color: #172b4d;
  margin-bottom: 0.5rem;
}

.doc-meta {
  font-size: 0.8rem;
  color: #6b778c;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ebecf0;
  margin-bottom: 1.5rem;
}

.doc-callout {
  background: #deebff;
  border-left: 4px solid #0052cc;
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #0747a6;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.doc-sandbox-card {
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  padding: 1rem;
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.2s;
}

.doc-sandbox-card:hover {
  border-color: #0052cc;
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.1);
  transform: translateY(-2px);
}

.doc-sandbox-card h4 {
  font-size: 0.95rem;
  color: #0052cc;
  margin-bottom: 0.3rem;
}

.doc-sandbox-card p {
  font-size: 0.75rem;
  color: #5e6c84;
}

.doc-code-block {
  background: #f4f5f7;
  border: 1px solid #ebecf0;
  border-radius: 4px;
  padding: 1rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
  color: #24292e;
  overflow-x: auto;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  #doc-mode-wrapper {
    flex-direction: column;
  }
  .doc-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ebecf0;
  }
  .doc-content {
    padding: 1.25rem;
  }
}

/* ==========================================
   🧰 工位生存与摸鱼解压实用工具箱 (Module 2)
   ========================================== */
.toolbox-section {
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toolbox-tabs {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  overflow-x: auto;
}

.toolbox-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.toolbox-tab-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.toolbox-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.toolbox-panel {
  display: none;
}

.toolbox-panel.active {
  display: block;
  animation: toolFadeIn 0.3s ease;
}

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

/* 1. 🐟 带薪摸鱼与打工收益驾驶舱 (MoYu Dashboard) */
.moyu-calc-container, .poop-calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.moyu-left-card, .moyu-right-card, .poop-left-card, .poop-right-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* 高保真复刻用户截图的便签白卡片 */
.moyu-note-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #1e293b;
  position: relative;
  transition: all 0.2s ease;
}

[data-theme="dark"] .moyu-note-card {
  background: #151d2e;
  border-color: #2b3a52;
  color: #f8fafc;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.moyu-note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .moyu-note-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.moyu-note-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.btn-note-pin {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.btn-note-pin:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

.moyu-note-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.moyu-note-label {
  color: #64748b;
  font-size: 0.98rem;
}

[data-theme="dark"] .moyu-note-label {
  color: #94a3b8;
}

.moyu-note-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "PingFang SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  color: #0f172a;
}

[data-theme="dark"] .moyu-note-val {
  color: #f1f5f9;
}

.moyu-note-val.val-earned {
  color: #10b981;
}

.moyu-note-val.val-profit {
  color: #f59e0b;
}

/* 摸鱼纯度与打工人段位 */
.moyu-status-box {
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.moyu-rate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.moyu-rank-badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.moyu-progress-track {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.moyu-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.moyu-rank-comment {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* 下班倒计时条 */
.moyu-offwork-bar {
  background: var(--bg-primary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.offwork-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offwork-info strong {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  color: #38bdf8;
}

.offwork-tip {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* 实时摸鱼秒表卡片 */
.moyu-live-timer-box {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--accent-primary);
}

.live-timer-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.live-timer-time {
  font-size: 2.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.live-timer-money {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f59e0b;
  margin-top: 0.2rem;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.live-timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.85rem;
}

/* 快速补录场景 Chip 按钮 */
.moyu-quick-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-chip {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.btn-chip:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-1px);
}

/* 作息与薪资设置栏 */
.moyu-settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.setting-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.setting-item input[type="number"] {
  width: 90px;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: bold;
}

.setting-item input[type="time"] {
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: monospace;
}

.setting-unit {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.moyu-golden-rule {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.6rem;
  text-align: center;
  line-height: 1.5;
}

/* 屏幕右下角极简便签悬浮窗 (Floating Sticky Note) */
.moyu-floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 250px;
  transition: all 0.25s ease;
  animation: widgetFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .moyu-floating-widget {
  background: rgba(20, 27, 43, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

@keyframes widgetFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.moyu-widget-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding-bottom: 0.35rem;
  margin-bottom: 0.15rem;
}

[data-theme="dark"] .moyu-widget-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.moyu-widget-btns span {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.moyu-widget-btns span:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ==========================================
   📰 极简纯文本·隐秘热搜阅读器 (Stealth Hot Topics Reader)
   ========================================== */
.hot-news-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hot-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.hot-source-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hot-src-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.hot-src-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.hot-src-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.hot-stealth-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.opacity-control-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.opacity-slider {
  width: 80px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.hot-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
  transition: opacity 0.15s ease;
}

.hot-loading, .hot-empty {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 极简纯文本模式 */
.clean-news-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.15s;
  cursor: pointer;
  user-select: none;
}

.clean-news-row:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--accent-primary);
  transform: translateX(3px);
}

.clean-news-row.expanded {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent-primary);
  border-bottom: 1px dashed rgba(99, 102, 241, 0.4);
  border-radius: 6px 6px 0 0;
  transform: none;
}

.clean-rank {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

.clean-rank.rank-1 {
  background: #ef4444;
  color: #fff;
}

.clean-rank.rank-2 {
  background: #f97316;
  color: #fff;
}

.clean-rank.rank-3 {
  background: #f59e0b;
  color: #fff;
}

.clean-rank.rank-normal {
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.clean-title {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clean-hot {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.clean-exp-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 2px;
  flex-shrink: 0;
}

/* 极简站内隐秘详情抽屉 */
.stealth-detail-drawer {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 0.85rem 1.1rem;
  margin-top: -1px;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  animation: stealthSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@keyframes stealthSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.stealth-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--border-color);
}

.stealth-source-badge {
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--accent-primary);
  font-weight: 700;
}

.stealth-metric-badge {
  font-family: ui-monospace, monospace;
  color: var(--text-muted);
}

.stealth-detail-text {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-primary);
  text-align: justify;
  word-break: break-word;
  white-space: normal;
  padding: 0.25rem 0;
}

.stealth-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stealth-raw-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
}

.stealth-raw-link:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* 知乎专属站内高赞回答抽屉与卡片样式 */
.stealth-zhihu-drawer {
  background: var(--bg-primary);
  border-left: 3px solid #3b82f6 !important;
  gap: 0.75rem;
}

.stealth-zhihu-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stealth-zhihu-hot-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 600;
}

.stealth-author-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 500;
}

.stealth-vote-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
}

.stealth-copy-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.stealth-copy-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-primary);
}

.stealth-zhihu-question-box {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  border-left: 2px solid var(--border-color);
}

.stealth-box-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.stealth-zhihu-answer-box {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.stealth-answer-body {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-primary);
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 终端代码日志模式下的回答正文与复制按钮 */
.terminal-log-answer-body {
  background: #020617;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  border-left: 2px solid #38bdf8;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.65;
  max-height: 360px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 6px 0;
}

.terminal-copy-btn {
  background: transparent;
  border: 1px dashed #475569;
  color: #38bdf8;
  font-family: inherit;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 6px;
}

.terminal-copy-btn:hover {
  background: #1e293b;
  color: #7dd3fc;
}

/* 隐秘提示框 (Toast) */
.stealth-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.82rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  z-index: 99999;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: stealthToastFadeIn 0.25s ease;
  transition: opacity 0.3s, transform 0.3s;
}

.stealth-toast.hide {
  opacity: 0;
  transform: translateY(10px);
}

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

/* 首页微热榜卡片样式 */
.hotnews-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.hotnews-summary-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.hotnews-summary-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

.hotnews-index {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  background: var(--bg-secondary);
  color: var(--text-muted);
  flex-shrink: 0;
}

.hotnews-index.top1 {
  background: #ef4444;
  color: #fff;
}

.hotnews-index.top2 {
  background: #f97316;
  color: #fff;
}

.hotnews-index.top3 {
  background: #f59e0b;
  color: #fff;
}

.hotnews-summary-title {
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* 终端代码日志伪装模式 */
.terminal-view {
  background: #090d16 !important;
  border-radius: var(--radius-md) !important;
  padding: 0.85rem 1rem !important;
  border: 1px solid #1e293b !important;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace !important;
}

.terminal-log-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.6;
  padding: 3px 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
}

.terminal-log-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.terminal-log-row.expanded {
  background: #0f172a;
  border-bottom: 1px dashed #334155;
  border-radius: 3px 3px 0 0;
}

.log-prefix {
  color: #22c55e;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.log-title {
  color: #cbd5e1;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-score {
  color: #64748b;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.log-exp-arrow {
  color: #64748b;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* 终端模式就地详情抽屉 */
.terminal-detail-drawer {
  background: #040813;
  border: 1px dashed #334155;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 0.65rem 0.85rem;
  margin-top: -1px;
  margin-bottom: 0.4rem;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  animation: stealthSlideDown 0.2s ease;
}

.terminal-log-detail-line {
  color: #cbd5e1;
  word-break: break-word;
  white-space: normal;
  margin: 2px 0;
}

.log-trace {
  color: #38bdf8;
  font-weight: bold;
}

.log-info {
  color: #4ade80;
  font-weight: bold;
}

.log-debug {
  color: #a855f7;
  font-weight: bold;
}

.terminal-esc-hint {
  color: #64748b;
  font-size: 0.72rem;
  margin-left: 8px;
}

.terminal-raw-link {
  color: #64748b;
  text-decoration: none;
  margin-left: 8px;
}

.terminal-raw-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* 紧急洗屏模式 */
.panic-mode {
  background: #020617 !important;
  border-color: #3b82f6 !important;
}

.panic-log-stream {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #a3e635;
  cursor: pointer;
}

.poop-golden-rule {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
}



/* 3. 摸鱼老黄历 & 法定节假日驾驶舱 */
.almanac-holiday-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

.almanac-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.almanac-header {
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.75rem;
  text-align: center;
}

.almanac-date {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.almanac-luck-row {
  display: flex;
  justify-content: space-around;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.almanac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.almanac-col h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.almanac-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.almanac-dot {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-right: 4px;
}

.almanac-dot.yi {
  background: #10b981;
  color: white;
}

.almanac-dot.ji {
  background: #ef4444;
  color: white;
}

.holiday-container {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nearest-holiday-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.nearest-timer {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  margin: 0.4rem 0;
}

.nearest-timer .timer-unit {
  font-size: 1.7rem;
  color: #10b981;
  font-weight: 900;
}

.nearest-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.holiday-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.holiday-card {
  padding: 0.75rem 0.9rem;
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s;
}

.holiday-card.highlight {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.holiday-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--text-primary);
}

.holiday-days-badge {
  background: var(--accent-primary);
  color: white;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
}

.holiday-date {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.holiday-strategy {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}



/* 4. 轻量 Toast 提示 */
.moyu-toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: 24px;
  font-size: 0.85rem;
  z-index: 10000000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.moyu-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .moyu-calc-container, .poop-calc-container {
    grid-template-columns: 1fr;
  }
  .almanac-holiday-container {
    grid-template-columns: 1fr !important;
  }
  .moyu-floating-widget {
    bottom: 12px;
    right: 12px;
    width: 220px;
    padding: 0.85rem 1rem;
  }
}

/* ==========================================
   5. 独立落地页专用组件 (SEO Standalone Landing Pages)
   ========================================== */
.standalone-tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  width: 100%;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-nav a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

.standalone-hero-header {
  margin-bottom: 1.75rem;
  text-align: left;
}

.standalone-hero-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.standalone-hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 850px;
  line-height: 1.6;
}

.standalone-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

/* 关联推荐与跨链导航区 */
.related-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.25);
}

.related-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
}

.related-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-back-home:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.tool-standalone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
}

.tool-standalone-badge:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.btn-standalone-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-standalone-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.game-title-link {
  color: inherit;
  text-decoration: none;
}

.game-title-link:hover {
  color: var(--accent-primary);
}

.game-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
    Apple Product Design System (Apple HIG / macOS Settings / Vision Pro)
   ========================================================================== */

/* 1. 全局 Apple 按钮体系 (Unified Button System: Primary, Secondary, Ghost) */
.apple-btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
  user-select: none;
}

.apple-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.apple-btn-primary:active {
  transform: scale(0.98);
}

.apple-btn-primary.apple-btn-hero {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.8rem 2.4rem;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.28);
}

.apple-btn-primary.running {
  background: var(--apple-red);
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
}

.apple-btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

[data-theme="dark"] .apple-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.apple-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

[data-theme="dark"] .apple-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.apple-btn-ghost {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  user-select: none;
}

.apple-btn-ghost:hover {
  background: rgba(0, 113, 227, 0.06);
  border-color: var(--accent-primary);
}

.apple-chip-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

[data-theme="dark"] .apple-chip-btn {
  background: rgba(255, 255, 255, 0.05);
}

.apple-chip-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: rgba(0, 113, 227, 0.05);
}

.apple-pill-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.78rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

[data-theme="dark"] .apple-pill-btn {
  background: rgba(255, 255, 255, 0.06);
}

.apple-pill-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* 2.  Apple 顶部导航栏 (Header) */
.apple-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 1.5rem;
  transition: background 0.3s;
}

[data-theme="dark"] .apple-header {
  background: rgba(22, 22, 23, 0.85);
}

.apple-logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.apple-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.apple-logo-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.apple-logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.apple-nav-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.apple-nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-theme="dark"] .apple-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.apple-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.apple-nav-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.42rem 1.8rem 0.42rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 12px;
  transition: all 0.2s;
}

.apple-nav-select:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .apple-nav-select option {
  background: #1c1c1e;
  color: #f5f5f7;
}

.apple-boss-btn {
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

[data-theme="dark"] .apple-boss-btn {
  background: rgba(255, 255, 255, 0.06);
}

.apple-boss-btn:hover {
  background: rgba(255, 59, 48, 0.08);
  color: var(--apple-red);
  border-color: rgba(255, 59, 48, 0.25);
}

.apple-kbd {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

[data-theme="dark"] .apple-kbd {
  background: rgba(255, 255, 255, 0.1);
}

/* 3.  主体与 Hero 模块 */
.apple-main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  width: 100%;
}

.apple-hero-section {
  padding: 3.2rem 1rem 2.5rem;
  text-align: center;
}

.apple-hero-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apple-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(52, 199, 89, 0.1);
  color: var(--apple-green);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(52, 199, 89, 0.25);
  margin-bottom: 1.25rem;
}

.apple-status-pill.offwork {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-primary);
  border-color: rgba(0, 113, 227, 0.25);
}

.apple-status-pill.weekend {
  background: rgba(255, 149, 0, 0.1);
  color: var(--apple-orange);
  border-color: rgba(255, 149, 0, 0.25);
}

.apple-status-pill.lunch {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.25);
}

.apple-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.apple-hero-clock-block {
  margin-bottom: 1.8rem;
}

.apple-hero-timer {
  font-size: 4.6rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -2.5px;
  line-height: 1;
}

.apple-hero-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  letter-spacing: -0.1px;
}

.apple-hero-metrics {
  display: inline-flex;
  align-items: center;
  gap: 2.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.9rem 2.8rem;
  box-shadow: var(--shadow-apple);
  margin-bottom: 1.8rem;
}

.apple-hero-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.apple-hero-metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.apple-hero-metric-val {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.apple-hero-metric-val.highlight {
  color: var(--apple-green);
}

.apple-hero-metric-sep {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

.apple-hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.apple-btn-secondary.apple-btn-hero-sub {
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 4.  通用 Section 与 Header */
.apple-section {
  margin-bottom: 2.5rem;
}

.apple-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.apple-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin: 0;
}

.apple-section-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

.apple-section-more-link {
  font-size: 0.82rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.apple-section-more-link:hover {
  text-decoration: underline;
}

/* 5.  今日概览聚合大卡片 (Single Unified Master Card) */
.apple-master-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-apple);
  overflow: hidden;
}

.apple-master-col {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  border-right: 1px solid var(--border-color);
}

.apple-master-col:last-child {
  border-right: none;
}

.apple-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apple-col-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.apple-tag-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .apple-tag-pill {
  background: rgba(255, 255, 255, 0.06);
}

.apple-progress-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.apple-progress-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

[data-theme="dark"] .apple-progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.apple-progress-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.apple-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.apple-data-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0.8rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .apple-data-matrix {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.04);
}

.matrix-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.matrix-item .m-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.matrix-item .m-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.matrix-item .m-val.highlight {
  color: var(--apple-green);
}

.apple-quote-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.quote-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(52, 199, 89, 0.12);
  color: var(--apple-green);
  font-weight: 600;
  flex-shrink: 0;
}

.quote-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-holiday-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

[data-theme="dark"] .apple-holiday-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.04);
}

.holiday-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.holiday-countdown {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  margin: 4px 0;
}

.holiday-advice {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.apple-almanac-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.almanac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.apple-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.apple-badge.badge-yi {
  background: rgba(52, 199, 89, 0.12);
  color: var(--apple-green);
  border: 1px solid rgba(52, 199, 89, 0.25);
}

.apple-badge.badge-ji {
  background: rgba(255, 59, 48, 0.12);
  color: var(--apple-red);
  border: 1px solid rgba(255, 59, 48, 0.25);
}

.almanac-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-col-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.foot-tip {
  color: var(--text-muted);
}

.apple-chevron-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s;
}

.apple-chevron-link:hover {
  gap: 6px;
}

/* 6.  快捷工具 (4 列 Apple 卡片) */
.apple-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.apple-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-apple);
  min-height: 245px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .apple-tool-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.tool-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.tool-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
}

.tool-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.apple-micro-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
}

[data-theme="dark"] .apple-micro-badge {
  background: rgba(255, 255, 255, 0.08);
}

.tool-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.tool-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.apple-noise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.apple-noise-grid .apple-btn-secondary {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
}

.apple-noise-grid .apple-btn-ghost {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
}

.salary-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.salary-chip-row {
  display: flex;
  gap: 0.4rem;
}

.salary-chip-row .apple-chip-btn {
  flex: 1;
  text-align: center;
}

/* 7.  常玩游戏 (仅展示 4 个) */
.apple-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.apple-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-apple);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .apple-game-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.game-squircle-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .game-squircle-icon {
  background: rgba(255, 255, 255, 0.05);
}

.game-mono-text {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.game-meta-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.game-info-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.game-tag {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}

[data-theme="dark"] .game-tag {
  background: rgba(255, 255, 255, 0.06);
}

.game-action-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-btn {
  padding: 0.36rem 0.85rem;
  font-size: 0.78rem;
}

.game-pop-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.game-pop-btn:hover {
  color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.05);
}

/* 8.  更多功能入口 */
.apple-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.apple-more-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  box-shadow: var(--shadow-apple);
  transition: all 0.25s;
}

.apple-more-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-hover);
}

.more-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.more-card-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.more-card-arrow {
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.more-games-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* 9.  规范页脚 (Footer) */
.apple-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-police-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-police-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  flex-shrink: 0;
}

.footer-sep {
  color: var(--border-color);
}

.footer-copyright {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* 10.  响应式规范 (Responsive: Desktop 4列, Tablet 2列, Mobile 1列) */
@media (max-width: 1080px) {
  .apple-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .apple-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .apple-more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .apple-master-card {
    grid-template-columns: 1fr;
  }
  .apple-master-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .apple-master-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .apple-hero-timer {
    font-size: 3rem;
  }
  .apple-hero-metrics {
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    justify-content: center;
  }
  .apple-hero-metric-val {
    font-size: 1.35rem;
  }
  .apple-tools-grid {
    grid-template-columns: 1fr;
  }
  .apple-games-grid {
    grid-template-columns: 1fr;
  }
  .apple-more-grid {
    grid-template-columns: 1fr;
  }
  .header-container {
    padding: 0;
  }
  .apple-logo-subtitle {
    display: none;
  }
  .apple-select-wrapper {
    display: none;
  }
}

/* ==========================================================================
    摸鱼日报战报卡模态框 (MoYu Daily Report Card Modal)
   ========================================================================== */
.report-modal-container {
  max-width: 440px;
  max-height: 92vh;
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl, 24px);
  background: var(--bg-card);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.report-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.report-canvas-wrapper {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.report-card-canvas {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-card-canvas:hover {
  transform: translateY(-2px);
}

.report-modal-footer {
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .report-modal-container {
    max-width: 94vw;
    margin: 0.5rem;
  }
  .report-modal-body {
    padding: 0.85rem;
  }
  .report-canvas-wrapper {
    max-width: 320px;
  }
  .report-modal-footer {
    justify-content: stretch;
    padding: 0.75rem 1rem;
    gap: 0.4rem;
  }
  .report-modal-footer button {
    flex: 1 1 auto;
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
  }
}









