:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --sky-deeper: #0c4a6e;
  --sky-mid: #38bdf8;
  --sky-light: #f0f9ff;
  --green-like: #0ea5e9;
  --text: #222;
  --text-dark: #161922;
  --muted: #666;
  --white: #fff;
  --bg: #f2f2f2;
  --max: 1180px;
  --header-h: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  padding-bottom: 70px;
}

a {
  color: var(--sky-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
}

/* ===== Top action bar (ytt style) ===== */
.action-bar {
  background: var(--sky-dark);
  color: #fff;
  font-size: 14px;
}

.action-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.action-bar a {
  color: #fff;
}

.action-bar .phones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.action-bar .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
}

.action-bar .links a:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--sky);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo {
  color: var(--sky-deeper);
  font-weight: 700;
  line-height: 1.3;
}

.logo .name {
  font-size: 1.1rem;
  display: block;
}

.logo .tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sky-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 4px;
}

.nav a {
  color: #333;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 10px 12px;
}

.nav a:hover {
  color: var(--sky-deeper);
}

.nav-phone {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 8px 4px !important;
  color: var(--sky-deeper) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
}

.nav-phone .phone-ico {
  flex-shrink: 0;
  color: var(--sky);
}

.nav-phone:hover {
  color: var(--sky) !important;
  border-bottom-color: var(--sky);
  background: transparent !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--sky-light);
  color: var(--sky-deeper);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  font-size: 1.35rem;
  cursor: pointer;
}

/* ===== Subheader / Hero ===== */
.subheader {
  position: relative;
  min-height: 320px;
  height: 36vw;
  max-height: 420px;
  display: flex;
  align-items: center;
  background: #0c4a6e center center / cover no-repeat;
  overflow: hidden;
}

.subheader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 74, 110, 0.78) 0%,
    rgba(2, 132, 199, 0.45) 45%,
    rgba(14, 165, 233, 0.2) 100%
  );
}

.subheader-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
  padding: 36px 0;
}

.subheader-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.subheader h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.subheader-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* ===== Tip bar (ytt #top_tips_bar) ===== */
.tip-bar {
  background: var(--sky);
  color: #fff;
  text-align: center;
  padding: 22px 16px 26px;
}

.tip-bar h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tip-bar p {
  opacity: 0.95;
  margin-bottom: 16px;
  font-size: 1rem;
}

.tip-bar .btn-white {
  display: inline-block;
  background: #fff !important;
  color: var(--sky-dark) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tip-bar .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===== Main content white panel ===== */
.main-panel {
  background: #fff;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px 40px;
}

@media (min-width: 900px) {
  .main-panel {
    padding: 36px 40px 50px;
  }
}

/* ===== Section title (ytt fancy_heading) ===== */
.section-title {
  text-align: center;
  margin: 10px 0 28px;
}

.section-title h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sky-deeper);
  display: inline-block;
  position: relative;
  padding: 0 40px 12px;
}

.section-title h2::before,
.section-title h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--sky);
}

.section-title h2::before {
  left: 0;
}

.section-title h2::after {
  right: 0;
}

.section-title p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ===== Service cards: image top, text below (not squashed side-by-side) ===== */
.flat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.flat-box {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8f0f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(12, 74, 110, 0.06);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.35s ease, box-shadow 0.3s ease;
}

.flat-box.is-visible {
  opacity: 1;
  transform: none;
}

.flat-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.18);
}

.flat-box .photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #dbeafe;
}

.flat-box .photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.flat-box:hover .photo img {
  transform: scale(1.06);
}

.flat-box .badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 74, 110, 0.88);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

.flat-box .badge svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.flat-box .desc {
  padding: 18px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flat-box .desc h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sky-deeper);
  margin-bottom: 10px;
  line-height: 1.4;
}

.flat-box .desc p {
  font-size: 0.95rem;
  color: #445;
  line-height: 1.65;
  flex: 1;
}

/* ===== Layout: content + sidebar ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px 40px;
}

.content-main {
  background: #fff;
  padding: 28px 24px 36px;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #fff;
  border-top: 3px solid var(--sky);
  box-shadow: 0 0 5px 1px rgba(80, 80, 80, 0.35);
  padding: 18px 16px 20px;
}

.sidebar-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}

/* ===== Why / process strips ===== */
.strip {
  max-width: var(--max);
  margin: 0 auto 24px;
  padding: 0 12px;
}

.strip-inner {
  background: #fff;
  padding: 28px 24px;
}

.why-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-item {
  text-align: left;
  padding: 0;
  border: 1px solid #e8f0f5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(12, 74, 110, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.why-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.14);
}

/* 强制矮图：容器定高，图 cover 裁切 */
.why-photo {
  position: relative;
  width: 100%;
  height: 100px;
  max-height: 100px;
  overflow: hidden;
  background: #dbeafe;
  flex-shrink: 0;
}

.why-photo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.why-item:hover .why-photo img {
  transform: scale(1.04);
}

.why-photo .icon {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.why-body {
  padding: 10px 12px 12px;
  flex: 1;
}

.why-item h3 {
  font-size: 0.95rem;
  color: var(--sky-deeper);
  margin: 0 0 4px;
  line-height: 1.3;
}

.why-item p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.step {
  text-align: center;
  padding: 16px 10px;
  border: 1px solid #e8f4fc;
  border-radius: 4px;
  background: var(--sky-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.12);
}

.step .num {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step h3 {
  font-size: 1rem;
  color: var(--sky-deeper);
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ===== Form ===== */
.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #222;
}

.form-row .req {
  color: #e11d48;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #bfbfbf;
  border-radius: 3px;
  font: inherit;
  background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: #fffbde;
}

.form-row textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row.hidden {
  display: none;
}

.btn-submit {
  display: inline-block;
  min-width: 150px;
  background: var(--sky);
  color: #fff;
  border: 1px solid var(--sky-dark);
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--sky-dark);
}

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

.form-msg {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 0.9rem;
  background: #eaf8ef;
  color: #3a8b5b;
  border: 1px solid #b7e4c7;
}

.form-msg.show {
  display: block;
}

.form-msg.error {
  background: #fae9e8;
  color: #962317;
  border-color: #f5c2c0;
}

.contact-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-block strong {
  color: var(--sky-deeper);
}

.contact-block a {
  color: var(--sky-dark);
  font-weight: 600;
}

.qr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.qr-row-one {
  grid-template-columns: 1fr;
  max-width: 180px;
}

.qr-ph {
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  padding: 16px 8px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  background: #f8fafc;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.qr-ph strong {
  color: var(--sky-deeper);
  font-size: 0.88rem;
}

/* ===== Footer (ytt green footer → sky) ===== */
.site-footer {
  background: #5f8fa8;
  color: #fff;
}

.footer-action {
  background: #7db8d4;
  text-align: center;
  padding: 28px 16px 32px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-action h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.footer-action h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 4px 0;
}

.footer-action a {
  color: #fff;
}

.footer-action .btn-eval {
  display: inline-block;
  margin-top: 14px;
  background: var(--sky-deeper);
  color: #fff;
  padding: 11px 26px;
  border-radius: 4px;
  font-weight: 700;
}

.footer-action .btn-eval:hover {
  background: #083344;
}

.footer-copy {
  background: #4a7a92;
  text-align: center;
  padding: 18px 12px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy a {
  color: #fff;
}

/* ===== Mobile bottom bar ===== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 0 4px 1px #ececec;
  grid-template-columns: 1fr 1fr;
  height: 70px;
}

.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  border-right: 1px solid #f0f0f0;
}

.mobile-bar a:last-child {
  border-right: 0;
  color: var(--sky-dark);
}

.mobile-bar a .ic {
  font-size: 20px;
  line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .why-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .action-bar {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 14px;
    border-bottom: 2px solid var(--sky);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
  }

  .nav-phone {
    margin: 8px 0 0 !important;
    text-align: center;
  }

  .subheader {
    height: auto;
    min-height: 200px;
    max-height: none;
  }

  .subheader h1 {
    font-size: 1.75rem;
  }

  .flat-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flat-box .photo img {
    height: 200px;
  }

  .nav-phone {
    margin-left: 0 !important;
    justify-content: flex-start;
  }

  .why-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .content-main,
  .strip-inner {
    padding: 20px 14px;
  }

  .mobile-bar {
    display: grid;
  }

  .logo .name {
    font-size: 0.95rem;
  }

  body,
  .flat-box .desc p {
    font-size: 17px;
    line-height: 1.6;
  }
}

/* ===== Detail pages ===== */
.page-detail {
  background: var(--bg);
}

.detail-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: #0c4a6e center/cover no-repeat;
  color: #fff;
  padding: 40px 0 36px;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 74, 110, 0.35) 0%, rgba(12, 74, 110, 0.88) 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  opacity: 0.95;
}

.breadcrumb a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb span {
  opacity: 0.85;
}

.detail-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.detail-lead {
  font-size: 1.05rem;
  max-width: 40em;
  opacity: 0.95;
  margin-bottom: 20px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff !important;
  font-weight: 700;
  background: transparent;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.detail-side .btn-ghost {
  border-color: var(--sky);
  color: var(--sky-deeper) !important;
}

.detail-side .btn-ghost:hover {
  background: var(--sky-light);
}

.btn-submit.block,
.btn-ghost.block {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 20px;
}

.detail-main {
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px 32px;
  box-shadow: 0 2px 14px rgba(12, 74, 110, 0.06);
}

.detail-sec {
  margin-bottom: 28px;
}

.detail-sec:last-child {
  margin-bottom: 0;
}

.detail-sec h2 {
  font-size: 1.25rem;
  color: var(--sky-deeper);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sky-mid);
}

.detail-sec p {
  color: #333;
  line-height: 1.75;
  margin-bottom: 10px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid #f0f4f8;
  color: #333;
  line-height: 1.55;
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 11.2L3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5z'/%3E%3C/svg%3E") center/12px no-repeat;
}

.detail-note {
  margin-top: 14px !important;
  padding: 12px 14px;
  background: var(--sky-light);
  border-left: 3px solid var(--sky);
  font-size: 0.92rem;
  color: #445 !important;
}

.detail-steps {
  grid-template-columns: repeat(4, 1fr);
}

.detail-steps .step h3 {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.official-link {
  display: inline-flex;
  font-weight: 700;
  color: var(--sky-dark);
  border-bottom: 1px solid var(--sky);
}

.sticky-card {
  position: sticky;
  top: 100px;
}

.side-text {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.55;
}

.side-hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

.side-meta {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

.related-sec {
  padding: 10px 12px 40px;
}

.related-sec h2 {
  font-size: 1.25rem;
  color: var(--sky-deeper);
  margin-bottom: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e8f0f5;
  border-radius: 10px;
  padding: 16px;
  color: var(--sky-deeper);
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sky);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.12);
  color: var(--sky-dark);
}

.back-home {
  margin-top: 18px;
}

.back-home a {
  font-weight: 700;
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Homepage card as link */
a.flat-box {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.flat-box .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sky-dark);
}

a.flat-box:hover .more {
  color: var(--sky);
}

a.flat-box .more span {
  transition: transform 0.2s;
}

a.flat-box:hover .more span {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }

  .detail-steps {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .detail-main {
    padding: 20px 16px;
  }

  .detail-steps {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: 260px;
  }
}

/* ===== Anchor offset (sticky header) ===== */
.section-anchor {
  scroll-margin-top: 100px;
}

#top {
  scroll-margin-top: 0;
}

/* full-width services on homepage */
.services-full {
  max-width: var(--max);
  margin: 0 auto;
}

.services-full .flat-grid {
  grid-template-columns: repeat(2, 1fr);
}

.services-cta {
  text-align: center;
  margin-top: 28px;
}

/* contact panel */
.contact-panel .contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item {
  background: var(--sky-light);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}

.contact-item h3 {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sky-deeper);
  word-break: break-all;
}

.contact-item a {
  color: var(--sky-deeper);
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-outline-sky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 4px;
  border: 2px solid var(--sky);
  color: var(--sky-dark) !important;
  font-weight: 700;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-sky:hover {
  background: var(--sky);
  color: #fff !important;
}

/* enquiry page */
.enquiry-hero {
  min-height: 220px;
}

.enquiry-page-wrap {
  padding: 28px 12px 40px;
}

.enquiry-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.enquiry-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px;
  box-shadow: 0 2px 14px rgba(12, 74, 110, 0.08);
  border-top: 3px solid var(--sky);
}

.enquiry-form-card h2 {
  font-size: 1.4rem;
  color: var(--sky-deeper);
  margin-bottom: 8px;
}

.enquiry-form-card .form-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.enquiry-side .sidebar-card {
  margin-bottom: 0;
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-links li {
  border-bottom: 1px solid #eee;
}

.side-links a {
  display: block;
  padding: 12px 4px;
  font-weight: 700;
  color: var(--sky-deeper);
}

.side-links a:hover {
  color: var(--sky);
}

.nav a.is-active {
  color: var(--sky-deeper);
  border-bottom: 2px solid var(--sky);
}

@media (max-width: 900px) {
  .contact-panel .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .enquiry-grid {
    grid-template-columns: 1fr;
  }

  .services-full .flat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {

  .why-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .why-photo {
    height: 72px !important;
    max-height: 72px !important;
  }
  .why-body {
    padding: 8px 8px 10px !important;
  }
  .why-item h3 {
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
  }
  .why-item p {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2;
  }
  .why-photo .icon {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.65rem !important;
    left: 6px !important;
    bottom: 6px !important;
  }
  #why .strip-inner {
    padding: 16px 10px !important;
  }

  .section-anchor {
    scroll-margin-top: 80px;
  }

  .contact-panel .contact-grid {
    grid-template-columns: 1fr;
  }
}

.wx-id {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sky-deeper);
  word-break: break-all;
}
.logo .tag { display: none; }


@media (max-width: 1023px) {
  .why-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .why-photo {
    height: 88px !important;
    max-height: 88px !important;
  }
}
@media (min-width: 1024px) {
  .why-photo {
    height: 100px;
    max-height: 100px;
  }
}

/* ===== 我们的服务 ===== */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #e8f0f5;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(12, 74, 110, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.12);
  border-color: #bae6fd;
  color: inherit;
}

.offer-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.offer-card h3 {
  font-size: 0.98rem;
  color: var(--sky-deeper);
  margin: 0;
  line-height: 1.3;
}

.offer-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* ===== 办理流程：横条 / 手机时间线 ===== */
.process-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: none;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 12px 4px;
  min-width: 0;
}

/* connector line between steps (desktop) */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #bae6fd;
  z-index: 0;
}

.process-num {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
  flex-shrink: 0;
}

.process-text h3 {
  font-size: 0.95rem;
  color: var(--sky-deeper);
  margin: 0 0 4px;
  line-height: 1.3;
}

.process-text p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .offer-card {
    padding: 12px 10px;
  }
  .offer-ico {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .offer-card h3 {
    font-size: 0.88rem;
  }
  .offer-card p {
    font-size: 0.72rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 手机：竖时间线，紧凑 */
  .process-line {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 4px;
  }
  .process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 14px 0;
    gap: 12px;
  }
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    left: 15px;
    right: auto;
    width: 2px;
    height: calc(100% - 28px);
    background: #bae6fd;
  }
  .process-step:last-child {
    padding-bottom: 0;
  }
  .process-num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  .process-text h3 {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }
  .process-text p {
    font-size: 0.75rem;
  }
  #process .strip-inner {
    padding: 18px 14px !important;
  }
  #our-services .strip-inner {
    padding: 18px 12px !important;
  }
}

.contact-item-wide {
  grid-column: 1 / -1;
}
.contact-item-wide p {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}
.footer-addr {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  max-width: 36em;
  margin: 8px auto 0 !important;
  line-height: 1.5 !important;
  opacity: 0.95;
}
