/* style.css - 100% 复刻浙江省政务服务网参保证明凭证查询页面样式 */

/* ========== Base Reset ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  background-color: #fff;
  line-height: 1.5715;
}
a { color: #1890ff; text-decoration: none; transition: color 0.3s; }
a:hover { color: #40a9ff; }
img { vertical-align: middle; border-style: none; }
button, input { font-family: inherit; font-size: inherit; }

/* ========== 政务通用头部 ========== */
#zjzwCommonheader {
  width: 100%;
  background: #fff;
}

.zjzwHeader {
  border-bottom: 1px solid #f0f0f0;
}

.zjzwHeaderContent {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 90px;
}

.zjzwHeaderLogo { flex-shrink: 0; }
.zjzwLogo img { height: 50px; display: block; }

.zdqh {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.zdqh:hover { border-color: #0366f1; color: #0366f1; }
.zdqh img { width: 12px; height: 12px; }

.zjzwList {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.zjzwList a {
  color: #333;
  font-size: 16px;
  transition: color 0.2s;
}
.zjzwList a:hover { color: #0366f1; }
.zjzwListDivider { color: #d9d9d9; }
.zjzwElderBtn { color: #f48022 !important; }
.zjzwElderBtn:hover { color: #ec612a !important; }

/* 第二行：导航+搜索 */
.zjzwNavWrap {
}
.zjzwNavWrap .zjzwHeaderContent {
  height: 48px;
  justify-content: space-between;
}
.zjzwNav {
  display: flex;
  align-items: center;
}
.zjzwNavItem {
  font-size: 20px;
  color: #333;
  padding: 0 0;
  margin-left: 56px;
  line-height: 48px;
  position: relative;
  transition: color 0.2s;
}
.zjzwNavItem:first-child { margin-left: 0; }
.zjzwNavItem:hover { color: #0366f1; }
.zjzwNavItem.active {
  color: #0366f1;
  font-weight: 700;
}
.zjzwNavItem.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: #0366f1;
}

.zjzwSearchForm {
  display: flex;
  align-items: center;
}
.zjzwSearchInputWrap {
  display: flex;
  align-items: center;
  width: 280px;
  height: 40px;
  border: 1px solid #f48022;
  border-right: none;
  padding: 0 12px;
}
.zjzwSearchIcon { width: 16px; height: 16px; margin-right: 8px; flex-shrink: 0; }
.zjzwSearchInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  height: 100%;
}
.zjzwSearchBtn {
  width: 80px;
  height: 40px;
  background: #f48022;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.zjzwSearchBtn:hover { background: #d96d12; }

/* ========== 页面头部导航 ========== */
.header-background {
  width: 100%;
  background: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 5px 2px rgba(0, 0, 0, 0.1);
}
.header { padding-top: 16px; }
.container {
  min-width: 920px;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  background: #fff;
}
.header-menu {
  margin: 4px 0;
  display: flex;
  justify-content: space-between;
  height: 48px;
  padding: 0 20px;
}
.header-menu-inner {
  display: flex;
  align-items: center;
}
.header-menu-item {
  font-size: 20px;
  color: #333;
  padding: 0 20px;
  line-height: 48px;
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.header-menu-item:hover { color: #0366f1; }
.header-menu-item.active {
  color: #0366f1;
  font-weight: 700;
  border-bottom: 3px solid #0366f1;
}

/* ========== 主体内容 ========== */
.cbzm-body {
  width: 1001px;
  margin-bottom: 20px;
}
.content { width: 100%; height: auto; }
.title {
  text-align: center;
  border: 1px solid #f0eeee;
  margin-top: 10px;
  padding-top: 20px;
  padding-bottom: 10px;
}
.page-title {
  font-size: 24px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  margin: 0;
  padding: 0 0 10px;
}
.main {
  height: auto;
  border: 1px solid #f0eeee;
  border-top: 0;
  padding: 30px;
  margin-bottom: 20px;
}

/* ========== Ant Design Form ========== */
.verify-form {
  padding-top: 80px;
  padding-bottom: 40px;
}
.ant-form-item {
  display: flex;
  margin-bottom: 24px;
}
.ant-form-item-label {
  flex-shrink: 0;
  text-align: right;
  padding-right: 12px;
}
.ant-form-item-label label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  display: inline-block;
  line-height: 39.9999px;
}
.ant-form-item-required::before {
  content: '*';
  color: #ff4d4f;
  font-size: 14px;
  margin-right: 4px;
  display: inline-block;
  font-family: SimSun, sans-serif;
}
.ant-form-item-control { flex: 1; }
.ant-form-item-control-input {
  position: relative;
  min-height: 39.9999px;
}
.ant-form-item-explain-error {
  color: #ff4d4f;
  font-size: 14px;
  line-height: 1.5715;
  margin-top: 4px;
  min-height: 0;
  transition: color 0.3s;
}

/* Ant Input */
.ant-input {
  height: 40px;
  padding: 0 11px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  background: #fff;
  outline: none;
  transition: all 0.2s;
}
.ant-input:focus {
  border-color: #0366f1;
  box-shadow: 0 0 0 2px rgba(3, 102, 241, 0.1);
}
.ant-input::placeholder { color: rgba(0, 0, 0, 0.25); }

/* Ant Button */
.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1;
}
.ant-btn:hover { color: #0366f1; border-color: #0366f1; }
.ant-btn-primary {
  background: #0366f1;
  border-color: #0366f1;
  color: #fff;
}
.ant-btn-primary:hover {
  background: #2b7af5;
  border-color: #2b7af5;
  color: #fff;
}
.ant-btn-primary:disabled {
  background: #d9d9d9;
  border-color: #d9d9d9;
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
}
.ant-btn-default:hover { color: #0366f1; border-color: #0366f1; background: #fff; }

/* ========== simple-verify 滑动验证（参考页精确样式） ========== */
.simple-verify {
  box-sizing: border-box;
  line-height: 1;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}
.simple-verify .verify-tips {
  width: 100%;
  height: 100%;
  color: #9ca0a7;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  pointer-events: none;
}
.simple-verify .verify-box {
  position: absolute;
  left: -1px;
  top: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: hidden;
}
.simple-verify .veriry-slide {
  position: absolute;
  left: -350px;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.1s linear, transform 0.3s ease;
}
.simple-verify .verify-bar {
  position: absolute;
  left: -1px;
  top: -1px;
  width: 50px;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 2;
  z-index: 1;
  transition: transform 0.3s ease;
  touch-action: none;
}
.simple-verify .verify-bar .icon {
  width: 44px;
  height: 29px;
  box-shadow: 0 3px 10px rgba(113, 114, 119, 0.3);
  border-radius: 4px;
  background-size: 100% 100%;
}
.simple-verify .verify-success-tips {
  position: absolute;
  left: -1px;
  top: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  z-index: 1;
  transition: opacity 0.1s linear;
  pointer-events: none;
}
.simple-verify .verify-success-tips span {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.simple-verify.success .verify-tips { opacity: 0; }
.simple-verify.success .verify-success-tips { opacity: 1; }

/* 文档查看器 */
.doc-viewer { width: 100%; height: 100%; overflow: hidden; }
.doc-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.doc-viewer img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.doc-viewer .doc-empty {
  text-align: center;
  color: #999;
  padding: 60px 0;
  font-size: 14px;
}

/* ========== 政务通用底部 ========== */
#zjzwCommonfooter {
  margin-top: 0;
}
.zjzwFooter { padding: 24px 0; }
.zjzwFooterContent {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.zjzwFooterLinks {
  margin-bottom: 12px;
  font-size: 14px;
}
.zjzwFooterLinks a {
  color: #666;
  margin: 0 4px;
  transition: color 0.2s;
}
.zjzwFooterLinks a:hover { color: #0366f1; }
.zjzwFooterLinks span { color: #d9d9d9; margin: 0 4px; }
.zjzwFooterInfo p {
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

/* ========== Ant Modal ========== */
.ant-modal-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}
.ant-modal-wrap {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: auto;
  z-index: 1001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 0;
}
.ant-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}
.ant-modal-content {
  position: relative;
  padding: 16px 0;          /* 左右留 0：文件内容区左右贴边，全铺显示 */
}
.ant-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
}
.ant-modal-close:hover { color: rgba(0, 0, 0, 0.75); }
.ant-modal-header {
  margin: 0 24px 12px;
  padding-right: 40px;
}
.ant-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
}
.ant-modal-body {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  min-height: 80px;
  padding: 10px 0;
}
.ant-modal-footer {
  margin-top: 14px;
  padding: 0 24px;
  text-align: right;
}
.ant-modal-footer .ant-btn { margin-left: 8px; }

/* Result */
.ant-result { text-align: center; padding: 20px 0; }
.ant-result-icon { margin-bottom: 16px; }
.ant-result-title {
  font-size: 20px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 8px;
}
.ant-result-subtitle {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
}

/* Result Content */
.result-content {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.result-content .result-icon {
  margin-bottom: 16px;
}
.result-content .result-text {
  font-size: 16px;
}
.result-content .result-detail {
  margin-top: 20px;
  text-align: left;
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 2;
  font-family: monospace;
}

/* ========== Loading ========== */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-spin {
  text-align: center;
}
.loading-spin-dot {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top-color: #0366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
.loading-spin-text {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Responsive ========== */
@media (max-width: 920px) {
  .zjzwList { display: none; }
  .zjzwSearchForm { display: none; }
}
@media (max-width: 1024px) {
  .cbzm-body { width: 100%; }
  .container { min-width: auto; }
}
@media (max-width: 768px) {
  .zjzwNav { display: none; }
  .ant-form-item { flex-direction: column; }
  .ant-form-item-label { width: 100% !important; text-align: left; }
  .ant-form-item-control { width: 100% !important; }
  .ant-input { width: 100% !important; }
  .simple-verify { width: 100% !important; }
}

/* ========== 核验链接自动填入提示 ========== */
.autofill-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #52c41a;
  line-height: 18px;
}

/* ========== 通用底部（1200px 居中，参照官方截图）========== */
.zfNew {
  background: #f7f9fb;
  margin-top: 40px;
  padding: 24px 0 0;
}
.zf-inner {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}
.zf-links-row {
  display: flex;
  gap: 15px;
  margin-bottom: 16px;
}
.zf-link {
  flex: 1;
  height: 40px;
  background: #f0f3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.zf-link:hover { background: #e6ebf2; }
.zf-caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid #999;
  margin-left: 4px;
  transform: rotate(180deg);
}
.zf-info {
  display: flex;
  gap: 24px;
  margin-top: 25px;
}
.zf-contact {
  width: 695px;
  flex: 0 0 695px;
  background: #f0f3f7;
  padding: 22px 24px;
  box-sizing: border-box;
}
.zf-contact-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.zf-contact-cols {
  display: flex;
}
.zf-col {
  font-size: 13px;
  color: #595959;
  line-height: 26px;
}
.zf-col:first-child { width: 55%; }
.zf-qr {
  width: 234px;
  flex: 0 0 234px;
  background: #f0f3f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  box-sizing: border-box;
  text-align: center;
}
.zf-qr img {
  width: 92px;
  height: 92px;
  display: block;
}
.zf-qr-text {
  font-size: 12px;
  color: #595959;
  margin-top: 8px;
  line-height: 17px;
}
.zf-badges {
  width: 223px;
  flex: 0 0 223px;
  background: #f0f3f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  box-sizing: border-box;
}
.zf-badges img { display: block; max-width: 100%; }
.zf-copyright {
  background: #eeeeee;
  margin-top: 33px;
  padding: 16px 0 18px;
  text-align: center;
}
.zf-copy-links {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
.zf-copy-links a {
  color: #666;
  text-decoration: none;
}
.zf-copy-links a:hover { color: #0366f1; }
.zf-copy-links span { color: #ccc; margin: 0 14px; }
.zf-copy-line {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.zf-copy-line img {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 4px;
}

/* ========== 错误提示弹窗（官方同款小窗 415x164） ========== */
.err-wrap {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.err-box {
  width: 415px;
  min-height: 164px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), 0 3px 6px -4px rgba(0, 0, 0, 0.12);
  padding: 32px;
  position: relative;
}
.err-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.err-title {
  font-size: 17px;
  color: #262626;
  line-height: 22px;
}
.err-msg {
  margin: 14px 0 0 33px;
  font-size: 15px;
  color: #262626;
  line-height: 22px;
  word-break: break-all;
  padding-right: 10px;
}
.err-ok {
  position: absolute;
  right: 31px;
  bottom: 24px;
  min-width: 52px;
  height: 32px;
  padding: 0 14px;
  background: #40a9ff;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.err-ok:hover { background: #3aa3f7; }

/* ========== PDF 弹窗工具栏（官方同款） ========== */
.pdf-toolbar {
  height: 40px;
  flex: 0 0 40px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
}
.pdf-toolbar-left {
  display: flex;
  align-items: center;
  gap: 2px;
}
.pdf-tbtn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #595959;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0;
}
.pdf-tbtn:hover { background: #f0f0f0; }
.pdf-page-box {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.pdf-page-box input {
  width: 40px;
  height: 26px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  text-align: center;
  font-size: 13px;
  color: #333;
  outline: none;
  background: #fff;
}
.pdf-page-total {
  font-size: 13px;
  color: #595959;
}
.pdf-print {
  font-size: 14px;
  color: #1a66ff;
  text-decoration: none;
}
.pdf-print:hover { text-decoration: underline; }

/* ========== 链接停用整页拦截 ========== */
#linkBlockedOverlay {
  position: fixed;
  inset: 0;
  background: #f0f2f5;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#linkBlockedOverlay .lb-box {
  background: #fff;
  padding: 48px 56px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 420px;
}
#linkBlockedOverlay .lb-icon { font-size: 48px; line-height: 1; margin-bottom: 16px; }
#linkBlockedOverlay .lb-title { font-size: 18px; font-weight: 600; color: rgba(0, 0, 0, 0.85); margin-bottom: 8px; }
#linkBlockedOverlay .lb-sub { font-size: 14px; color: rgba(0, 0, 0, 0.45); line-height: 1.7; }
