:root {
  --hlj-red: #d84a3a;
  --hlj-gold: #caa06b;
  --text-main: #2f2f2f;
  --text-muted: #8a8a8a;
  --panel-bg: #ffffff;
  --detail-bg: #f9f6f1;
  --border-soft: #ececec;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #fdfbfb 0%, #f7f4f0 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  position: relative;
  width: 100%;
}

.page {
  max-width: 1200px;
  margin: 20px auto 60px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--hlj-red);
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(216, 74, 58, 0.15);
}

.brand-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-btn:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-btn:active {
  transform: translateY(0);
}

.export-btn {
  padding: 8px 20px;
  background: var(--hlj-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(202, 160, 107, 0.3);
}

.export-btn:hover {
  background: #b8935f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(202, 160, 107, 0.4);
}

.export-btn:active {
  transform: translateY(0);
}

.filter-card {
  background: var(--panel-bg);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-nav-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f7f7f8;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.date-picker-wrapper {
  position: relative;
  flex: 1;
  max-width: none;
}

.date-picker-input {
  flex: 1;
  max-width: none;
  width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.today-btn {
  border: 1px solid rgba(216, 74, 58, 0.35);
  background: #fff7f5;
  color: var(--hlj-red);
  min-width: 62px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.today-btn:hover {
  background: #fff0ed;
  border-color: var(--hlj-red);
}

.date-picker-input:hover {
  border-color: var(--hlj-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(202, 160, 107, 0.25);
}

.date-picker-input:focus {
  outline: none;
  border-color: var(--hlj-red);
  box-shadow: 0 4px 12px rgba(216, 74, 58, 0.25);
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.date-chip {
  padding: 6px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #f7f7f7;
  color: #5a5a5a;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.date-chip:hover {
  border-color: var(--hlj-gold);
  color: var(--hlj-gold);
  transform: translateY(-1px);
}

.date-chip.active {
  border-color: var(--hlj-red);
  color: #fff;
  background: linear-gradient(135deg, #d84a3a 0%, #c43d2e 100%);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(216, 74, 58, 0.25);
}

.nav-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font-size: 26px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.nav-arrow:hover {
  border-color: var(--hlj-gold);
  color: var(--hlj-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(202, 160, 107, 0.25);
}

.date-picker-btn {
  flex: 1;
  max-width: 220px;
  padding: 10px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.date-picker-btn:hover {
  border-color: var(--hlj-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(202, 160, 107, 0.25);
}

.dropdown-icon {
  font-size: 12px;
  color: var(--text-muted);
}

.scene-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #f4f4f5;
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.scene-tab {
  min-width: 96px;
  padding: 9px 18px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: #5a5a5a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.scene-tab:hover {
  color: var(--hlj-red);
}

.scene-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #d84a3a 0%, #c43d2e 100%);
  box-shadow: 0 4px 10px rgba(216, 74, 58, 0.28);
}

.date-picker-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: flex-end;
}

.date-picker-modal.show {
  display: flex;
}

.modal-content {
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}

.modal-btn.confirm {
  color: var(--hlj-red);
  font-weight: 600;
}

.picker-container {
  display: flex;
  height: 240px;
  overflow: hidden;
  position: relative;
}

/* 中间选中区域的高亮背景 */
.picker-container::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
}

/* 上下渐变遮罩 */
.picker-container::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0) 65%,
    rgba(255,255,255,0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

.picker-column {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.picker-column::-webkit-scrollbar {
  display: none;
}

.picker-scroll {
  padding: 80px 0;
}

.picker-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.3);
  scroll-snap-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.picker-item.selected {
  color: #000;
  font-weight: 600;
  font-size: 18px;
  transform: scale(1.05);
}

.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.calendar-panel {
  background: var(--panel-bg);
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  touch-action: pan-y;
  user-select: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.calendar-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #2c2c2c;
  letter-spacing: 2px;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 13px;
  color: #a2a2a2;
}

.weekday-row .weekend {
  color: var(--hlj-red);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-cell {
  min-height: 85px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.day-cell:hover:not(.selected):not(.empty) {
  border-color: var(--hlj-gold);
  box-shadow: 0 8px 24px rgba(202, 160, 107, 0.25);
  transform: translateY(-4px);
}

.day-cell.selected {
  background: linear-gradient(135deg, #d84a3a 0%, #c43d2e 100%);
  color: #fff;
  transform: scale(1.05);
  border-color: var(--hlj-red);
  box-shadow: 0 12px 28px rgba(216, 74, 58, 0.35);
  z-index: 1;
}

.day-cell.empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
}

.day-cell .solar {
  font-size: 20px;
  font-weight: 700;
  color: #3a3a3a;
  position: relative;
  z-index: 2;
}

.day-cell .lunar {
  font-size: 13px;
  color: #9a9a9a;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.day-cell .lunar.festival {
  color: var(--hlj-red);
  font-weight: 600;
}

.day-cell.selected .solar,
.day-cell.selected .lunar {
  color: #fff;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.holiday-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
  z-index: 1;
}

.badge.good {
  background: #ffe6e1;
  color: var(--hlj-red);
}

.badge.mid {
  background: #fff3d6;
  color: #d97706;
}

.badge.bad {
  background: #f1f5f9;
  color: #64748b;
}

.day-cell.selected .badge {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.day-cell.good-outline {
  border-color: rgba(216, 74, 58, 0.25);
}

.calendar-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  min-height: 18px;
}

.detail-panel {
  background: linear-gradient(135deg, #faf8f5 0%, #f9f6f1 100%);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #efe7db;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 24px;
}

.detail-top {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-date-tag {
  display: inline-block;
  align-self: center;
  background: var(--hlj-gold);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 2px;
}

.detail-main-date {
  font-size: 38px;
  font-weight: 700;
  color: var(--hlj-red);
  letter-spacing: 2px;
}

.detail-lunar {
  font-size: 17px;
  color: var(--hlj-red);
  letter-spacing: 3px;
}

.action-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.status-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.status-item {
  position: relative;
}

.status-item span {
  font-size: 11px;
  color: #666;
  cursor: help;
}

.status-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(47, 47, 47, 0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  width: 220px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-item::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  border: 6px solid transparent;
  border-top-color: rgba(47, 47, 47, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.status-item:hover::after,
.status-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.status-item:hover::before {
  transform: translateX(-50%) translateY(6px);
}

.status-pill {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 8px;
  color: #fff;
  background: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.status-pill:hover {
  transform: scale(1.05);
}

.status-pill.good {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.status-pill.mid {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.status-pill.bad {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.status-pill.unknown {
  background: #e5e7eb;
  color: #6b7280;
}

.divider {
  height: 1px;
  background: #f1f1f1;
}

.yi-ji {
  display: grid;
  gap: 12px;
}

.yi-row,
.ji-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #666;
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

.tag-yi {
  background: #e6f7ee;
  color: #16a34a;
}

.tag-ji {
  background: #fdecec;
  color: #dc2626;
}

.hot-card {
  background: linear-gradient(135deg, #2c2c2c 0%, #1f1f1f 100%);
  color: #fff;
  padding: 20px 24px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hot-label {
  font-size: 13px;
  color: #c7c7c7;
  letter-spacing: 1px;
  line-height: 1;
}

.hot-value {
  font-size: 22px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1;
}

.share-btn {
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(47, 47, 47, 0.9);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.share-btn:hover {
  border-color: #fff;
  background: rgba(47, 47, 47, 1);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 0 12px;
    margin: 4px auto 20px;
    gap: 8px;
  }

  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
  }

  .header-right {
    gap: 8px;
    flex-wrap: wrap;
  }

  .admin-btn {
    padding: 6px 14px;
    font-size: 11px;
    border-radius: 6px;
  }

  .export-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
    min-width: 0;
  }

  .brand-title {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .brand-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .scene-tabs {
    gap: 3px;
    padding: 3px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .scene-tab {
    min-width: 74px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 9px;
  }

  .filter-card {
    padding: 6px 12px;
  }

  .date-selector {
    gap: 6px;
  }

  .date-nav-group {
    padding: 6px 8px;
    gap: 8px;
  }

  .mobile-only {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .nav-arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .date-picker-input {
    font-size: 14px;
    padding: 8px 12px;
  }

  .today-btn {
    min-width: 52px;
    height: 32px;
    border-radius: 9px;
    font-size: 12px;
  }

  .calendar-panel,
  .detail-panel {
    padding: 10px;
  }

  .detail-panel {
    gap: 10px;
    position: static;
  }

  .calendar-title {
    font-size: 20px;
  }

  .weekday-row {
    font-size: 12px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .day-cell {
    min-height: 48px;
  }

  .day-cell .solar {
    font-size: 15px;
  }

  .day-cell .lunar {
    font-size: 10px;
    margin-top: 2px;
  }

  .day-cell .lunar.festival {
    font-size: 10px;
  }

  .badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: 2px;
    right: 2px;
  }

  .holiday-badge {
    width: 14px;
    height: 14px;
    font-size: 8px;
    top: 2px;
    left: 2px;
  }

  .detail-panel {
    gap: 10px;
    position: static;
  }

  .detail-top {
    gap: 8px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: nowrap;
  }

  .detail-date-tag {
    display: none;
  }

  .detail-main-date {
    font-size: 16px;
    flex-shrink: 0;
  }

  .detail-lunar {
    display: none;
  }

  .action-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .hot-card {
    padding: 3px 8px;
    background: rgba(47, 47, 47, 0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    border-radius: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
    height: 20px;
  }

  .hot-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1;
  }

  .hot-value {
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
  }

  .share-btn {
    padding: 3px 8px;
    font-size: 8px;
    background: rgba(47, 47, 47, 0.9) !important;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
    white-space: nowrap;
    height: 20px;
    line-height: 1;
  }

  .share-btn:active {
    background: rgba(47, 47, 47, 1) !important;
    transform: scale(0.95);
  }

  .status-card {
    padding: 10px;
    gap: 8px;
  }

  .status-grid {
    gap: 10px;
  }

  .status-item span {
    font-size: 11px;
  }

  /* 移动端不再使用悬浮提示，完全隐藏伪元素气泡 */
  .status-item::after,
  .status-item::before {
    display: none !important;
  }

  .status-pill {
    width: 46px;
    height: 46px;
    font-size: 16px;
    margin-bottom: 6px;
  }

  .yi-row,
  .ji-row {
    font-size: 12px;
    gap: 8px;
  }

  .tag {
    font-size: 11px;
    padding: 2px 6px;
  }

  .hot-card {
    padding: 12px 14px;
  }

  .hot-label {
    font-size: 11px;
  }

  .hot-value {
    font-size: 16px;
  }

  .share-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  .calendar-hint {
    display: none;
  }
}

/* Toast 提示样式 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(47, 47, 47, 0.95);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  text-align: center;
  max-width: 80%;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

/* 状态说明弹窗（移动端优先） */
.status-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11000;
}

.status-modal.show {
  display: flex;
}

.status-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.status-modal-dialog {
  position: relative;
  z-index: 1;
  width: calc(100vw - 48px);
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 18px 20px 20px;
}

.status-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.status-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.status-modal-close {
  border: none;
  background: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 6px;
}

.status-modal-content {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  max-height: 60vh;
  overflow-y: auto;
  word-break: break-word;
}

.month-sheet {
  position: fixed;
  inset: 0;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.month-sheet.show {
  opacity: 1;
  pointer-events: auto;
}

.month-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
}

.month-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

.month-sheet.show .month-sheet-panel {
  transform: translateY(0);
}

.month-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1f1;
}

.month-sheet-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.month-sheet-action {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  padding: 6px 4px;
  cursor: pointer;
}

.month-sheet-action.primary {
  color: var(--hlj-red);
  font-weight: 600;
}

.month-sheet-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 16px 16px;
}

.month-wheel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wheel-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.wheel-list {
  height: 220px;
  overflow-y: auto;
  padding: 88px 0;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wheel-list::-webkit-scrollbar {
  display: none;
}

.wheel-item {
  width: 100%;
  height: 44px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  font-family: inherit;
  scroll-snap-align: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wheel-item.active {
  color: var(--hlj-red);
  font-weight: 600;
  transform: scale(1.05);
}

.wheel-highlight {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(50% + 10px);
  transform: translateY(-50%);
  height: 44px;
  border-radius: 10px;
  border-top: 1px solid rgba(216, 74, 58, 0.2);
  border-bottom: 1px solid rgba(216, 74, 58, 0.2);
  background: rgba(216, 74, 58, 0.04);
  pointer-events: none;
}

/* Flatpickr 自定义样式 - 只显示年月选择 */
.flatpickr-calendar .flatpickr-days {
  display: none !important;
}

.flatpickr-calendar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-soft) !important;
}

.flatpickr-months {
  padding: 12px 0 !important;
}

.flatpickr-current-month {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--hlj-red) !important;
}

.flatpickr-monthDropdown-months {
  font-size: 15px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--border-soft) !important;
  background: #fff !important;
  color: var(--text-main) !important;
}

.flatpickr-monthDropdown-months:hover {
  background: #f7f7f7 !important;
}

.numInputWrapper input {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--hlj-red) !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  fill: var(--hlj-gold) !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  fill: var(--hlj-red) !important;
}
