/* travel 页面样式 */

/* ======== 从 travel.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Microsoft YaHei', serif; background: #f0f2f5; }
        .container { max-width: 1200px; margin: 0 auto; padding: 20px; }
        h1 { text-align: center; margin: 20px 0; color: #333; }
        .select-section { text-align: center; margin: 20px 0; }
        select { padding: 10px 20px; font-size: 16px; border: 2px solid #4a90d9; border-radius: 8px; min-width: 200px; }
        .map-container { height: 500px; margin: 20px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .info-panel { background: white; padding: 20px; border-radius: 12px; margin: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .info-panel h3 { color: #4a90d9; margin-bottom: 15px; }
        .route-list { list-style: none; }
        .route-item { padding: 12px; border-bottom: 1px solid #eee; }
        .route-item:last-child { border-bottom: none; }
        .route-item:hover { background: #f8f9fa; }
        .route-title { font-weight: bold; color: #333; }
        .route-meta { color: #666; font-size: 14px; margin-top: 5px; }
        .stats { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin: 20px 0; }
        .stat-card { background: white; padding: 20px; border-radius: 12px; text-align: center; min-width: 150px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .stat-value { font-size: 28px; font-weight: bold; color: #4a90d9; }
        .stat-label { color: #666; font-size: 14px; margin-top: 5px; }
        .checkin-btn { display: inline-block; padding: 8px 16px; background: #4a90d9; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
        .checkin-btn:hover { background: #357abd; }
        .checkin-btn.checked { background: #27ae60; }
        .checkin-btn.checked:hover { background: #1e8449; }
        .empty-state { text-align: center; padding: 60px 20px; color: #666; }
        .loading { text-align: center; padding: 40px; color: #999; }
        
        .cross-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            padding: 15px 20px;
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        
        .cross-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 18px;
            background: linear-gradient(135deg, #4a90d9, #357abd);
            color: white;
            text-decoration: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .cross-link-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
        }
        
        /* ====== 增强交互效果 ====== */
        
        h1 {
            animation: titleFadeIn 1s ease-out;
            background: linear-gradient(135deg, #8B4513, #DAA520);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        @keyframes titleFadeIn {
            0% { opacity: 0; transform: translateY(-20px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        .stat-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            animation: statCardSlideIn 0.5s ease-out backwards;
        }
        
        .stat-card:nth-child(1) { animation-delay: 0.1s; }
        .stat-card:nth-child(2) { animation-delay: 0.2s; }
        .stat-card:nth-child(3) { animation-delay: 0.3s; }
        .stat-card:nth-child(4) { animation-delay: 0.4s; }
        
        @keyframes statCardSlideIn {
            0% { opacity: 0; transform: translateY(20px) scale(0.95); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        .stat-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(139, 69, 19, 0.2);
        }
        
        .stat-value {
            background: linear-gradient(135deg, #8B4513, #DAA520);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .route-item {
            transition: all 0.3s ease;
            animation: routeItemSlideIn 0.4s ease-out backwards;
        }
        
        .route-item:nth-child(1) { animation-delay: 0.1s; }
        .route-item:nth-child(2) { animation-delay: 0.2s; }
        .route-item:nth-child(3) { animation-delay: 0.3s; }
        .route-item:nth-child(4) { animation-delay: 0.4s; }
        .route-item:nth-child(5) { animation-delay: 0.5s; }
        
        @keyframes routeItemSlideIn {
            0% { opacity: 0; transform: translateX(-20px); }
            100% { opacity: 1; transform: translateX(0); }
        }
        
        .route-item:hover {
            background: linear-gradient(90deg, rgba(218, 165, 32, 0.1), transparent);
            transform: translateX(10px);
            border-left: 3px solid #DAA520;
        }
        
        .checkin-btn {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .checkin-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.5s ease-out, height 0.5s ease-out;
        }
        
        .checkin-btn:active::after {
            width: 200%;
            height: 200%;
        }
        
        .checkin-btn.checked {
            animation: checkInSuccess 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        @keyframes checkInSuccess {
            0% { transform: scale(0.8); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        select {
            transition: all 0.3s ease;
            border: 2px solid #DAA520;
            background: white;
            color: #8B4513;
            cursor: pointer;
        }
        
        select:hover, select:focus {
            border-color: #8B4513;
            box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
            outline: none;
        }
        
        .info-panel {
            animation: panelSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        @keyframes panelSlideIn {
            0% { opacity: 0; transform: translateY(30px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        .map-container {
            position: relative;
            animation: mapFadeIn 0.8s ease-out;
        }
        
        @keyframes mapFadeIn {
            0% { opacity: 0; transform: scale(0.95); }
            100% { opacity: 1; transform: scale(1); }
        }
        
        .map-container::before {
            content: '加载地图中...';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #8B4513;
            font-size: 16px;
            z-index: 1000;
            animation: mapLoading 1.5s ease-in-out infinite;
        }
        
        .map-container.loaded::before {
            display: none;
        }
        
        @keyframes mapLoading {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

/* 原内联 style 属性（已转为 class） */
.ih-1izhyud {
    max-width: 1000px;
    margin: 20px auto;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #4a90d9;
}

.ih-6ed8dx {
    color: #4a90d9;
    margin-bottom: 10px;
}

.ih-1uvlxji {
    font-size: 16px;
    color: #444;
    line-height: 2.0;
}

.ih-pdbjr4 {
    display: none;
}

.ih-x8gh2l {
    font-size: 48px;
}

/* ====== Journey Player 接入样式 ====== */
.play-btn {
    padding: 10px 24px;
    font-size: 16px;
    background: linear-gradient(135deg, #8B4513, #DAA520);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.4);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(218, 165, 32, 0.5);
}

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

.route-item.active {
    background: linear-gradient(90deg, rgba(218, 165, 32, 0.2), transparent);
    border-left: 3px solid #DAA520;
    transform: translateX(6px);
}

.route-item {
    cursor: pointer;
}

/* 地图容器增高，配合灯笼/马匹动画展示 */
.map-container {
    height: 600px;
}

@media (max-width: 768px) {
    .map-container {
        height: 420px;
    }
    .play-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ===== 唐风底部导航栏 ===== */
.tang-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  border-top: 4px solid #FFD700;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
}

.bottom-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: #FFD700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
  font-family: "SimSun", "STSong", serif;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:hover {
  background: linear-gradient(135deg, #DAA520, #FFD700);
  color: #5D4037;
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.nav-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.nav-text {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

body {
  padding-bottom: 90px;
}

@media (max-width: 768px) {
  .tang-bottom-nav {
    height: 50px;
    padding: 4px 0;
    border-top-width: 2px;
    background: rgba(139, 69, 19, 0.9);
    backdrop-filter: blur(3px);
  }

  .bottom-nav-container {
    gap: 4px;
    padding: 0 5px;
    justify-content: space-around;
  }

  .nav-item {
    padding: 4px 6px;
    min-width: 0;
    border-radius: 6px;
    border-width: 1px;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-icon {
    font-size: 14px;
    margin-bottom: 1px;
  }

  .nav-text {
    font-size: 9px;
    display: block;
  }

  body {
    padding-bottom: 55px;
  }
}

@media (max-width: 480px) {
  .tang-bottom-nav {
    height: 40px;
    padding: 3px 0;
  }

  .bottom-nav-container {
    gap: 2px;
  }

  .nav-item {
    padding: 3px 4px;
  }

  .nav-icon {
    font-size: 12px;
  }

  .nav-text {
    font-size: 8px;
  }

  body {
    padding-bottom: 45px;
  }
}

/* ====== 诗人搜索与朝代筛选（2026-07-23 新增） ====== */
.poet-search-input {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 12px;
    padding: 10px 18px;
    font-size: 15px;
    font-family: "Microsoft YaHei", "SimSun", serif;
    border: 2px solid #DAA520;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    color: #5D4037;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.poet-search-input:focus {
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15);
}

.poet-search-input::placeholder {
    color: #A0522D;
    opacity: 0.6;
}

.dynasty-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dynasty-btn {
    padding: 7px 20px;
    font-size: 14px;
    font-family: "SimSun", "STSong", serif;
    color: #8B4513;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #DAA520;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dynasty-btn:hover {
    background: rgba(218, 165, 32, 0.15);
    transform: translateY(-1px);
}

.dynasty-btn.active {
    background: linear-gradient(135deg, #8B4513, #DAA520);
    color: #FFD700;
    border-color: #8B4513;
    box-shadow: 0 3px 12px rgba(139, 69, 19, 0.3);
}

@media (max-width: 768px) {
    .poet-search-input {
        font-size: 14px;
        padding: 9px 16px;
    }
    .dynasty-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}
