/*
 * 页面视觉升级覆盖层
 * 本文件独立于原有样式，删除 HTML 中对应的 link 即可恢复原貌。
 */

:root {
  --form-primary: #1559a5;
  --form-primary-dark: #0c3f7c;
  --form-primary-soft: #edf5ff;
  --form-accent: #d93535;
  --form-text: #17243a;
  --form-text-secondary: #637083;
  --form-border: #dce4ee;
  --form-surface: #ffffff;
  --form-background: #f2f6fb;
  --form-focus-ring: rgba(21, 89, 165, 0.16);
  --form-shadow: 0 18px 54px rgba(31, 62, 99, 0.12);
}

html,
body {
  min-height: 100%;
}

body.g_wrapper {
  margin: 0;
  color: var(--form-text);
  background: var(--form-background);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.g_wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #fff;
}

.wrap,
.wj-main-inner,
.wj-xjwj-content {
  height: auto !important;
  min-height: 100%;
}

.page_survey .g_container {
  /* min-height: 100vh; */
  margin: 0;
}

.page_survey .survey_background_wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: transparent;
}

.page_survey .g_container .g_content {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: clamp(28px, 5vw, 64px) 20px 72px;
}

.g_survey .survey_wrap {
  width: min(860px, 100%) !important;
  min-width: 0 !important;
  max-width: 860px;
  height: auto !important;
  margin: 0 auto;
  overflow: visible !important;
  border: 1px solid rgba(208, 220, 234, 0.92);
  border-radius: 22px;
  background: var(--form-surface);
  box-shadow: var(--form-shadow);
}

.g_survey .survey_main {
  padding: 0 0 24px;
}

.g_survey .survey_title {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 21px 21px 0 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 46%),
    linear-gradient(135deg, var(--form-primary-dark), var(--form-primary));
  color: #fff;
  text-align: left;
}

.g_survey .survey_title::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #bc2026, #e85151 58%, #f09b84);
}

.g_survey .survey_title .inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: clamp(28px, 5vw, 46px) clamp(24px, 6vw, 58px) 30px;
}

.g_survey .survey_title .title_content {
  padding: 0;
  color: #fff;
  font-size: 0;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: left;
}

.g_survey .survey_title .title_content::before {
  content: "吉林省整治形式主义为基层减负线索公开征集";
  display: block;
  max-width: 680px;
  font-size: clamp(24px, 4vw, 34px);
}

.g_survey .survey_title .title_content::after {
  content: "请如实填写相关信息，我们将依法依规做好线索受理工作";
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}


.g_survey .survey_container {
  width: 100%;
}

.g_survey .survey_page {
  counter-reset: form-question;
}

.g_survey .question {
  position: relative;
  padding: 26px 0;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
}

.g_survey .question:not([data-type="button"]) {
  counter-increment: form-question;
}

.g_survey .question:last-child,
.g_survey .question[data-type="button"] {
  border-bottom: 0;
}

.g_survey .question>.inner {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.g_survey .question .title {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 0 12px;
}

.g_survey .question .title>div[role="presetation"] {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.g_survey .question:not([data-type="button"]) .title>div[role="presetation"]::before {
  content: counter(form-question, decimal-leading-zero);
  flex: 0 0 auto;
  margin-right: 10px;
  color: var(--form-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.04em;
}

.g_survey .question .title .title_index {
  display: none;
}

.g_survey .question .title .title_text,
.g_survey .question .title .title_text p {
  width: auto;
  height: auto !important;
  margin: 0;
  overflow: visible;
  color: var(--form-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  white-space: normal;
  text-overflow: clip;
}

/* .g_survey .question.required .title_text::after {
  content: " *";
  color: var(--form-accent);
  font-weight: 700;
} */

.g_survey .question .title .tips {
  position: static;
  flex: 0 0 auto;
  margin: 2px 0 0 auto;
}

.page_survey .tips_error {
  display: inline-block;
  margin: 0;
  padding: 4px 9px;
  border-radius: 5px;
  background: #fff0ef;
  color: #bc2e2e;
  font-size: 12px;
  line-height: 1.4;
}

.g_survey .question .inputs {
  box-sizing: border-box;
  width: 100% !important;
  white-space: normal !important;
}

.g_survey .textInput,
.g_survey .survey_form_input {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--form-border);
  border-radius: 9px;
  outline: 0;
  background: #fbfcfe;
  color: var(--form-text);
  font-family: inherit;
  font-size: 15px !important;
  line-height: 48px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.g_survey select.survey_form_input {
  padding-right: 42px;
  cursor: pointer;
  line-height: normal;
}

.g_survey .textInput:hover,
.g_survey .survey_form_input:hover {
  border-color: #aebfd2;
  background: #fff;
}

.g_survey .textInput:focus,
.g_survey .survey_form_input:focus {
  border-color: var(--form-primary);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px var(--form-focus-ring);
}

.g_survey input[readonly] {
  cursor: pointer;
}

.g_survey .dp-icon {
  top: 14px;
  right: 14px;
  left: auto;
  opacity: 0.65;
  pointer-events: none;
}

.g_survey .question[data-type="file"] .inputs {
  padding: 20px;
  border: 1px dashed #b8c8da;
  border-radius: 12px;
  background: var(--form-primary-soft);
}

.g_survey .fileLabel {
  min-width: 116px;
  height: 42px;
  margin: 0 14px 0 0;
  padding: 0 18px;
  border: 1px solid var(--form-primary) !important;
  border-radius: 8px;
  background: var(--form-surface);
  color: var(--form-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.g_survey .fileLabel:hover {
  background: var(--form-primary);
  color: #fff;
  transform: translateY(-1px);
}

.g_survey .span_desc {
  color: #666;
  font-size: 13px;
}

.g_survey .file_desc {
  margin: 12px 0 0;
  color: var(--form-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.g_survey .question[data-type="button"] {
  padding-top: 34px;
}

.g_survey .question[data-type="button"] .title {
  display: none;
}

.g_survey .question[data-type="button"] .inner {
  display: block;
}

.g_survey .questionSurveybtn.submit-color {
  width: min(260px, 100%);
  height: 50px;
  margin: 0;
  border: 0 !important;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--form-primary), #2373c6);
  box-shadow: 0 9px 20px rgba(21, 89, 165, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.g_survey .questionSurveybtn.submit-color:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(21, 89, 165, 0.26);
}

.g_survey .questionSurveybtn.submit-color:active {
  transform: translateY(0);
}

.g_survey .questionSurveybtn.submit-color:focus-visible,
.g_survey .fileLabel:focus-visible {
  outline: 3px solid rgba(21, 89, 165, 0.24);
  outline-offset: 3px;
}

.dialog_popup {
  overflow: hidden;
  border: 1px solid var(--form-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(14, 31, 53, 0.22);
}

.dialog_btn {
  background: #f6f8fb;
  border-color: var(--form-border);
}

.dialog_btn button {
  min-width: 88px;
  padding: 8px 22px;
  border-color: var(--form-primary);
  border-radius: 7px;
  background: var(--form-primary);
  font-family: inherit;
}

.wj-over-main {
  /* min-height: 100vh; */
  background: var(--form-background);
}

@media (max-width: 640px) {
  .page_survey .g_container .g_content {
    padding: 0 0 32px;
  }

  .g_survey .survey_wrap {
    border-width: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 30px rgba(31, 62, 99, 0.08);
  }

  .g_survey .survey_title {
    border-radius: 0;
  }

  .g_survey .survey_title .inner {
    padding: 28px 20px 24px;
  }

  .g_survey .survey_title .title_content::before {
    font-size: 24px;
  }

  .g_survey .survey_title .title_content::after {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
  }

  .g_survey .survey_content {
    padding: 0 20px;
  }

  .g_survey .question {
    padding: 22px 0;
  }

  .g_survey .question .title {
    display: block;
  }

  .g_survey .question .title .tips {
    margin: 7px 0 0 32px;
  }

  .g_survey .question[data-type="file"] .inputs {
    padding: 16px;
  }

  .g_survey .fileLabel {
    display: block;
    width: 100%;
    margin: 0 0 10px;
  }

  .g_survey .questionSurveybtn.submit-color {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 参考图风格：简洁、宽松的单列表单 */

.page_survey .g_container .g_content {
  padding: 28px 20px 48px;
}

.g_survey .survey_wrap {
  width: min(1440px, 100%) !important;
  max-width: 1440px;
  border: 0;
  border-radius: 24px;
  box-shadow: none;
}

.g_survey .survey_main {
  padding: 0 0 54px;
}

.g_survey .survey_title {
  display: none !important;
}

.g_survey .survey_content {
  padding: 14px;
}

.g_survey .survey_page {
  counter-reset: none;
}

.g_survey .question {
  padding: 27px 0 31px;
  border: 0;
}

.g_survey .question:not([data-type="button"]) {
  counter-increment: none;
}

.g_survey .question:not([data-type="button"]) .title>div[role="presetation"]::before {
  display: none;
}

.g_survey .question .title {
  padding: 0 0 15px;
}

.g_survey .question .title .title_text,
.g_survey .question .title .title_text p {
  color: #20242a;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.g_survey .question.required .title_text::after {
  content: none;
}


.g_survey .textInput,
.g_survey .survey_form_input {
  height: 56px;
  padding: 0 18px;
  border-color: #c8cdd3;
  border-radius: 5px;
  background: #fff;
  color: #252a30;
  font-size: 16px !important;
  line-height: 56px;
}

.g_survey .textInput::placeholder,
.g_survey .survey_form_input::placeholder,
.g_survey textarea::placeholder {
  color: #a9adb2;
}

.g_survey #textarea_q-4217ACF9-D275-4D85-B4CC-7E9B5DE20539 {
  display: block;
  height: 118px;
  padding: 13px 18px;
  line-height: 1.6;
  resize: none;
}

.g_survey .dp-icon {
  top: 17px;
  right: 15px;
  width: 22px;
  height: 22px;
  filter: grayscale(1);
  opacity: 0.58;
  pointer-events: auto;
  cursor: pointer;
}

.g_survey .question[data-type="file"] .title {
  padding-bottom: 6px;
}

.g_survey .question[data-type="file"] .title_text::before,
.g_survey #question_q-182B9446-1B8F-445B-90E5-8CCE16826172 .title_text::before,
.g_survey #question_q-294970AB-F69F-4D2C-9657-B05907BEAD3A .title_text::before {
  content: none;
}

.g_survey .question[data-type="file"] .title .text_file_type p {
  font-size: 0;
}
.g_survey .question[data-type="file"] .title .text_file_type p:first-child:before {
  content: "附件";
  color: #20242a;
  font-size: 18px;
}

.g_survey .question[data-type="file"] .title .text_file_type p:first-child:after {
  content: "（请勿上传涉密资料）";
  color: #ef3e3e;
  font-size: 18px;
}

.g_survey .question[data-type="file"] .inputs {
  display: flex;
  min-height: 126px;
  margin-top: 12px;
  padding: 20px;
  border-color: #c9cdd2;
  border-radius: 4px;
  background: #fff;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.g_survey .upload-limits {
  display: none;
}

.g_survey .fileLabel {
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: #666;
  font-weight: 600;
  line-height: 1.4;
  align-items: center;
}

.g_survey .fileLabel::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M896 629.333333c-17.066667 0-32 14.933333-32 32v170.666667c0 6.4-4.266667 10.666667-10.666667 10.666667H170.666667c-6.4 0-10.666667-4.266667-10.666667-10.666667v-170.666667c0-17.066667-14.933333-32-32-32s-32 14.933333-32 32v170.666667c0 40.533333 34.133333 74.666667 74.666667 74.666667h682.666666c40.533333 0 74.666667-34.133333 74.666667-74.666667v-170.666667c0-17.066667-14.933333-32-32-32z' fill='%23666'/%3E%3Cpath d='M322.133333 407.466667l157.866667-157.866667V704c0 17.066667 14.933333 32 32 32s32-14.933333 32-32V247.466667l157.866667 157.866666c6.4 6.4 14.933333 8.533333 23.466666 8.533334s17.066667-2.133333 23.466667-8.533334c12.8-12.8 12.8-32 0-44.8l-213.333333-213.333333c-12.8-12.8-32-12.8-44.8 0l-213.333334 213.333333c-12.8 12.8-12.8 32 0 44.8 10.666667 12.8 32 12.8 44.8 2.133334z' fill='%23666'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 0 auto;
}


.g_survey .fileLabel:hover {
  background: transparent;
  color: var(--form-primary);
  transform: none;
}

.g_survey .span_desc:empty {
  display: none;
}

.g_survey .file_desc {
  margin: 9px 0 0;
  color: #9b9fa5;
  font-size: 14px;
  line-height: 1.6;
}

.g_survey .question[data-type="button"] {
  padding: 66px 0 10px;
}

.g_survey .questionSurveybtn.submit-color {
  width: min(300px, 100%);
  height: 64px;
  border-radius: 5px;
  background: #1976d2;
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.28);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.question_type .center {
  text-align: center !important;
}

@media (max-width: 640px) {
  .page_survey .g_container .g_content {
    padding: 0 0 24px;
  }

  .g_survey .survey_wrap {
    border-radius: 0 0 18px 18px;
  }

  .g_survey .survey_content {
    padding: 10px 20px 0;
  }

  .g_survey .question {
    padding: 22px 0 24px;
  }

  .g_survey .textInput,
  .g_survey .survey_form_input {
    height: 50px;
    line-height: 50px;
  }

  .g_survey .dp-icon {
    top: 14px;
  }

  .g_survey .question .title .title_text,
  .g_survey .question .title .title_text p {
    font-size: 16px;
  }

  .g_survey .question[data-type="file"] .title .text_file_type p::before,
  .g_survey .question[data-type="file"] .title .text_file_type p::after {
    font-size: 16px;
  }

  .g_survey .question .title .tips {
    margin-left: 0;
  }

  .g_survey .question[data-type="button"] {
    padding-top: 34px;
  }

  .g_survey .questionSurveybtn.submit-color {
    height: 54px;
    font-size: 18px;
  }
}

/* 附件表格 */
.add-file-tb {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #374151;
}

/* 表头 */
.add-file-tb th {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f7f9fc;
  color: #4b5563;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

/* 单元格 */
.add-file-tb td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
  line-height: 1.5;
}

/* 去掉最后一行底边 */
.add-file-tb tbody tr:last-child td {
  border-bottom: none;
}

/* 表格行交互 */
.add-file-tb tbody tr:not(:first-child) {
  transition: background-color 0.2s ease;
}

.add-file-tb tbody tr:not(:first-child):hover {
  background-color: #f8fbff;
}

/* 文件名单元格 */
.add-file-tb .file-name-cell {
  max-width: 0;
}

/* 文件链接 */
.add-file-tb .file-link {
  position: relative;
  display: block;
  padding-left: 24px;
  overflow: hidden;
  color: #1677ff;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
  transition: color 0.2s ease;
}

/* 文件图标 */
.add-file-tb .file-link::before {
  position: absolute;
  top: 50%;
  left: 0;
  content: "📎";
  font-size: 15px;
  transform: translateY(-50%);
}

/* .add-file-tb .file-link:hover {
  color: #0958d9;
  text-decoration: underline;
} */

/* 上传状态 */
.add-file-tb .file-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-weight: 500;
  text-decoration: none;
}

.add-file-tb .file-status::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
  content: "";
}

/* 移除按钮 */
.add-file-tb .remove-file {
  min-width: 54px;
  padding: 5px 12px;
  border: 1px solid #ffccc7;
  border-radius: 5px;
  outline: none;
  background-color: #fff;
  color: #ef4444;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.add-file-tb .remove-file:hover {
  border-color: #ef4444;
  background-color: #ef4444;
  color: #fff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.22);
}

.add-file-tb .remove-file:active {
  background-color: #dc2626;
  transform: translateY(1px);
}

.add-file-tb .remove-file:focus-visible {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

/* 手机端适配 */
@media (max-width: 600px) {
  .add-file-tb {
    font-size: 13px;
  }

  .add-file-tb th,
  .add-file-tb td {
    padding: 10px 8px;
  }

  .add-file-tb th:first-child {
    width: 50% !important;
  }

  .add-file-tb th:nth-child(2) {
    width: 27% !important;
  }

  .add-file-tb .remove-file {
    min-width: auto;
    padding: 4px 8px;
  }
}