:root {
  --ink: #13212f;
  --paper: #f9f5ef;
  --accent: #d95f32;
  --accent-2: #1d7f72;
  --line: #d8ccbf;
  --card: #fffdf9;
  --shadow: 0 14px 34px rgba(13, 28, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(217, 95, 50, 0.18), transparent 44%),
    radial-gradient(circle at 84% 11%, rgba(29, 127, 114, 0.16), transparent 40%),
    var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3,
.brand {
  font-family: "Noto Serif SC", "Songti SC", serif;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  min-height: 88vh;
  padding-bottom: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand {
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

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

.wechat-nav {
  background: linear-gradient(90deg, #15b576, #1b9a67);
  color: #fff !important;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(21, 181, 118, 0.28);
}

.xianyu-nav {
  background: linear-gradient(90deg, #ff8f21, #ff6d00);
  color: #fff !important;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 109, 0, 0.26);
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.lang-switch {
  border: 1px solid var(--line);
  background: #ffffffb8;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
}

.page-en {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.page-en h1,
.page-en h2,
.page-en h3,
.page-en .brand {
  font-family: "Fraunces", Georgia, serif;
}

.hero-content {
  padding-top: 28px;
  animation: rise 0.85s ease both;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.hero-copy {
  border: 1px solid rgba(216, 204, 191, 0.9);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 255, 255, 0.92));
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 38px rgba(19, 33, 47, 0.08);
}

.hero-aside {
  border: 1px solid rgba(141, 217, 188, 0.9);
  background: linear-gradient(180deg, rgba(239, 255, 248, 0.95), rgba(255, 255, 255, 0.95));
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 38px rgba(16, 173, 109, 0.09);
  display: grid;
  gap: 12px;
  width: min(100%, 860px);
}

.hero-aside-title {
  color: #0f6d49;
  font-weight: 700;
  font-size: 0.98rem;
}

.eyebrow {
  display: inline-block;
  background: #ffffffad;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.86rem;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2rem, 4.3vw, 4rem);
  letter-spacing: 0.01em;
}

.lead {
  max-width: 720px;
  font-size: clamp(1rem, 2vw, 1.22rem);
  margin-top: 16px;
}

.hero-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: #294050;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8f21, #10ad6d);
}

.quick-links-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.xianyu-highlight {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #fff2e5, #fff8f1);
  border: 1px solid #ffc58e;
  border-radius: 999px;
  padding: 8px 14px;
}

.xianyu-highlight span {
  font-size: 0.92rem;
  color: #9a4d00;
}

.xianyu-highlight a {
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #ff8f21, #ff6d00);
  border-radius: 999px;
  padding: 6px 12px;
}

.wechat-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #8dd9bc;
  background: linear-gradient(90deg, #effff8, #f8fffc);
  border-radius: 999px;
  padding: 8px 10px;
}

.wechat-inline-text {
  color: #0f6d49;
  font-weight: 700;
  font-size: 0.92rem;
}

.wechat-inline-btn,
.wechat-inline-open {
  border-radius: 999px;
  border: 1px solid #82d6b4;
  padding: 5px 10px;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
}

.wechat-inline-btn {
  background: #e9faef;
  color: #0f6d49;
}

.wechat-inline-open {
  background: linear-gradient(90deg, #10ad6d, #159a64);
  color: #fff;
  border-color: transparent;
}

.cta {
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
}

.cta.solid {
  background: linear-gradient(90deg, var(--accent), #e07d2f);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 95, 50, 0.28);
}

.cta.line {
  border-color: var(--ink);
  color: var(--ink);
  background: #ffffff9a;
}

.cta.ghost {
  border-color: var(--line);
  background: #ffffff88;
}

.hero-metrics {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics li {
  border: 1px solid var(--line);
  background: #ffffffb9;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 3px;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 28, 0.58);
}

.qr-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
  background: #fff;
  border-radius: 18px;
  border: 1px solid #d5ebe0;
  box-shadow: 0 18px 40px rgba(7, 18, 28, 0.24);
  padding: 16px;
  text-align: center;
}

.qr-modal-panel h3 {
  margin-bottom: 10px;
}

.qr-modal-image {
  width: min(300px, 72vw);
  height: auto;
  border-radius: 12px;
  border: 1px solid #9edec3;
  background: #fff;
  padding: 8px;
}

.qr-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid #ced9d3;
  background: #f8fcfa;
  color: #335a4a;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.hero-metrics strong {
  font-size: 1.5rem;
}

.section {
  padding: 84px 0;
}

.section h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  margin-bottom: 20px;
}

.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  animation: settle 0.6s ease forwards;
}

.card:nth-child(2) {
  animation-delay: 0.12s;
}

.card:nth-child(3) {
  animation-delay: 0.24s;
}

.card h3 {
  margin-bottom: 10px;
}

.deep-service {
  background:
    linear-gradient(170deg, rgba(255, 143, 33, 0.07), rgba(16, 173, 109, 0.06)),
    #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deep-service .container {
  display: grid;
  gap: 16px;
}

.deep-lead {
  display: inline-block;
  background: #fff3e3;
  border: 1px solid #ffc58e;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pain-grid article,
.detail-card,
.deep-columns article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffefa, #ffffff);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(19, 33, 47, 0.06);
  position: relative;
  overflow: hidden;
}

.pain-grid article::before,
.detail-card::before,
.deep-columns article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 143, 33, 0.75), rgba(16, 173, 109, 0.75));
}

.pain-grid h3,
.service-detail-grid h3,
.deep-columns h3 {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.deep-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.deep-service p,
.deep-service li {
  color: #243443;
}

.deep-service ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.accent {
  background:
    linear-gradient(120deg, rgba(217, 95, 50, 0.08), rgba(29, 127, 114, 0.08)),
    #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}

.timeline span {
  font-family: "Noto Serif SC", serif;
  color: var(--accent-2);
  font-size: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin-top: 8px;
}

.contact {
  padding-top: 20px;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

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

.xianyu-contact {
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  display: inline-block;
  color: #fff;
  background: linear-gradient(90deg, #ff8f21, #ff6d00);
  box-shadow: 0 8px 20px rgba(255, 109, 0, 0.24);
}

.footer {
  padding: 30px 0;
}

.footer-content {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
}

.footer a {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .lang-switch {
    order: -1;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-aside {
    padding: 18px;
    border-radius: 18px;
    width: 100%;
  }

  .xianyu-highlight {
    justify-content: center;
    border-radius: 14px;
  }

  .quick-links-row {
    align-items: stretch;
  }

  .wechat-inline {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 14px;
  }

  .grid.cards,
  .timeline,
  .pain-grid,
  .service-detail-grid,
  .deep-columns {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .qr-modal-image {
    width: min(260px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
