:root {
  --primary: #c8102e;
  --primary-dark: #a00d24;
  --secondary: #1a1a2e;
  --accent: #f5a623;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --text-white: #fff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
  --max-width: 1200px;
  --header-height: 70px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--text-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

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

.nav-list a {
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--secondary);
  transition: 0.3s;
}

/* Hero */
.hero {
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1508804185872-d7badad00f7d?w=1920') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-white);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-secondary:hover {
  background: var(--text-white);
  color: var(--secondary);
}

/* Section */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Why Visit China */
.why-china-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.why-card {
  background: var(--text-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
}

.why-card-icon {
  width: 100%;
  height: 160px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.why-card-content {
  padding: 25px;
}

.why-card-content h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}

.why-card-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Popular Cities */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.city-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.city-card:hover img {
  transform: scale(1.1);
}

.city-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--text-white);
}

.city-card-overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.city-card-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Itineraries */
.itinerary-card {
  background: var(--text-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.itinerary-card-img {
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.itinerary-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.itinerary-card-content h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}

.itinerary-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.itinerary-meta span {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.itinerary-card-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex: 1;
}

.itinerary-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 12px;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Essentials Cards */
.essentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.essential-card {
  background: var(--text-white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.essential-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.essential-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.essential-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.essential-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--text-white);
  border-radius: var(--radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 500px;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: var(--text-white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* City Detail Page */
.city-hero {
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  color: var(--text-white);
}

.city-hero-content {
  width: 100%;
}

.city-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.city-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.city-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: var(--radius);
}

.city-info-item {
  text-align: center;
}

.city-info-item span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

.city-info-item strong {
  font-size: 1.1rem;
}

/* Attractions */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.attraction-card {
  background: var(--text-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.attraction-img {
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.attraction-content {
  padding: 25px;
}

.attraction-content h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}

.attraction-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.attraction-content p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  background: var(--secondary);
  color: var(--text-white);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.8;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 10px;
}

/* Guide Content */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.guide-section h2 {
  color: var(--secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.guide-section h3 {
  color: var(--secondary);
  margin: 25px 0 15px;
}

.guide-section p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.guide-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.guide-section ul li {
  margin-bottom: 10px;
  color: var(--text-light);
  list-style: disc;
}

.guide-section ul li::marker {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--text-white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .city-hero-content h1 {
    font-size: 2rem;
  }
}

/* Language Switcher */
.lang-toggle-wrapper {
  display: flex;
  align-items: center;
}

.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* CJK font support */
html[lang="zh"] body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}