﻿/* ================================================================
   线路介绍区块样式
   适用于: route-a.html ~ route-f.html
   依赖: route-detail.css
   
   区块结构:
   - .route-info-block (主容器，CSS Grid 双栏布局)
     - .route-info-gallery (左侧图片区)
       - .gallery-main (主图)
       - .gallery-thumbs (缩略图列表)
     - .route-info-content (右侧信息区)
       - .route-info-header (标题行)
       - .route-info-tags (标签列表)
       - .route-info-basic (基本信息)
       - .route-info-actions (操作按钮)
   - .notice-modal (公告弹窗)
   ================================================================ */

/* ------------------------------------------------------------
   01. 主容器 - CSS Grid 双栏布局
   ------------------------------------------------------------ */
.route-info-block {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 12px;
  padding: 5px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

/* ------------------------------------------------------------
   02. 左侧图片区
   ------------------------------------------------------------ */

/* 左侧图片区容器 */
.route-info-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.gallery-main {
  width: 100%;
  height: 0;
  position: relative;
  padding-bottom: 66.67%;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-main:hover {
  transform: scale(1.02);
}

.gallery-main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 2;
}

.gallery-thumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
}

.gallery-thumb {
  width: calc((100% - 32px) / 5);
  aspect-ratio: 3/2;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f5f5f5;
  opacity: 0.6;
  flex-shrink: 0;
}

.gallery-thumb:hover {
  border-color: rgba(231, 76, 60, 0.3);
  opacity: 0.8;
}

.gallery-thumb.active {
  border-color: #e74c3c;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 查看更多缩略图 */
.gallery-thumb-more {
  position: relative;
  text-decoration: none;
  opacity: 1;
  border: 2px solid #e74c3c;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.gallery-thumb-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.gallery-thumb-more img {
  opacity: 0.6;
}

.thumb-more-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  z-index: 2;
  line-height: 1.3;
  white-space: nowrap;
}

.gallery-thumb-more:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.gallery-thumb-more:hover img {
  opacity: 0.8;
}

/* ------------------------------------------------------------
   03. 右侧信息区
   ------------------------------------------------------------ */

/* 右侧信息区容器 */
.route-info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 标题和评分 */
.route-info-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.route-info-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

/* 资质标签 */
.route-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6c757d;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 评分栏 */
.route-info-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.rating-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rating-score .icon {
  font-size: 1rem;
  margin-right: 2px;
}

.rating-score .number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
}

.rating-score .max {
  font-size: 0.875rem;
  color: #999;
  font-weight: 400;
}

.rating-divider {
  width: 1px;
  height: 20px;
  background: #e5e5e5;
}

.rating-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #666;
}

.rating-detail a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.rating-detail a:hover {
  text-decoration: underline;
}

.rating-count {
  color: #999;
  font-size: 0.75rem;
}

/* 特色标签（合并荣誉+项目标签） */
.route-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: #f0f7f0;
  color: #2d5a27;
}

.info-tag.green {
  background: #f0f7f0;
  color: #2d5a27;
}

.info-tag.orange {
  background: #fff7f0;
  color: #c05a1a;
}

.info-tag.blue {
  background: #f0f7ff;
  color: #1a5ac0;
}

.info-tag.purple {
  background: #f8f0ff;
  color: #6a1ac0;
}

.info-tag .icon {
  font-size: 0.875rem;
}

/* ------------------------------------------------------------
   04. 信任背书
   ------------------------------------------------------------ */

/* 体验人数信任背书 */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
  border: 1px solid #ffdddd;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #c0392b;
}

.trust-badge .icon {
  font-size: 0.875rem;
}

.trust-badge strong {
  font-weight: 600;
}

/* ------------------------------------------------------------
   05. 基础信息网格
   ------------------------------------------------------------ */

/* 基础信息 */
.route-info-basic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  padding: 10px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.basic-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.basic-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.basic-icon svg {
  width: 100%;
  height: 100%;
}

.basic-content {
  flex: 1;
  min-width: 0;
}

.basic-label {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
  line-height: 1.2;
}

.basic-value {
  font-size: 0.8125rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.basic-value a {
  color: inherit;
  text-decoration: none;
}

.basic-value a:hover {
  color: #3498db;
}

.basic-value.tel a {
  color: #e74c3c;
  font-weight: 600;
}

.basic-value.tel a:hover {
  text-decoration: underline;
}

.basic-value {
  font-size: 0.9375rem;
  color: #1a1a1a;
  line-height: 1.5;
}

.basic-value.highlight {
  color: #e74c3c;
  font-weight: 600;
}

.basic-value a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.basic-value a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   06. 功能按钮
   ------------------------------------------------------------ */

/* 功能按钮 */
.route-info-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.action-btn.outline {
  background: white;
  color: #3498db;
  border: 1px solid #3498db;
}

.action-btn.outline:hover {
  background: #f0f8ff;
}

.action-btn.primary {
  background: #e74c3c;
  color: white;
}

.action-btn.primary:hover {
  background: #c0392b;
}

/* 响应式设计 */




/* ------------------------------------------------------------
   07. 公告弹窗
   ------------------------------------------------------------ */

/* 公告弹窗 */
.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notice-modal.active {
  opacity: 1;
  visibility: visible;
}

.notice-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.notice-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.notice-modal.active .notice-modal-content {
  transform: translateY(0);
}

.notice-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.notice-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.notice-modal-close svg {
  width: 16px;
  height: 16px;
  color: #666;
}

.notice-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.notice-modal-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-modal-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.notice-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.notice-modal-body {
  padding: 24px;
}

.notice-modal-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.notice-modal-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #475569;
}

.notice-modal-text br {
  display: block;
  content: "";
  margin-top: 8px;
}

.notice-link-trigger {
  position: relative;
  cursor: pointer;
}

.notice-link-trigger::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.notice-link-trigger:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 移动端适配 */

