﻿:root {
  --blue-950: #061b4f;
  --blue-900: #0b2f86;
  --blue-700: #0d56d9;
  --blue-500: #1876ff;
  --blue-100: #eaf4ff;
  --sky-50: #f5fbff;
  --amber: #f7b500;
  --green: #0f9b63;
  --red: #e42f3d;
  --purple: #6334c7;
  --ink: #111827;
  --muted: #5c6473;
  --line: #d8e4f7;
  --surface: #ffffff;
  --shadow: 0 18px 44px rgba(14, 59, 132, 0.14);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 94% 0%, rgba(24, 118, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 34%, #f2f7ff 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 228, 247, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 8px 18px rgba(13, 86, 217, 0.24);
}

.brand-mark svg {
  width: 1.75rem;
  height: 1.75rem;
}

.logo-badge {
  color: #fff;
  background: linear-gradient(145deg, #1d63e6 0%, #0b2f86 58%, #061b4f 100%);
  box-shadow: 0 14px 28px rgba(13, 86, 217, 0.24);
}

.logo-badge svg {
  width: 72%;
  height: 72%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-900);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
}

.site-nav a:hover {
  background: var(--blue-100);
}

.hero-section,
.action-grid,
.content-section,
.visual-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 3.2rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  padding-top: clamp(0.9rem, 2vw, 1.75rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2.35rem, 4.2vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 690px;
  margin: 1.4rem 0 0;
  color: #303846;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
}

.hero-actions,
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-weight: 900;
  line-height: 1.2;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 12px 24px rgba(13, 86, 217, 0.22);
}

.button-secondary {
  color: var(--blue-900);
  background: #fff;
  border-color: var(--line);
}

.trust-strip {
  margin-top: 1.2rem;
}

.trust-strip span {
  padding: 0.45rem 0.7rem;
  color: var(--blue-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-self: center;
  overflow: visible;
  border-radius: 1rem;
}

.hero-media img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 680px);
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1rem 0 3rem;
}

.action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.action-panel h2,
.section-heading h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.action-panel p,
.section-heading p,
.assurance-grid p,
.project-grid p,
.step-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 0.8rem;
}

.contact-list dt {
  color: var(--muted);
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  color: var(--blue-950);
  font-weight: 900;
}

.copy-button {
  padding: 0;
  color: var(--blue-700);
  font: inherit;
  font-weight: 900;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.qr-box,
.card-preview,
.visual-section {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.qr-box {
  padding: 0.75rem;
  text-align: center;
}

.qr-box img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-box figcaption {
  margin-top: 0.55rem;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 900;
}

.card-preview img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.content-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.recommended-grid,
.step-grid,
.assurance-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.recommended-packages {
  padding-top: 1rem;
}

.recommended-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recommended-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.recommended-image {
  padding: 0.75rem 0.75rem 0;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.recommended-image img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 0.7rem;
}

.recommended-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.carrier-tag {
  align-self: flex-start;
  padding: 0.3rem 0.6rem;
  color: #fff;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.recommended-red .carrier-tag {
  background: var(--red);
}

.recommended-purple .carrier-tag {
  background: var(--purple);
}

.recommended-green .carrier-tag {
  background: var(--green);
}

.recommended-body h3 {
  margin: 0.85rem 0 0.25rem;
  color: var(--blue-950);
  font-size: 1.45rem;
}

.recommended-price {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.75rem;
  font-weight: 900;
}

.recommended-body ul {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 1.1rem;
  padding: 0;
  color: #303846;
  list-style: none;
}

.recommended-body li {
  padding-top: 0.4rem;
  border-top: 1px solid #edf3fb;
}

.recommended-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: auto;
}

.recommended-actions .button {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
}

.step-grid article,
.assurance-grid article,
.project-grid article,
.faq-item {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: 0 12px 30px rgba(14, 59, 132, 0.09);
}

.step-grid h3,
.assurance-grid h3,
.project-grid h3 {
  margin: 0.85rem 0 0.4rem;
  color: var(--blue-950);
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-grid span {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: #fff;
  background: var(--blue-700);
  border-radius: 50%;
  font-weight: 900;
}

.assurance-grid,
.project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid article {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-grid a,
.project-grid span {
  display: inline-flex;
  margin-top: 0.7rem;
  color: var(--blue-700);
  font-weight: 900;
}

.project-grid a:hover {
  text-decoration: underline;
}

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

.faq-item {
  padding: 1rem 1.25rem 1.1rem;
}

.visual-section {
  margin-bottom: 3rem;
}

.visual-section img {
  width: 100%;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: #dce8ff;
  background: var(--blue-950);
}

.site-footer p {
  width: min(1180px, 100%);
  margin: 0 auto;
  line-height: 1.7;
}

.site-footer p + p {
  margin-top: 0.5rem;
  color: #b7c7e6;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--blue-950);
  border-radius: 0.6rem;
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero-section,
  .action-grid,
  .recommended-grid,
  .step-grid,
  .assurance-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .action-panel {
    grid-template-columns: 1fr;
  }

  .qr-box {
    max-width: 260px;
  }

  .wechat-quick-grid {
    grid-template-columns: 1fr;
  }

  .recommended-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.46fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .recommended-image {
    padding: 0.75rem;
  }

  .recommended-image img {
    height: 100%;
    max-height: 360px;
  }
}

@media (max-width: 560px) {
  .hero-section,
  .action-grid,
  .content-section,
  .visual-section {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    padding: 0.85rem;
  }

  .site-nav a {
    padding: 0.55rem 0.65rem;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-actions .button {
    width: 100%;
  }

  .recommended-card {
    display: flex;
  }

  .recommended-image img {
    max-height: none;
  }

  .recommended-actions {
    grid-template-columns: 1fr;
  }

  .contact-list div {
    grid-template-columns: 3.5rem 1fr;
  }
}


/* ---- TOP rank badge ---- */
.top-ranked { position: relative; overflow: visible; }

.rank-badge {
  position: absolute;
  top: -8px; left: -8px;
  z-index: 10;
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  color: #fff;
  font-size: 0.82rem; font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
}

.rank-1 {
  background: linear-gradient(135deg, #ff2d2d, #b80000);
  box-shadow: 0 4px 14px rgba(200,0,0,0.35);
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.rank-2 { background: linear-gradient(135deg, #ff8800, #cc5500); }
.rank-3 { background: linear-gradient(135deg, #f7b500, #cc8800); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(200,0,0,0.35); }
  50% { box-shadow: 0 4px 24px rgba(200,0,0,0.55), 0 0 0 4px rgba(200,0,0,0.10); }
}

.rank-label {
  font-size: 0.7rem; font-weight: 700;
  color: var(--muted); vertical-align: baseline;
}

.more-packages-hint {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.more-packages-hint a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: underline;
}
.more-packages-hint a:hover { text-decoration: none; }

/* ── Interactive polish ── */
* { -webkit-tap-highlight-color: transparent; }

.button {
  transition: all 0.25s ease;
}
.button-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(13, 86, 217, 0.30);
}
.button-secondary:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
  transform: translateY(-1px);
}

.recommended-card {
  transition: transform 0.35s cubic-bezier(.17,.67,.35,1.1), box-shadow 0.35s ease;
  will-change: transform;
}
.recommended-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(14, 59, 132, 0.20);
}

.step-grid span { transition: transform 0.25s ease; }
.step-grid article:hover span { transform: scale(1.15); }

.action-panel { transition: box-shadow 0.3s ease; }
.action-panel:hover { box-shadow: 0 20px 48px rgba(14, 59, 132, 0.18); }

.site-footer {
  padding: 2.4rem clamp(1rem, 4vw, 4rem);
  color: #dce8ff;
  background: linear-gradient(135deg, var(--blue-950) 0%, #0a1a40 100%);
}
.site-footer p {
  width: min(1180px, 100%);
  margin: 0 auto;
  line-height: 1.7;
}
.site-footer p + p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #96aad4;
}

.toast {
  animation: toast-in 0.35s ease both;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Comparison table ── */
.compare-section { padding-top: 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(14, 59, 132, 0.09);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

.compare-table th {
  position: sticky;
  top: 0;
  padding: 0.8rem 0.6rem;
  background: var(--blue-950);
  color: #fff;
  text-align: left;
  font-weight: 900;
  white-space: nowrap;
}

.compare-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid #edf3fb;
  vertical-align: middle;
}

.compare-table tr:hover td { background: var(--blue-100); }

.compare-table .tr-top td { background: #fff7f0; }
.compare-table .tr-top:hover td { background: #ffefe5; }

.td-name { font-weight: 900; color: var(--blue-950); }

.tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}
.tag.good { background: #dcfce7; color: #166534; }
.tag.normal { background: #eef2ff; color: #3730a3; }

.table-link {
  color: var(--blue-700);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.table-link:hover { text-decoration: underline; }

/* ── Floating WeChat button ── */
.float-wechat {
  position: fixed;
  right: 1.2rem;
  bottom: 2rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, #07c160, #06ad56);
  border-radius: 2rem;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.35);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: float-bob 3s ease-in-out infinite;
}
.float-wechat:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(7, 193, 96, 0.45);
}

.float-wechat-icon { font-size: 1.3rem; line-height: 1; }
.float-wechat-text { font-size: 0.95rem; font-weight: 900; white-space: nowrap; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 560px) {
  .float-wechat { right: 0.8rem; bottom: 1rem; padding: 0.55rem 0.85rem; }
  .float-wechat-text { font-size: 0.85rem; }
}

/* ── FAQ section ── */
.faq-grid {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 12px 28px rgba(14, 59, 132, 0.12);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--blue-950);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--blue-700);
  font-weight: 300;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  margin: 0.7rem 0 0;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  transition: max-height 0.3s ease, margin 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 200px;
}

/* ── Detail pages ── */
.detail-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 4rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1rem 0 2rem;
}

.detail-panel {
  padding: 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.detail-panel h2 {
  margin: 0 0 0.8rem;
  color: var(--blue-950);
  font-size: 1.45rem;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-top: 0.75rem;
  border-top: 1px solid #edf3fb;
}

.detail-list strong {
  color: var(--blue-950);
}

.profile-card {
  display: grid;
  gap: 1rem;
}

.wechat-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  min-height: 6.5rem;
  background: linear-gradient(135deg, rgba(13, 86, 217, 0.09), rgba(13, 86, 217, 0.03));
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.wechat-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
}

.wechat-highlight-copy {
  min-width: 0;
}

.wechat-highlight-copy strong {
  display: block;
  color: var(--blue-950);
  font-size: 1.05rem;
}

.wechat-highlight-copy span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
}

.wechat-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.wechat-quick-card {
  min-height: 8.6rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.96));
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 12px 26px rgba(11, 47, 134, 0.08);
}

.wechat-quick-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue-950);
  font-size: 0.98rem;
}

.wechat-quick-card span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.profile-meta strong {
  display: block;
  color: var(--blue-950);
  font-size: 1.05rem;
}

.profile-meta small {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.detail-note {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.service-points {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.service-point {
  padding: 0.95rem 1rem;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.service-point strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--blue-950);
}
