/* ========================================
   专属关爱 - 日漫主题样式
   支持：进击的巨人 / 鬼灭之刃 / 银魂
   ======================================== */

/* === CSS 变量（默认：进击的巨人） === */
:root {
  --primary: #4A5D4E;
  --primary-light: #6B8A6E;
  --accent: #C4A962;
  --accent-glow: rgba(196, 169, 98, 0.3);
  --danger: #8B0000;
  --card-bg: rgba(20, 22, 20, 0.85);
  --card-border: rgba(196, 169, 98, 0.25);
  --text: #E8E0D0;
  --text-secondary: #A09888;
  --bg: #0d0f0d;
  --bg-gradient: linear-gradient(180deg, #1a1f1a 0%, #0d0f0d 50%, #151815 100%);
  --pattern-opacity: 0.06;
  --tab-active-bg: rgba(196, 169, 98, 0.2);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 1px var(--card-border);
  --font-jp: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --header-bg: linear-gradient(180deg, rgba(74,93,78,0.3) 0%, transparent 100%);
}

/* 鬼灭之刃主题 */
[data-theme="demonslayer"] {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --accent: #c41e3a;
  --accent-glow: rgba(196, 30, 58, 0.4);
  --danger: #c41e3a;
  --card-bg: rgba(10, 12, 20, 0.88);
  --card-border: rgba(196, 30, 58, 0.3);
  --text: #E8E4F0;
  --text-secondary: #9088A0;
  --bg: #080a12;
  --bg-gradient: linear-gradient(180deg, #0a0f1f 0%, #080a12 50%, #0d1020 100%);
  --pattern-opacity: 0.08;
  --tab-active-bg: rgba(196, 30, 58, 0.25);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 2px rgba(196, 30, 58, 0.3);
  --header-bg: linear-gradient(180deg, rgba(26,58,92,0.4) 0%, transparent 100%);
}

/* 银魂主题 */
[data-theme="gintama"] {
  --primary: #4A6A8A;
  --primary-light: #6A8AAA;
  --accent: #FFB7C5;
  --accent-glow: rgba(255, 183, 197, 0.35);
  --danger: #D4456A;
  --card-bg: rgba(20, 22, 28, 0.85);
  --card-border: rgba(135, 206, 250, 0.25);
  --text: #F0F0F0;
  --text-secondary: #A0A8B0;
  --bg: #0f1118;
  --bg-gradient: linear-gradient(180deg, #1a1e2a 0%, #0f1118 50%, #151a24 100%);
  --pattern-opacity: 0.05;
  --tab-active-bg: rgba(255, 183, 197, 0.2);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 1px rgba(135, 206, 250, 0.3);
  --header-bg: linear-gradient(180deg, rgba(74,106,138,0.3) 0%, transparent 100%);
}

/* === 基础样式 === */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* === 日式纹理背景 === */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 15%, var(--accent) 0.5px, transparent 0.5px),
    radial-gradient(circle at 80% 25%, var(--accent) 0.5px, transparent 0.5px),
    radial-gradient(circle at 50% 45%, var(--accent) 0.8px, transparent 0.8px),
    radial-gradient(circle at 15% 65%, var(--accent) 0.5px, transparent 0.5px),
    radial-gradient(circle at 85% 75%, var(--accent) 0.5px, transparent 0.5px),
    radial-gradient(circle at 40% 90%, var(--accent) 1px, transparent 1px);
  background-size: 200px 200px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* === 浮动樱花 === */
.sakura-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #FFB7C5, #FF8FAB);
  border-radius: 60% 0 60% 0;
  opacity: 0;
  animation: sakuraFall linear infinite;
}

@keyframes sakuraFall {
  0% { opacity: 0; transform: translateY(-10vh) rotate(0deg) translateX(0); }
  5% { opacity: 0.7; }
  50% { opacity: 0.5; transform: translateY(50vh) rotate(180deg) translateX(60px); }
  100% { opacity: 0; transform: translateY(105vh) rotate(360deg) translateX(-30px); }
}

/* === 应用容器 === */
.app-container {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 12px 40px;
}

/* === Header === */
.app-header {
  position: relative;
  padding: 28px 16px 20px;
  margin: 0 -12px 16px;
  text-align: center;
  background: var(--header-bg);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}

/* 日式青海波图案 */
.header-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 6px, var(--card-border) 6px, var(--card-border) 6.5px),
    repeating-linear-gradient(90deg, transparent, transparent 6px, var(--card-border) 6px, var(--card-border) 6.5px);
  opacity: var(--pattern-opacity);
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.header-content { position: relative; z-index: 1; }

.app-title {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 4px;
}

.title-icon { font-size: 1.3rem; vertical-align: middle; }

.app-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

/* 主题切换标签 */
.anime-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.anime-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  -webkit-tap-highlight-color: transparent;
}

.anime-tab-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.anime-tab.active {
  color: var(--text);
  background: var(--tab-active-bg);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* === 通用卡片 === */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === 当前天气 === */
.weather-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.weather-temp {
  font-size: 3.5rem;
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.weather-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.weather-location {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.weather-icon-lg {
  font-size: 4rem;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 0.78rem;
}

.detail-item span:first-child { color: var(--text-secondary); }
.detail-item span:last-child { color: var(--text); font-weight: 500; }

/* === 智能建议 === */
.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.suggestion-item.clothing { background: rgba(100,180,255,0.1); border-left: 3px solid #64B4FF; }
.suggestion-item.sunscreen { background: rgba(255,180,60,0.1); border-left: 3px solid #FFB43C; }
.suggestion-item.umbrella { background: rgba(130,180,255,0.1); border-left: 3px solid #82B4FF; }
.suggestion-item.air { background: rgba(150,220,180,0.1); border-left: 3px solid #96DCB4; }
.suggestion-item.general { background: rgba(255,255,255,0.05); border-left: 3px solid var(--accent); }

.suggestion-emoji { font-size: 1.2rem; flex-shrink: 0; }

/* === 天气预报 === */
.forecast-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.forecast-scroll::-webkit-scrollbar { display: none; }

.forecast-day {
  flex: 0 0 auto;
  min-width: 80px;
  text-align: center;
  padding: 12px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.forecast-day-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.forecast-day-icon {
  font-size: 1.6rem;
  margin: 4px 0;
}

.forecast-day-temp {
  font-size: 0.78rem;
  color: var(--text);
}

.forecast-day-temp .low {
  color: var(--text-secondary);
  margin-left: 4px;
}

/* === 待办 === */
.todo-input-row, .wish-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.todo-input, .wish-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
}

.todo-input:focus, .wish-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.todo-input::placeholder, .wish-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.todo-time {
  padding: 10px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  width: 110px;
  color-scheme: dark;
}

.todo-time:focus { border-color: var(--accent); }

.btn-add {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.btn-add:active { transform: scale(0.92); opacity: 0.8; }

.todo-list, .wish-list { display: flex; flex-direction: column; gap: 6px; }

.todo-item, .wish-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: all 0.3s;
}

.todo-item:active { background: rgba(255,255,255,0.05); }

.todo-checkbox, .wish-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--card-border);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.todo-checkbox.done, .wish-checkbox.done {
  background: var(--accent);
  border-color: var(--accent);
}

.todo-info, .wish-info { flex: 1; min-width: 0; }

.todo-title, .wish-title {
  font-size: 0.88rem;
  color: var(--text);
}

.todo-item.done .todo-title,
.wish-item.done .wish-title {
  text-decoration: line-through;
  color: var(--text-secondary);
  opacity: 0.6;
}

.todo-time-badge {
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--tab-active-bg);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.todo-delete, .wish-delete {
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
}

.todo-delete:active, .wish-delete:active {
  background: rgba(200,50,50,0.2);
  color: var(--danger);
}

.todo-empty, .wish-empty, .forecast-placeholder {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 20px 0;
  opacity: 0.6;
}

/* === 情话卡片 === */
.quote-content {
  text-align: center;
  padding: 10px 0;
}

.quote-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
  font-style: italic;
  letter-spacing: 0.05em;
}

.quote-refresh {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.3s;
}

.quote-refresh:active {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Footer === */
.app-footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.5;
  letter-spacing: 0.1em;
}

/* === iOS 安全区域适配 === */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .app-container { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* === 添加主屏幕提示 === */
.add-to-home {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 12px 20px;
  font-size: 0.8rem;
  color: var(--accent);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  text-align: center;
}

.add-to-home.show { opacity: 1; }

/* === 加载动画 === */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 1.4s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%,80%,100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* === 过渡动画 === */
.card {
  animation: cardIn 0.5s ease backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }

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

/* === 图片占位区域 === */
.anime-image-slot {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin: 8px 0;
  overflow: hidden;
  position: relative;
}

.anime-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-image-slot .placeholder-text {
  position: absolute;
  pointer-events: none;
}

/* === 响应式调整 === */
@media (min-width: 500px) {
  .app-container { padding: 0 20px 40px; }
  .app-header { margin: 0 -20px 16px; }
  .weather-temp { font-size: 4rem; }
  .forecast-day { min-width: 90px; }
}

/* iPhone SE / 小屏适配 */
@media (max-width: 374px) {
  .app-title { font-size: 1.5rem; }
  .weather-temp { font-size: 2.8rem; }
  .todo-time { width: 90px; font-size: 0.72rem; }
}

/* 深色主题日式纹理叠加 */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* === 图片容器（用户可替换） === */
.anime-header-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.anime-decor-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.8;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.toast.show { opacity: 1; }

/* === 日漫背景图层 === */
.anime-bg-layer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease;
  opacity: 0.35;
}

/* 背景图加载失败时各主题的CSS渐变兜底 */
.anime-bg-layer[style*="aot-bg"],
[data-theme="aot"] .anime-bg-layer {
  background-color: #0d0f0d;
}

[data-theme="demonslayer"] .anime-bg-layer {
  background-color: #080a12;
}

[data-theme="gintama"] .anime-bg-layer {
  background-color: #0f1118;
}

/* 半透明遮罩（保证文字清晰可读） */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
  z-index: 0;
}

/* === 日历下载按钮 === */
.todo-calendar {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.todo-calendar:active {
  background: var(--tab-active-bg);
  transform: scale(0.9);
}

/* === 浏览器引导卡片 === */
.guide-card {
  position: fixed;
  bottom: 30px;
  left: 16px;
  right: 16px;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 20px;
  z-index: 150;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 16px var(--accent-glow);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.guide-card.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.guide-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  text-align: center;
}

.guide-steps { display: flex; flex-direction: column; gap: 10px; }

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

.guide-num {
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-close {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.guide-close:active { opacity: 0.7; }

/* === 微信提醒订阅 === */
.wxpusher-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-align: center;
}

.wxpusher-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.wx-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.wx-step a { color: var(--accent); }

.wx-step-num {
  width: 20px; height: 20px;
  background: var(--tab-active-bg);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wxpusher-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wxpusher-note {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 10px;
  line-height: 1.5;
}

.wxpusher-note code {
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
}

/* === 背景控制 === */
.bg-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bg-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === 小米风格时间选择器 === */
.time-trigger {
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  min-width: 100px;
  text-align: center;
  transition: all 0.3s;
}
.time-trigger.has-time { color: var(--accent); border-color: var(--accent); }

.time-picker-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.time-picker-overlay.show { opacity: 1; pointer-events: auto; }

.time-picker-panel {
  width: 100%; max-width: 500px;
  background: #1a1a25;
  border-radius: 24px 24px 0 0;
  padding: 20px 16px 30px;
  border-top: 1px solid var(--card-border);
}

.tp-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem; font-weight: 600;
}

.tp-close {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  color: var(--text-secondary); font-size: 0.9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.tp-diff {
  text-align: center; font-size: 0.8rem;
  color: var(--accent); margin-bottom: 14px;
  padding: 6px 12px;
  background: var(--tab-active-bg);
  border-radius: 12px; display: inline-block; width: 100%;
}

.tp-columns {
  display: flex; gap: 8px; margin-bottom: 20px; height: 180px;
}

.tp-col { flex: 1; display: flex; flex-direction: column; }
.tp-col-min { flex: 1; }

.tp-col-title {
  text-align: center; font-size: 0.7rem;
  color: var(--text-secondary); margin-bottom: 6px;
}

.tp-scroll {
  flex: 1; overflow-y: auto; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(255,255,255,0.03);
  border-radius: 14px; padding: 8px 0;
}
.tp-scroll::-webkit-scrollbar { display: none; }

.tp-option {
  height: 42px; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text-secondary);
  scroll-snap-align: center; cursor: pointer;
  border-radius: 10px; margin: 2px 6px; transition: all 0.2s;
}

.tp-option.active {
  color: var(--accent); font-size: 1.05rem; font-weight: 600;
  background: var(--tab-active-bg);
}

.tp-confirm {
  width: 100%; padding: 14px;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 14px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
.tp-confirm:active { opacity: 0.7; }

/* 简化推送模块 */
.wxpusher-desc { font-size: 0.8rem; color: var(--text-secondary); text-align: center; margin-bottom: 6px; }

.sc-link {
  display: block; text-align: center;
  padding: 12px; margin: 8px 0;
  background: var(--accent); color: var(--bg);
  border-radius: 14px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s;
}
.sc-link:active { opacity: 0.7; }

.sc-qr-wrap { text-align: center; padding: 10px 0; }
.sc-qr { width: 160px; height: 160px; border-radius: 12px; border: 1px solid var(--card-border); }
.sc-qr-text { font-size: 0.75rem; color: var(--text-secondary); margin-top: 8px; }
.sc-qr-fallback { padding: 30px; font-size: 0.9rem; color: var(--accent); text-align: center; }
