/* 跑酷地图展示 */
.map-gallery {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.map-gallery h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.maps-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 固定两列 */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 小屏幕强制一列 */
@media (max-width: 700px) {
    .maps-list {
        grid-template-columns: 1fr;
    }
}

.map-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    aspect-ratio: 4 / 3; /* 比如 4:3，大约 480×360 */
}

.map-item:hover {
    transform: translateY(-5px);
}

/* 图片填充容器 */
.map-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 保证覆盖，不留空白 */
    display: block;
}

/* 覆盖层 */
.map-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0)); /* 阴影 */
    color: #fff;
    transition: background 0.6s ease; /* 平滑过渡 */
}

/* hover 时阴影变淡 */
.map-item:hover .map-info {
    background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0));
}

/* 左侧文字 */
.map-text {
    text-align: left;
}

.map-text h2 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.map-text p {
    margin: 6px 0 0;
    font-size: 0.92rem;
    color: #dcdcdc;
}

/* 第二行：作者 + 查看详情 */
.map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.map-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
}

.map-link {
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #ffd700; /* 鼠标放上去微微变亮 */
}

/* 幻灯片文字覆盖层 */
.slide {
    position: relative;
}

.slide img {
    width: 100%;
    display: block;
}

.caption {
    position: absolute;
    bottom: 15px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    max-width: 80%;
}

/* 跑酷具体信息 */

/* 地图详情页整体 */
.map-detail {
  max-width: 1100px;
  min-height: 60vh; /* 高度为屏幕的60% */
  margin: 80px auto 40px auto; /* 👈 顶部拉开 80px 距离，底部保持 40px */
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 上方媒体区 */
.map-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.media-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.media-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  min-height: 500px;
}

.media-slide img,
.media-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* 下方内容区 */
.map-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.map-left {
  flex: 2;
  min-width: 300px;
}

.map-left h1 {
  font-size: 1.5rem;
  margin: 15px 0 10px;
}

.map-left h2 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
}

.map-left h3 {
  margin: 20px 0 10px;
}

.map-left p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.map-level-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.map-level-table th,
.map-level-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: center;
}

.map-level-table th {
  background: #f2f2f2;
}

/* 右侧最佳成绩框 */
.map-right {
  flex: 1;
  min-width: 250px;
}

.best-record {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.best-record img {
  width: 120px;
  height: auto;       /* 保持正方形 */
  object-fit: cover;  /* 图片铺满且保持比例 */
  margin-bottom: 10px;
  background-color: transparent;
}

.best-record h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.caption_right_bottom {
    position: absolute;
    bottom: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    max-width: 80%;
}

.caption_right_bottom:hover{
  color: #ffd700; /* 鼠标放上去微微变亮 */
}

/* 手机端调整 */
@media (max-width: 768px) {
    .caption_right_bottom {
        top: 15px;
        left: 20px;
        bottom: auto; /* 取消 bottom 设置 */
        right: auto;  /* 取消 right 设置 */
    }
}

hr.dashed {
  border: none;
  border-top: 2px dashed #000; /* 设置虚线样式 */
  width: 80%; /* 设置宽度 */
  margin: 20px auto; /* 居中显示 */
}