:root {
  --ink: #151212;
  --graphite: #211d1d;
  --graphite-2: #312929;
  --red: #bd171b;
  --red-deep: #8f1014;
  --gold: #c8a35f;
  --gold-soft: #ead8b3;
  --paper: #fffdf8;
  --mist: #f3f0ea;
  --line: #ded6ca;
  --muted: #6f6761;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(28, 22, 18, 0.14);
  --radius: 8px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(20px, calc((100vw - 1160px) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(18, 15, 15, 0.98), rgba(45, 32, 31, 0.96), rgba(18, 15, 15, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background:
    linear-gradient(90deg, rgba(18, 15, 15, 0.98), rgba(45, 32, 31, 0.96), rgba(18, 15, 15, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  font-weight: 700;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(232, 205, 145, 0.58);
  border-radius: 999px;
  color: var(--gold-soft);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 154px 0 78px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 18%, rgba(189, 23, 27, 0.35), transparent 28%),
    linear-gradient(135deg, #171313 0%, #2b2424 50%, #171313 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 72px;
  align-items: center;
}

.slogan {
  margin: 0 0 24px;
  color: var(--gold-soft);
  font-family: "Songti SC", SimSun, serif;
  font-size: 24px;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #251d13;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 16px 34px rgba(200, 163, 95, 0.22);
}

.btn.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 680px;
  margin: 0;
}

.hero-proof div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
}

.hero-proof dt {
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 25px;
  font-weight: 800;
}

.hero-proof dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(232, 205, 145, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.hero-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.hero-card-panel {
  padding: 24px;
}

.hero-card-panel span {
  color: var(--gold-soft);
  font-size: 13px;
}

.hero-card-panel strong {
  display: block;
  margin: 9px 0 10px;
  font-size: 24px;
}

.hero-card-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.section-pad {
  padding: 92px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.section-head span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
}

.section-head p {
  color: var(--muted);
  line-height: 1.9;
}

.services {
  background: var(--paper);
}

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

.service-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 46px rgba(40, 30, 20, 0.06);
}

.service-card.accent {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(145deg, var(--red-deep), var(--red));
}

.service-card.wide {
  grid-column: span 2;
}

.service-index {
  color: var(--gold);
  font-weight: 800;
}

.service-card h3 {
  margin: 42px 0 14px;
  font-size: 24px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.service-card.accent p {
  color: rgba(255, 255, 255, 0.78);
}

.trust {
  background: var(--mist);
}

.trust-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 56px;
  align-items: center;
}

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

.client-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.client-wall span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logo-wall span {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-height: 66px;
  gap: 12px;
  font-weight: 700;
}

.logo-wall b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--graphite));
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
}

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

.client-logo-grid figure {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 154px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.client-logo-grid img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.18);
}

.client-logo-grid figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.process {
  color: var(--white);
  background:
    linear-gradient(rgba(24, 20, 20, 0.91), rgba(24, 20, 20, 0.94)),
    url("../assets/process-flow-visual.jpg") center/cover;
}

.process .section-head span,
.process .section-head p {
  color: var(--gold-soft);
}

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

.timeline li {
  position: relative;
  min-height: 210px;
  padding: 26px 20px;
  border: 1px solid rgba(232, 205, 145, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.timeline li::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: block;
  margin-bottom: 40px;
  color: var(--gold-soft);
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin-bottom: 12px;
  font-size: 19px;
}

.timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 14px;
}

.knowledge {
  background: var(--paper);
}

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

.article-grid article,
.article-card,
.publish-grid article {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.article-card {
  min-height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(189, 23, 27, 0.26);
  box-shadow: 0 18px 48px rgba(40, 30, 20, 0.08);
}

.article-grid span,
.article-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.article-grid h3,
.article-card h3,
.publish-grid h3 {
  margin: 18px 0 12px;
  font-size: 21px;
}

.article-grid p,
.article-card p,
.publish-grid p,
.about p,
.check-list {
  color: var(--muted);
  line-height: 1.9;
}

.about {
  background: var(--mist);
}

.check-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.contact {
  color: var(--white);
  background: linear-gradient(145deg, var(--graphite), #171313);
}

.contact .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.76);
}

.contact-list strong {
  flex: 0 0 auto;
  color: var(--gold-soft);
}

.contact-list span {
  flex: 1;
  line-height: 1.7;
  text-align: right;
}

.wechat-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(232, 205, 145, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.miniapp-entry-image {
  width: 100%;
  border-radius: 6px;
  background: var(--paper);
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  color: var(--graphite);
  background:
    linear-gradient(90deg, transparent 46%, rgba(189, 23, 27, 0.18) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(189, 23, 27, 0.18) 46% 54%, transparent 54%),
    var(--paper);
  border-radius: 4px;
  font-weight: 800;
  text-align: center;
}

.wechat-panel h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.wechat-panel p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.publish {
  background: var(--paper);
}

.site-footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #121010;
}

.subpage {
  background: var(--paper);
}

.subpage .site-header {
  position: sticky;
  top: 0;
}

.sub-hero {
  padding: 138px 0 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 12%, rgba(189, 23, 27, 0.3), transparent 24%),
    linear-gradient(135deg, #171313 0%, #302727 100%);
}

.sub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 58px;
  align-items: center;
}

.sub-hero h1 {
  margin-bottom: 18px;
}

.sub-hero p:not(.slogan) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.9;
}

.sub-hero img {
  width: 100%;
  border: 1px solid rgba(232, 205, 145, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.detail-section {
  background: var(--mist);
}

.detail-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.detail-nav a {
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--graphite);
  font-weight: 700;
}

.detail-nav a:hover {
  color: var(--red);
  background: var(--paper);
}

.detail-content {
  display: grid;
  gap: 20px;
}

.detail-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 46px rgba(40, 30, 20, 0.05);
}

.detail-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-card h2 {
  margin-bottom: 16px;
  font-size: 30px;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
  line-height: 1.9;
}

.detail-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  padding-left: 20px;
  margin-bottom: 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  display: block;
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

@media (max-width: 980px) {
  .site-header {
    height: 70px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    background: transparent;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--white);
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(24, 20, 20, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero-grid,
  .sub-hero-grid,
  .trust-grid,
  .about-grid,
  .contact-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .timeline,
  .article-grid,
  .client-logo-grid,
  .publish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 56px;
  }

  .slogan {
    font-size: 20px;
  }

  .hero-proof,
  .service-grid,
  .timeline,
  .article-grid,
  .client-logo-grid,
  .publish-grid,
  .wechat-panel,
  .detail-card ul,
  .detail-nav {
    grid-template-columns: 1fr;
  }

  .service-card.wide {
    grid-column: auto;
  }

  .section-pad {
    padding: 66px 0;
  }

  .contact-list p,
  .footer-grid {
    display: block;
  }

  .contact-list span {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 18px;
  }
}
