:root {
  --navy: #0b1c2c;
  --navy-2: #12263a;
  --navy-3: #1a3348;
  --plum: #5c4a6e;
  --plum-soft: #7a648f;
  --accent: #c4a46b;
  --text: #1f2a33;
  --muted: #667788;
  --line: #e5e9ee;
  --bg: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 28, 44, 0.12);
  --radius: 2px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  background: var(--plum);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--navy);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
}

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

.section {
  padding: 90px 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-head .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--plum-soft);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
}

/* Top bar */
.topbar {
  background: #eef2f6;
  color: var(--muted);
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar a:hover {
  color: var(--plum);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--white);
  padding: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.brand-text span {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

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

.nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

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

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.header-phone small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.header-phone strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--navy-2);
  color: var(--white);
  cursor: pointer;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 28, 44, 0.82) 0%, rgba(11, 28, 44, 0.45) 55%, rgba(11, 28, 44, 0.25) 100%),
    linear-gradient(0deg, rgba(11, 28, 44, 0.55), transparent 40%);
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(88vh, 760px);
  padding: 120px 0 110px;
}

.hero-content .eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 13px;
}

.hero-content h1 {
  margin: 0 0 20px;
  max-width: 720px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 700;
}

.hero-content p {
  margin: 0 0 32px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(11, 28, 44, 0.72);
  backdrop-filter: blur(8px);
}

.hero-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
}

.hero-arrows {
  display: flex;
}

.hero-arrows button {
  width: 58px;
  height: 58px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

.hero-arrows button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-tab {
  padding: 16px 20px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-tab strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.hero-tab span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

.hero-tab.active,
.hero-tab:hover {
  color: var(--white);
  box-shadow: inset 0 2px 0 var(--accent);
}

/* Intro split */
.intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.intro-media {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(160deg, rgba(92, 74, 110, 0.25), rgba(11, 28, 44, 0.35)),
    url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.intro-media .badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(220px, calc(100% - 48px));
  padding: 22px;
  background: var(--navy);
  color: var(--white);
}

.intro-media .badge strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}

.intro-media .badge span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.intro-copy .eyebrow {
  color: var(--plum-soft);
  letter-spacing: 0.16em;
  font-size: 13px;
}

.intro-copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}

.intro-copy p {
  color: var(--muted);
  margin: 0 0 16px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 2px;
  background: var(--plum);
}

/* Accordion */
.accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--line);
  background: var(--white);
}

.accordion-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.accordion-item button span {
  color: var(--plum);
  font-size: 22px;
  line-height: 1;
}

.accordion-panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}

.accordion-item.open .accordion-panel {
  display: block;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--plum);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.service-card p {
  margin: 0 0 22px;
  color: var(--muted);
  min-height: 84px;
}

.service-card a {
  color: var(--plum);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.service-card a:hover {
  color: var(--navy);
}

/* Stats */
.stats {
  background:
    linear-gradient(120deg, rgba(11, 28, 44, 0.92), rgba(92, 74, 110, 0.78)),
    url("https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item strong {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: var(--accent);
}

.stat-item span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 280px;
  background: var(--bg);
  overflow: hidden;
}

.project-card .thumb {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.project-card .body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card .tag {
  margin-bottom: 12px;
  color: var(--plum-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.project-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-top: auto;
}

.meta-grid div {
  font-size: 13px;
}

.meta-grid strong {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}

/* Testimonials */
.testimonials {
  background: var(--bg);
}

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

.testimonial-card {
  padding: 32px 28px;
  background: var(--white);
  border-top: 3px solid var(--plum);
}

.testimonial-card p {
  margin: 0 0 24px;
  color: var(--text);
  min-height: 110px;
}

.testimonial-card strong {
  display: block;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 13px;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.3s ease;
}

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

.news-card .thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.news-card .body {
  padding: 24px;
}

.news-card .meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.news-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
}

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

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
}

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

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* Page hero */
.page-hero {
  position: relative;
  padding: 90px 0 70px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(11, 28, 44, 0.88), rgba(92, 74, 110, 0.55)),
    url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
}

.page-hero p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

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

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.value-card {
  padding: 28px 24px;
  background: var(--bg);
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

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

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

.process-step {
  padding: 24px;
  border: 1px solid var(--line);
}

.process-step .num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-item {
  padding: 24px;
  background: var(--bg);
}

.contact-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--muted);
}

.contact-item a:hover {
  color: var(--plum);
}

.contact-form,
.wechat-box {
  padding: 32px;
  border: 1px solid var(--line);
}

.contact-form h3,
.wechat-box h3 {
  margin: 0 0 8px;
}

.contact-form p,
.wechat-box p {
  margin: 0 0 22px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--text);
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.wechat-box {
  margin-top: 24px;
  text-align: center;
}

.wechat-box img {
  width: 220px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: #08131e;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--white);
  padding: 6px;
  margin-bottom: 16px;
}

.footer-brand h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 20px;
}

.footer-brand p {
  margin: 0;
  max-width: 320px;
  line-height: 1.8;
}

.site-footer h4 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 16px;
}

.site-footer ul {
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .nav,
  .header-phone {
    display: none;
  }

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

  .nav.open {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-2);
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.open a {
    padding: 14px 24px;
  }

  .nav.open a.active::after,
  .nav.open a:hover::after {
    display: none;
  }

  .intro,
  .about-grid,
  .contact-layout,
  .project-card,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .news-grid,
  .testimonial-grid,
  .projects-grid,
  .values-grid,
  .process-steps,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-tabs {
    display: none;
  }

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

  .hero-arrows {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .topbar-left span:last-child {
    display: none;
  }

  .services-grid,
  .news-grid,
  .testimonial-grid,
  .projects-grid,
  .values-grid,
  .process-steps,
  .stats-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 100px 0 90px;
  }

  .section {
    padding: 70px 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
