/* premium.css — GlobeTimeZone V11 高级感设计系统 */

/* ============== CSS 变量升级 ============== */
:root {
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent-light: #eff6ff;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============== 全局基础 ============== */
body {
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(56, 189, 248, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ============== 导航栏高级化 ============== */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background var(--transition), box-shadow var(--transition);
}
header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.92);
}
header nav a {
  transition: color var(--transition-fast), transform var(--transition-fast);
  font-size: 0.9rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}
header nav a:hover {
  color: var(--accent) !important;
  transform: translateY(-1px);
}
.pro-link {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff !important;
  padding: 0.35rem 1rem !important;
  border-radius: 20px !important;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.pro-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
}

/* ============== Hero 区域 ============== */
.hero {
  position: relative;
  overflow: visible;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Hero 标题 */
.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 20px;
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.7s ease-out;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 60%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.7s ease-out 0.1s both;
  position: relative;
  z-index: 1;
}
.hero .subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeSlideUp 0.7s ease-out 0.2s both;
  position: relative;
  z-index: 1;
}

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

/* ============== 搜索框高级化 ============== */
.smart-search {
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.7s ease-out 0.3s both;
}
.smart-search input {
  transition: all var(--transition);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
.smart-search input:focus {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow), var(--shadow-glow) !important;
  background: #fff;
}
.smart-search button {
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.smart-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.smart-search button:active {
  transform: translateY(0) scale(0.97);
}

/* ============== 添加城市框 ============== */
#city-search-input {
  transition: all var(--transition);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#city-search-input:focus {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow), 0 0 20px rgba(37, 99, 235, 0.1) !important;
  background: #fff;
}
#city-search-btn {
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}
#city-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ============== 城市卡片升级（玻璃拟态） ============== */
.city-status-card {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius) !important;
  padding: 1.2rem 1.4rem !important;
  box-shadow: var(--shadow) !important;
  transition: all var(--transition) !important;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}
.city-status-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  transition: all var(--transition);
}
.city-status-card.status-working::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.city-status-card.status-off::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.city-status-card.status-night::before {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}
.city-status-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(37, 99, 235, 0.08) !important;
}
.city-status-card .card-city-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.city-status-card .card-time {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.city-status-card .card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============== 状态徽章 ============== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
}
.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============== 地球容器装饰 ============== */
#earth-visual {
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.7s ease-out 0.35s both;
}
#earth-visual canvas {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(10, 30, 60, 0.15) !important;
  transition: box-shadow var(--transition-slow);
}
#earth-visual canvas:hover {
  box-shadow: var(--shadow-lg), 0 0 80px rgba(10, 40, 80, 0.25) !important;
}

/* ============== 滚动揭示动画 ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Footer ============== */
footer {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--border-subtle) !important;
}
footer a {
  transition: color var(--transition-fast);
}
footer a:hover {
  color: var(--accent) !important;
}

/* ============== 响应式微调 ============== */
@media (max-width: 640px) {
  .hero {
    padding: 2rem 1rem !important;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .smart-search {
    flex-direction: column;
    gap: 0.5rem;
  }
  .city-status-card {
    min-width: 130px;
    padding: 1rem 1.1rem !important;
  }
  .city-status-card .card-time {
    font-size: 1.4rem;
  }
}

/* ============== 搜索下拉高级化 ============== */
#city-search-dropdown {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}
#city-search-dropdown > div {
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}
#city-search-dropdown > div:hover {
  background: var(--accent-light);
  color: var(--accent);
}
