/* ============================================================
   Xincheng International Travel - English Website
   Brand: 馨程国旅 (Candy Journey)
   Primary Color: #c41e3a | Text: #333 | Background: #fff
   ============================================================ */

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

.section-subtitle {
  color: #888;
  font-size: 1.05rem;
  margin-top: 8px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: #c41e3a;
  color: #fff;
  border-color: #c41e3a;
}

.btn-primary:hover {
  background: #a01830;
  border-color: #a01830;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #c41e3a;
}

.btn-outline-dark {
  background: transparent;
  color: #c41e3a;
  border-color: #c41e3a;
}

.btn-outline-dark:hover {
  background: #c41e3a;
  color: #fff;
}

/* ----- Navigation ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #c41e3a;
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: #c41e3a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-logo .logo-img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #c41e3a;
  background: rgba(196, 30, 58, 0.06);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #c41e3a;
  border-radius: 2px;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c41e3a;
  background: rgba(196, 30, 58, 0.08);
  border-radius: 20px;
  margin-left: 6px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Page Banner ----- */
.page-banner {
  margin-top: 72px;
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #c41e3a 0%, #e8455b 50%, #f06273 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.page-banner h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-banner p {
  font-size: 1.15rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* ----- Hero Section (Home) ----- */
.hero {
  margin-top: 72px;
  height: 85vh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(196, 30, 58, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 20px;
}

.hero-content .hero-tag {
  display: inline-block;
  padding: 6px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-content h1 span {
  color: #f06273;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dots .dot.active {
  background: #fff;
  width: 28px;
  border-radius: 10px;
}

/* ----- Section Common ----- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: #1a1a2e;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #c41e3a;
  margin: 14px auto 0;
  border-radius: 3px;
}

/* ----- Service Cards ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(196, 30, 58, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  background: rgba(196, 30, 58, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: #c41e3a;
  color: #fff;
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 12px;
  color: #1a1a2e;
}

.service-card p {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----- Stats Section ----- */
.stats {
  background: linear-gradient(135deg, #c41e3a, #e8455b);
  color: #fff;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ----- CTA Banner ----- */
.cta-banner {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 60px 0;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- About Page ----- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image .img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 1.1rem;
  overflow: hidden;
}

.about-image .img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(196, 30, 58, 0.06), transparent);
}

.about-image .img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #c41e3a;
  color: #fff;
  padding: 20px 28px;
  border-radius: 12px;
  text-align: center;
}

.about-image .img-badge .number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.about-image .img-badge .label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.about-content h2 {
  color: #1a1a2e;
  margin-bottom: 20px;
}

.about-content .highlight {
  color: #c41e3a;
  font-weight: 600;
}

.about-content p {
  color: #666;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Process Timeline */
.process-section {
  background: #fafafa;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  position: relative;
}

.process-step .step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  background: #c41e3a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.process-step h3 {
  color: #1a1a2e;
  margin-bottom: 10px;
}

.process-step p {
  color: #777;
  font-size: 0.93rem;
}

/* ----- Services Page ----- */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.services-tabs .tab-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  background: #f5f5f5;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services-tabs .tab-btn:hover {
  color: #c41e3a;
  background: rgba(196, 30, 58, 0.08);
}

.services-tabs .tab-btn.active {
  background: #c41e3a;
  color: #fff;
}

.tab-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.tab-content.active {
  display: block;
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-detail-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-detail-card .card-img {
  height: 200px;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.9rem;
}

.service-detail-card .card-body {
  padding: 24px;
}

.service-detail-card .card-body h3 {
  color: #1a1a2e;
  margin-bottom: 10px;
}

.service-detail-card .card-body p {
  color: #777;
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ----- Contact Page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  color: #1a1a2e;
  margin-bottom: 10px;
}

.contact-info > p {
  color: #777;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail-item .detail-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(196, 30, 58, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-detail-item .detail-text h4 {
  color: #1a1a2e;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-detail-item .detail-text p {
  color: #777;
  font-size: 0.9rem;
}

.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.contact-form-card h3 {
  color: #1a1a2e;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #c41e3a;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.qr-section {
  margin-top: 40px;
  text-align: center;
}

.qr-section .qr-placeholder {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.85rem;
}

.qr-section p {
  color: #777;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 30, 58, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #c41e3a;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #c41e3a;
  color: #fff;
  transform: translateY(-3px);
}

/* ----- Footer ----- */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.75;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.25s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: #f06273;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ----- DB Rail Special Link ----- */
.db-rail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.db-rail-link .external-icon {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ----- Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .services-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 50px 0;
  }

  /* Navigation */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 90px 30px 30px;
    gap: 6px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .lang-badge {
    margin-left: 0;
    margin-top: 10px;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hero */
  .hero {
    height: 75vh;
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  /* Services Detail */
  .services-detail-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .services-tabs {
    gap: 6px;
  }

  .services-tabs .tab-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  /* Contact */
  .contact-form-card {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-banner {
    padding: 50px 0 40px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 28px 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-image .img-badge {
    bottom: -10px;
    right: -5px;
    padding: 14px 20px;
  }
}
