/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1a2980 0%, #267871 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.page-title h1 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 700;
}
.page-title .view-count {
    font-size: 14px;
    opacity: 0.9;
}
.page-title .view-count .fontOrange {
    font-weight: bold;
    color: #ff6b35;
}

/* 公司信息卡片 */
.company-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
}
.company-header {
    background: linear-gradient(90deg, #1a2980 0%, #267871 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.company-header i {
    font-size: 20px;
}
.company-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.company-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    align-items: center;
}

.logo-container {
    flex: 0 0 120px;
    height: 120px;
    position: relative;
    transition: transform 0.3s ease;
}
.logo-container:hover {
    transform: scale(1.05);
}
.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-grid {
    flex: 1;
    min-width: 280px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #1a2980;
    transition: all 0.2s ease;
}
.info-item:hover {
    background: #e9f0f5;
    transform: translateY(-2px);
}
.info-item .label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-item .value {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

/* 线路列表区域 */
.track-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a2980;
}
.section-header .title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}
.section-header .badge {
    background: #1a2980;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.track-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}
.track-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #1a2980;
}

.route-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.route-text {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.route-text .start {
    color: #1a2980;
}
.route-text .arrow {
    color: #999;
    font-size: 18px;
}
.route-text .end {
    color: #267871;
}
.vip-tag {
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c3f 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.price-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.price-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.price-item .icon {
    color: #1a2980;
    font-size: 15px;
}
.price-item .label {
    color: #666;
}
.price-item .value {
    color: #1a2980;
    font-weight: 600;
}

.address-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.address-block {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #267871;
}
.address-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.address-title .icon {
    color: #267871;
    font-size: 16px;
}
.address-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* 图片轮播区域 */
.gallery-section {
    margin-bottom: 30px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a2980;
}
.gallery-header .title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px; /* ✅ 高度已调高 */
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
}
.carousel-btn {
    background: rgba(255,255,255,0.8);
    color: #1a2980;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}
.carousel-btn:hover {
    background: white;
    color: #1565c0;
    transform: scale(1.1);
}
.carousel-btn.prev {
    left: 15px;
}
.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-indicator.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* 无图片占位符 */
.no-images {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
    padding: 20px;
}
.no-images i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}
.no-images p {
    font-size: 16px;
    margin-top: 10px;
}
/* 关键词展示区域 */
.keywords-section {
    margin-bottom: 30px;
}

.keywords-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
}

.keyword-tag {
    background: linear-gradient(90deg, #1a2980 0%, #267871 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.keyword-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 41, 128, 0.3);
}

.no-keywords {
    color: #999;
    font-style: italic;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .company-content {
        flex-direction: column;
        text-align: center;
    }
    .logo-container {
        flex: 0 0 100px;
        height: 100px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .route-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .address-info {
        grid-template-columns: 1fr;
    }
    .carousel-slides {
        height: 250px; /* ✅ 手机端适配高度 */
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

.footer {
  background: #f8f8f8;
  padding: 20px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.footerCont {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.footer_l,
.footer_r {
  flex: 1 1 300px; /* 最小 300px，可换行 */
}
.footer_l img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 默认：短文本项（如版权、电话）不换行 */
.footer_r .banQuan {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.footer_r .banQuan span:not(.long-text),
.footer_r .banQuan a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* 长文本：允许自动换行 */
.footer_r .banQuan .long-text {
  white-space: normal;
  display: block;
  text-align: justify;
  padding: 0; /* 重置 padding */
}

.footer_r .h_ge {
  margin: 0 8px;
  color: #ccc;
}
.footer_r img[alt='点击这里给我发消息'] {
  max-height: 20px;
  vertical-align: middle;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .footerCont {
    flex-direction: column;
    text-align: center;
  }
  .footer_l,
  .footer_r {
    flex: none;
    width: 100%;
  }
  .footer_l {
    margin-bottom: 15px;
  }
  .footer_r .banQuan {
    justify-content: center;
  }
  .footer_r .h_ge {
    margin: 0 6px;
  }
  .footer {
    padding: 15px 0;
    font-size: 13px;
  }
  /* 移动端长文本居中 */
  .footer_r .long-text {
    text-align: center;
  }
}


/* 可点击区域 */
.qr-info .qrcode-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.qr-info .qrcode-link:hover {
    opacity: 0.9;
}

/* 二维码容器 */
.qr-info .qrcode-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
    /* 确保点击区域包含全部 */
    padding: 8px;
    border-radius: 8px;
}

.qr-info .qrcode-box img {
    width: 100px;
    height: 100px;
    border: 1px solid #eee;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 文字区域 */
.qr-info .qrcode-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100px;
}

/* 识别码：红色加粗 */
.qr-info .qrcode-text .code {
    font-weight: bold;
    color: #ff0000 !important; /* ✅ 强制红色 */
    font-size: 18px;
    margin: 2px 0;
}
/* 防止 iOS Safari 自动识别电话号码/邮箱 */
@media screen and (max-width: 768px) {
  .footer {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  .qr-info .qrcode-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .qr-info .qrcode-text {
        height: auto;
    }
}


