:root {
  --green: #00C853;
  --blue: #1976D2;
  --text: #212121;
  --muted: #616161;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --line: #E0E0E0;
  --shadow: 0 16px 40px rgba(33, 33, 33, 0.08);
  --shadow-soft: 0 8px 24px rgba(33, 33, 33, 0.06);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
  background: var(--white);
}

body.is-modal-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: rgba(224, 224, 224, 0.9);
  box-shadow: 0 8px 24px rgba(33, 33, 33, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 12px;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #424242;
  font-size: 14px;
}

.site-nav a {
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 70px;
  background: var(--light);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 44%, rgba(255, 255, 255, 0.45) 100%),
    url("../images/hero-bg.webp") center right / cover no-repeat;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-tagline {
  max-width: 740px;
  margin-bottom: 18px;
  color: #2F2F2F;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.35;
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(0, 200, 83, 0.24);
}

.btn-secondary {
  color: var(--blue);
  background: var(--white);
  border-color: rgba(25, 118, 210, 0.24);
}

.hero-advisor {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 46px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(224, 224, 224, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-advisor img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
}

.hero-advisor strong,
.hero-advisor span {
  display: block;
}

.hero-advisor span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: var(--light);
}

.section-head {
  max-width: 1120px;
  text-align: center;
}

.section-head h2 {
  white-space: nowrap;
}

.section-head p:not(.eyebrow),
.section-copy p,
.about-layout p,
.contact-subtitle {
  color: var(--muted);
  font-size: 17px;
}

.split-layout,
.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.image-panel,
.about-photo,
.qr-panel,
.mode-card,
.capability-card,
.brand-card,
.case-card,
.testimonial-card,
.process-item {
  border: 1px solid rgba(224, 224, 224, 0.72);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.image-panel,
.about-photo {
  overflow: hidden;
}

.image-panel img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.capability-card {
  min-height: 210px;
  padding: 24px;
}

.capability-card span,
.process-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--blue);
  font-weight: 800;
  background: rgba(25, 118, 210, 0.1);
}

.capability-card p,
.process-item p,
.testimonial-card p,
.case-card p,
.mode-content p,
.qr-panel p {
  color: var(--muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.brand-card {
  min-height: 190px;
  padding: 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.brand-logo-slot {
  position: relative;
  height: 94px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(224, 224, 224, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-logo-slot img {
  width: auto;
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.brand-logo-slot.is-empty::after {
  content: "品牌资源";
  color: #616161;
  font-size: 14px;
  font-weight: 700;
}

.small-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 38px;
}

.mode-card {
  overflow: hidden;
}

.mode-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mode-content {
  padding: 28px;
}

.mode-content h4 {
  margin: 24px 0 10px;
  color: var(--blue);
}

.mode-content ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mode-content li {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #2E2E2E;
  background: var(--light);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.process-item {
  min-height: 238px;
  padding: 26px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.filter-tab {
  min-width: 96px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.filter-tab.is-active {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.case-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.case-card.is-hidden {
  display: none;
}

.case-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.12), rgba(25, 118, 210, 0.13));
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-image.is-empty::after {
  content: "案例图片预留";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #616161;
  font-weight: 700;
}

.case-card h3 {
  margin: 20px 20px 4px;
}

.case-card p {
  margin: 0 20px 20px;
}

.about-section {
  background: #FFFFFF;
}

.about-photo img {
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 38px;
}

.testimonial-card {
  min-height: 210px;
  padding: 28px;
}

.testimonial-card strong {
  display: block;
  margin-top: 26px;
  color: #303030;
}

.contact-section {
  background: linear-gradient(180deg, #FFFFFF, var(--light));
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.contact-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-weight: 700;
}

.contact-list a {
  color: var(--blue);
}

.qr-panel {
  position: relative;
  padding: 24px;
  text-align: center;
}

.qr-panel img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--light);
}

.qr-panel.is-empty::before,
.modal-card.is-empty::before {
  content: "请替换真实微信二维码";
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  border: 1px dashed #BDBDBD;
  border-radius: var(--radius);
  color: #616161;
  background: var(--light);
  font-weight: 700;
}

.qr-panel h3 {
  margin-top: 22px;
}

.site-footer {
  padding: 32px 0 96px;
  color: #EEEEEE;
  background: var(--text);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin-bottom: 0;
  color: #BDBDBD;
}

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

.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.floating-contact a,
.floating-contact button,
.mobile-contact-bar a,
.mobile-contact-bar button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: 800;
}

.floating-contact a,
.floating-contact button {
  display: grid;
  place-items: center;
  min-width: 104px;
  padding: 0 16px;
}

.floating-contact button,
.mobile-contact-bar button {
  background: var(--green);
}

.mobile-contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.mobile-contact-bar a,
.mobile-contact-bar button {
  display: grid;
  place-items: center;
  width: 100%;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-card h2 {
  margin: 10px 0 20px;
  font-size: 26px;
}

.modal-card img {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--light);
}

.modal-card.is-empty::before {
  width: min(260px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.modal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .capability-grid,
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

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

  .hero {
    min-height: auto;
    padding: 112px 0 58px;
  }

  h1 {
    font-size: 44px;
  }

  .section-head h2 {
    font-size: 34px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 58%, rgba(245, 245, 245, 0.8) 100%),
      url("../images/hero-bg.webp") center / cover no-repeat;
  }

  .section {
    padding: 72px 0;
  }

  .split-layout,
  .about-layout,
  .contact-layout,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .process-list,
  .case-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-contact {
    display: none;
  }

  .mobile-contact-bar {
    display: grid;
  }

  .back-top {
    right: 16px;
    bottom: 82px;
  }

  .site-footer {
    padding-bottom: 118px;
  }
}

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

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 32px;
  }

  .section-head h2 {
    font-size: 28px;
    white-space: normal;
  }

  .hero-copy,
  .section-head p:not(.eyebrow),
  .section-copy p,
  .about-layout p,
  .contact-subtitle {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .capability-grid,
  .brand-grid,
  .process-list,
  .case-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .capability-card,
  .process-item,
  .testimonial-card {
    min-height: auto;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-tab {
    flex: 0 0 auto;
  }

  .mode-content ul {
    grid-template-columns: 1fr;
  }

  .contact-list div,
  .footer-inner {
    display: block;
  }

  .contact-list dd {
    margin-top: 4px;
  }

  .footer-inner a {
    display: inline-block;
    margin-top: 18px;
  }
}
