/* ===== 基础重置 ===== */
body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  font-size: 14px;
  background: #3E2723;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  transition: all 0.3s ease;
}

/* ===== 主容器 ===== */
#container {
  max-width: 1080px;
  margin: 0 auto;
  background: #F8F4E3;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* ===== Banner ===== */
#banner img {
  width: 100%;
  display: block;
}

/* ===== 导航栏 ===== */
#globallink {
  background: #A0522D;
}
#globallink ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
#globallink li {
  flex: 1;
  text-align: center;
}
#globallink a {
  display: block;
  padding: 14px 0;
  color: #D2B48C;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  position: relative;
}
#globallink a:hover {
  background: #D2B48C;
  color: #3E2723;
  text-decoration: none;
}
#globallink a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #FFD54F;
  transition: width 0.3s ease;
}
#globallink a:hover::after {
  width: 60%;
}

/* ===== 主要内容区 ===== */
.main-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: stretch;
}

/*=====首页左侧条=====*/
#left-dis {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #D2B48C 0%, #C9A87C 100%);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  top: 16px;
}

/* ===== 小内容左侧栏 ===== */
#left {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #D2B48C 0%, #C9A87C 100%);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 16px;
}



/* 天气查询卡片 */
.weather-card {
  background: rgba(255, 248, 240, 0.5);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.weather-card h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #3E2723;
  border-bottom: 2px solid #A0522D;
  padding-bottom: 8px;
}
.weather-city {
  font-weight: bold;
  color: #5D3A1A;
  margin: 10px 0 4px 0;
  font-size: 14px;
}
.weather-info {
  margin-left: 12px;
  font-size: 13px;
  color: #3E2723;
  line-height: 1.6;
}
.weather-search {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #A0522D;
}
.weather-search label {
  display: block;
  font-size: 13px;
  color: #3E2723;
  margin-bottom: 6px;
}
.weather-search-row {
  display: flex;
  gap: 6px;
}
.weather-search-row input {
  flex: 1;
  padding: 5px 2px;
  border: 1px solid #A0522D;
  border-radius: 6px;
  font-size: 13px;
  background: #FFF8F0;
  outline: none;
}
.weather-search-row input:focus {
  border-color: #7B3F1A;
  box-shadow: 0 0 0 2px rgba(160, 82, 45, 0.2);
}
.weather-search-row button {
  padding: 8px 13px;
  background: #A0522D;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  font-weight: bold;
}
.weather-search-row button:hover {
  background: #7B3F1A;
}

/* 今日推荐 */
#today {
  background: rgba(255, 248, 240, 0.5);
  border-radius: 8px;
  padding: 16px;
  margin-top: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
#today h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #3E2723;
  border-bottom: 2px solid #A0522D;
  padding-bottom: 8px;
}
#today ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#today ul li {
  text-align: center;
  margin-bottom: 10px;
}
#today ul li img {
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#today ul li img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
#today ul li a {
  color: #3E2723;
  text-decoration: none;
  font-size: 13px;
}

/* ===== 中间栏 ===== */
#middle {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#middle h2 {
  margin: 0 0 12px 0;
  font-size: 22px;
  color: #A0522D;
  border-left: 4px solid #A0522D;
  padding-left: 12px;
}

#middle h3 {
  margin: 20px 0 12px 0;
  font-size: 22px;
  color: #A0522D;
  border-left: 4px solid #A0522D;
  padding-left: 12px;
}

#xxx img {
  border-radius: 8px;
  width: 100%;
}

/* 图片展示 — 滚动画廊 */
#beauty {
  margin: 16px 0;
  overflow: hidden;
  position: relative;
}
.scroll-gallery {
  display: flex;
  gap: 8px;
  animation: scrollLeft 15s linear infinite;
  width: max-content;
}
.scroll-gallery:hover {
  animation-play-state: paused;
}
.scroll-gallery li {
  list-style: none;
  flex-shrink: 0;
  width: 120px;
}
.scroll-gallery li img {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.scroll-gallery li img:hover {
  transform: scale(1.05);
  border-color: #A0522D;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 线路精选 */
#route ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#route ul li {
  padding: 10px 14px;
  margin-bottom: 6px;
  background: #FFF8F0;
  border-radius: 8px;
  border-left: 3px solid #A0522D;
  color: #3E2723;
  font-size: 14px;
  line-height: 1.6;
  transition: background 0.3s ease, transform 0.2s ease;
}
#route ul li:hover {
  background: #F0E6D3;
  transform: translateX(4px);
}

/* ===== 右侧栏 ===== */
#right {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #D2B48C 0%, #C9A87C 100%);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.right-card {
  background: rgba(255, 248, 240, 0.5);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.right-card h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #3E2723;
  border-bottom: 2px solid #A0522D;
  padding-bottom: 8px;
}

/* 新疆风光 */
#map p {
  text-align: center;
  margin: 0 0 10px 0;
}
#map p:last-child {
  margin-bottom: 0;
}
#map p img {
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#map p img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 特色小吃 & 宾馆酒店 */
#food ul,
#life ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#food ul li,
#life ul li {
  padding: 8px 12px;
  border-bottom: 1px dashed rgba(160, 82, 45, 0.2);
  transition: background 0.2s ease;
}
#life {
  margin-top: auto;
}

#food ul li:last-child,
#life ul li:last-child {
  border-bottom: none;
}
#food ul li:hover,
#life ul li:hover {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}
#food ul li a,
#life ul li a {
  color: #3E2723;
  text-decoration: none;
  font-size: 13px;
  display: block;
}
#food ul li a:hover,
#life ul li a:hover {
  color: #A0522D;
  font-weight: bold;
}

/* ===== 清除浮动 ===== */
.clear {
  clear: both;
}

/* ===== 子页面样式 (jianjie.html 等) ===== */
.jianjie,
#jianjie {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px;
  background: #F8F4E3;
  border-radius: 10px;
}
.font1 {
  font-size: 15px;
  color: #3E2723;
  line-height: 1.8;
  text-indent: 2em;
  font-weight: normal;
}
.font2 {
  font-size: 20px;
  font-weight: bold;
  color: #A0522D;
  text-indent: 2em;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  #container {
    max-width: 100%;
  }
  .main-row {
    flex-wrap: wrap;
  }
  #left-dis {
    width: 100%;
    order: 2;
  }
  #left {
    width: 100%;
    order: 2;
  }
  #middle {
    order: 1;
    flex: 1 1 100%;
  }
  #right {
    width: 100%;
    order: 3;
  }
}
