/* 响应式样式 */

/* 平板设备 */
@media (max-width: 992px) {
  .container {
    max-width: 960px;
  }

  .section {
    padding: 60px 0;
  }

  .col-image,
  .col-content,
  .col-info,
  .col-form {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }

  .section-title p {
    font-size: 28px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 20px;
  }
}

/* 手机设备 */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
    max-width: 100%;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 35px;
  }

  .section-title h2 {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }

  .section-title p {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
  }

  .row {
    margin: 0 -10px;
    flex-direction: column;
  }

  .col,
  .col-image,
  .col-content,
  .col-info,
  .col-form {
    padding: 0 10px;
    flex: 0 0 100%;
  }

  /* Hero 区域 */
  .hero {
    min-height: 100vh;
    padding: 110px 0 80px;
    background-attachment: scroll;
    /* 为底部轮播图留出空间 */
    padding-bottom: 180px;
  }

  .hero-content {
    margin-bottom: 45px;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 22px;
    font-weight: 700;
  }

  .hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 28px;
    opacity: 0.95;
  }

  .hero-features {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero .icon-boxes {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero .icon-box {
    padding: 25px 20px;
  }

  .hero .icon-box .hero-icon {
    width: 40px;
    height: 40px;
  }

  .hero .icon-box h3 {
    font-size: 18px;
  }

  /* About 区域 */
  .about .col-image {
    margin-bottom: 35px;
  }

  .about .col-content {
    padding-left: 10px;
  }

  .about h3 {
    font-size: 26px;
    margin-bottom: 18px;
    line-height: 1.4;
  }

  .about p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
  }

  .about .subtitle {
    font-size: 15px;
    line-height: 1.7;
  }

  .about .check-list {
    margin-top: 28px;
  }

  .about .check-list li {
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.6;
  }

  /* Features 区域 */
  .features {
    background: #fff;
  }

  .features .col-image {
    width: 100%;
    min-height: 300px;
    height: auto;
    aspect-ratio: 3/2;
    margin-bottom: 35px;
    border-radius: 10px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
  }

  .features .col-content {
    padding-left: 0;
    padding-right: 0;
  }
  
  .features .container {
    padding-left: 0;
    padding-right: 0;
  }

  .features .row {
    margin-left: 0;
    margin-right: 0;
  }

  .feature-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 22px 18px;
    gap: 16px;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .feature-item:last-child {
    margin-bottom: 0;
  }

  .feature-item .icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 196, 81, 0.1);
    border-radius: 8px;
    margin-bottom: 0;
  }

  .feature-item .icon img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
  }

  .feature-item .content {
    flex: 1;
  }

  .feature-item h4 {
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--dark-bg);
  }

  .feature-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
  }

  /* Services 区域 */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-box {
    padding: 30px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    text-align: left;
    align-items: start;
  }

  .service-box .icon {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 0;
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .service-box h4 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 8px;
    margin-top: 5px;
  }
  
  .service-box p {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
  }

  .service-box .icon img {
    width: 52px !important;
    height: 52px !important;
  }

  .service-box h4 {
    font-size: 22px;
    margin-bottom: 14px;
    line-height: 1.3;
  }

  .service-box p {
    font-size: 15px;
    line-height: 1.8;
  }

  /* CTA 区域 */
  .cta {
    background-attachment: scroll;
    padding: 60px 0;
  }

  .cta-content h3 {
    font-size: 26px;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .cta-content p {
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
  }

  /* Contact 区域 */
  .contact .col-info {
    margin-bottom: 30px;
  }

  .contact .info-item {
    background-color: #f2f2f2;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
  }

  .contact .info-item .icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-bottom: 0;
    border-radius: 6px;
  }

  .contact .info-item .icon img {
    width: 26px !important;
    height: 26px !important;
  }

  .contact .info-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
    margin-right: 0;
    white-space: nowrap;
    color: #333;
  }

  .contact .info-item p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
    color: #666;
    word-break: break-word;
    flex: 1;
  }

  .contact-form {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .contact-form h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 15px;
    padding: 12px 15px;
  }

  .form-group textarea {
    min-height: 150px;
  }

  /* Footer 区域 */
  .footer-top {
    padding: 40px 0 30px;
  }

  .footer-top .row {
    flex-direction: column;
  }

  .footer-info,
  .newsletter {
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-info h3,
  .newsletter h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .footer-info p,
  .footer-info ul li {
    font-size: 14px;
  }

  .footer-bottom {
    padding: 20px 0;
  }

  .footer-bottom p {
    font-size: 13px;
  }

  /* 按钮 */
  .btn-cta {
    padding: 12px 30px;
    font-size: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  /* header中的按钮保持小尺寸且不占满宽 */
  .header .btn-primary {
    padding: 3px 9px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
    width: auto !important;
    max-width: none !important;
    display: inline-block !important;
    margin: 0 !important;
    min-height: auto !important;
  }

  /* 其他区域的按钮使用正常尺寸 */
  .hero .btn-primary,
  .about .btn-primary,
  .services .btn-primary,
  .contact .btn-primary,
  .cta .btn-primary {
    padding: 12px 30px;
    font-size: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 12px;
  }

  .section-title p {
    font-size: 22px;
    line-height: 1.3;
  }

  /* Hero 区域 */
  .hero {
    padding: 100px 0 50px;
    /* 为底部轮播图留出空间 */
    padding-bottom: 160px;
  }

  .hero-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-features {
    gap: 10px;
  }

  .hero .icon-box {
    padding: 20px 15px;
  }

  .hero .icon-box .hero-icon {
    width: 36px;
    height: 36px;
  }

  .hero .icon-box h3 {
    font-size: 16px;
  }

  .hero .icon-box h3 a {
    font-size: 14px;
  }

  /* About 区域 */
  .about h3 {
    font-size: 20px;
  }

  .about p {
    font-size: 14px;
  }

  .about .features-list li {
    font-size: 13px;
  }

  /* Features 区域 */
  .features .col-image {
    min-height: 220px;
    margin-bottom: 30px;
  }

  .feature-item {
    padding: 18px 15px;
    gap: 14px;
    margin-bottom: 15px;
  }

  .feature-item .icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
  }

  .feature-item .icon img {
    width: 36px !important;
    height: 36px !important;
  }

  .feature-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .feature-item p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Services 区域 */
  .service-box {
    padding: 30px 20px;
  }

  .service-box .icon {
    width: 60px !important;
    height: 60px !important;
  }

  .service-box .icon img {
    width: 44px !important;
    height: 44px !important;
  }

  .service-box h4 {
    font-size: 18px;
  }

  .service-box p {
    font-size: 13px;
  }

  /* CTA 区域 */
  .cta {
    padding: 50px 0;
  }

  .cta-content h3 {
    font-size: 22px;
  }

  .cta-content p {
    font-size: 14px;
  }

  /* Contact 区域 */
  .contact .info-item {
    padding: 15px 12px;
    margin-bottom: 20px;
  }

  .contact .info-item .icon {
    width: 36px;
    height: 36px;
  }

  .contact .info-item .icon img {
    width: 24px !important;
    height: 24px !important;
  }

  .contact .info-item h4 {
    font-size: 15px;
  }

  .contact .info-item p {
    font-size: 13px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .contact-form h3 {
    font-size: 20px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Footer 区域 */
  .footer-top {
    padding: 35px 0 25px;
  }

  .footer-info h3,
  .newsletter h3 {
    font-size: 18px;
  }

  .footer-info p,
  .footer-info ul li {
    font-size: 13px;
  }

  .newsletter input {
    font-size: 14px;
  }

  /* 按钮 */
  .btn-cta {
    padding: 10px 25px;
    font-size: 14px;
  }

  /* header中的按钮保持小尺寸 */
  .header .btn-primary {
    padding: 3px 9px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
    min-height: auto !important;
  }

  /* 其他区域的按钮使用正常尺寸 */
  .hero .btn-primary,
  .about .btn-primary,
  .services .btn-primary,
  .contact .btn-primary,
  .cta .btn-primary {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* 横屏适配 */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .hero-content {
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  /* 横屏时轮播图调整 */
  .right-banner {
    bottom: 10px;
  }

  .banner-swiper {
    max-height: 35vh;
  }

  .swiper-slide img {
    max-height: 35vh !important;
  }
}

/* 移动端性能优化 */
@media (max-width: 768px) {
  /* 减少动画以提升性能 */
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
  }

  /* 优化滚动性能 */
  .section,
  .hero,
  .nav-menu {
    will-change: auto;
  }

  /* 减少阴影以提升性能 */
  .service-box:hover,
  .feature-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  /* 禁用视差效果 */
  .hero,
  .cta {
    background-attachment: scroll !important;
  }

  /* 优化图片渲染 */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 高清屏幕 */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* 超大屏幕 */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .section-title p {
    font-size: 42px;
  }

  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    font-size: 28px;
  }
}
