/* Service page (PbootCMS contenttpl) */

:root {
  --s-bg: #f6f8fc;
  --s-text: #0f172a;
  --s-muted: #64748b;
  --s-border: rgba(15, 23, 42, 0.12);
  --s-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --s-blue: #00327e;
  --s-blue2: #00255e;
  --s-w-black: 800;
  --s-w-bold: 700;
  --s-w-semi: 600;
  --s-w-med: 500;
}

body.page-service {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--s-text);
  background: var(--s-bg);
}

@media (min-width: 1600px) {
  body.page-service {
    zoom: min(1.75, max(1, 100vw / 1760));
  }
}

.page-service .container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: clamp(12px, 3vw, 32px);
  padding-right: clamp(12px, 3vw, 32px);
}

@media (min-width: 1200px) {
  .page-service .container {
    max-width: 75%;
  }
}

@media (min-width: 2000px) {
  .page-service .container {
    max-width: min(1820px, 80vw);
    padding-left: clamp(16px, 3.2vw, 44px);
    padding-right: clamp(16px, 3.2vw, 44px);
  }
}

@media (min-width: 2600px) {
  .page-service .container {
    max-width: min(2160px, 84vw);
  }
}

/* ---------- Hero ---------- */
.s-hero {
  position: relative;
  padding-top: calc(var(--landing-header-height, 80px) + clamp(28px, 3.2vw, 56px));
  padding-bottom: clamp(24px, 3vw, 48px);
  background:
    radial-gradient(900px 500px at 70% 30%, rgba(0, 50, 126, 0.14) 0%, rgba(0, 50, 126, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #edf0f7 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.s-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  pointer-events: none;
  z-index: 1;
}

.s-hero > .container {
  position: relative;
  z-index: 2;
}

.s-hero__bg {
  width: 100%;
  height: auto;
  display: block;
}

/* Image-based hero: full-width image, auto height, text vertically centered */
.s-hero--img {
  display: grid;
  grid-template-areas: "stack";
  padding-top: 0;
  padding-bottom: 0;
  background: none;
}

.s-hero--img .s-hero__bg { grid-area: stack; }
.s-hero--img::before { grid-area: stack; }

.s-hero--img > .container {
  grid-area: stack;
  padding-top: calc(var(--landing-header-height, 80px) + clamp(28px, 3.2vw, 56px));
  padding-bottom: clamp(24px, 3vw, 48px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767px) {
  .s-hero--img {
    min-height: 240px;
  }

  .s-hero--img .s-hero__bg {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.s-breadcrumb {
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(255, 255, 255, 0.85);
}

.s-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.s-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.s-title {
  margin: clamp(10px, 1.2vw, 14px) 0 0;
  font-weight: var(--s-w-black);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.s-subtitle {
  margin: 10px 0 0;
  max-width: 62rem;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 10px 22px rgba(2, 6, 23, 0.35);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

/* ---------- Sections ---------- */
.s-section {
  padding: clamp(26px, 3.2vw, 56px) 0;
}

.s-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 28px);
}

.s-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.s-card__inner {
  padding: clamp(18px, 2vw, 28px);
}

.s-h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: var(--s-w-black);
  color: var(--s-text);
}

.s-divider {
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: var(--s-blue);
  opacity: 0.95;
  margin: 12px 0 18px;
}

.s-rich {
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
  word-break: break-word;
}

.s-rich img {
  max-width: 100%;
  height: auto;
}

/* 概览：缩略图 + 正文（与 About 页一致的结构） */
.s-intro {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
  grid-template-columns: 1fr;
  align-items: start;
}

.s-intro__media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(0, 50, 126, 0.08) 0%, rgba(15, 23, 42, 0.03) 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.s-intro__media.is-hidden {
  display: none !important;
}

.s-intro__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vh, 480px);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 900px) {
  .s-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  }

  .s-intro:has(.s-intro__media.is-hidden) {
    grid-template-columns: 1fr;
  }
}

.s-gallery {
  display: none;
  margin-top: clamp(20px, 2.8vw, 36px);
  padding-top: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.s-gallery:has(.s-gallery__item) {
  display: grid;
}

.s-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.s-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 快速联系条 */
.s-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

@media (min-width: 768px) {
  .s-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.s-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 22px);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.2s ease;
}

@media (min-width: 768px) {
  .s-strip__item {
    border-bottom: 0;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
  }

  .s-strip__item:last-child {
    border-right: 0;
  }
}

.s-strip__item:last-child {
  border-bottom: 0;
}

.s-strip__item:not(.s-strip__item--static):hover {
  background: rgba(0, 50, 126, 0.04);
}

.s-strip__item--static {
  cursor: default;
}

.s-strip__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 50, 126, 0.12);
  color: var(--s-blue);
}

.s-strip__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.s-strip__k {
  font-size: 12px;
  font-weight: var(--s-w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-muted);
}

.s-strip__v {
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: var(--s-w-semi);
  color: var(--s-text);
  word-break: break-word;
}

.s-grid {
  margin-top: clamp(14px, 2.2vw, 22px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.8vw, 18px);
}

@media (min-width: 768px) {
  .s-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .s-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.s-feature {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px 16px;
  background: rgba(246, 248, 252, 0.55);
}

.s-feature__k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 50, 126, 0.12);
  color: var(--s-blue);
  margin-bottom: 10px;
}

.s-feature__t {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: var(--s-w-bold);
  color: var(--s-text);
}

.s-feature__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--s-muted);
}

@media (hover: hover) and (pointer: fine) {
  .s-feature {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .s-feature:hover {
    border-color: rgba(0, 50, 126, 0.22);
    box-shadow: 0 10px 28px rgba(0, 50, 126, 0.1);
  }
}

.s-steps {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.8vw, 16px);
}

@media (min-width: 900px) {
  .s-steps--timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 16px);
    position: relative;
  }
}

.s-step {
  position: relative;
  background: rgba(246, 248, 252, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px 16px 16px 16px;
}

@media (min-width: 900px) {
  .s-steps--timeline .s-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 50, 126, 0.35), rgba(0, 50, 126, 0.08));
    pointer-events: none;
  }
}

.s-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--s-blue);
  color: #fff;
  font-size: 15px;
  font-weight: var(--s-w-black);
  line-height: 1;
}

.s-step__t {
  margin: 0 0 8px;
  font-weight: var(--s-w-bold);
  color: var(--s-text);
  font-size: 16px;
}

.s-step__d {
  margin: 0;
  color: var(--s-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ */
.s-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s-faq__item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(246, 248, 252, 0.45);
  overflow: hidden;
}

.s-faq__q {
  padding: 14px 44px 14px 16px;
  font-weight: var(--s-w-bold);
  font-size: 15px;
  line-height: 1.45;
  color: var(--s-text);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.s-faq__q::-webkit-details-marker {
  display: none;
}

.s-faq__q::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--s-blue);
  transition: transform 0.2s ease;
}

.s-faq__item[open] .s-faq__q::after {
  transform: translateY(-50%) rotate(180deg);
}

.s-faq__q:focus-visible {
  outline: 2px solid var(--s-blue);
  outline-offset: 2px;
}

.s-faq__a {
  padding: 0 16px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.s-faq__a p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--s-muted);
}

/* 底部 CTA */
.s-cta {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(0, 50, 126, 0.12) 0%, rgba(0, 50, 126, 0) 55%),
    linear-gradient(180deg, #fff 0%, #eef1f8 100%);
  box-shadow: 0 12px 34px rgba(0, 50, 126, 0.08);
  overflow: hidden;
}

.s-cta__inner {
  padding: clamp(22px, 3vw, 36px) clamp(18px, 2.4vw, 32px);
  text-align: center;
}

.s-cta__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--s-w-black);
  color: var(--s-blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.s-cta__lead {
  margin: 0 auto 20px;
  max-width: 40rem;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--s-muted);
}

.s-actions--cta {
  justify-content: center;
}

.s-actions {
  margin-top: clamp(16px, 2.4vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.s-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: var(--s-w-black);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
}

.s-btn--primary {
  background: var(--s-blue);
  color: #fff;
}

.s-btn--primary:hover {
  background: var(--s-blue2);
}

.s-btn--ghost {
  background: rgba(0, 50, 126, 0.08);
  color: var(--s-blue);
}

.s-btn--ghost:hover {
  background: rgba(0, 50, 126, 0.12);
}

