/* 钓鱼天气网站样式 - 苹果风格配色 */

:root {
  --apple-blue: #007aff;
  --apple-light-blue: #64a5ff;
  --apple-green: #34c759;
  --apple-red: #ff3b30;
  --apple-orange: #ff9500;
  --apple-yellow: #ffcc00;
  --apple-purple: #af52de;
  --apple-gray: #8e8e93;
  --apple-light-gray: #f2f2f7;
  --apple-dark-gray: #48484a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--apple-light-gray);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--apple-gray);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--apple-dark-gray);
}

/* 按钮样式 */
button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

/* 天气卡片样式 */
.forecast-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.current-weather {
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-light-blue));
}

/* 响应式调整 */
@media (max-width: 640px) {
  .container {
    padding: 16px;
  }
  
  .forecast-card {
    padding: 12px;
  }
}

/* 进度条动画 */
@keyframes loadProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.loading-animation {
  animation: loadProgress 1.5s ease-in-out infinite;
}

/* 输入框样式 */
input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
}

/* 鱼群活跃度指示器 */
.fish-activity-high {
  background-color: var(--apple-green);
}

.fish-activity-medium {
  background-color: var(--apple-yellow);
}

.fish-activity-low {
  background-color: var(--apple-orange);
}

/* 天气图标容器 */
.weather-icon {
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.15));
}

/* 日期显示样式 */
.date-display {
  font-weight: 500;
  color: var(--apple-dark-gray);
}

/* 温度范围显示 */
.temp-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.temp-max {
  color: var(--apple-red);
}

.temp-min {
  color: var(--apple-blue);
}

/* 动画过渡效果 */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 天气卡片水平滚动容器 */
.forecast-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  margin: 0 -8px;
  scrollbar-width: thin;
}

.forecast-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.forecast-scroll-container::-webkit-scrollbar-track {
  background: var(--apple-light-gray);
  border-radius: 10px;
}

.forecast-scroll-container::-webkit-scrollbar-thumb {
  background: var(--apple-gray);
  border-radius: 10px;
}

.forecast-scroll-container .forecast-card {
  flex: 0 0 auto;
  width: 200px;
  margin: 0 8px;
  box-sizing: border-box;
}

/* 滚动控制按钮 */
.scroll-controls {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  gap: 16px;
}

.scroll-btn {
  background-color: var(--apple-blue);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.scroll-btn:hover {
  background-color: var(--apple-light-blue);
}

.scroll-btn:disabled {
  background-color: var(--apple-gray);
  cursor: not-allowed;
}

/* 天气详情表格样式 */
.weather-details table {
  border-spacing: 0;
}

.weather-details td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-details tr:last-child td {
  border-bottom: none;
}

.weather-details td:first-child {
  padding-left: 4px;
  width: 40%;
}

.weather-details td:last-child {
  padding-right: 4px;
  width: 60%;
} 