/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border: none;
}

ul,
ol {
  list-style: none;
}

/* ===== Layout ===== */
.page-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.container {
  width: 19.2rem;
  margin: 0 auto;
  position: relative;
}

/* ===== Common Components ===== */
.section-title {
  text-align: center;
  font-size: 0.48rem;
  font-weight: 900;
  color: #333;
  position: relative;

  opacity: 0;
  transform: translateY(0.3rem);
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.section-title::after {
  content: "";
  display: block;
  width: 1.14rem;
  height: 0.05rem;
  background: #333;
  border-radius: 999px;
  margin: 0.15rem auto 0;
}

.section-title.blue {
  color: #0d62bd;
}

.section-title.blue::after {
  background: #0d62bd;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.5rem;
  padding: 0 0.8rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #62bdb4;
  color: #62bdb4;
  font-size: 0.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #62bdb4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0.08rem 0.2rem rgba(98, 189, 180, 0.3);
}

/* ===== Banner Section ===== */
.banner-section {
  width: 100%;
  height: 12.22rem;
  background: url("../images/12.png") no-repeat center top;
  background-size: cover;
  position: relative;
}

.banner-logo {
  position: absolute;
  left: 3.83rem;
  top: 0.52rem;
  width: 2.38rem;
  z-index: 10;
}

.banner-logo img {
  width: 100%;
}

/* ===== Notice Section ===== */
.notice-section {
  width: 100%;
  background: url("../images/8.png") no-repeat center top;
  background-size: cover;
  padding: 0.9rem 0 1.2rem;
}

.notice-card {
  width: 12.45rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.2rem;
  padding: 0.4rem;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(0.4rem);
  transition: all 0.6s ease-out;
}

.notice-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.notice-title {
  font-size: 0.36rem;
  color: #000;
  text-align: center;
  line-height: 1.5;
  font-weight: 400;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 0.12rem;
  margin-bottom: 0.12rem;
}

.notice-divider {
  display: block;
  width: 100%;
  margin: 0.2rem 0;
}

.notice-source {
  text-align: center;
  font-size: 0.14rem;
  color: #000;
  margin-bottom: 0.1rem;
}

.notice-summary {
  width: 7.77rem;
  margin: 0 auto 0.25rem;
  font-size: 0.18rem;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
  text-align: justify;
}

.notice-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.2rem;
}

.notice-illustration {
  width: 8.48rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.42rem;
}

.notice-illustration img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: all 0.3s;
}

.notice-illustration img:hover {
  transform: scale(1.1);
}

/* ===== News Section ===== */
.news-section {
  width: 100%;
  background: url("../images/9.png") no-repeat center top;
  background-size: cover;
  padding: 0.8rem 0 1rem;
}

.news-grid {
  width: 12.5rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 0.32rem;
  margin-top: 0.6rem;
}

.news-card {
  width: 4.01rem;
  background: #fff;
  border-radius: 0.2rem;
  border: 1px solid #ddd;
  overflow: hidden;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: all 0.5s ease-out;
}

.news-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card:nth-child(1) {
  transition-delay: 0s;
}
.news-card:nth-child(2) {
  transition-delay: 0.1s;
}
.news-card:nth-child(3) {
  transition-delay: 0.2s;
}
.news-card:nth-child(4) {
  transition-delay: 0.3s;
}
.news-card:nth-child(5) {
  transition-delay: 0.4s;
}
.news-card:nth-child(6) {
  transition-delay: 0.5s;
}

.news-card:hover {
  transform: translateY(-0.08rem);
  box-shadow: 0 0.12rem 0.3rem rgba(0, 0, 0, 0.1);
  border-color: #62bdb4;
}

.news-card-img {
  width: 100%;
  height: 2.08rem;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.08);
}

.news-card-body {
  padding: 0.2rem;
}

.news-card-title {
  font-size: 0.3rem;
  color: #000;
  line-height: 1.4;
  margin-bottom: 0.12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card-desc {
  font-size: 0.2rem;
  color: #999;
  line-height: 1.5;
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 0.2rem;
  border-top: 1px solid #f0f0f0;
}

.news-card-date {
  font-size: 0.2rem;
  color: #999;
}

.news-card-link {
  font-size: 0.2rem;
  color: #999;
  transition: color 0.3s;
}

.news-card-link:hover {
  color: #62bdb4;
}

.news-more {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ===== Tab Section Common ===== */
.tab-section {
  width: 100%;
  position: relative;
}

.tab-section-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tab-section-inner {
  position: relative;
  z-index: 1;
  width: 12.5rem;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  justify-content: center;

  margin: 0.2rem 0 0.2rem;
  flex-wrap: wrap;
}

.tab-nav-item {
  font-size: 0.3rem;
  color: #999;
  cursor: pointer;

  border-radius: 0.08rem;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.tab-nav-item:hover {
  color: #0d62bd;
}

.tab-nav-item.active {
  color: #0d62bd;
  font-weight: 500;
}

.tab-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -0.06rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.4rem;
  height: 0.04rem;
  background: #0d62bd;
  border-radius: 999px;
}

.tab-content {
  border-radius: 0.2rem;
  padding: 0.4rem;
  padding-top: 0.2rem;
  min-height: 3.5rem;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

.tab-panel-text {
  font-size: 0.24rem;
  color: #0d62bd;
  line-height: 1.8;
  padding: 0 2.4rem 0 0.6rem;
  text-align: justify;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Fire Safety ===== */
.fire-safety-section {
  height: 12rem;
  background: url("../images/16.png") no-repeat center top;
  background-size: 100% 100%;
  padding: 3.2rem 0 2.8rem !important;
}

/* ===== Traffic Safety ===== */
.traffic-safety-section {
  height: 10.8rem;
  background: url("../images/15.png") no-repeat center top;
  background-size: 100% 100%;
  padding-top: 2.2rem;
}
.traffic-safety-section .tab-panel-text {
  height: 2.6rem;
  overflow-y: auto;
  padding: 0 0.6rem 0 0.6rem;
  margin-right: 1.8rem;
}
/* 整个滚动条 */
.traffic-safety-section .tab-panel-text::-webkit-scrollbar {
  width: 8px; /* 纵向滚动条宽度 */
  height: 8px; /* 横向滚动条高度 */
}

/* 滚动条轨道 */
.traffic-safety-section .tab-panel-text::-webkit-scrollbar-track {
  background: #f1f1f1; /* 轨道颜色 */
  border-radius: 4px;
}

/* 滚动条滑块 */
.traffic-safety-section .tab-panel-text::-webkit-scrollbar-thumb {
  background: #2c3e66; /* 滑块颜色 */
  border-radius: 4px;
}

/* 滑块 hover 效果 */
.traffic-safety-section .tab-panel-text::-webkit-scrollbar-thumb:hover {
  background: #1e2f4a; /* 悬停时的颜色 */
}

/* ===== Outdoor Safety ===== */
.outdoor-safety-section {
  height: 10.8rem;
  background: url("../images/17.png") no-repeat center top;
  background-size: 100% 100%;
  padding-top: 1.92rem;
}

.outdoor-content-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.outdoor-card {
  width: 10rem;
  background: #fff;
  border-radius: 0.2rem;
  padding: 0.5rem 0.6rem;
  border: 0.13rem solid #fff;
  box-shadow: 0 0.06rem 0.2rem rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: scale(0.96);
  transition: all 0.5s ease-out;
}

.outdoor-card.visible {
  opacity: 1;
  transform: scale(1);
}

.outdoor-card-text {
  font-size: 0.24rem;
  color: #333;
  line-height: 1.8;
}

.outdoor-tabs {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.outdoor-tab-btn {
  width: 2rem;
  height: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #999;
  border-radius: 0.2rem;
  color: #fff;
  font-size: 0.24rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.outdoor-tab-btn:hover {
  background: #7ab8e8;
}

.outdoor-tab-btn.active {
  background: #0d62bd;
}

/* ===== Stampede Section ===== */
.stampede-section {
  width: 100%;
  background: url("../images/3.png") no-repeat center top;
  background-size: cover;
  padding: 1.5rem 0 1.8rem;
}

.stampede-container {
  width: 12rem;
  margin: 0 auto;

  border-radius: 0.2rem;
  padding: 0.4rem 0.4rem 0.6rem;
}

.stampede-cards {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.stampede-card {
  background: #fff;
  border-radius: 0.2rem;
  border: 0.13rem solid #faa810;
  padding: 0.5rem 0.55rem;
  opacity: 0;
  transform: translateX(-0.3rem);
  transition: all 0.5s ease-out;
}

.stampede-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.stampede-card:nth-child(2) {
  transform: translateX(0.3rem);
}

.stampede-card:nth-child(2).visible {
  transform: translateX(0);
}

.stampede-card:nth-child(3) {
  transform: translateX(-0.3rem);
}

.stampede-card:nth-child(3).visible {
  transform: translateX(0);
}

.stampede-card-text {
  font-size: 0.24rem;
  color: #333;
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer-section {
}

/* ===== Tablet ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 100%;
    padding: 0 0.3rem;
  }

  .news-card {
    width: 3.2rem;
  }

  .tab-section-inner {
    width: 100%;
  }

  .stampede-container {
    width: 100%;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.qrcode-wrapper {
  padding: 0.8rem;
}
.qrcode-box {
  width: 1.5rem;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 0.15rem;
  border-radius: 4px;
  font-size: 0.16rem;
}

.qrcode img {
  width: 100%;
}
.footer {
  padding: 0.5rem 0;
  text-align: center;
  color: #fff;
  font-size: 0.14rem;
  background-color: #2a46f1;
}

.page-wrap .bottom {
  background: #2a46f1;
  width: 100%;
}

.page-wrap .bottom p {
  color: #ffffff;
}

.page-wrap .bottom p a {
  color: #ffffff !important;
}

.page-wrap .bottom-small {
  display: none;
}
