/* 业务范围页专用样式 */

/* ---------- 锚点导航 ---------- */

.anchor-bar {
  position: sticky;
  top: 74px;
  z-index: 40;
  background: rgba(253, 252, 251, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.anchor-inner {
  display: flex;
  gap: 2px;
  padding: 9px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.anchor-inner::-webkit-scrollbar {
  display: none;
}

.anchor-inner a {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  color: var(--color-text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.anchor-inner a:hover {
  color: var(--color-text);
  background: rgba(74, 124, 255, 0.06);
}

.anchor-inner a.is-active {
  color: var(--color-primary-start);
  border-color: rgba(74, 124, 255, 0.32);
  background: var(--color-surface);
}

.anchor-num {
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

/* ---------- 服务行 ---------- */

.services-section {
  padding: 36px 0 24px;
}

.service-list {
  border-top: 0;
}

.service-block {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 150px;
}

.service-block-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.service-block .service-no {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.service-block .service-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
}

.service-block h2 {
  padding-top: 2px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
}

.service-body {
  min-width: 0;
}

.service-desc {
  max-width: 46em;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.service-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin-top: 14px;
  max-width: 46em;
}

.service-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--color-text);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.service-note {
  margin-top: 16px;
  max-width: 46em;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-text);
  font-size: 0.86rem;
  line-height: 1.65;
}

.service-block .text-link {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--color-primary-start);
}

/* ---------- 定制流程 ---------- */

.flow-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list > li:nth-child(1) {
  grid-area: 1 / 1;
}

.flow-list > li:nth-child(2) {
  grid-area: 1 / 2;
}

.flow-list > li:nth-child(3) {
  grid-area: 1 / 3;
}

.flow-list > li:nth-child(4) {
  grid-area: 1 / 4;
}

.flow-list > li:nth-child(5) {
  grid-area: 1 / 5;
}

.flow-list > li:nth-child(6) {
  grid-area: 2 / 5;
  justify-self: center;
}

.flow-list > li:nth-child(7) {
  grid-area: 3 / 5;
}

.flow-list > li:nth-child(8) {
  grid-area: 3 / 4;
}

.flow-list > li:nth-child(9) {
  grid-area: 3 / 3;
}

.flow-list > li:nth-child(10) {
  grid-area: 3 / 2;
}

.flow-list > li:nth-child(11) {
  grid-area: 3 / 1;
}

.flow-step {
  padding: 20px 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px rgba(43, 58, 85, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.flow-no {
  display: block;
  color: var(--color-primary-start);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.flow-step h3 {
  margin-top: 8px;
  font-size: 1rem;
}

.flow-step p {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* 流程箭头：默认向下，桌面按方向旋转 */

.flow-arrow {
  position: relative;
  align-self: center;
  width: 24px;
  height: 24px;
  color: var(--color-primary-start);
  opacity: 0.5;
}

.flow-arrow::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: currentColor;
  -webkit-mask: url("../../assets/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../../assets/icons/arrow-right.svg") center / contain no-repeat;
  transform: rotate(90deg);
}

.flow-arrow--right::before {
  transform: rotate(0deg);
}

.flow-arrow--left::before {
  transform: rotate(180deg);
}

.flow-note {
  margin-top: 28px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .anchor-bar {
    top: 66px;
  }

  .services-section {
    padding-top: 36px;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 0 28px;
    scroll-margin-top: 130px;
  }

  .flow-list {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .flow-list > li:nth-child(n) {
    grid-area: auto;
  }

  .flow-arrow {
    justify-self: center;
  }

  .flow-arrow::before,
  .flow-arrow--right::before,
  .flow-arrow--left::before,
  .flow-arrow--down::before {
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .service-points {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* 业务页顶部：右侧聚光，左侧保留暖白阅读区。 */
.services-head {
  --services-glow: #DFE8FF;
  background: radial-gradient(ellipse at 94% 35%, var(--services-glow) 0%, var(--color-primary-soft) 25%, var(--color-bg) 72%);
}
.services-head-emphasis {
  color: var(--color-primary-start);
  background: linear-gradient(110deg, var(--color-primary-start), var(--color-primary-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 639px) {
  .services-head { background: radial-gradient(ellipse at 100% 0%, var(--services-glow), var(--color-primary-soft) 18%, var(--color-bg) 65%); }
}
