/* 首页响应式样式 - 调整字体和间距，保持宽度 */
/* @media screen and (max-width: 1600px) {
  .home-page-wrapper {
    font-size: calc(15 * 100vw / 1920);
  }

  .top-banner-title {
    font-size: calc(44 * 100vw / 1920);
  }

  .sub-title {
    font-size: calc(16 * 100vw / 1920);
  }

  .banner-content-wrapper {
    padding-left: calc(240 * 100vw / 1920);
    padding-top: calc(90 * 100vw / 1920);
  }

  .news-content {
    padding: 0 calc(240 * 100vw / 1920);
  }
} */

/* @media screen and (max-width: 1440px) {
  .home-page-wrapper {
    font-size: calc(14 * 100vw / 1920);
  }

  .top-banner-title {
    font-size: calc(40 * 100vw / 1920);
  }

  .sub-title {
    font-size: calc(15 * 100vw / 1920);
  }

  .banner-content-wrapper {
    padding-left: calc(200 * 100vw / 1920);
    padding-top: calc(85 * 100vw / 1920);
  }

  .news-content {
    padding: 0 calc(200 * 100vw / 1920);
  }
} */

/* @media screen and (max-width: 1366px) {
  .home-page-wrapper {
    font-size: calc(13 * 100vw / 1920);
  }

  .top-banner-title {
    font-size: calc(36 * 100vw / 1920);
  }

  .sub-title {
    font-size: calc(14 * 100vw / 1920);
  }

  .banner-content-wrapper {
    padding-left: calc(160 * 100vw / 1920);
    padding-top: calc(80 * 100vw / 1920);
  }

  .news-content {
    padding: 0 calc(160 * 100vw / 1920);
  }
} */

/* @media screen and (max-width: 1200px) {
  .home-page-wrapper {
    font-size: calc(12 * 100vw / 1920);
  }

  .top-banner-title {
    font-size: calc(32 * 100vw / 1920);
  }

  .sub-title {
    font-size: calc(13 * 100vw / 1920);
  }

  .banner-content-wrapper {
    padding-left: calc(120 * 100vw / 1920);
    padding-top: calc(75 * 100vw / 1920);
  }

  .news-content {
    padding: 0 calc(120 * 100vw / 1920);
  }
} */

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-container {
  width: calc(560 * 100vw / 1920);
  height: calc(223 * 100vw / 1920);
  border-radius: calc(4 * 100vw / 1920);
  background-color: #fff;
  padding: calc(24 * 100vw / 1920) calc(40 * 100vw / 1920) calc(32 * 100vw / 1920) calc(40 * 100vw / 1920);
  box-shadow: inset 0px calc(4 * 100vw / 1920) 0px 0px #0075C0;
  position: relative;
}

.modal-close {
  position: absolute;
  top: calc(16 * 100vw / 1920);
  right: calc(16 * 100vw / 1920);
  font-size: calc(24 * 100vw / 1920);
  cursor: pointer;
  color: #666;
  font-weight: bold;
}

.modal-close:hover {
  color: #333;
}

.modal-content {
  margin-top: calc(20 * 100vw / 1920);
  text-align: center;
  font-size: calc(16 * 100vw / 1920);
  color: #333;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: calc(40 * 100vw / 1920);
}

.modal-button {
  width: calc(128 * 100vw / 1920);
  height: calc(40 * 100vw / 1920);
  border-radius: calc(4 * 100vw / 1920);
  background: #0075C0;
  color: white;
  border: none;
  cursor: pointer;
  font-size: calc(16 * 100vw / 1920);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(8 * 100vw / 1920) calc(32 * 100vw / 1920);
}

.modal-button:hover {
  background: #005a9a;
}

/* 需求填报弹窗样式 */
.demand-modal-container {
  width: calc(600 * 100vw / 1920);
  height: 80vh;
  border-radius: calc(4 * 100vw / 1920);
  background-color: #fff;
  box-shadow: inset 0px calc(4 * 100vw / 1920) 0px 0px #0075C0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.demand-modal-header {
  position: relative;
  padding: calc(30 * 100vw / 1920) calc(30 * 100vw / 1920) calc(30 * 100vw / 1920) calc(30 * 100vw / 1920);
  border-bottom: calc(1 * 100vw / 1920) solid #eee;
  flex-shrink: 0;
}

.demand-modal-title {
  font-size: calc(24 * 100vw / 1920);
  font-weight: bold;
  color: #333;
  text-align: center;
  margin: 0;
}

.demand-modal-close {
  position: absolute;
  top: calc(16 * 100vw / 1920);
  right: calc(16 * 100vw / 1920);
  font-size: calc(24 * 100vw / 1920);
  cursor: pointer;
  color: #666;
  font-weight: bold;
}

.demand-modal-close:hover {
  color: #333;
}

.demand-form {
  flex: 1;
  overflow-y: auto;
  padding: calc(20 * 100vw / 1920) calc(30 * 100vw / 1920);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: calc(8 * 100vw / 1920);
  margin-bottom: calc(20 * 100vw / 1920);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: calc(16 * 100vw / 1920);
  font-weight: 500;
  color: #333;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: calc(12 * 100vw / 1920);
  border: calc(1 * 100vw / 1920) solid #ddd;
  border-radius: calc(4 * 100vw / 1920);
  font-size: calc(16 * 100vw / 1920);
  box-sizing: border-box;
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
  color: #999999;
}

.form-input::-webkit-input-placeholder,
.form-select::-webkit-input-placeholder,
.form-textarea::-webkit-input-placeholder {
  color: #999999;
}

.form-input::-moz-placeholder,
.form-select::-moz-placeholder,
.form-textarea::-moz-placeholder {
  color: #999999;
}

.form-input:-ms-input-placeholder,
.form-select:-ms-input-placeholder,
.form-textarea:-ms-input-placeholder {
  color: #999999;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0075C0;
  box-shadow: 0 0 0 calc(2 * 100vw / 1920) rgba(0, 117, 192, 0.2);
}

.form-textarea {
  min-height: calc(120 * 100vw / 1920);
  resize: vertical;
}

.demand-modal-footer {
  padding: calc(20 * 100vw / 1920) calc(30 * 100vw / 1920);
  border-top: calc(1 * 100vw / 1920) solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.submit-button {
  width: calc(128 * 100vw / 1920);
  height: calc(40 * 100vw / 1920);
  border-radius: calc(4 * 100vw / 1920);
  background: #0075C0;
  color: white;
  border: none;
  cursor: pointer;
  font-size: calc(16 * 100vw / 1920);
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background: #005a9a;
}

/* ==================== 浮动广告飘窗（响应式优化版） ==================== */
.floating-ad {
  position: fixed;
  z-index: 9999;
  /* 响应式宽度：最小 140px，理想 200px，最大 25% 视口宽度 */
  width: clamp(140px, 25vw, 200px);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.floating-ad:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-ad img {
  width: 100%;
  height: auto;
  display: block;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 8px;
  z-index: 10000;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 22px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  /* 增加触摸区域（不改变视觉大小） */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .close-btn::before {
  content: "×";
  display: block;
  line-height: 1;
} */

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.close-btn:active {
  transform: scale(0.95);
}

/* 小屏设备优化 */
@media screen and (max-width: 768px) {
  .floating-ad {
    width: clamp(100px, 30vw, 140px);
    border-radius: 6px;
  }
  .close-btn {
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 18px;
    top: 3px;
    right: 5px;
  }
}

/* 超小屏（手机）进一步缩小 */
@media screen and (max-width: 480px) {
  .floating-ad {
    width: clamp(80px, 35vw, 120px);
  }
  .close-btn {
    width: 18px;
    height: 18px;
    font-size: 16px;
    top: 2px;
    right: 4px;
  }
}