/* ============================================
   Atlas — 世界图鉴式新闻探索系统
   地图元素 × 坐标系统 × 探索感 × 优雅明亮
   ============================================ */

/* ===== 全局重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== Body — 明亮地图纸张 ===== */
.at-body {
  font-family: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f6f1;
  color: #2d3436;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== 背景纹理 ===== */
.at-bg-texture {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(52, 152, 219, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(155, 89, 182, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(46, 204, 113, 0.03) 0%, transparent 60%);
}
.at-bg-texture::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ===== 顶部导航 ===== */
.at-nav {
  position: sticky; top: 0; z-index: 100; width: 100%;
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.at-nav-inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}

/* Logo */
.at-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.at-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}
.at-logo-text {
  font-size: 20px; font-weight: 600;
  color: #2d3436;
  letter-spacing: 1px;
}
.at-logo-text span {
  font-weight: 300;
  color: #636e72;
}

/* Nav Links */
.at-nav-links {
  display: flex; gap: 32px; list-style: none;
}
.at-nav-links a {
  color: #636e72;
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
}
.at-nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  transition: width 0.3s;
}
.at-nav-links a:hover { color: #2d3436; }
.at-nav-links a:hover::after { width: 100%; }

/* Nav Actions */
.at-nav-actions {
  display: flex; align-items: center; gap: 12px;
}
.at-search-btn, .at-menu-btn {
  width: 40px; height: 40px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #636e72;
  transition: all 0.3s;
}
.at-search-btn:hover, .at-menu-btn:hover {
  border-color: #3498db;
  color: #3498db;
  box-shadow: 0 2px 12px rgba(52, 152, 219, 0.15);
}

/* ===== Hero 区域 ===== */
.at-hero {
  position: relative; z-index: 1;
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(52, 152, 219, 0.03) 0%, transparent 100%);
}
.at-hero-inner {
  max-width: 1200px; margin: 0 auto;
}
.at-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  font-size: 12px; font-weight: 500;
  color: #636e72;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.at-hero-badge-dot {
  width: 6px; height: 6px;
  background: #2ecc71;
  border-radius: 50%;
  animation: atlas-pulse 2s ease-in-out infinite;
}
@keyframes atlas-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
.at-hero-title {
  font-size: 56px; font-weight: 300;
  color: #2d3436;
  letter-spacing: 8px; text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.1;
}
.at-hero-title strong {
  font-weight: 700;
  background: linear-gradient(135deg, #3498db 0%, #2ecc71 50%, #9b59b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.at-hero-subtitle {
  font-size: 18px; font-weight: 300;
  color: #636e72;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

/* 坐标装饰 */
.at-coords {
  display: flex; justify-content: center; gap: 40px;
  margin-bottom: 48px;
}
.at-coord {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: #b2bec3;
  letter-spacing: 1px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.at-coord-label {
  color: #3498db;
}

/* ===== 五大入口区域 ===== */
.at-entries {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px 80px;
}
.at-entries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .at-entries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .at-entries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .at-entries-grid { grid-template-columns: 1fr; }
}

/* 入口卡片 */
.at-entry-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.at-entry-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--entry-color, #3498db);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.at-entry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--entry-color, #3498db);
}
.at-entry-card:hover::before {
  transform: scaleX(1);
}
.at-entry-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--entry-color, #3498db) 0%, var(--entry-color-light, #74b9ff) 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.25);
}
.at-entry-title {
  font-size: 18px; font-weight: 600;
  color: #2d3436;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.at-entry-desc {
  font-size: 13px; color: #636e72;
  line-height: 1.6;
  margin-bottom: 16px;
}
.at-entry-count {
  font-size: 11px; font-weight: 500;
  color: #b2bec3;
  letter-spacing: 1px;
}

/* 颜色变体 */
.at-entry-card[data-type="regions"] { --entry-color: #3498db; --entry-color-light: #74b9ff; }
.at-entry-card[data-type="topics"] { --entry-color: #2ecc71; --entry-color-light: #55efc4; }
.at-entry-card[data-type="people"] { --entry-color: #9b59b6; --entry-color-light: #a29bfe; }
.at-entry-card[data-type="events"] { --entry-color: #e74c3c; --entry-color-light: #ff7675; }
.at-entry-card[data-type="trends"] { --entry-color: #f39c12; --entry-color-light: #ffeaa7; }

/* ===== 区域探索 ===== */
.at-section {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px 60px;
}
.at-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.at-section-title {
  font-size: 24px; font-weight: 600;
  color: #2d3436;
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 12px;
}
.at-section-title::before {
  content: '';
  width: 4px; height: 24px;
  background: linear-gradient(180deg, #3498db, #2ecc71);
  border-radius: 2px;
}
.at-section-link {
  font-size: 13px; font-weight: 500;
  color: #3498db;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.at-section-link:hover { color: #2980b9; }

/* 区域网格 */
.at-regions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .at-regions-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .at-regions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .at-regions-grid { grid-template-columns: 1fr; }
}

/* 区域卡片 */
.at-region-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: block;
}
.at-region-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
.at-region-img {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
  position: relative;
  overflow: hidden;
}
.at-region-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s;
}
.at-region-card:hover .at-region-img img {
  transform: scale(1.08);
}
.at-region-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.at-region-content {
  padding: 20px;
}
.at-region-name {
  font-size: 16px; font-weight: 600;
  color: #2d3436;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.at-region-meta {
  font-size: 12px; color: #636e72;
  display: flex; align-items: center; gap: 12px;
}
.at-region-dot {
  width: 4px; height: 4px;
  background: #b2bec3;
  border-radius: 50%;
}

/* ===== 重大事件时间线 ===== */
.at-events-section {
  background: white;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 60px 24px;
  margin: 40px 0;
}
.at-events-inner {
  max-width: 1400px; margin: 0 auto;
}
.at-timeline {
  display: flex; gap: 24px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: #dfe6e9 transparent;
}
.at-timeline::-webkit-scrollbar { height: 6px; }
.at-timeline::-webkit-scrollbar-track { background: transparent; }
.at-timeline::-webkit-scrollbar-thumb { background: #dfe6e9; border-radius: 3px; }

/* 时间线卡片 */
.at-timeline-card {
  flex-shrink: 0;
  width: 300px;
  background: #f8f6f1;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.at-timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.at-timeline-img {
  width: 100%; aspect-ratio: 16/9;
  background: #dfe6e9;
  overflow: hidden;
}
.at-timeline-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.at-timeline-card:hover .at-timeline-img img {
  transform: scale(1.05);
}
.at-timeline-content {
  padding: 16px;
}
.at-timeline-date {
  font-size: 11px; font-weight: 600;
  color: #3498db;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.at-timeline-title {
  font-size: 14px; font-weight: 600;
  color: #2d3436;
  line-height: 1.4;
  margin-bottom: 8px;
}
.at-timeline-excerpt {
  font-size: 12px; color: #636e72;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 关键人物 ===== */
.at-people-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .at-people-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .at-people-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .at-people-grid { grid-template-columns: repeat(2, 1fr); }
}

.at-person-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.at-person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  border-color: #9b59b6;
}
.at-person-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b59b6, #a29bfe);
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.25);
}
.at-person-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.at-person-name {
  font-size: 14px; font-weight: 600;
  color: #2d3436;
  margin-bottom: 4px;
}
.at-person-role {
  font-size: 11px; color: #636e72;
  letter-spacing: 0.5px;
}

/* ===== 全球趋势 ===== */
.at-trends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .at-trends-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .at-trends-grid { grid-template-columns: 1fr; }
}

.at-trend-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.at-trend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: #f39c12;
}
.at-trend-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.at-trend-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #f39c12, #ffeaa7);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.at-trend-title {
  font-size: 15px; font-weight: 600;
  color: #2d3436;
}
.at-trend-desc {
  font-size: 13px; color: #636e72;
  line-height: 1.6;
  margin-bottom: 16px;
}
.at-trend-stats {
  display: flex; gap: 20px;
}
.at-trend-stat {
  font-size: 11px; color: #b2bec3;
}
.at-trend-stat strong {
  font-size: 16px; font-weight: 600;
  color: #2d3436;
  display: block;
}

/* ===== 分隔线 ===== */
.at-divider {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px;
}
.at-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* ===== 搜索覆盖层 ===== */
.at-search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(248, 246, 241, 0.98);
  backdrop-filter: blur(20px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px;
  opacity: 0; visibility: hidden;
  transition: all 0.4s;
}
.at-search-overlay.active {
  opacity: 1; visibility: visible;
}
.at-search-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  color: #636e72;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.at-search-close:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}
.at-search-box {
  width: 100%; max-width: 640px;
  padding: 0 24px;
}
.at-search-input {
  width: 100%;
  padding: 20px 24px;
  font-size: 20px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: white;
  color: #2d3436;
  outline: none;
  transition: all 0.3s;
}
.at-search-input:focus {
  border-color: #3498db;
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.15);
}
.at-search-input::placeholder {
  color: #b2bec3;
}
.at-search-results {
  margin-top: 24px;
  max-height: 400px;
  overflow-y: auto;
}
.at-search-result {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.at-search-result:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.at-search-result-img {
  width: 64px; height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.at-search-result-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.at-search-result-title {
  font-size: 14px; font-weight: 500;
  color: #2d3436;
}
.at-search-result-meta {
  font-size: 12px; color: #636e72;
  margin-top: 4px;
}

/* ===== Footer ===== */
.at-footer {
  background: #2d3436;
  color: #dfe6e9;
  padding: 60px 24px 40px;
  margin-top: 80px;
}
.at-footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .at-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .at-footer-inner { grid-template-columns: 1fr; }
}
.at-footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.at-footer-brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
}
.at-footer-brand-text {
  font-size: 18px; font-weight: 600;
}
.at-footer-desc {
  font-size: 13px; line-height: 1.8;
  color: #b2bec3;
}
.at-footer-title {
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: #636e72;
  margin-bottom: 20px;
}
.at-footer-links {
  list-style: none;
}
.at-footer-links li { margin-bottom: 12px; }
.at-footer-links a {
  color: #b2bec3;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.at-footer-links a:hover { color: white; }
.at-footer-bottom {
  max-width: 1400px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px; color: #636e72;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .at-nav-links { display: none; }
  .at-hero-title { font-size: 36px; letter-spacing: 4px; }
  .at-hero-subtitle { font-size: 14px; }
  .at-coords { flex-wrap: wrap; gap: 16px; }
  .at-section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===== 动画 ===== */
.at-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.at-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 移动端菜单 ===== */
.at-mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(248, 246, 241, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.4s;
}
.at-mobile-menu.active {
  transform: translateX(0);
}
.at-mobile-links {
  list-style: none;
}
.at-mobile-links li {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.at-mobile-links a {
  display: block;
  padding: 20px 0;
  font-size: 18px;
  color: #2d3436;
  text-decoration: none;
}