/* ============================================
   新功能样式
   ============================================ */

/* ---- 2. 旅行时光轴 ---- */
.timeline-horizontal {
  margin: 0 16px 20px;
  padding: 20px 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.timeline-horizontal::-webkit-scrollbar {
  display: none;
}

.timeline-h-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.timeline-h-track {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  padding: 0 8px;
}

.timeline-h-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  padding: 8px;
}

.timeline-h-node:hover {
  transform: scale(1.1);
}

.timeline-h-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: white;
  border: 3px solid var(--color-border);
  transition: all 0.3s;
}

.timeline-h-node:hover .timeline-h-dot {
  border-color: #667eea;
  transform: scale(1.1);
}

.timeline-h-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.timeline-h-time {
  font-size: 11px;
  color: var(--color-text-light);
}

.timeline-h-line {
  width: 40px;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
}

/* ---- 3. 日出日落 ---- */
.sun-times {
  margin: 0 16px 20px;
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.sun-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sun-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.sun-label {
  font-size: 11px;
  color: #92400e;
  margin-bottom: 2px;
}

.sun-time {
  font-size: 18px;
  font-weight: 700;
  color: #78350f;
}

.sun-divider {
  width: 1px;
  height: 40px;
  background: rgba(146, 64, 14, 0.2);
}

/* ---- 6. 拍照姿势 ---- */
.photo-poses {
  margin: 12px 16px;
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.photo-poses-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-poses-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.photo-poses-grid::-webkit-scrollbar {
  display: none;
}

.photo-pose-card {
  flex-shrink: 0;
  width: 120px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.photo-pose-emoji {
  font-size: 40px;
  margin-bottom: 6px;
}

.photo-pose-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.photo-pose-desc {
  font-size: 10px;
  color: #999;
}

/* ---- 7. 当地方言翻译 ---- */
.dialect-translator {
  margin: 12px 16px;
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius-md);
  border-left: 4px solid #f59e0b;
}

.dialect-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #92400e;
}

.dialect-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #fcd34d;
}

.dialect-item:last-child {
  border-bottom: none;
}

.dialect-phrase {
  flex: 1;
}

.dialect-cn {
  font-size: 14px;
  color: #333;
}

.dialect-local {
  font-size: 12px;
  color: #b45309;
  margin-top: 2px;
}

.dialect-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f59e0b;
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- 8. 美食雷达图 ---- */
.food-radar {
  margin: 12px 16px;
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.food-radar-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.food-radar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.food-radar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.food-radar-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.food-radar-info {
  flex: 1;
}

.food-radar-name {
  font-size: 14px;
  font-weight: 600;
}

.food-radar-meta {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 2px;
}

.food-radar-score {
  font-size: 16px;
  font-weight: 700;
  color: #f39c12;
}

/* ---- 9. 旅行印章 ---- */
.stamps-section {
  margin: 0 16px 20px;
  padding: 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stamps-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

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

.stamp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: all 0.3s;
}

.stamp-card.locked {
  opacity: 0.5;
}

.stamp-card.unlocked {
  background: linear-gradient(135deg, #fff5f5, #f0fff4);
  border: 2px dashed #ffd6d6;
}

.stamp-emoji {
  font-size: 32px;
}

.stamp-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.stamp-status {
  font-size: 10px;
  color: var(--color-text-light);
}

/* ---- 10. 行李清单 ---- */
.packing-section {
  margin: 0 16px 20px;
}

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

.packing-title {
  font-size: 16px;
  font-weight: 700;
}

.packing-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.packing-progress-bar {
  width: 100px;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.packing-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  transition: width 0.3s;
}

.packing-progress-text {
  font-size: 12px;
  color: var(--color-text-light);
}

.packing-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.packing-category {
  background: white;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.packing-category-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #667eea;
}

.packing-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s;
}

.packing-item:hover {
  background: var(--color-bg);
  border-radius: 6px;
  padding-left: 8px;
}

.packing-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.packing-item.checked .packing-checkbox {
  background: #27ae60;
  border-color: #27ae60;
  color: white;
}

.packing-item.checked .packing-item-text {
  text-decoration: line-through;
  color: #999;
}

.packing-item-text {
  font-size: 13px;
  color: var(--color-text);
}

/* ---- 11. 旅行契约 ---- */
.travel-contract {
  margin: 0 16px 20px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px dashed #e8e8e8;
}

.travel-contract-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #667eea;
}

.travel-contract-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.travel-contract-item:last-child {
  border-bottom: none;
}

.travel-contract-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.travel-contract-signatures {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed #eee;
}

.travel-contract-sig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.travel-contract-sig-emoji {
  font-size: 28px;
}

.travel-contract-sig-name {
  font-size: 12px;
  font-weight: 600;
}

/* ---- 12. 返程礼物清单 ---- */
.gift-section {
  margin: 0 16px 20px;
  padding: 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.gift-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gift-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gift-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.gift-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  cursor: pointer;
}

.gift-item.checked .gift-checkbox {
  background: #e74c3c;
  border-color: #e74c3c;
  color: white;
}

.gift-item.checked .gift-text {
  text-decoration: line-through;
  color: #999;
}

.gift-emoji {
  font-size: 24px;
}

.gift-info {
  flex: 1;
}

.gift-name {
  font-size: 14px;
  font-weight: 600;
}

.gift-from {
  font-size: 11px;
  color: var(--color-text-light);
}

/* ============================================
   实时天气样式
   ============================================ */

/* 时间轴上的迷你天气 */
.timeline-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  border-radius: 12px;
  color: white;
  font-size: 12px;
  animation: fadeInUp 0.3s ease;
}

.timeline-weather-icon {
  font-size: 16px;
}

.timeline-weather-temp {
  font-weight: 700;
}

.timeline-weather-mood {
  opacity: 0.9;
  font-size: 11px;
}

/* 天气卡片增强 - 新设计 */
.weather-card {
  position: relative;
  margin: 0 16px 12px;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  color: white;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.5s ease;
  overflow: hidden;
}

.weather-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.weather-card-main {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.weather-icon-big {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.weather-main-info {
  flex: 1;
}

.weather-city-name {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 2px;
}

.weather-temp-big {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.weather-temp-big span {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.8;
}

.weather-desc {
  font-size: 13px;
  opacity: 0.85;
}

.weather-meta-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}

.weather-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  opacity: 0.8;
}

.weather-clothes-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.weather-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.weather-forecast-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-weight: 500;
  margin-left: 6px;
}

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

.weather-update-time {
  font-size: 11px;
  opacity: 0.6;
}

.weather-refresh-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.weather-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.weather-refresh-btn.spinning {
  animation: spin 1s linear infinite;
}

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

/* 天气预报员增强 */
.weather-news {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.weather-news-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.weather-news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  animation: blink 2s ease-in-out infinite;
}

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

.weather-news-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}

.weather-news-refresh {
  padding: 4px 10px;
  border-radius: 12px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text-light);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s;
}

.weather-news-refresh:hover {
  background: #e8ecf1;
}

.weather-news-refresh.spinning {
  animation: spin 1s linear infinite;
}

.weather-news-refresh span {
  font-size: 11px;
}

.weather-news-live {
  color: #00b894;
  font-size: 12px;
  margin-left: 2px;
}

.weather-news-anchor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.weather-news-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.weather-news-content {
  flex: 1;
}

.weather-news-name {
  font-size: 14px;
  font-weight: 700;
}

.weather-news-role {
  font-size: 11px;
  color: var(--color-text-light);
}

/* 天气预报网格 - 横向滑动 */
.weather-news-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.weather-news-grid::-webkit-scrollbar {
  display: none;
}

.weather-news-city {
  flex-shrink: 0;
  width: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  border-radius: var(--radius-md);
  color: white;
  text-align: center;
}

.weather-news-city-name {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.weather-news-city-icon {
  font-size: 28px;
  line-height: 1;
}

.weather-news-city-temp {
  font-size: 16px;
  font-weight: 700;
}

.weather-news-city-desc {
  font-size: 10px;
  opacity: 0.85;
  line-height: 1.3;
}

.weather-news-footer {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.weather-news-footer small {
  color: var(--color-text-light);
}

/* 天气加载动画 */
.weather-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 响应式调整 */
@media (min-width: 768px) {
  .weather-card {
    margin-left: 0;
    margin-right: 0;
  }
}
/* ============================================
   留言板样式
   ============================================ */

/* 留言板触发按钮（隐藏在页脚上方） */
.message-board-trigger {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s;
  z-index: 100;
}

.message-board-trigger:hover {
  opacity: 0.8;
}

.message-board-trigger span {
  font-size: 16px;
}

/* 留言板面板 */
.message-board-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70vh;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.message-board-panel.active {
  transform: translateY(0);
}

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

.message-board-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.message-board-header button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-board-desc {
  padding: 8px 20px;
  text-align: center;
  color: var(--color-text-light);
}

.giscus-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.giscus-container .giscus {
  min-height: 300px;
}

/* 弹幕发送提示 */
.danmu-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

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

/* 响应式 */
@media (min-width: 768px) {
  .message-board-panel {
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 600px;
  }
  
  .message-board-panel.active {
    transform: translateX(-50%) translateY(0);
  }
}
