@charset "UTF-8";
/* ==========================================================================
   中皓科技股份有限公司 · 响应式适配
   断点：1280 / 1024 / 768 / 480
   ========================================================================== */

/* ---------- ≤ 1280 ---------- */
@media (max-width: 1280px) {
  :root {
    --container: 1140px;
  }
  .nav__link {
    padding: 10px 11px;
    font-size: 15px;
  }
  .header__tel span span {
    display: none;
  }
  .hero__title {
    font-size: 56px;
  }
  .about {
    gap: 56px;
  }
  .about__badge {
    right: 0;
  }
}

/* ---------- 1025 ~ 1180：导航收紧
   9 个栏目在 1025~1180 之间若沿用 15px 字号会挤到右侧电话区，
   这里单独缩小字号与内边距，仍保留完整导航。 ---------- */
@media (max-width: 1180px) and (min-width: 1025px) {
  .nav__link {
    padding: 10px 8px;
    font-size: 13px;
  }
  .nav__link::after {
    left: 8px;
    right: 8px;
  }
}

/* ---------- ≤ 1024：平板 / 抽屉导航 ---------- */
@media (max-width: 1024px) {
  .header,
  .header.is-solid,
  .header.is-fixed {
    height: 68px;
  }
  .header__inner {
    gap: 16px;
  }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: block;
  }

  /* 抽屉导航
     注意：.header 带 backdrop-filter，会成为 fixed 子元素的包含块，
     因此这里用 absolute + 显式高度，保证抽屉能铺满整屏。 */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    display: block;
    padding: 12px 24px 40px;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 899;
  }
  .nav.is-open {
    transform: translateX(0);
  }
  .nav__item {
    border-bottom: 1px solid var(--line);
  }
  .nav__link {
    padding: 16px 4px;
    font-size: 17px;
    color: var(--ink) !important;
  }
  .header.is-transparent .nav__link {
    color: var(--ink) !important;
  }
  .nav__link::after {
    display: none;
  }
  .nav__item.is-active > .nav__link {
    color: var(--brand) !important;
  }

  /* 移动端二级菜单 */
  .nav__sub {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 0 8px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .nav__item.is-open .nav__sub {
    display: block;
    transform: none;
  }
  .nav__sub a {
    padding: 11px 16px;
    font-size: 15px;
    background: var(--bg-soft);
    border-radius: 8px;
    margin-bottom: 6px;
  }

  /* 头部工具区 */
  .header__tel {
    font-size: 15px;
  }
  .header__tel > span {
    display: none;
  }
  .header.is-transparent .header__tel .icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  /* 首屏 */
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 132px 0 0;
  }
  .hero__slider {
    position: absolute;
    inset: 0;
  }
  .hero__content {
    padding-bottom: 72px;
    min-height: 460px;
  }
  .hero__title {
    font-size: 42px;
  }
  .hero__desc {
    font-size: 16px;
  }
  .hero__scroll {
    display: none;
  }
  .hero-stats {
    position: relative;
    background: #0a1e3a;
  }
  .hero-stats__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats__item {
    padding: 20px 0 20px 20px;
  }
  .hero-stats__item:nth-child(1),
  .hero-stats__item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .hero-stats__item:nth-child(3),
  .hero-stats__item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .hero-stats__num {
    font-size: 28px;
  }

  /* 区块 */
  .section {
    padding: 88px 0;
  }
  .sec-head {
    margin-bottom: 44px;
  }
  .sec-head__title {
    font-size: 34px;
  }
  .sec-head--split {
    display: block;
  }
  .sec-head--split .link-more {
    margin-top: 18px;
  }

  /* 栅格 */
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .biz-card {
    height: 340px;
  }
  .biz-card__desc {
    max-height: 90px;
    opacity: 1;
    margin-top: 8px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__img {
    height: 380px;
  }
  .about__badge {
    right: 20px;
    bottom: 20px;
    width: 160px;
    padding: 20px;
  }
  .about__badge strong {
    font-size: 32px;
  }
  .about__text h2 {
    font-size: 34px;
  }

  .duty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-panel.is-active {
    /* minmax(0,1fr)：避免内层 min-content 把栅格列撑得比容器还宽 */
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  /* 栅格子项默认 min-width:auto，标题不换行时会把页面撑出横向滚动条 */
  .news-panel.is-active > * {
    min-width: 0;
  }
  .news-feature {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
  }
  .news-feature__img {
    height: 100%;
    min-height: 190px;
  }

  .cta {
    padding: 72px 0;
  }
  .cta__inner {
    display: block;
  }
  .cta__title {
    font-size: 32px;
  }
  .cta__inner .btn {
    margin-top: 28px;
  }

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

  /* 内页 */
  .page-banner {
    height: 340px;
    padding-top: 68px;
  }
  .page-banner__title {
    font-size: 40px;
  }
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 80px;
  }
  .side-nav {
    position: static;
  }
  .side-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }
  .side-nav__list a {
    padding: 9px 16px;
    border-radius: 8px;
    background: #fff;
    border-left: 0;
    font-size: 14px;
  }
  .side-nav__list a.is-active {
    background: var(--brand);
    color: #fff;
  }
  .side-nav__group {
    width: 100%;
    border-left: 0;
  }
  .side-nav__list .side-nav__parent.is-active {
    background: var(--brand);
    color: #fff;
  }
  .side-nav__list .side-nav__parent.is-active .side-nav__arrow {
    color: #fff;
  }
  .side-nav__sub {
    padding: 8px 0 0;
    background: transparent;
  }
  .side-nav__group.is-open > .side-nav__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .side-nav__list .side-nav__sub a {
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
  }
  .side-nav__list .side-nav__sub a.is-active {
    background: var(--brand-light);
  }
  .side-nav__contact {
    display: none;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-row--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-box {
    padding: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .map-box {
    height: 320px;
  }
}

/* ---------- ≤ 768：手机 ---------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }
  .container {
    max-width: calc(100% - 32px);
  }
  .header__tel{
    display: none;
  }
  .logo__img {
    height: 32px;
  }
  .header.is-transparent .logo {
    padding: 5px 10px;
  }
  .footer__brand .logo__img {
    height: 30px;
  }

  /* 首屏 */
  .hero {
    padding-top: 108px;
    height: 100vh;
  }
  .hero__content {
    min-height: 380px;
    padding-bottom: 56px;
  }
  .hero__eyebrow {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .hero__title {
    font-size: 32px;
    line-height: 1.3;
  }
  .hero__desc {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.8;
  }
  .hero__actions {
    margin-top: 30px;
    gap: 12px;
  }
  .btn {
    height: 46px;
    padding: 0 22px;
    font-size: 15px;
  }
  .hero__actions .btn {
    flex: 1;
    justify-content: center;
  }
  .hero-stats__item {
    padding: 16px 0 16px 14px;
  }
  .hero-stats__num {
    font-size: 22px;
  }
  .hero-stats__num small {
    font-size: 13px;
  }
  .hero-stats__label {
    font-size: 12px;
  }

  /* 区块 */
  .section {
    padding: 64px 0;
  }
  .section--tight {
    padding: 52px 0;
  }
  .sec-head {
    margin-bottom: 32px;
  }
  .sec-head__en {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .sec-head__title {
    font-size: 26px;
  }
  .sec-head__desc {
    margin-top: 12px;
    font-size: 15px;
  }

  /* 业务卡 */
  .biz-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .biz-card {
    height: 240px;
  }
  .biz-card__body {
    padding: 22px 20px;
  }
  .biz-card__title {
    font-size: 20px;
  }
  .biz-card__desc {
    font-size: 13px;
  }

  /* 关于 */
  .about {
    gap: 36px;
  }
  .about__img {
    height: 260px;
    border-radius: 18px;
  }
  .about__badge {
    width: 132px;
    padding: 16px;
    border-radius: 14px;
    right: 12px;
    bottom: 12px;
  }
  .about__badge strong {
    font-size: 26px;
  }
  .about__badge span {
    font-size: 12px;
  }
  .about__text h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .about__text p {
    font-size: 15px;
    line-height: 1.85;
  }
  .about__points {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px 0 28px;
  }
  .about__text .btn {
    width: 100%;
    justify-content: center;
  }

  /* 项目卡 */
  .project-swiper {
    padding-bottom: 24px;
  }
  /* 移动端收紧分页点与卡片间距，避免下方大片空白 */
  .project-swiper .swiper-pagination {
    bottom: 0;
  }
  /* 项目展示区块底部不再叠加整段留白 */
  .section:has(.project-swiper) {
    padding-bottom: 40px;
  }
  .project-card__img {
    height: 200px;
  }
  .project-card__body {
    padding: 20px;
  }
  .project-card__title {
    font-size: 17px;
  }

  /* 新闻 */
  .news-tabs {
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .news-tabs__btn {
    flex: none;
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }
  .news-feature {
    display: block;
  }
  .news-feature__img {
    height: 180px;
    min-height: 0;
  }
  .news-feature__body {
    padding: 20px;
  }
  .news-feature__title {
    font-size: 17px;
  }
  .news-list__item {
    padding: 16px 0;
    gap: 12px;
  }
  .news-list__date {
    width: 74px;
    font-size: 12px;
  }
  .news-list__title {
    font-size: 15px;
  }

  /* 社会责任 */
  .duty-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .duty-card {
    padding: 26px 22px;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    align-items: center;
  }
  .duty-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
    margin: 0;
    grid-row: span 2;
  }
  .duty-card__title {
    font-size: 17px;
    margin-bottom: 4px;
  }
  .duty-card__desc {
    font-size: 13px;
  }

  /* CTA */
  .cta {
    padding: 56px 0;
  }
  .cta__title {
    font-size: 24px;
  }
  .cta__desc {
    font-size: 14px;
  }
  .cta__inner .btn {
    width: 100%;
    justify-content: center;
  }

  /* 页脚 */
  .footer {
    padding-top: 56px;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .footer__about {
    max-width: none;
  }
  .footer__title {
    margin-bottom: 14px;
  }
  .footer__bottom {
    display: block;
    line-height: 2;
    font-size: 12px;
  }
  .footer__bottom span {
    display: block;
  }

  .to-top {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }

  /* 内页 */
  .page-banner {
    height: 260px;
    padding-top: 68px;
  }
  .page-banner__en {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .page-banner__title {
    font-size: 28px;
  }
  .page-banner__desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
  }
  .breadcrumb {
    font-size: 12px;
    padding: 14px 0;
    overflow-x: auto;
    white-space: nowrap;
  }
  .page-layout {
    padding: 24px 0 64px;
  }
  .page-main__title {
    font-size: 24px;
  }
  .page-main__sub {
    font-size: 14px;
  }
  .article {
    font-size: 15px;
    line-height: 1.95;
  }
  .article h3 {
    font-size: 19px;
    margin: 28px 0 14px;
  }
  .article-box {
    padding: 22px;
    border-radius: 16px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }
  .feature-box {
    padding: 22px;
  }

  /* 平板仍保留双列，避免图片被拉成超宽横条 */
  .card-grid,
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .p-card__img {
    height: 190px;
  }
  .p-card__img--contain {
    height: 180px;
  }

  .news-rows a {
    gap: 12px;
    padding: 18px 0;
  }
  .news-rows .title {
    font-size: 15px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .news-rows .date {
    font-size: 12px;
  }

  .pager {
    gap: 6px;
    margin-top: 36px;
  }
  .pager a,
  .pager span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
  }

  .timeline {
    padding-left: 28px;
  }
  .timeline::before {
    left: 5px;
  }
  .timeline__item::before {
    left: -28px;
    width: 14px;
    height: 14px;
    border-width: 3px;
  }
  .timeline__year {
    font-size: 19px;
  }
  .timeline__list li {
    font-size: 14px;
  }

  .org-node,
  .org-row .org-node {
    padding: 12px 18px;
    font-size: 13px;
  }
  .org-node--top {
    padding: 16px 28px;
    font-size: 16px;
  }
  .org-row {
    gap: 10px;
  }

  .contact-list li {
    padding: 18px 0;
    gap: 12px;
  }
  .contact-list .label {
    width: 72px;
    font-size: 13px;
  }
  .contact-list .value {
    font-size: 15px;
  }
  .contact-list .value strong {
    font-size: 20px;
  }
  .map-box {
    height: 260px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    height: 46px;
    font-size: 15px;
  }

  .job-head {
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .job-head__title {
    font-size: 16px;
    flex: 1 0 70%;
  }
  .job-body {
    padding: 0 20px 22px;
  }
  .job-body__inner {
    font-size: 14px;
  }
}

/* ---------- ≤ 480：小屏 ---------- */
@media (max-width: 480px) {
  .hero__title {
    font-size: 27px;
  }
  .hero__title br {
    display: none;
  }
  .hero__eyebrow {
    font-size: 11px;
    padding: 5px 12px;
  }
  .hero-stats__num {
    font-size: 20px;
  }

  .sec-head__title {
    font-size: 23px;
  }

  /* 手机窄屏：常规卡片单列 */
  .card-grid,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }

  .page-banner__title {
    font-size: 24px;
  }

  .feature-box__num {
    font-size: 26px;
  }

  .biz-card {
    height: 210px;
  }

  .about__img {
    height: 220px;
  }

  .news-list__date {
    width: 68px;
    font-size: 11px;
  }

  .pager a,
  .pager span {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }
  .pager .ellipsis {
    min-width: 14px;
  }
}
