/* 通用设置 */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
  font-size: 16px;
}

/* 设置容器布局 */
.container {
  display: flex;
  height: 100vh;
}

/* 开始界面 */
#start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f2f2f2;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}

#start-screen h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: 'Georgia', serif;
}

#start-screen h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 3rem;
  margin-top: 0;
  font-family: 'Georgia', serif;
  font-weight: 790; 
}

#start-button {
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  color: white;
  border: none;
  border-radius: 1px;
  cursor: pointer;
}

/* 地图 */
#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* 标题 */
#map-title {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  padding: 0.375rem 0.625rem;
  font-size: 1.125rem;
  font-weight: bold;
  z-index: 10;
  border-radius: 4px;
}

/* 图例 */
#legend {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: white;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  border-radius: 0.4rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-family: Roboto, sans-serif;
  font-size: 0.8rem;
  z-index: 10;
}

#legend-scale div {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

#legend-scale span {
  display: inline-block;
  width: 1.5rem;
  height: 0.875rem;
  margin-right: 0.5rem;
  border: 1px solid #bababa;
}

#legend h4 {
  margin: 0.2rem 0rem 0.6rem 0rem;  /* top, right, bottom, left → 减少顶部空白 */
  font-size: 0.9rem;     /* 控制字体大小 */
  font-family: 'Roboto', sans-serif;
  font-weight: regular; /* 设置字体粗细 */
}

#layer-selector {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 11;
  background: white;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#layer-selector select {
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  border: 1px solid #ffffff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
#layer-selector-hexbin {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 11;
  background: white;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#layer-selector-hexbin select {
  font-size: 0.8rem;
  font-family: 'Roboto', sans-serif;
  border: 1px solid #ccc;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}


/* 左侧栏 */
.sidebar {
  width: 35%;
  padding: 2.2rem;
  background-color: #f2f2f2;
  color: rgb(0, 0, 0);
  overflow-y: auto;
  border-right: 2px solid rgb(255, 255, 255);
}

.sidebar h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: 'Georgia', serif;
}

.sidebar h2 {
  margin-top: 1.875rem;
  color: #0095ff;
}

/* 详细栏 */
#sidebar-detail {
  width: 35%;
  padding: 2.2rem;
  background-color: #f2f2f2;
  color: rgb(0, 0, 0);
  overflow-y: auto;
  border-right: 2px solid rgb(255, 255, 255);
}

#sidebar-detail h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.3vw, 2.8rem);
  margin-top: 1.5rem;
  font-family: 'Georgia', serif;
}

#sidebar-detail h2 {
  margin-top: 3.7rem;
  color: #00bfff;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
}

#oyster-comment-list details {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.4vw, 2rem);
  font-family: 'Georgia', serif;
}

#oyster-comment-list p {
  font-size: clamp(1rem, 1.0vw, 1.5rem);
  font-family: 'Georgia', serif;
  color: #555;
  margin-left: 1.875rem;
  margin-top: 1.25rem;
  line-height: 1.4;
}
#sidebar-detail p {
  font-size: clamp(1rem, 1.0vw, 1.5rem);
  font-family: 'Georgia', serif;
  color: #000000;
  margin-left: 1rem;
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* Learn more GIF */
.learn-more-gif {
  position: absolute;
  bottom: 2rem;         /* 距离底部 2rem，可调整 */
  left: 2rem;           /* 距离左侧 2rem，可改为 right: 2rem */
  width: 14rem;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  z-index: 10;
}

.learn-more-gif:hover {
  transform: scale(1.14);
}

/* sidebar-fail */
#sidebar-fail {
  width: 35%;
  padding: 2.2rem;
  background-color: #f2f2f2;
  color: rgb(0, 0, 0);
  overflow-y: auto;
  border-right: 2px solid rgb(255, 255, 255);
}

#sidebar-fail h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.3vw, 2.8rem);
  margin-top: 1.2rem;
  font-family: 'Georgia', serif;
}

#sidebar-fail p {
  font-size: clamp(1rem, 1.0vw, 1.5rem);
  font-family: 'Georgia', serif;
  color: #000000;
  margin-left: 0.2rem;
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* sidebar-sorry */
#sidebar-sorry {
  width: 35%;
  padding: 2.2rem;
  background-color: #f2f2f2;
  color: rgb(0, 0, 0);
  overflow-y: auto;
  border-right: 2px solid rgb(255, 255, 255);
}

#sidebar-sorry h1 {
  font-size: clamp(1.8rem, 2.3vw, 2.8rem);
  margin-top: 1.2rem;
  font-family: 'Georgia', serif;
}
#sidebar-sorry p {
  font-size: clamp(1rem, 1.0vw, 1.5rem);
  font-family: 'Georgia', serif;
  color: #000000;
  margin-left: 0.2rem;
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* sidebar-about */
#sidebar-about {
  width: 35%;
  padding: 2.2rem;
  background-color: #f2f2f2;
  color: rgb(0, 0, 0);
  overflow-y: auto;
  border-right: 2px solid rgb(255, 255, 255);
}

#sidebar-about h1 {
  font-size: clamp(1.8rem, 2.3vw, 2.8rem);
  margin-top: 1.2rem;
  font-family: 'Georgia', serif;
}
#sidebar-about p {
  font-size: clamp(1rem, 1.0vw, 1.5rem);
  font-family: 'Georgia', serif;
  color: #000000;
  margin-left: 0.2rem;
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* 返回链接 */
.back-link {
  font-size: 1.0625rem;
  color: rgb(80, 80, 80);
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.back-link:hover {
  text-decoration: underline;
}

a.plain-link {
  color: rgb(104, 104, 104);
  text-decoration: underline;
  font-weight: normal;
  
}

a.plain-link:hover {
  color: #2479be;
  text-decoration: underline;
}

/* 地图容器 */
.map-wrapper {
  width: 65%;
  height: 100vh;
  position: relative; 
}

#map {
  width: 100%;
  height: 100%;
}


summary h1 {
  font-size: 28px;
  margin: 0;
  display: inline-block;      /* 避免换行影响点击区域 */
  margin-bottom:  1rem;
}

#sidebar-detail summary {
  list-style: revert;
}

#sidebar-detail summary::-webkit-details-marker {
  display: revert;
}


.map-photo-marker {
  width: 40px;
  height: 40px;
  overflow: visible;
  border-radius: 4px;
  transition: all 0.03s ease;
  z-index: 1;
}

.photo-img {
  width: 50px;
  height: 50px;
  border-radius: 2px;
  object-fit: cover;
  transition: transform 0.2s ease;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.map-photo-marker:hover .photo-img {
  transform: scale(6);
  z-index: 9999;
}

.oyster-marker {
  font-size: 20px;
  transform: translate(-50%, -50%);
  cursor: default;
}
