body {
  background-color: #e6f3ff;
  margin: 0;
  /* font-family: "Helvetica Neue", sans-serif; */
  font-family:
    "Noto Sans JP",
    "Yu Gothic UI",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;
  font-weight: 700;
  line-height: 1.3;
  font-size: large;
  padding-top: 170px;
  /* 根据 header 高度适当调整 */
}

/* 主题色 */
:root {
  /* --theme-color: #00aaff; */
  --text-color: #333;
  --bg-hover: #00aaff;

}

/* logo nav相对位置 */
.header {
  background-color: #f8fbfd;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 使logo和nav都居中 */
}

.logo {
  margin-left: -40px;
}

.logo img {
  width: 260px;
  height: auto;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    margin-bottom: 0;
  }
}

nav {
  max-width: 960px;
  /* 或 800px，根据页面内容调整 */
  margin: 0 auto;
  /* 居中关键 */
  background-color: white;
  border-bottom: 5px solid var(--theme-color);
}

.navbar {
  display: flex;
  padding: 0;
  list-style: none;
  margin: 0;
  background-color: rgb(255, 255, 255);
}

.navbar li {
  position: relative;
}

.navbar>li>a {
  display: block;
  padding: 1em 1.5em;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.3s;
}

.navbar>li:hover>a,
.navbar>li.active>a {
  /* background-color: var(--theme-color); */
  background-color: #00aaff;
  color: white;
}

/* 二级菜单 */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-hover);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  z-index: 10;
}

.submenu li a {
  display: block;
  padding: 0.8em 1em;
  text-decoration: none;
  color: var(--text-color);
  /* background-color: #f8f0f0; */
  /* background-color:#c9f7dc; */
  background-color: #b0b6bc;
  border-bottom: 1px solid #ddd;
}

.submenu li a:hover {
  background-color: var(--theme-color);
  color: white;
}

/* 显示子菜单 */
.navbar li:hover>.submenu,
.navbar li.active>.submenu {
  display: block;
}

/* 三级菜单 */
.submenu li {
  position: relative;
}

.submenu .sub-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: var(--bg-hover);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 215px;
}

.submenu li:hover>.sub-submenu {
  display: block;
}

/* 轮播图 */
/**{
   box-sizing: border-box; 
}*/

.carousel {
  /* position: relative;
  width: 100%;
  max-width: 800px;
  margin-top: 25px;
  margin-bottom: 5px;
  margin: 25px auto;
  overflow: hidden;
  border: 0px solid #00aaff;
  border-radius: 10px;
  background: #fff; */
  position: relative;
  width: 100vw;
  overflow: hidden;
  margin: 0;

}

.carousel-images {
  /* display: flex;
  transition: transform 0.5s ease-in-out; */
  display: flex;
  
  gap: 10px;         /* 👈 每张图片之间的空隙（推荐方式） */

  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  /* width: 100%;
  height: 100%;
  object-fit: cover; */
  /* 图片自动裁剪填满容器 */
  /* flex-shrink: 0; */
  width: 33.333%;
  height: 45vh;
  /* 适中高度，可调整为更大更显眼 */
  object-fit: unset;
  flex-shrink: 0;
   border-radius: 8px; 
}

.carousel-button {
  /* position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  z-index: 1; */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}

.carousel-button.left {
  /* left: 10px; */
  left: 10px;
}

.carousel-button.right {
  /* right: 10px; */
  right: 10px;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.indicators {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.indicators span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicators .active {
  background-color: #00aaff;
}

/* CROWD FUNDING */
.crowd-container {
  max-width: 1000px;
  margin: 12px auto;
  padding: 0 20px;
  /* padding: auto; */

  /* text-align: center; */
}

.crowd-container h2 {
  display: inline-block;
  /* 宽度等于文字长度 */
  position: relative;
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #333;
  text-align: left
}

.crowd-container h2::after {
  content: "";
  display: block;
  height: 5px;
  background-color: #00aaff;
  margin-top: 8px;
  width: 100%;
  /* 自动等宽 */
}

/* .crowd-container hr {
  width: 100px;
  border: 3px solid #00aaff;

  margin: 0 0 2em 0; 
} */

.crowd-top {
  margin-bottom: 10px;
}

.crowd-top img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.crowd-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* justify-content: center; */
}

.crowd-gallery a {
  flex: 1 1 30%;
  max-width: 30%;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  /*  保持统一高度 */
  background-color: #f9f9f9;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.crowd-gallery img {
  width: 100%;
  height: 220px;
  /* object-fit: cover; */
  object-fit: contain;
  /* 保留完整内容 */
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.crowd-gallery img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .crowd-gallery a {
    max-width: 45%;
  }

  .crowd-gallery img {
    height: 180px;
  }
}

@media (max-width: 500px) {
  .crowd-gallery a {
    max-width: 100%;
  }

  .crowd-gallery img {
    height: auto;
  }
}

hr {
  border: none;
  border-top: 4px solid #87CEFA;
  margin-bottom: 5px;
}

/* .carousel, .crowd-container {
  outline: 1px solid red;
}  */

/* 新闻板块*/
.news-section {
  max-width: 980px;
  /* width: 100%; */
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
}


.news-container {
  max-height: 300px;
  /* 控制显示区域高度 */
  overflow-y: auto;
  padding-right: 10px;
  /* 留出空间显示滚动条 */
}

.news-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 3px;
}

.news-text {
  font-size: 1em;
  color: #333;
}

/* 自定义滚动条样式（仅支持 Webkit 浏览器） */
.news-container::-webkit-scrollbar {
  width: 8px;
}

.news-container::-webkit-scrollbar-thumb {
  background-color: #1E90FF;
  border-radius: 4px;
}

.news-container::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-radius: 4px;
}

/* 月度新商品汇总 */
.card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 250px;
  max-width: 300px;
  min-height: 160px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

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

.card.green {
  background-color: #A6E3A1;
  /* 淡绿色，活力 */
  color: #fff;
}

.card.blue {
  background-color: #1E90FF;
  /* 天蓝色，主色 */
  color: #fff;
}

.card.orange {
  background-color: #FFD59E;
  /* 淡橙色，温暖 */
  color: #fff;
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }
}

/* 页脚 */
.ec-footer {
  margin-top: 60px;
  background: #fafafa;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  padding: 40px 0px;
  border-top: 1px solid #ddd;
 
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 30px;
}

.footer-nav,
.footer-info {
  flex: 1 1 200px;
  margin: 0 20px;
}

.footer-nav h4,
.footer-info h4,
.footer-sns h4 {
margin-top: 0px;
  font-size: 16px;
  margin-bottom: 15px;
  color: #222;
}

.footer-nav ul,
.footer-info ul {
  list-style: none;
  padding: 0;
 
}

.footer-nav li,
.footer-info li {
  margin-bottom: 25px; /* 调整间距大小， */
}

.footer-nav li:last-child {
  margin-bottom: 0;  /* 去掉最后一项和下面元素之间的间距 */
}

.footer-nav a,
.footer-info a {
  color: #555;
  text-decoration: none;
  transition: color .3s;
}

.footer-nav a:hover,
.footer-info a:hover {
  color: #000;
}

.footer-sns {
  flex: 1 1 150px;
  text-align: center;
}

.footer-sns h4 {
  font-size: 16px;
  margin-bottom: 32px;
}

.sns-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px; /* 每个a之间的左右间距 */
  flex-wrap: nowrap;         /* 不允许换行 */
  
}

.sns-icons a {
  text-decoration: none;
}

/* 统一 icon 的“框”，看起来整齐 */
.sns-icon-box {
  width: 90px;
  height: 90px;
  background-color: #fff; /* 可选：用于突出图标 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* 可选：提升质感 */
  transition: transform 0.3s, opacity 0.3s;
}

.sns-icon-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sns-icon-box:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* 图片自身大小适配容器 */
.sns-icon-box img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.footer-sns a {
  margin: 0 8px;
  display: inline-block;
  opacity: 0.7;
  transition: opacity .3s;
}

.footer-sns a:hover {
  opacity: 1;
}

.footer-sns img {
  /* width: 28px;
  height: 28px; */
  max-width: 60%;
  max-height: 60%;
  vertical-align: middle;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}

.company-info p {
  margin: 2px 0;
}

copyright {
  margin-top: 8px;
}