/* Card, Filter, Tabs, Tab styles are now shared via .section-card / .section-filter / .section-tabs / .section-tab in base.css */

/* ============================================
   电子保单页面样式
   ============================================ */

/* Banner */
.xxcx-banner {
  position: relative;
  height: 168px;
  background: var(--bg-gray-light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .xxcx-banner {
    height: 280px;
  }
}

.xxcx-banner__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.xxcx-banner__content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  animation: fadeInUp 0.6s ease-out;
}

.xxcx-banner__title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

@media (min-width: 992px) {
  .xxcx-banner__title {
    font-size: 48px;
  }
}

/* Main Content */
.xxcx-main {
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: -42px;
  position: relative;
  z-index: 12;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .xxcx-main {
    margin-top: -56px;
  }
}

/* Card, Filter, Tabs, Tab styles are now shared via .section-card / .section-filter / .section-tabs / .section-tab in base.css */

/* Tab Content */
.xxcx-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.xxcx-tab-content.active {
  display: block;
}

.xxcx-card__body {
  padding: 32px;
}

@media (max-width: 991px) {
  .xxcx-card__body {
    padding: 16px;
  }
}

/* ============================================
   表单区域 - 银行企业级专业设计
   ============================================ */
.xxcx-form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  /* background: #fafbfc; */
  /* border: 1px solid #e8ecf0; */
  /* border-radius: 12px; */
  overflow: hidden;
}

.xxcx-form-body {
  padding: 28px;
}

/* Form Item */
.xxcx-form-item {
  margin-bottom: 24px;
}

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

.xxcx-form-item__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.xxcx-form-item__label i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.xxcx-form-item__required {
  color: #e53e3e;
  margin-left: 2px;
}

/* Input */
.xxcx-form__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.xxcx-form__input:focus {
  outline: none;
  border-color: var(--primary);
}

.xxcx-form__input::placeholder {
  color: #a0aec0;
}

/* Upload */
.xxcx-upload {
  position: relative;
}

.xxcx-upload__input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.xxcx-upload__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border: 1px dashed #cbd5e0;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
}

.xxcx-upload:hover .xxcx-upload__area {
  border-color: var(--primary);
  background: #f7fafc;
}

.xxcx-upload__icon {
  width: 36px;
  height: 36px;
  color: #a0aec0;
  margin-bottom: 10px;
}

.xxcx-upload__text {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 4px;
}

.xxcx-upload__hint {
  font-size: 12px;
  color: #a0aec0;
}

.xxcx-upload__preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #67c23a;
  background: #f0f9eb;
  border-color: #c2e7b0;
}

.xxcx-upload__preview-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.xxcx-upload__preview-name {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Captcha Row */
.xxcx-captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.xxcx-captcha-row .xxcx-form__input {
  flex: 1;
}

.xxcx-captcha__img {
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.xxcx-captcha__img:hover {
  border-color: var(--primary);
}

/* Submit Button */
.xxcx-form-footer {
  padding-top: 14px;
}

.xxcx-form__submit {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 2px;
}

.xxcx-form__submit:hover {
  /* box-shadow: 0 4px 15px rgba(44, 82, 130, 0.35); */
}

.xxcx-form__submit:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  box-shadow: none;
}

.xxcx-form__tips {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0;
  padding: 14px 0;
}

.xxcx-form__tips-icon {
  width: 16px;
  height: 16px;
  color: #B94A48;
  flex-shrink: 0;
  margin-top: 3px;
}

.xxcx-form__tips p {
  font-size: 14px;
  color: #B94A48;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
  text-wrap: pretty;
  word-break: break-all;
}

/* ============================================
   验真结果页
   ============================================ */
.xxcx-result-wrapper {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.xxcx-result-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-gray-light);
  border-bottom: 1px solid var(--border-light);
}

.xxcx-result-header__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.xxcx-result-header__icon i {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.xxcx-result-header__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
}

.xxcx-result-body {
  padding: 10px 20px;
}

.xxcx-result-info {
  overflow: hidden;
}

.xxcx-result-info__item {
  display: flex;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.xxcx-result-info__item:last-child {
  border-bottom: none;
}

.xxcx-result-info__label {
  width: 120px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.xxcx-result-info__value {
  flex: 1;
  color: var(--text-main);
  word-break: break-all;
}

.xxcx-result-info__item--result .xxcx-result-info__value {
  font-weight: 600;
}

.xxcx-result-info__item--result.success .xxcx-result-info__value {
  color: #85ce61;
}

.xxcx-result-info__item--result.error .xxcx-result-info__value {
  color: #e53e3e;
}

.xxcx-result-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.xxcx-result__retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
}

.xxcx-result__retry:hover {
  border-color: var(--border-dark);
  background: var(--bg-gray-light);
}

.xxcx-result__retry i {
  width: 16px;
  height: 16px;
}

/* Download Section */
.xxcx-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 24px;
}

.xxcx-download__qrcode {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

/* 二维码卡片 - 阴影立体效果 */
.xxcx-qrcode-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 48px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 四个角直角线 */
.xxcx-qrcode-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(185, 74, 74, 0.7);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}

.xxcx-qrcode-corner--tl {
  top: 12px;
  left: 12px;
  border-top-width: 3px;
  border-left-width: 3px;
}

.xxcx-qrcode-corner--tr {
  top: 12px;
  right: 12px;
  border-top-width: 3px;
  border-right-width: 3px;
}

.xxcx-qrcode-corner--bl {
  bottom: 12px;
  left: 12px;
  border-bottom-width: 3px;
  border-left-width: 3px;
}

.xxcx-qrcode-corner--br {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 3px;
  border-right-width: 3px;
}

.xxcx-download__tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 480px;
}

.xxcx-download__tip-icon {
  width: 18px;
  height: 18px;
  color: #B94A48;
  flex-shrink: 0;
  margin-top: 3px;
}

.xxcx-download__tip-text {
  font-size: 14px;
  color: #B94A48;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
  text-wrap: pretty;
  word-break: break-all;
}

.xxcx-download--center {
  align-items: center;
  text-align: center;
}

.xxcx-download__title {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}