/* Shared responsive layer for the independent PbootCMS preview. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
img {
  max-width: 100%;
}
.news-empty {
  margin: 22px 0;
  padding: 24px 28px;
  border: 1px solid #f1d8d7;
  border-radius: 14px;
  background: #fffafa;
  color: #667085;
  line-height: 1.7;
}
.news-empty strong {
  display: block;
  margin-bottom: 4px;
  color: #17243c;
  font-size: 17px;
}
.news-empty p {
  margin: 0;
}
.hero::before {
  background-image: var(
    --banner-image,
    url("../images/hero-bg-v6.png")
  ) !important;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header .logo {
  display: flex !important;
  align-items: center;
  min-width: 0 !important;
  max-width: 360px;
  flex: 0 1 360px;
  overflow: hidden !important;
}
.header .brand-logo {
  display: block !important;
  width: 100% !important;
  max-width: 360px !important;
  height: auto !important;
  max-height: 66px !important;
  object-fit: contain !important;
  object-position: left center;
}
.header .nav {
  margin-left: auto;
}
.mobile-menu-toggle {
  display: none;
}
.consult-modal[hidden] {
  display: none !important;
}
@media (max-width: 1400px) {
  .header .wrap {
    position: relative;
    min-height: 72px;
    height: auto !important;
    flex-wrap: wrap;
  }
  .header .logo {
    width: min(360px, calc(100% - 60px)) !important;
    min-width: 0 !important;
    flex: 0 1 360px !important;
  }
  .header .brand-logo {
    width: 100% !important;
    max-width: 360px !important;
    max-height: 60px !important;
  }
  .mobile-menu-toggle {
    display: grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: #fff3f1;
    color: #bd1219;
    font-size: 27px;
    cursor: pointer;
  }
  .header .nav {
    display: none !important;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    padding: 8px 0;
    border-top: 1px solid #f0d8d8;
  }
  .header.menu-open .nav {
    display: grid !important;
  }
  .header.menu-open .logo {
    overflow: visible !important;
    gap: 9px;
    flex: 1 1 auto !important;
    max-width: calc(100% - 60px) !important;
  }
  .header.menu-open .brand-logo {
    display: none !important;
  }
  .header.menu-open .logo::before {
    content: "";
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background-image: url("/static/upload/image/20260927/1790517174339406.png");
    background-repeat: no-repeat;
    background-size: 230.4px 76.8px;
    background-position: -9px -17.4px;
  }
  .header.menu-open .logo::after {
    content: "四川高考全日制学校";
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .header .nav a {
    min-width: 0 !important;
    white-space: normal !important;
    padding: 14px 8px;
  }
}
@media (max-width: 700px) {
  .header .wrap {
    min-height: 66px !important;
    height: auto !important;
    padding: 8px 16px !important;
    gap: 10px !important;
  }
  .header .logo {
    width: calc(100% - 58px) !important;
    flex: 1 1 auto !important;
    max-width: calc(100% - 58px) !important;
  }
  .header .brand-logo {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 48px !important;
  }
  .header .logo {
    gap: 8px;
    overflow: visible !important;
  }
  .header .brand-logo {
    display: none !important;
  }
  .header .logo::before {
    content: "";
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background-image: url("/static/upload/image/20260927/1790517174339406.png");
    background-repeat: no-repeat;
    background-size: 230.4px 76.8px;
    background-position: -9px -17.4px;
  }
  .header .logo::after {
    content: "四川高考全日制学校";
    display: block;
    color: #14233a;
    font-size: clamp(15px, 4.7vw, 20px);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }
  .header.menu-open .logo::after {
    font-size: clamp(15px, 4.7vw, 20px);
  }
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .header .nav {
    gap: 0 10px;
  }
  .header .nav a {
    font-size: 14px !important;
    line-height: 1.4;
  }
  .hero .wrap {
    width: 100%;
    gap: 16px !important;
    padding: 0 0 26px !important;
  }
  .hero .hero-left {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 44px 20px 30px !important;
  }
  .hero .hero-left h1 {
    font-size: clamp(27px, 7.8vw, 40px) !important;
    line-height: 1.24 !important;
    overflow-wrap: anywhere;
  }
  .hero .hero-left .hero-sub {
    font-size: clamp(12px, 3.35vw, 15px) !important;
    line-height: 1.6 !important;
  }
  .hero .hero-card {
    width: calc(100% - 32px) !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    min-width: 0 !important;
  }
  .hero .form-card {
    padding: 20px !important;
    min-height: 0 !important;
  }
  .hero-form,
  .hero-form label,
  .hero-form input,
  .hero-form select {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .hero-form input,
  .hero-form select {
    font-size: 16px;
  }
  .mdock {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    gap: 0 !important;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: #a80b12;
    box-shadow: 0 -4px 18px rgba(30, 0, 0, 0.18);
  }
  .mdock a {
    min-width: 0;
    height: 46px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    gap: 5px !important;
    font-size: clamp(12px, 3.6vw, 15px) !important;
  }
  .mdock a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.35) !important;
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  footer {
    padding-bottom: 20px !important;
  }
  .news-layout,
  .article-layout,
  .news-left,
  .article-wrap,
  .sidebar {
    min-width: 0;
  }
  .article-body {
    overflow-wrap: anywhere;
  }
  .consult-modal-card {
    max-height: calc(100dvh - 30px);
    overflow: auto;
  }
}
