:root {
  --primary-color: #3d4c40;
  --bg-color: #f4f4f2;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --accent-color: #8fa18d;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: white;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  font-weight: bold;
  opacity: 1;
  border-bottom: 2px solid white;
  padding-bottom: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero Section */
.hero {
  height: 500px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80&w=2000') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-centered h1 {
  font-size: 56px;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: 2px;
}

.search-box {
  background: white;
  border-radius: 50px;
  padding: 6px 6px 6px 25px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-box input {
  border: none;
  flex: 1;
  outline: none;
  font-size: 16px;
  color: #333;
  padding: 10px 0;
}

.search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #2a352d;
}

.hot-tags {
  font-size: 13px;
  opacity: 0.8;
  display: flex;
  gap: 15px;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quick-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, background 0.3s;
  cursor: pointer;
}

.quick-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.quick-card .icon {
  font-size: 24px;
  margin-bottom: 15px;
  display: block;
}

.quick-card h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.quick-card span {
  font-size: 13px;
  opacity: 0.7;
}

/* Main Content */
.main-layout {
  display: block;
  padding-bottom: 100px;
}

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

.section-header h2 {
  font-size: 24px;
  color: var(--text-main);
}

.filter-section {
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-row:not(:last-child) {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-label {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-main);
  white-space: nowrap;
  width: 60px;
}

.month-filter, .region-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  flex: 1;
}

.month-filter::-webkit-scrollbar, .region-filter::-webkit-scrollbar {
  display: none;
}

.month-btn {
  padding: 8px 20px;
  background: white;
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.month-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.month-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.month-btn.is-current::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
}

.month-btn.active.is-current::after {
  background: white;
}

/* Route Grid */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Tag Colors */
.difficulty-1, .difficulty-2 { background: #e8f5e9 !important; color: #2e7d32 !important; }
.difficulty-3, .difficulty-4 { background: #fff3e0 !important; color: #ef6c00 !important; }
.difficulty-5, .difficulty-6 { background: #ffebee !important; color: #c62828 !important; }

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 20px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-size: 20px;
  z-index: 10;
}

.modal-hero {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-body {
  padding: 40px;
}

.variant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.variant-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.variant-item h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Utility */
.hidden { display: none; }

.route-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.route-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4));
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #8fa18d;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

.difficulty {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255,255,255,0.9);
  color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-top h3 {
  font-size: 20px;
  color: var(--text-main);
  flex: 1;
}

.bookmark {
  color: #ccc;
  font-size: 18px;
}

.card-loc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}

.card-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-box {
  background: #e8e8e4;
  border-radius: var(--border-radius);
  padding: 30px;
}

.info-box h3 {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.info-text h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.info-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.more-link {
  display: block;
  margin-top: 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 12px;
  color: var(--text-muted);
}
