/* --- 优化后的西藏主题CSS --- */

/* --- 1. 全局变量和基础重置优化 --- */
:root {
  /* -- 色彩优化：降低了蓝色的饱和度，使其更沉稳；调整了警告和危险色，使其不那么刺眼 -- */
  --primary-color: #3498db; /* 保持不变，但可以考虑 #2980b9 这种更深的蓝 */
  --secondary-color: #34495e; /* 加深了二级色，增强对比度 */
  --accent-color: #e74c3c;
  --light-bg: #f7f9fc; /* 使用一个更柔和的浅背景色 */
  --text-dark: #2c3e50;
  --text-light: #8492a6; /* 调整了浅色文字，确保可读性 */
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --border-color: #e8eef3; /* 新增边框颜色变量，便于统一管理 */

  /* -- 尺寸和效果优化 -- */
  --border-radius: 12px; /* 略微增大了圆角，更显现代 */
  --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* 使用贝塞尔曲线使动画更自然 */
}

/* -- 基础重置优化 -- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* 添加平滑滚动效果 */
}

body {
  font-family: 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 优先使用 Noto Sans SC */
  line-height: 1.7; /* 增大行高以提高可读性 */
  color: var(--text-dark);
  background-color: #f5f7fa;
  padding-bottom: 20px;
  -webkit-font-smoothing: antialiased; /* 优化字体渲染 */
  -moz-osx-font-smoothing: grayscale;
}

/* --- 2. 页面主要区域样式优化 --- */

.topic-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -- 头部区域样式优化 -- */
.topic-header {
  position: relative;
  margin: 30px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* 调整后的渐变 - 降低饱和度，增加对比度 */
  background: 
    linear-gradient(135deg, rgba(40, 90, 130, 0.9), rgba(180, 90, 70, 0.9)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05) 0 2px,
      transparent 2px 4px
    );
  
  transition: transform 0.4s ease;
  z-index: 1;
}

.topic-header:hover .header-bg {
  transform: scale(1.03);
}

.header-content {
  position: relative;
  padding: 90px 40px;
  color: white;
  text-align: center;
  z-index: 2; /* 确保内容在背景之上 */
}

.header-content h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  /* 增强文字阴影，提升可读性 */
  text-shadow:
    0 1px 2px rgba(0,0,0,0.8),
    0 2px 4px rgba(0,0,0,0.6),
    0 4px 8px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}

.header-content p {
  color: #f5f5f5; /* 稍微偏离纯白，减少视觉疲劳 */
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 1; /* 提高不透明度 */
  font-weight: 400; /* 稍微加粗 */
  text-shadow:
    0 1px 2px rgba(0,0,0,0.8),
    0 2px 4px rgba(0,0,0,0.5);
}

.header-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  opacity: 1; /* 提高不透明度 */
  flex-wrap: wrap;
  color: #f0f0f0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  gap: 10px 20px;
}

.header-meta i {
  margin-right: 8px;
}

.header-meta span {
  margin: 0;
}


/* -- 布局和内容区域优化 -- */
.layout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
  align-items: flex-start; /* 顶部对齐 */
}

.main-content {
  flex: 1;
  min-width: 320px;
}

.content-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  border-top: 5px solid var(--primary-color);
}

.content-section:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-md);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 15px;
  color: var(--primary-color);
  background: rgba(52, 152, 219, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-content p {
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 16px;
  color: #555;
}

/* -- 提示框样式优化 -- */
.tip-box {
  background-color: var(--light-bg);
  border-left: 4px solid var(--warning-color);
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  display: flex;
  align-items: center; /* 垂直居中对齐 */
  transition: var(--transition);
}

.tip-box:hover {
  background-color: #fffaf0;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
}

.tip-icon {
  margin-right: 18px;
  color: var(--warning-color);
  font-size: 26px;
  flex-shrink: 0;
}

.tip-content p {
  margin: 0;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
}

/* -- 卡片布局样式 -- */
.permits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.permit-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.permit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-color);
  transition: transform 0.4s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.permit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.permit-card:hover::before {
  transform: scaleX(1);
}

.permit-card h3 {
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.permit-card h3 i {
  margin-right: 12px;
  color: var(--primary-color);
  background: rgba(52, 152, 219, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.permit-card:hover h3 i {
  background-color: var(--primary-color);
  color: white;
  transform: rotate(15deg) scale(1.1);
}

.permit-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* -- 时间线样式优化 -- */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 50px;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}
/* 移除多余的 flex 布局，简化结构 */
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-point {
  position: absolute;
  left: -52px;
  top: 50%; /* 新增：定位到父容器的垂直中心点 */
  transform: translateY(-50%); /* 新增：根据自身高度向上偏移50%，实现精确垂直居中 */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: white;
  border: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-color);
  z-index: 1;
  font-size: 18px;
  box-shadow: 0 0 0 5px rgba(52, 152, 219, 0.2);
  transition: var(--transition);
}

.timeline-item:hover .timeline-point {
  transform: scale(1.1);
  background-color: var(--primary-color);
  color: white;
}

.timeline-content {
  padding: 5px 20px;
}

.timeline-content h3 {
  color: var(--secondary-color);
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  position: relative;
}

.timeline-content p {
  font-size: 16px;
  color: #666;
  padding-bottom: 20px;
}

/* -- 材料清单样式优化 -- */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.material-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
  border-color: var(--primary-color);
}

.material-card h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.material-card h3::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  margin-right: 12px;
}

.material-card ul { list-style: none; } /* 移除列表默认样式 */
.material-card ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  transition: color 0.3s ease;
  padding: 10px;
  border-bottom: 1px dashed #f0f0f0;
  border-radius: 6px;
}
.material-card ul li:last-child {
  border-bottom: none;
}

.material-card ul li:hover {
  color: var(--primary-color);
  background-color: var(--light-bg);
}

.material-card ul li i {
  margin-right: 12px;
  color: var(--success-color);
  margin-top: 5px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.material-card ul li:hover i {
  transform: scale(1.2);
}

.material-card.special i {
  color: var(--warning-color);
}
.material-card.special:hover {
  border-color: var(--warning-color);
}

/* -- FAQ 样式优化 -- */
.faq-list {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  margin-bottom: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow-sm);
}

.faq-question {
  width: 100%;
  background-color: white;
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  color: var(--secondary-color);
}

.faq-item.active .faq-question {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.faq-question:hover {
  background-color: var(--light-bg);
}

.faq-question i {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: var(--primary-color);
  font-size: 16px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: white;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}


/* -- 注意事项样式优化 -- */
.warning-box {
  background-color: rgba(231, 76, 60, 0.05); /* 使用更淡的背景色 */
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  border-left: 5px solid var(--danger-color);
}
.warning-box h3 {
  color: var(--danger-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
}
.warning-box h3 i { margin-right: 12px; }
.warning-box ul {
  list-style-type: none;
  padding-left: 0;
  color: #c0392b; /* 加深文字颜色，提高可读性 */
}
.warning-box ul li {
  margin-bottom: 12px;
  font-size: 16px;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}
.warning-box ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--danger-color);
  font-weight: bold;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.tip-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  position: relative;
  border-top: 5px solid var(--primary-color);
}
.tip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-md);
}
.tip-card.docs { border-top-color: var(--primary-color); }
.tip-card.health { border-top-color: var(--success-color); }
.tip-card.culture { border-top-color: #9b59b6; }
.tip-card h4 {
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: 700;
}
.tip-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* --- 3. 侧边栏样式优化 --- */
.sidebar {
  min-width: 320px;
  max-width: 350px;
  flex: 0 0 auto;
}

.sidebar-block {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
}
.sidebar-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.sidebar-block h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.sidebar-block h3 i {
  margin-right: 12px;
  color: var(--primary-color);
  background: rgba(52, 152, 219, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-block.service {
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
  color: white;
}
.sidebar-block.service h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.sidebar-block.service ul { list-style: none; }
.sidebar-block.service ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.sidebar-block.service ul li i {
  margin-right: 12px;
  margin-top: 4px;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-block.service ul li span {
  color: rgba(255, 255, 255, 0.9);
}

.service-btn {
  display: block;
  background-color: white;
  color: var(--primary-color);
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 25px;
  transition: var(--transition);
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.service-btn:hover {
  background-color: var(--light-bg);
  color: #2980b9;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.time-list .time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 15px;
}
.time-list .time-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.time-item span:first-child {
  color: var(--text-dark);
}
.time-item span:last-child {
  font-weight: 500;
  background-color: var(--light-bg);
  padding: 4px 10px;
  border-radius: 20px;
}

.time-item .urgent {
  color: var(--danger-color);
  font-weight: 700;
  background-color: rgba(231, 76, 60, 0.1);
}

.time-note {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 20px;
  padding: 12px;
  background-color: var(--light-bg);
  border-radius: 8px;
}
.time-note i {
  margin-right: 8px;
  color: var(--primary-color);
}

.seasons { overflow: hidden; }
.seasons img {
  border-radius: 0;
  margin: -30px -30px 25px;
  width: calc(100% + 60px);
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
  filter: saturate(1.1); /* 提高图片饱和度 */
}
.sidebar-block:hover .seasons img {
  transform: scale(1.05);
}

.season-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}
.season-item:last-child { border-bottom: none; }
.stars i { color: var(--warning-color); margin-left: 2px; }

.links ul { list-style: none; }
.links ul li { margin-bottom: 5px; }
.links ul li a {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #555;
  transition: var(--transition);
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.links ul li a:hover {
  color: var(--primary-color);
  background-color: var(--light-bg);
  transform: translateX(5px);
}
.links ul li i {
  margin-right: 12px;
  color: var(--primary-color);
  transition: var(--transition);
}

/* --- 4. 底部CTA区域优化 --- */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
  color: white;
  border-radius: var(--border-radius);
  padding: 70px 40px;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.cta-content p {
  margin-bottom: 35px;
  opacity: 0.9;
  font-size: 18px;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: var(--box-shadow-sm);
  letter-spacing: 0.5px;
}

.btn.primary {
  background-color: white;
  color: var(--secondary-color);
}
.btn.primary:hover {
  background-color: var(--light-bg);
  color: #000;
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-md);
}
.btn.secondary {
  background-color: transparent;
  border-color: white;
  color: white;
}
.btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- 5. 响应式调整 (保持原有逻辑，微调) --- */
@media (max-width: 1199px) {
  .sidebar { min-width: 280px; }
  .layout-container { gap: 25px; }
}

@media (max-width: 992px) {
  .sidebar {
    width: 100%;
    max-width: 100%;
  }
  .materials-grid { grid-template-columns: 1fr; }
  .timeline-content.left,
  .timeline-content.right {
    padding: 0 15px;
    text-align: left; /* 统一左对齐 */
  }
}

@media (max-width: 768px) {
  .header-content { padding: 60px 20px; }
  .header-content h1 { font-size: 36px; }
  .header-content p { font-size: 16px; }
  .timeline { padding-left: 40px; }
  .timeline-line { left: 18px; }
  .timeline-point {
    left: -42px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .tips-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .content-section { padding: 30px 25px; }
}

@media (max-width: 576px) {
  .topic-page { padding: 0 15px; }
  .content-section { padding: 25px 20px; }
  .section-title { font-size: 22px; }
  .cta-content h2 { font-size: 28px; }
  .btn { width: 100%; }
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .header-meta {
    flex-direction: column;
    gap: 10px;
  }
}