/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Extra Large Desktop (1441px - 1700px) */
@media (max-width: 1700px) and (min-width: 1441px) {
  :root {
    --spacing-section-padding: 80px;
  }

  body {
    overflow-x: hidden;
  }

  /* Contact - 保持两列但调整宽度和间距 */
  .contact__container {
    gap: 50px;
    justify-content: flex-start;
  }

  .contact__info {
    width: 500px;
    flex-shrink: 0;
  }

  .contact__form-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 650px;
  }

  .contact__title {
    font-size: 2.75rem;
  }

  .contact__desc {
    font-size: var(--font-size-body-sm);
  }

  /* Services - 调整比例 */
  .services__left {
    width: 45%;
  }

  .services__right {
    width: 55%;
  }

  .services__container {
    gap: 40px;
  }
}

/* Large Desktop (1200px - 1440px) */
@media (max-width: 1440px) {
  :root {
    --spacing-section-padding: 80px;
  }

  /* 防止横向滚动 */
  body {
    overflow-x: hidden;
  }

  .back-to-top {
    right: 30px !important;
  }

  /* Contact - 纵向堆叠 */
  .contact__container {
    flex-direction: column;
    gap: 50px;
  }

  .contact__info {
    width: 100%;
    max-width: 700px;
  }

  .contact__form-wrapper {
    width: 100%;
  }

  .contact__desc {
    font-size: var(--font-size-body-sm);
  }

  .contact__title {
    font-size: 2.75rem;
  }

  /* Services - 纵向堆叠 */
  .services__container {
    flex-direction: column;
    gap: 60px;
  }

  .services__left {
    width: 100%;
    position: relative;
    top: 0;
  }

  .services__right {
    width: 100%;
    max-width: 100%;
  }

  .services__images {
    display: flex;
    gap: 24px;
    height: auto;
  }

  .services__images-img1,
  .services__images-img2 {
    position: relative;
    left: auto;
    top: auto;
    width: 50%;
    height: 380px;
  }

  .service-card {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .news-card:nth-child(3) {
    max-width: 100%;
  }

  .about__intro {
    font-size: 3rem;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .footer__nav {
    gap: 40px;
  }
}

/* Medium Desktop (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
  :root {
    --spacing-section-padding: 60px;
  }

  body {
    overflow-x: hidden;
  }

  .back-to-top {
    right: 25px !important;
  }

  /* Contact - 纵向堆叠 */
  .contact__container {
    flex-direction: column;
    gap: 50px;
  }

  .contact__info {
    width: 100%;
    max-width: 600px;
  }

  .contact__form-wrapper {
    width: 100%;
  }

  .contact__title {
    font-size: 2.5rem;
  }

  .contact__desc {
    font-size: var(--font-size-small);
    line-height: 1.5;
  }

  .form-row {
    flex-direction: row;
    gap: var(--spacing-md);
  }

  /* Services - 纵向堆叠 */
  .services__container {
    flex-direction: column;
    gap: 50px;
  }

  .services__left {
    width: 100%;
    position: relative;
    top: 0;
  }

  .services__right {
    width: 100%;
    max-width: 100%;
  }

  .services__images {
    display: flex;
    gap: 20px;
    height: auto;
  }

  .services__images-img1,
  .services__images-img2 {
    position: relative;
    left: auto;
    top: auto;
    width: 50%;
    height: 320px;
  }

  .service-card {
    padding: var(--spacing-md);
  }

  .service-card__name {
    font-size: var(--font-size-body);
  }

  .hero__title {
    font-size: 3rem;
  }

  .about__intro {
    font-size: 2.5rem;
  }

  .news__grid {
    gap: var(--spacing-md);
  }

  .footer__nav {
    gap: 30px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  :root {
    --spacing-section-padding: 50px;
  }

  body {
    overflow-x: hidden;
  }

  .back-to-top {
    right: 25px !important;
    bottom: 25px !important;
  }

  .hero {
    height: auto;
    min-height: 600px;
    padding: 140px 0 100px;
    align-items: center;
  }

  .hero__content {
    padding-left: var(--spacing-section-padding);
    max-width: 550px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .about {
    padding: 80px var(--spacing-section-padding) 50px;
  }

  .about__intro {
    font-size: 2.25rem;
    margin-bottom: 50px;
  }

  .about__label {
    min-width: auto;
  }

  .about__body {
    gap: 40px;
    flex-direction: column;
  }

  .about__images {
    padding-left: 0;
    justify-content: center;
  }

  .about__image-wrap {
    width: 220px;
    height: 120px;
  }

  .about__images img {
    width: 100%;
    height: 100%;
  }

  .services {
    padding: 80px 0;
  }

  .services__container {
    padding: 0 var(--spacing-section-padding);
    gap: 50px;
    flex-direction: column;
  }

  .services__left {
    position: relative;
    top: 0;
    width: 100%;
  }

  .services__title {
    font-size: 2.25rem;
    margin-bottom: 30px;
  }

  .services__images {
    display: flex;
    gap: 20px;
    height: auto;
  }

  .services__images-img1 {
    position: relative;
    left: auto;
    top: auto;
    width: 50%;
    height: 300px;
  }

  .services__images-img2 {
    position: relative;
    left: auto;
    top: auto;
    width: 50%;
    height: 300px;
  }

  .services__right {
    max-width: 100%;
    width: 100%;
  }

  .service-card {
    min-height: auto;
    padding: var(--spacing-md);
  }

  .service-card__name {
    font-size: var(--font-size-body);
  }

  .news {
    padding: 60px var(--spacing-section-padding) 80px;
  }

  .news__title {
    font-size: 2rem;
  }

  .news__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .news-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .focus-section,
  .data-section {
    height: auto;
    min-height: 500px;
    padding: 100px var(--spacing-section-padding);
  }

  .hero__video,
  .focus-section__video,
  .data-section__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .focus-section__text,
  .data-section__text {
    font-size: 2rem;
  }

  /* Contact - 平板纵向堆叠 */
  .contact {
    min-height: auto;
    padding: 80px 0;
  }

  .contact__container {
    padding: 0 var(--spacing-section-padding);
    flex-direction: column;
    gap: 50px;
  }

  .contact__info {
    width: 100%;
    max-width: 600px;
  }

  .contact__title {
    font-size: 2.5rem;
  }

  .contact__form-wrapper {
    width: 100%;
  }

  .form-row {
    flex-direction: row;
    gap: var(--spacing-md);
  }

  .footer {
    padding: 60px var(--spacing-section-padding) 50px;
  }

  .footer__nav {
    gap: 25px;
    flex-wrap: wrap;
  }

  .footer__top {
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --spacing-section-padding: 20px;
  }

  /* Header */
  .header {
    height: 70px;
    padding: 0 var(--spacing-section-padding);
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: rgba(5, 14, 42, 0.98);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__nav-link {
    font-size: var(--font-size-body-lg); /* 24px - mobile fullscreen nav */
  }

  .header__nav-link.mobile-only {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 500px;
    padding: 120px 0 80px;
    align-items: center;
  }

  .hero__content {
    padding: 0 var(--spacing-section-padding);
    max-width: 100%;
  }

  .hero__title {
    font-size: 2rem; /* 32px */
    margin-bottom: 20px;
  }

  .hero__subtitle {
    font-size: var(--font-size-small); /* 16px */
  }

  /* About */
  .about {
    padding: 60px var(--spacing-section-padding) 40px;
  }

  .about__intro {
    font-size: var(--font-size-h4); /* 28px */
    margin-bottom: 40px;
  }

  .about__logo-icon {
    width: 50px;
    height: 43px;
  }

  .about__body {
    flex-direction: column;
    gap: 30px;
  }

  .about__description {
    font-size: var(--font-size-small); /* 16px */
  }

  .about__images {
    flex-direction: column;
    padding-left: 0;
    gap: 20px;
  }

  .about__image-wrap {
    width: 100%;
    height: 250px;
  }

  .about__images img {
    width: 100%;
    height: 100%;
  }

  /* Services */
  .services {
    padding: 80px 0;
  }

  .services__container {
    gap: 40px;
  }

  .services__title {
    font-size: 2rem; /* 32px */
    margin-bottom: 30px;
  }

  .services__images {
    flex-direction: column;
  }

  .services__images-img1,
  .services__images-img2 {
    width: 100%;
    height: 250px;
  }

  .service-card__name {
    font-size: var(--font-size-body); /* 20px */
  }

  .service-card__desc {
    font-size: var(--font-size-small); /* 16px */
  }

  /* News */
  .news {
    padding: 60px var(--spacing-section-padding) 80px;
  }

  .news__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }

  .news__title {
    font-size: 2rem; /* 32px */
  }

  .news__grid {
    grid-template-columns: 1fr;
  }

  .news-card:nth-child(3) {
    max-width: 100%;
  }

  /* Focus & Data sections */
  .focus-section,
  .data-section {
    min-height: 400px;
    padding: 80px var(--spacing-section-padding);
  }

  .focus-section__text,
  .data-section__text {
    font-size: var(--font-size-body-lg); /* 24px */
  }

  .back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 42px !important;
    height: 42px !important;
  }

  /* Contact */
  .contact {
    padding: 60px 0;
  }

  .contact__title {
    font-size: 2rem; /* 32px */
  }

  .contact__desc {
    font-size: var(--font-size-small); /* 16px */
  }

  .contact__detail-text {
    font-size: var(--font-size-small); /* 16px */
  }

  .form-row {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .form-submit {
    height: 60px;
    font-size: var(--font-size-body-sm); /* 18px */
  }

  /* Footer */
  .footer {
    padding: 60px var(--spacing-section-padding) 40px;
  }

  .footer__top {
    flex-direction: column;
    gap: 30px;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 0;
  }

  .footer__social-area {
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer__copyright {
    font-size: var(--font-size-xs); /* 14px */
  }

  .footer__link {
    font-size: var(--font-size-xs); /* 14px */
  }
}

/* Small Mobile */
@media (max-width: 374px) {
  .hero__title {
    font-size: var(--font-size-h4); /* 28px */
  }

  .about__intro {
    font-size: var(--font-size-body-lg); /* 24px */
  }

  .services__title {
    font-size: var(--font-size-h4); /* 28px */
  }

  .focus-section__text,
  .data-section__text {
    font-size: var(--font-size-body); /* 20px */
  }

  .contact__title {
    font-size: var(--font-size-h4); /* 28px */
  }
}
