/* =========================================================
   上海亿诺信官网 - components.css
   按钮 / 栏目标题 / 卡片 / 列表 / 标签 / 步骤 / FAQ / 表格 /
   表单控件 / 时间线 / 联系卡片 / 地图占位 / 锚点副导航
   ========================================================= */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
    background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--gradient-orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 104, 13, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 104, 13, 0.42);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(103, 232, 249, 0.55);
  transform: translateY(-2px);
}

.btn--soft {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--navy-700);
}

.btn--soft:hover {
  background: var(--blue-100);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 20px;
  font-size: 15px;
  border-radius: 9px;
}

.btn--lg {
  padding: 15px 38px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange-600);
  transition: gap var(--t-fast), color var(--t-fast);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.link-arrow:hover {
  gap: 10px;
  color: var(--orange-500);
}

/* ---------- 栏目标题 ---------- */
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 14px;
  color: var(--blue-600);
  background: linear-gradient(92deg, var(--blue-600) 6%, var(--cyan-500) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head__eyebrow::before,
.section-head__eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--blue-400);
  opacity: 0.7;
}

.section-head--left .section-head__eyebrow::before {
  display: none;
}

.section-head__title {
  font-size: 34px;
  letter-spacing: 0.5px;
}

.section-head__desc {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--text-secondary);
}

.section--dark .section-head__eyebrow {
  color: var(--cyan-400);
  background: linear-gradient(92deg, var(--blue-300) 8%, var(--cyan-400) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section--dark .section-head__eyebrow::before,
.section--dark .section-head__eyebrow::after {
  background: var(--cyan-400);
  opacity: 0.75;
}

.section--dark .section-head__desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 图标容器 ---------- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #E2EFFF, #D6F6FD);
  color: var(--blue-600);
  box-shadow: inset 0 0 0 1px rgba(46, 130, 255, 0.14);
  flex-shrink: 0;
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

.icon-box--orange {
  background: var(--orange-50);
  color: var(--orange-500);
}

.icon-box--dark {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.24);
  color: var(--cyan-400);
}

/* ---------- 通用卡片 ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(77, 156, 255, 0.45);
}

.card__title {
  margin-top: 20px;
  font-size: 19px;
}

.card__desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.card__link {
  margin-top: 18px;
}

.card--accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400) 55%, var(--orange-500));
  opacity: 0;
  transition: opacity var(--t);
}

.card--accent:hover::before {
  opacity: 1;
}

/* ---------- 列表 ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%23FF7A1A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.section--dark .feature-list li {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 标签 ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-600);
}

.tag--orange {
  background: var(--orange-50);
  border-color: var(--orange-100);
  color: var(--orange-600);
}

/* ---------- 数据指标 ---------- */
.stat {
  text-align: center;
}

.stat__num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat__num em {
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-400);
  margin-left: 2px;
}

.stat__label {
  margin-top: 8px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.62);
}

.stat--light .stat__num {
  color: var(--navy-800);
}

.stat--light .stat__num em {
  color: var(--orange-500);
}

.stat--light .stat__label {
  color: var(--text-muted);
}

/* ---------- 步骤条 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-orange);
  box-shadow: 0 6px 14px rgba(232, 104, 13, 0.28);
}

.step__title {
  margin-top: 16px;
  font-size: 16.5px;
}

.step__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.step::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -16px;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--gray-300);
  border-right: 2px solid var(--gray-300);
  transform: rotate(45deg);
}

.step:last-child::after {
  display: none;
}

/* ---------- FAQ 手风琴 ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}

.faq-item.is-open {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-600);
  transition: transform var(--t), background var(--t), color var(--t);
}

.faq-item__icon svg {
  width: 15px;
  height: 15px;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--orange-50);
  color: var(--orange-500);
}

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item__a > div {
  overflow: hidden;
}

.faq-item__a p {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-item__a {
  grid-template-rows: 1fr;
}

/* ---------- 对比表格 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.compare-table {
  width: 100%;
  min-width: 780px;
  font-size: 15px;
}

.compare-table th {
  padding: 16px 20px;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.compare-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-secondary);
  line-height: 1.7;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: var(--blue-50);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ---------- 表单控件（颜色由上下文变量驱动） ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 22px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--field-label, var(--text-primary));
}

.form-label .req {
  color: var(--orange-500);
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--field-border, var(--gray-300));
  background: var(--field-bg, #fff);
  color: var(--field-color, var(--text-primary));
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--field-ph, var(--gray-400));
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18);
}

.select option {
  color: var(--gray-900);
}

.textarea {
  min-height: 108px;
  resize: vertical;
}

.input.has-error,
.select.has-error,
.textarea.has-error {
  border-color: #F26D6D;
  box-shadow: 0 0 0 3px rgba(242, 109, 109, 0.16);
}

.field-error {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  color: var(--field-error, #D9534F);
}

.field-error.is-show {
  display: block;
}

/* 选项按钮（单选 / 多选） */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--chip-border, var(--gray-300));
  background: var(--chip-bg, #fff);
  color: var(--chip-color, var(--text-secondary));
  font-size: 14.5px;
  cursor: pointer;
  transition: all var(--t-fast);
}

.chip span:hover {
  border-color: var(--orange-400);
  color: var(--orange-500);
}

.chip input:checked + span {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-400), var(--cyan-400));
  opacity: 0.6;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 40px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 90px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
  z-index: 1;
}

.tl-item__year {
  padding-top: 4px;
  text-align: right;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-700);
  font-variant-numeric: tabular-nums;
}

.tl-item__body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}

.tl-item__body:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.tl-item__body h4 {
  font-size: 16.5px;
}

.tl-item__body p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---------- 联系卡片 ---------- */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.contact-card h4 {
  font-size: 16.5px;
}

.contact-card p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ---------- 地图占位 ---------- */
.map-placeholder {
  position: relative;
  height: 330px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(rgba(244, 248, 254, 0.92), rgba(237, 245, 255, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 38px, var(--blue-100) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--blue-100) 38px 39px);
}

.map-placeholder__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.map-placeholder__content svg {
  width: 40px;
  height: 40px;
  color: var(--orange-500);
}

/* ---------- 锚点副导航 ---------- */
.subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 60;
  background: rgba(244, 248, 254, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.subnav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.subnav__link:hover {
  color: var(--navy-700);
}

.subnav__link.is-active {
  color: var(--blue-600);
  border-color: var(--cyan-500);
  font-weight: 600;
}

/* ---------- 提示条 ---------- */
.note {
  border-left: 3px solid var(--orange-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--orange-50);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-700);
}

/* ---------- 左右分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--wide-left {
  grid-template-columns: 1.15fr 1fr;
}

/* ---------- 下载 / 文档卡片 ---------- */
.doc-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}

.doc-card__body {
  flex: 1;
}

.doc-card__body h4 {
  font-size: 16px;
}

.doc-card__body p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- 资质占位 ---------- */
.cert-box {
  height: 190px;
  border-radius: var(--radius);
  border: 1px dashed var(--gray-300);
  background: var(--gray-50);
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .section-head {
    margin-bottom: 42px;
  }

  .section-head__title {
    font-size: 28px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-head__title {
    font-size: 24px;
  }

  .section-head__desc {
    font-size: 15px;
  }

  .card {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .faq-item__q {
    padding: 17px 18px;
    font-size: 15.5px;
  }

  .faq-item__a p {
    padding: 0 18px 18px;
  }

  .timeline::before,
  .tl-item::before {
    display: none;
  }

  .tl-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tl-item__year {
    text-align: left;
    font-size: 17px;
  }

  .stat__num {
    font-size: 32px;
  }

  .cta-banner__actions .btn {
    flex: 1;
  }
}
