/* =====================
   成都川小团国际旅行社
   主样式表
   ===================== */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: #333;
  background: #f8f9fa;
  line-height: 1.6;
}

a { color: #333; text-decoration: none; transition: color 0.3s; }
a:hover { color: #007d9e; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ----- Top Bar ----- */
.top-bar {
  background: #004d66;
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: flex-start; }

/* ----- Header ----- */
.header { background: #fff; padding: 15px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.logo img { max-height: 70px; width: auto; }
.search-box { flex: 1; max-width: 500px; }
.search-box form { display: flex; border: 2px solid #007d9e; border-radius: 40px; overflow: hidden; }
.search-box input {
  flex: 1; border: none; padding: 10px 18px; font-size: 14px; outline: none;
  color: #999;
}
.search-box input:focus { color: #333; }
.search-box button {
  background: #007d9e; border: none; padding: 0 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.search-box button img { width: 20px; height: 20px; }
.search-box button:hover { background: #005f7a; }

/* ----- Navigation ----- */
.nav-bar {
  background: #007d9e;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.nav-inner { display: flex; align-items: stretch; }

/* Side Menu */
.side-menu {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}
.menu-title {
  display: flex; align-items: center;
  padding: 0 20px;
  height: 100%;
  background: #005f7a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.menu-title::after {
  content: '▼';
  margin-left: 8px;
  font-size: 10px;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 100;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.side-menu:hover .nav-dropdown { display: block; }
.nav-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.nav-item:last-child { border-bottom: none; }
.nav-item i { margin-right: 6px; font-size: 16px; }
.nav-item strong { font-size: 14px; }
.nav-item strong a { color: #333; }
.nav-item strong a:hover { color: #007d9e; }
.nav-item p { margin-top: 6px; }
.nav-item p a {
  display: inline-block;
  color: #999; font-size: 12px;
  margin-right: 10px; margin-bottom: 3px;
}
.nav-item p a:hover { color: #007d9e; }

/* Nav Links */
.nav-links {
  display: flex; align-items: center;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-links a {
  flex-shrink: 0;
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  border-bottom-color: #ffc107;
}

/* ----- Banner ----- */
.banner { position: relative; overflow: hidden; }
.banner-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.banner-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.banner-text {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  padding: 20px;
}
.banner-text h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.banner-text p {
  font-size: 20px;
  margin-bottom: 25px;
  opacity: 0.9;
}
.banner-btn {
  display: inline-block;
  padding: 12px 40px;
  background: #ff8c00;
  color: #fff;
  font-size: 16px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}
.banner-btn:hover { background: #e67e00; transform: translateY(-2px); color: #fff; }
.banner-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.banner-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dots span.active { background: #ffc107; transform: scale(1.3); }
.banner-prev, .banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  z-index: 5;
}
.banner:hover .banner-prev, .banner:hover .banner-next { opacity: 1; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,0.6); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }

/* ----- Merits ----- */
.merits { background: #fff; padding: 40px 0; }
.merit-list { display: flex; gap: 20px; }
.merit-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f5fafc;
  border-radius: 12px;
  transition: all 0.3s;
}
.merit-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,125,158,0.12); }
.merit-icon { font-size: 40px; flex-shrink: 0; }
.merit-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: #004d66; }
.merit-content p { font-size: 13px; color: #666; line-height: 1.5; }

/* ----- Quick Info ----- */
.quick-info { padding: 30px 0; background: #f0f7fa; }
.quick-info-inner { display: flex; gap: 20px; }
.info-box {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.info-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #004d66;
}
.info-progress {
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007d9e, #00b4d8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.order-num { font-size: 36px; font-weight: 700; color: #ff8c00; margin-bottom: 5px; }
.contact-info ul li {
  font-size: 12px;
  color: #555;
  padding: 3px 0;
  border-bottom: 1px dashed #eee;
}
.contact-info ul li:last-child { border-bottom: none; }

/* ----- Route Section ----- */
.route-section { padding: 35px 0; }
.route-section:nth-child(odd) { background: #fff; }
.route-section:nth-child(even) { background: #f8f9fa; }

.section-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #004d66;
  flex-shrink: 0;
}
.section-title a { color: #004d66; }
.section-title a:hover { color: #007d9e; }
.route-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.route-tabs .tab {
  padding: 6px 16px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s;
  white-space: nowrap;
}
.route-tabs .tab:hover { background: #e8f4f8; color: #007d9e; }
.route-tabs .tab.active {
  background: #007d9e;
  color: #fff;
}
.more-link {
  font-size: 13px;
  color: #ff8c00;
  flex-shrink: 0;
  white-space: nowrap;
}
.more-link:hover { color: #e67e00; }

.route-content {
  display: flex;
  gap: 20px;
}
.route-hot-ad { width: 210px; flex-shrink: 0; }
.route-hot-ad a img { border-radius: 12px; }
.fallback-ad {
  padding: 30px 15px;
  text-align: center;
  border-radius: 12px;
  min-height: 385px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fallback-ad h3 { font-size: 22px; color: #004d66; margin-bottom: 10px; }
.fallback-ad p { color: #666; margin-bottom: 20px; }
.fallback-ad span {
  display: inline-block;
  padding: 8px 25px;
  background: #ff8c00;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
}

.route-products {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-card a { display: block; color: inherit; }
.product-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f5f5f5;
  padding: 10px;
}
.product-img-placeholder {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  font-size: 36px;
  color: #007d9e;
}
.product-body { padding: 12px; }
.product-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.product-card:hover .product-title { color: #007d9e; }
.product-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-days { font-size: 12px; color: #666; }
.product-days span { color: #007d9e; font-weight: 600; }
.product-price { font-size: 13px; color: #ff8c00; font-weight: 700; }
.product-price span { font-size: 18px; }

/* ----- Bottom Banner ----- */
.bottom-banner {
  position: relative;
  overflow: hidden;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
}
.bottom-banner img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}
.bottom-banner-text {
  position: absolute;
  text-align: center;
  color: #004d66;
}
.bottom-banner-text h2 { font-size: 26px; margin-bottom: 6px; }
.bottom-banner-text p { font-size: 16px; color: #555; }

/* ----- News Section ----- */
.news-section { background: #f5f5f5; padding: 35px 0; }
.news-section .container { display: flex; gap: 20px; }
.news-left, .news-right { flex: 1; }
.news-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007d9e;
}
.news-header span { font-size: 20px; }
.news-header a { font-size: 18px; font-weight: 600; color: #004d66; }
.news-header em { margin-left: auto; }

.news-featured {
  margin-bottom: 15px;
}
.news-featured img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #ddd;
}
.news-featured h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.news-featured p {
  font-size: 13px;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.news-featured span { font-size: 12px; color: #aaa; }

.news-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
  font-size: 13px;
  color: #555;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-list li a:hover { color: #007d9e; }

/* ----- Guarantee ----- */
.guarantee { background: #fff; padding: 35px 0; }
.guarantee-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.guarantee-item {
  width: calc(100% / 7 - 20px);
  min-width: 130px;
  text-align: center;
}
.guarantee-icon { margin-bottom: 10px; }
.guarantee-icon img {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border-radius: 50%;
}
.guarantee-item p { font-size: 13px; color: #555; line-height: 1.6; }

/* ----- FAQ Section ----- */
.faq-section { background: #f0f7fa; padding: 35px 0; }
.faq-inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.faq-inner dl { flex: 1; min-width: 160px; }
.faq-title {
  font-size: 15px;
  font-weight: 600;
  color: #004d66;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #e0f2fe;
}
.faq-inner dd { margin-bottom: 5px; }
.faq-inner dd a {
  font-size: 13px;
  color: #666;
  display: block;
  padding: 3px 12px;
}
.faq-inner dd a:hover { color: #007d9e; background: #e8f4f8; border-radius: 4px; }
.faq-qrcode {
  width: 180px;
  text-align: center;
}
.faq-qrcode img {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 8px;
}
.faq-qrcode p { font-size: 12px; color: #888; margin-top: 6px; }

/* ----- Friend Links ----- */
.friend-links { background: #fff; padding: 20px 0; border-top: 1px solid #eee; }
.friend-links dl { display: flex; align-items: flex-start; gap: 10px; }
.friend-links dt {
  font-size: 13px; color: #999; white-space: nowrap;
  padding-top: 2px;
}
.friend-links dd { display: flex; flex-wrap: wrap; gap: 4px 15px; }
.friend-links dd a {
  font-size: 12px;
  color: #888;
}
.friend-links dd a:hover { color: #007d9e; }

/* ----- Footer ----- */
.footer {
  background: #004d66;
  color: rgba(255,255,255,0.85);
  padding: 30px 0;
  font-size: 13px;
}
.footer-inner { text-align: center; }
.footer-inner p { margin-bottom: 6px; }
.footer-inner a { color: rgba(255,255,255,0.8); }
.footer-inner a:hover { color: #ffc107; }

/* ----- KF Float ----- */
.kf-float {
  position: fixed;
  right: -210px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: right 0.4s ease;
}
.kf-float.open { right: 20px; }
.kf-side {
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff8c00;
  padding: 14px 8px;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
}
.kf-side b {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
.kf-panel {
  width: 210px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 5px 30px rgba(0,0,0,0.15);
  overflow: hidden;
}
.kf-header {
  background: #ff8c00;
  color: #fff;
  padding: 12px 16px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kf-close {
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.kf-body { padding: 12px 16px; }
.kf-body h5 {
  font-size: 13px;
  color: #004d66;
  margin: 10px 0 6px;
  padding-left: 20px;
  position: relative;
}
.kf-body h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #007d9e;
  border-radius: 50%;
}
.kf-contact p { font-size: 12px; color: #666; line-height: 1.8; }
.kf-phone a {
  font-size: 14px;
  color: #ff8c00;
  font-weight: 700;
}
.kf-qr { text-align: center; margin-top: 5px; }
.kf-qr img {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border: 1px solid #eee;
  border-radius: 6px;
}
.kf-back-top {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  background: #ff8c00;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 0 0 12px 12px;
}
.kf-back-top:hover { background: #e67e00; color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .side-menu { display: none; }
  .nav-inner { justify-content: center; }
  .banner-slider { height: 360px; }
  .banner-text h2 { font-size: 32px; }
  .banner-text p { font-size: 16px; }
  .merit-list { flex-wrap: wrap; }
  .merit-item { min-width: 280px; flex: 1 1 calc(50% - 10px); }
  .quick-info-inner { flex-wrap: wrap; }
  .info-box { flex: 1 1 calc(50% - 10px); min-width: 250px; }
  .route-content { flex-direction: column; }
  .route-hot-ad { width: 100%; }
  .route-hot-ad .fallback-ad { min-height: 120px; flex-direction: row; gap: 20px; }
  .route-products { grid-template-columns: repeat(3, 1fr); }
  .guarantee-item { width: calc(100% / 3 - 20px); }
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }
  .nav-links a { padding: 12px 14px; font-size: 13px; }
  .banner-slider { height: 280px; }
  .banner-text h2 { font-size: 24px; }
  .banner-text p { font-size: 14px; }
  .banner-btn { padding: 10px 28px; font-size: 14px; }
  .banner-prev, .banner-next { width: 36px; height: 36px; font-size: 18px; }
  .merit-item { flex: 1 1 100%; }
  .info-box { flex: 1 1 100%; }
  .route-products { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-wrap: wrap; }
  .route-tabs { order: 3; width: 100%; gap: 6px; }
  .route-tabs .tab { font-size: 12px; padding: 4px 12px; }
  .news-section .container { flex-direction: column; }
  .guarantee-item { width: calc(50% - 20px); }
  .faq-inner dl { min-width: 140px; flex: 1 1 calc(50% - 10px); }
  .faq-qrcode { display: none; }
  .bottom-banner { height: 100px; }
  .bottom-banner-text h2 { font-size: 18px; }
}

@media (max-width: 480px) {
  .nav-links { overflow-x: auto; }
  .nav-links a { padding: 10px 12px; font-size: 12px; }
  .banner-slider { height: 220px; }
  .banner-text h2 { font-size: 20px; }
  .banner-text p { font-size: 12px; }
  .banner-btn { padding: 8px 20px; font-size: 12px; }
  .route-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-img, .product-img-placeholder { height: 100px; }
  .product-body { padding: 8px; }
  .product-title { font-size: 12px; }
  .guarantee-item { width: calc(50% - 12px); min-width: auto; }
  .friend-links dl { flex-direction: column; }
}
