/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  color: #000;
  background: #d7eef9;
  line-height: normal;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

:root {
  --content-w: 1250px;
  --blue: #016bb6;
  --blue-dark: #014a84;
  --title-blue: #125995;
  --red: #cc0000;
  --page-bg: #d7eef9;
  --gap: 22px;
}

.page {
  width: 100%;
  overflow-x: hidden;
  background: var(--page-bg);
}

/* ===== Header ===== */
.header {
  position: relative;
  width: 100%;
  height: 212px;
  overflow: hidden;
}

.header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 261px;
  overflow: hidden;
  pointer-events: none;
}

.header__bg-img {
  position: absolute;
  left: 0;
  top: -26.14%;
  width: 100%;
  height: 161.1%;
  max-width: none;
  object-fit: cover;
}

.header__inner {
  position: relative;
  z-index: 1;
  width: min(var(--content-w), 100%);
  margin: 0 auto;
  padding: 46px 0 0;
  text-align: center;
}

.header__brand {
  margin: 0;
  font-size: 54px;
  font-weight: 700;
  color: var(--title-blue);
  letter-spacing: 1.08px;
  text-shadow: 3px 2px 4px #fff;
  white-space: nowrap;
}

.header__title {
  margin: 8px 0 0;
  font-size: 38px;
  font-weight: 700;
  color: var(--title-blue);
  letter-spacing: 0.76px;
  text-shadow: 3px 2px 4px #fff;
  white-space: nowrap;
}

.header__subtitle {
  margin-top: 14px;
  font-size: 23px;
  font-weight: 400;
  color: var(--title-blue);
  letter-spacing: 1.84px;
  white-space: nowrap;
}

/* ===== Nav ===== */
.nav {
  position: relative;
  z-index: 20;
  height: 50px;
  background: transparent;
}

.nav__inner {
  width: min(var(--content-w), 100%);
  margin: 0 auto;
  height: 100%;
  position: relative;
  background: var(--blue);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__list {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.nav-mobile-bar,
.nav-mobile-menu {
  display: none;
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 125px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  position: relative;
  white-space: nowrap;
}

.nav__list li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.nav__list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 47px;
  background: #d9d9d9;
  opacity: 0.2;
}

.nav__link.is-active,
.nav__link:hover {
  background: var(--red);
}

.nav__list li:first-child .nav__link {
  width: 137px;
  margin: 0 auto;
}

.nav__list li:first-child {
  flex: 0 0 137px;
}

/* ===== Banner ===== */
.banner {
  position: relative;
  width: min(var(--content-w), 100%);
  margin: 0 auto;
  height: 150px;
  overflow: hidden;
  background: #fff;
}

.banner__bg {
  position: absolute;
  inset: 0;
}

.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__text {
  position: relative;
  z-index: 1;
  padding: 27px 0 0 224px;
  pointer-events: none;
}

.banner__title {
  font-family: "YouSheBiaoTiHei", "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 50px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1.1;
}

.banner__desc {
  margin-top: 8px;
  font-size: 24px;
  color: #000;
  white-space: pre;
}

.banner__gap {
  display: inline-block;
  width: 4em;
}

/* ===== Main white area ===== */
.main {
  width: min(var(--content-w), 100%);
  margin: 0 auto;
  background: #fff;
  padding: 25px 22px 0;
  padding-bottom: 0;
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 29px 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 169px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  padding-top: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.service-card__icon {
  width: 72.137px;
  height: 69px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__icon img,
.icon-leaf {
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
}

.icon-leaf--53 { width: 53px; height: 53px; }
.icon-leaf--55 { width: 55px; height: 55px; }
.icon-leaf--56 { width: 56px; height: 56px; }
.icon-leaf--58 { width: 58px; height: 58px; }
.icon-leaf--59 { width: 59px; height: 59px; }

.service-card__label {
  margin-top: 12px;
  font-size: 20px;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

/* ===== Promos ===== */
.promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 12px;
  margin-top: 25px;
}

.promo {
  display: block;
  height: 110px;
  overflow: hidden;
}

.promo__media {
  width: 100%;
  height: 110px;
  overflow: hidden;
  position: relative;
}

.promo__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

/* 还原 Figma 画板内对源图的裁切偏移 */
.promo__media--1 img {
  width: 128.15%;
  left: -3.24%;
  right: auto;
}

.promo__media--2 img {
  width: 124.42%;
  left: -2.71%;
  right: auto;
}

.promo__media--3 img {
  width: 111.65%;
  left: -0.16%;
  right: auto;
}

.promo__media--4 img {
  width: 119.41%;
  left: -0.04%;
  right: auto;
}

.promo__media--5 img {
  width: 117.81%;
  left: -0.07%;
  right: auto;
}

.promo__media--6 img {
  width: 116.98%;
  left: 0.01%;
  right: auto;
}

/* ===== News / Guides panels ===== */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 12px;
  margin-top: 23px;
  padding-bottom: 24px;
}

.panel {
  border: 1px solid #d9d9d9;
  opacity: 0.999;
  min-height: 355px;
  position: relative;
  background: #fff;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  background: #f0f0f0;
  margin-top: 3px;
  padding: 0 16px;
}

.panel__title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.panel__more {
  font-size: 14px;
  color: #000;
}

.panel__feature {
  display: flex;
  gap: 12px;
  padding: 18px 16px 12px;
}

.panel__thumb {
  flex: 0 0 145px;
  width: 145px;
  height: 95px;
  overflow: hidden;
}

.panel__thumb img {
  width: 145px;
  height: 95px;
  object-fit: cover;
  pointer-events: none;
}

.panel__feature-body {
  flex: 1;
  min-width: 0;
  position: relative;
}

.panel__feature-title {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.panel__feature-title a:hover {
  color: var(--blue);
}

.panel__feature-desc {
  font-size: 14px;
  color: #000;
  opacity: 0.7;
  line-height: 1.5;
  max-width: 420px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel__feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.panel__feature-meta time {
  font-size: 12px;
  opacity: 0.4;
}

.panel__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
}

.panel__list {
  padding: 0 16px 16px;
}

.panel__list li + li {
  margin-top: 9px;
}

.panel__list a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  min-height: 22px;
}

.panel__list a:hover span {
  color: var(--blue);
}

.panel__dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  object-fit: contain;
  pointer-events: none;
}

.panel__list span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel__list time {
  flex: 0 0 auto;
  font-size: 12px;
  opacity: 0.4;
  margin-left: 8px;
}

/* ===== Footer ===== */
.footer {
  width: min(var(--content-w), 100%);
  margin: 0 auto;
  background: var(--blue);
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr auto;
  gap: 24px;
  padding: 23px 44px 18px 44px;
  align-items: start;
  min-height: 160px;
}

.footer__name {
  font-size: 34px;
  font-weight: 700;
  white-space: nowrap;
}

.footer__en {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 1.12px;
  white-space: nowrap;
}

.footer__links {
  display: flex;
  gap: 40px;
  padding-top: 4px;
}

.footer__links ul li {
  line-height: 30px;
  font-size: 14px;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__contact {
  padding-top: 4px;
  font-size: 14px;
}

.footer__contact-title {
  margin-bottom: 5px;
  opacity: 1;
}

.footer__contact p:not(.footer__contact-title) {
  opacity: 0.6;
  line-height: 26px;
}

.footer__qr {
  width: 88px;
  height: 88px;
  background: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  flex-shrink: 0;
}

.footer__qr img {
  width: 84px;
  height: 83px;
  object-fit: cover;
  pointer-events: none;
}

.footer__copy {
  height: 55px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__copy p {
  font-size: 14px;
  color: #fff;
  opacity: 0.4;
  text-align: center;
}

/* ===== Tablet ===== */
@media (max-width: 1280px) {
  :root {
    --content-w: 100%;
  }

  .header__inner,
  .nav__inner,
  .banner,
  .main,
  .footer {
    width: 100%;
    max-width: 1250px;
  }

  .header {
    height: auto;
    min-height: 180px;
  }

  .header__inner {
    padding: 36px 16px 28px;
  }

  .header__brand {
    font-size: clamp(32px, 4.2vw, 54px);
    white-space: normal;
  }

  .header__title {
    font-size: clamp(24px, 3vw, 38px);
    white-space: normal;
  }

  .header__subtitle {
    font-size: clamp(14px, 1.8vw, 23px);
    white-space: normal;
    letter-spacing: 1px;
  }

  .banner__text {
    padding-left: 40px;
  }

  .main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 1024px) {
  .banner {
    height: auto;
    min-height: 130px;
  }

  .banner__text {
    padding: 24px 20px;
  }

  .banner__title {
    font-size: clamp(32px, 5vw, 50px);
  }

  .banner__desc {
    font-size: clamp(16px, 2.4vw, 24px);
    white-space: normal;
  }

  .banner__gap {
    width: 1.5em;
  }

  .services {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .service-card {
    height: auto;
    min-height: 150px;
    padding: 24px 8px 20px;
  }

  .service-card__label {
    font-size: 16px;
    white-space: normal;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__qr {
    margin-top: 0;
  }

  .footer__name,
  .footer__en {
    white-space: normal;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav {
    height: auto;
    min-height: 0;
  }

  .nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    background: var(--blue);
  }

  .nav-mobile-bar {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    align-items: stretch;
    background: var(--blue);
  }

  .nav__toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    max-width: 44px;
    min-height: 76px;
    margin-left: 0;
    padding: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    background: transparent;
  }

  .nav-mobile-quick {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 0 4px 0 0;
    background: var(--blue);
  }

  .nav-mobile-quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-mobile-quick-row--first {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .nav-mobile-quick-row--second .nav-mobile-quick-more {
    grid-column: 4;
    grid-row: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .nav-mobile-quick-row > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    height: auto;
    padding: 5px 2px;
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #fff;
  }

  .nav-mobile-quick-row > a:first-child {
    border-left: none;
  }

  .nav-mobile-quick-more {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 5px 2px;
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
  }

  .nav-mobile-quick-row > a.is-active,
  .nav-mobile-quick-more.is-active {
    background: var(--red);
  }

  .nav-mobile-quick-row > a:active,
  .nav-mobile-quick-more:active {
    background: rgba(0, 0, 0, 0.12);
  }

  .nav__list--desktop {
    display: none !important;
  }

  .nav-mobile-menu {
    display: none !important;
    flex: 0 0 100%;
    width: 100%;
    padding: 6px 4px 8px;
    box-sizing: border-box;
    background: var(--blue-dark);
  }

  .nav-mobile-menu.is-open,
  .nav-mobile-menu.open {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .nav-mobile-menu .nav__link {
    justify-content: center;
    min-height: 38px;
    height: auto;
    padding: 6px 2px;
    font-size: clamp(10px, 2.6vw, 13px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    width: auto;
  }

  .nav-mobile-menu .nav__link.is-active,
  .nav-mobile-menu .nav__link:hover {
    background: var(--red);
  }

  .nav-mobile-menu .nav__link:nth-child(4n) {
    border-right: none;
  }

  .header {
    min-height: 140px;
  }

  .header__bg {
    height: 100%;
  }

  .header__inner {
    padding: 28px 16px 24px;
  }

  .header__brand {
    font-size: 28px;
    text-shadow: 2px 1px 3px #fff;
  }

  .header__title {
    margin-top: 6px;
    font-size: 20px;
    text-shadow: 2px 1px 3px #fff;
  }

  .header__subtitle {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .banner__text {
    padding: 20px 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 70%, transparent 100%);
  }

  .banner__title {
    font-size: 30px;
  }

  .banner__desc {
    font-size: 15px;
    margin-top: 6px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card {
    min-height: 140px;
    padding-top: 22px;
  }

  .service-card__icon {
    width: 64px;
    height: 62px;
  }

  .service-card__label {
    font-size: 15px;
    margin-top: 10px;
  }

  .promos {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .promo,
  .promo__media {
    height: 96px;
  }

  .promo__media img {
    left: 0 !important;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
  }

  .panels {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .panel__feature {
    flex-direction: column;
  }

  .panel__thumb,
  .panel__thumb img {
    width: 100%;
    height: 160px;
  }

  .panel__feature-title {
    font-size: 18px;
  }

  .panel__list a {
    font-size: 14px;
  }

  .panel__list span {
    white-space: normal;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    padding: 24px 16px 20px;
    gap: 20px;
  }

  .footer__links {
    gap: 48px;
  }

  .footer__name {
    font-size: 26px;
  }

  .footer__en {
    font-size: 12px;
  }

  .footer__qr {
    width: 100px;
    height: 100px;
  }

  .footer__qr img {
    width: 94px;
    height: 93px;
  }

  .footer__copy {
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
  }

  .footer__copy p {
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .header__brand {
    font-size: 24px;
  }

  .header__title {
    font-size: 18px;
  }

  .services {
    gap: 10px;
  }

  .service-card {
    min-height: 128px;
    padding: 18px 6px 14px;
  }

  .service-card__icon {
    width: 56px;
    height: 54px;
    border-radius: 8px;
  }

  .icon-leaf--53,
  .icon-leaf--55,
  .icon-leaf--56,
  .icon-leaf--58,
  .icon-leaf--59 {
    width: 42px;
    height: 42px;
  }

  .service-card__label {
    font-size: 13px;
  }

  .panel__title {
    font-size: 20px;
  }
}
