/* 作战台 v2 - 科技感主题 */

/* 基础变量 */
:root {
  --primary-color: #00d4ff;
  --primary-dark: #0099cc;
  --secondary-color: #7c3aed;
  --bg-color: #0a0e17;
  --bg-gradient: linear-gradient(135deg, #0a0e17 0%, #1a1f35 50%, #0d1220 100%);
  --card-bg: rgba(20, 30, 48, 0.7);
  --card-border: rgba(0, 212, 255, 0.15);
  --text-primary: #e8f4f8;
  --text-secondary: #8899aa;
  --accent-color: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.4);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --glass: blur(12px);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 150, 200, 0.04) 0%, transparent 70%);
  * pointer-events: none;
  z-index: -1;
}

/* 网格背景 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  * pointer-events: none;
  z-index: -1;
}

/* 容器 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(0, 40, 80, 0.8) 0%, rgba(0, 60, 100, 0.6) 100%);
  border-radius: var(--radius);
  color: white;
  margin-bottom: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 60px rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.2);
  backdrop-filter: var(--glass);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.1), transparent 30%);
  animation: rotate 20s linear infinite;
  opacity: 0.5;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.date-section {
  text-align: left;
  position: relative;
  z-index: 1;
}

.date {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  letter-spacing: 1px;
}

.weekday {
  font-size: 16px;
  opacity: 0.9;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 2px;
}

.weather-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 212, 255, 0.1);
  padding: 12px 20px;
  border-radius: 24px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
  z-index: 1;
}

.weather-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.weather-text {
  font-size: 15px;
  color: var(--primary-color);
  font-weight: 500;
}

/* 卡片 */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.6;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
}

.card-title::before {
  content: '◆';
  font-size: 10px;
  opacity: 0.8;
}

/* 壁纸卡片 */
.wallpaper-card {
  padding: 16px;
}

.wallpaper-container {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.wallpaper-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.wallpaper-container .loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

/* 微博热搜 */
.weibo-card {
  border-left: 3px solid #ff6b6b;
}

.weibo-card::before {
  background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
}

.hot-list {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
}

.hot-list li {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list li:hover {
  background: rgba(255, 107, 107, 0.1);
  padding-left: 18px;
  color: var(--text-primary);
}

.hot-list .rank {
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.hot-list .rank.top3 {
  color: #ff6b6b;
  font-size: 16px;
}

.hot-list .title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-list .hot-value {
  font-size: 12px;
  color: #888;
}

/* 摸鱼日报 */
.moyu-card {
  border-left: 3px solid #ffd93d;
}

.moyu-card::before {
  background: linear-gradient(90deg, transparent, #ffd93d, transparent);
}

.moyu-content {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.moyu-content .moyu-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.moyu-content .moyu-desc {
  margin-bottom: 16px;
}

.moyu-content .moyu-author {
  font-size: 13px;
  color: #888;
}

.moyu-content .loading {
  text-align: center;
  padding: 20px;
}

/* 黄金价格 */
.price-card {
  border-left: 3px solid #ffd700;
}

.price-card::before {
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.price-content {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.price-content .price-value {
  color: #ffd700;
  font-size: 28px;
}

.price-content .price-change {
  font-size: 14px;
  margin-left: 12px;
}

.price-content .price-change.up {
  color: #ef4444;
}

.price-content .price-change.down {
  color: #10b981;
}

.price-content .loading {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 汇率 */
.exchange-card {
  border-left: 3px solid #10b981;
}

.exchange-card::before {
  background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.exchange-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.exchange-item {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 140px;
}

.exchange-item .currency {
  font-size: 14px;
  color: #888;
  margin-bottom: 4px;
}

.exchange-item .rate {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.exchange-content .loading {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
}

/* 历史上的今天 */
.history-list {
  list-style: none;
}

.history-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.history-list li:last-child {
  border-bottom: none;
}

.history-list li:hover {
  padding-left: 8px;
  color: var(--text-primary);
}

.history-list .year {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.history-list .loading {
  text-align: center;
  color: var(--text-secondary);
}

/* 励志语句 */
.quote-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(0, 60, 100, 0.2) 100%);
}

.quote-content {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(0, 100, 150, 0.1) 100%);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 3px solid var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.quote-content::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 80px;
  color: rgba(124, 58, 237, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-content p {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.quote-content cite {
  display: block;
  text-align: right;
  font-size: 14px;
  color: var(--secondary-color);
  font-style: normal;
  letter-spacing: 1px;
}

/* 底部 */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0.7;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  margin-top: 20px;
}

.footer span {
  color: var(--primary-color);
  font-family: 'Monaco', 'Menlo', monospace;
}

/* 加载动画 */
.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* 扫描线效果 */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* .scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  /* animation: scanline 8s linear infinite;
  * pointer-events: none;
  z-index: 1000;
  opacity: 0.3;
}

/* 文字渲染优化 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 14, 23, 0.8);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

/* 卡片入场动画 */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  animation: fadeSlideUp 0.6s ease-out;
}

.card:nth-child(1) { animation: fadeSlideUp 0.6s ease-out 0.1s both; }
.card:nth-child(2) { animation: fadeSlideUp 0.6s ease-out 0.15s both; }
.card:nth-child(3) { animation: fadeSlideUp 0.6s ease-out 0.2s both; }
.card:nth-child(4) { animation: fadeSlideUp 0.6s ease-out 0.25s both; }
.card:nth-child(5) { animation: fadeSlideUp 0.6s ease-out 0.3s both; }
.card:nth-child(6) { animation: fadeSlideUp 0.6s ease-out 0.35s both; }
.card:nth-child(7) { animation: fadeSlideUp 0.6s ease-out 0.4s both; }

.footer {
  animation: fadeSlideUp 0.6s ease-out 0.45s both;
}

/* 头部呼吸光效 */
@keyframes headerGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 60px rgba(0,212,255,0.12); }
  50% { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 80px rgba(0,212,255,0.22); }
}

.header {
  animation: fadeSlideUp 0.6s ease-out, headerGlow 4s ease-in-out infinite 1s;
}

/* 卡片标题微光扫过 */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.card-title {
  background: linear-gradient(90deg, var(--primary-color) 0%, #7cf5ff 40%, var(--primary-color) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

/* 历史列表项悬停增强 */
.history-list li {
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

.history-list li:hover {
  background: rgba(0, 212, 255, 0.05);
  padding-left: 14px;
}

/* 年份标签悬停 */
.history-list .year {
  transition: all 0.2s ease;
}

.history-list li:hover .year {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.15);
}

/* 励志卡片增强 */
.quote-content {
  transition: all 0.3s ease;
}

.quote-card:hover .quote-content {
  border-left-color: var(--primary-color);
  box-shadow: inset 3px 0 12px rgba(124, 58, 237, 0.1);
}

/* 底部链接风格 */
.footer {
  transition: opacity 0.3s ease;
}

.footer:hover {
  opacity: 1;
}

/* 响应式 */
@media (max-width: 600px) {
  .container {
    padding: 12px;
  }

  .header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }

  .date-section {
    text-align: center;
  }

  .date {
    font-size: 26px;
  }

  .weather-section {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 20px;
  }

  .quote-content p {
    font-size: 16px;
  }
  
  .card-title {
    font-size: 16px;
  }

  .exchange-content {
    flex-direction: column;
  }

  .exchange-item {
    width: 100%;
  }
}

/* ========== V4 新增样式 ========== */

/* 顶部今日一言横向滚动 */
.quote-card-header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(0, 60, 100, 0.15) 100%);
  border-left: 3px solid #7c3aed;
  padding: 16px 24px;
  margin-bottom: 16px;
}

.quote-card-header::before {
  background: linear-gradient(90deg, transparent, #7c3aed, transparent);
}

.quote-scroll-container {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.quote-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.quote-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* 历史上的今天横向滚动 */
.history-card {
  margin-bottom: 16px;
}

.history-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.history-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.history-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 212, 255, 0.05);
  border-radius: 2px;
}

.history-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 2px;
}

.history-item {
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 180px;
  max-width: 220px;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.history-item .year {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
  background: rgba(0, 212, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.history-item .title {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-scroll-container .loading {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
}

/* 快捷入口网格 */
.shortcuts-card {
  border-left: 3px solid #f59e0b;
  margin-bottom: 16px;
}

.shortcuts-card::before {
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.shortcut-item:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.shortcut-item.kfc:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
}

.shortcut-icon {
  font-size: 28px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.shortcut-item:hover .shortcut-icon {
  transform: scale(1.15);
}

.shortcut-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* 今日运势弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #1a1f35 0%, #0d1220 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 24px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.2);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.luck-result {
  text-align: center;
}

.luck-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  background: linear-gradient(90deg, #7c3aed, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.luck-content {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.luck-score {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.luck-score.high { color: #ffd700; }
.luck-score.medium { color: #f59e0b; }
.luck-score.low { color: #ef4444; }

.luck-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.luck-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.luck-tag {
  background: rgba(124, 58, 237, 0.2);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.luck-loading {
  padding: 40px;
  color: var(--text-secondary);
  animation: pulse 1.5s ease-in-out infinite;
}

/* 响应式快捷入口 */
@media (max-width: 600px) {
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .history-item {
    min-width: 160px;
    max-width: 180px;
    padding: 12px 14px;
  }
  
  .modal-content {
    padding: 24px;
  }
}

/* ========== V4.1 修复样式 ========== */

/* 农历样式 */
.lunar {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  opacity: 0.85;
}

/* 今日一言顶部大卡片 */
.quote-card-header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(0, 60, 100, 0.2) 100%);
  border-left: 3px solid #7c3aed;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.quote-card-header::before {
  background: linear-gradient(90deg, transparent, #7c3aed, transparent);
}

.quote-full-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-full-container .quote-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.quote-full-container .quote-text {
  flex: 1;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 500;
}

/* 历史的今天 - 更窄，横向自动滚动 */
.history-card {
  margin-bottom: 16px;
  padding: 16px 20px;
}

.history-card .card-title {
  margin-bottom: 14px;
  font-size: 16px;
}

.history-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* 自动滚动动画 */
  animation: autoScroll 30s linear infinite;
}

.history-scroll-container:hover {
  animation-play-state: paused;
}

@keyframes autoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.history-scroll-container::-webkit-scrollbar {
  height: 3px;
}

.history-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 212, 255, 0.05);
  border-radius: 2px;
}

.history-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.25);
  border-radius: 2px;
}

.history-item {
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 150px;
  max-width: 170px;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-2px);
}

.history-item .year {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 12px;
  background: rgba(0, 212, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.history-item .title {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-scroll-container .loading {
  width: 100%;
  text-align: center;
  padding: 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ========== V5 整合头部样式 ========== */
.header-single {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(0, 40, 80, 0.8) 0%, rgba(0, 60, 100, 0.6) 100%);
  border-radius: var(--radius);
  color: white;
  margin-bottom: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 60px rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.2);
  backdrop-filter: var(--glass);
  position: relative;
  overflow: hidden;
  font-size: 15px;
}

.header-single .separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 4px;
}

.header-single #currentDate {
  font-weight: 600;
  color: var(--primary-color);
}

.header-single #currentWeekday {
  color: var(--text-secondary);
}

.header-single #weather {
  color: var(--text-primary);
}

.header-single #headerQuote {
  color: #e8b4ff;
  font-style: italic;
}

/* 响应式 */
@media (max-width: 600px) {
  .header-single {
    font-size: 13px;
    padding: 16px;
    gap: 6px;
  }
  
  .header-single .separator {
    display: none;
  }
}

/* 历史上的今天 - 单行滚动 */
.history-ticker {
  margin-bottom: 16px;
  padding: 12px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.history-ticker .history-scroll-container {
  display: flex;
  gap: 40px;
  overflow: hidden;
  white-space: nowrap;
}

.history-ticker .history-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
}

.history-ticker .year {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
}

.history-ticker .title {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 滚动动画 */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.history-ticker .history-scroll-container {
  animation: ticker 30s linear infinite;
}

.history-ticker:hover .history-scroll-container {
  animation-play-state: paused;
}

/* 备案信息 */
.footer .icp {
  color: #888;
  font-size: 12px;
  margin-top: 8px;
}

/* ========== 时间进度条样式 ========== */
.progress-bar-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0, 40, 80, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  margin-bottom: 16px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 180px;
}

.progress-label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #7cf5ff);
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-text {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 500;
  white-space: nowrap;
  min-width: 45px;
}

.festival-countdown {
  flex: 0 0 auto;
  min-width: auto;
}

.festival-countdown .progress-label {
  color: #ff9f43;
}

.festival-countdown .progress-text {
  color: #ff9f43;
  font-weight: 600;
}

/* 响应式 */
@media (max-width: 600px) {
  .progress-bar-container {
    gap: 12px;
    padding: 12px 16px;
  }
  
  .progress-item {
    min-width: 100%;
  }
}

/* ========== 热搜紧凑布局 ========== */
.hot-compact-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.hot-compact-container .card {
  margin-bottom: 0;
  padding: 16px;
}

.hot-compact-container .card-title {
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.hot-compact-container .hot-list {
  max-height: 180px;
}

.hot-compact-container .hot-list li {
  padding: 8px 10px;
  font-size: 13px;
}

.hot-compact-container .hot-list .rank {
  min-width: 20px;
  font-size: 12px;
}

.hot-compact-container .hot-list .title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .hot-compact-container {
    grid-template-columns: 1fr;
  }
}

/* 历史今天完全显示 */
.history-ticker .history-item {
  min-width: 200px;
  max-width: 280px;
}

.history-ticker .history-item .title {
  -webkit-line-clamp: unset;
  white-space: normal;
}

/* 站点标题 */
.site-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 16px 0 8px;
  background: linear-gradient(135deg, var(--primary-color), #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 历史今天完全显示 */
.history-ticker .history-item {
  min-width: 200px;
  max-width: 280px;
}

.history-ticker .title {
  white-space: normal !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
}
