/* final.css – Style inspired by jesseprague.com/eater.html */

:root {
  --pink: #ff2e63;
  --light-bg: #f9f9f9;
  --gray: #eee;
  --text-color: #333;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: #fff;
  line-height: 1.6;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  border-bottom: 1px solid var(--gray);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .jp a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
}

.main-nav {
  list-style: none;
  display: flex;
  gap: 1.0rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  margin-left: 1rem;
}

/* Pink utility */
.pink {
  color: var(--pink);
}

/* Layout */
.thegrid,
.content-grid,
.darkbg {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

.darkbg {
  background-color: var(--light-bg);
}

.flexContainer {
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}

.flexText, .flexImage {
  margin: 1rem 0;
}

i/* 图片样式统一控制：大小适中、居中显示、带阴影和圆角 */
img,
.hero-img,
.section img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 1rem auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 视频样式控制：用于 video/ 路径 */
.video-banner {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background-color: rgb(0, 0, 0);
}



h1, h2,  h5, h6 {
  margin-bottom: 0.5rem;
  text-align: center;
}
h3 {
  margin-bottom: 0.5rem;
  text-align: left;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
h4{
  margin-bottom: 0.5rem;
  text-align: left;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  
}
p {
  margin-bottom: 1rem;
  text-align: justify;

  text-align: left;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;

}

/* Buttons and utility */
.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gray);
  text-indent: -9999px;
  cursor: pointer;
  display: block;
  z-index: 999;
}

.no-display {
  display: none !important;
}

.footer {
  padding: 2rem 1rem;
  text-align: center;
  background-color: var(--gray);
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}


[id] {
  scroll-margin-top: 100px; /* 调整为你的导航栏高度或略多一点 */
}



.sub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f2f2f2;
  border-radius: 6px;
}

.sub-nav a {
  text-decoration: none;
  color: #7551b4;
  font-weight: bold;
  transition: color 0.3s;
}

.sub-nav a:hover {
  color: #333;
}
.has-dropdown > a::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 0.4rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.video-container {
  display: flex;
justify-content: center;
}

.video-container iframe {
  width: 80%;
max-width: 900px;
  
 
height: 450px;
  border: none;
  
 
border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
  