/*
Theme Name: Vastonour Enterprise
Theme URI: https://example.com/vastonour-enterprise
Author: Shanghai Vastonour Information Consulting Co., Ltd.
Description: A Chinese WordPress theme for Shanghai Vastonour, focused on ToB enterprise management software implementation, integration and custom development.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vastonour
*/

:root {
  --vast-blue-900: #052f78;
  --vast-blue-800: #0845a7;
  --vast-blue-700: #1155b8;
  --vast-blue-100: #eaf2ff;
  --vast-orange: #f15a22;
  --vast-cyan: #00a7d8;
  --vast-ink: #172033;
  --vast-muted: #5f6c80;
  --vast-line: #dce5f2;
  --vast-bg: #f6f9fd;
  --vast-white: #ffffff;
  --vast-shadow: 0 18px 50px rgba(5, 47, 120, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.vastonour-lock {
  overflow: hidden;
}

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

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

.site {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(220, 229, 242, 0.8);
  backdrop-filter: blur(18px);
}

.nav-shell,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

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

.brand-logo {
  width: 124px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  display: block;
  color: var(--vast-blue-900);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-subtitle {
  display: block;
  color: var(--vast-muted);
  font-size: 12px;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #33415c;
  font-size: 14px;
  font-weight: 650;
}

.nav-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 24px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--vast-orange);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.5);
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--vast-blue-800);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--vast-white);
  background: var(--vast-blue-800);
  border: 1px solid var(--vast-blue-800);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  transition: 0.2s ease;
}

.nav-cta:hover,
.button:hover {
  background: var(--vast-blue-900);
  border-color: var(--vast-blue-900);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--vast-blue-900);
  background: var(--vast-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.button.secondary:hover {
  color: var(--vast-blue-800);
  background: var(--vast-blue-100);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--vast-white);
  border: 1px solid var(--vast-line);
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--vast-blue-900);
}

.hero {
  position: relative;
  min-height: 680px;
  color: var(--vast-white);
  background:
    linear-gradient(90deg, rgba(5, 47, 120, 0.96), rgba(8, 69, 167, 0.74) 48%, rgba(8, 69, 167, 0.18)),
    url("assets/images/vastonour-hero.png") center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--vast-orange), var(--vast-cyan), var(--vast-blue-700));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 96px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #d8e8ff;
  font-size: 14px;
  font-weight: 750;
}

.eyebrow::before {
  display: inline-block;
  width: 36px;
  height: 3px;
  content: "";
  background: var(--vast-orange);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: #e5efff;
  font-size: 20px;
}

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

.hero-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--vast-shadow);
  color: var(--vast-ink);
  overflow: hidden;
}

.hero-panel-head {
  padding: 20px 22px;
  color: var(--vast-white);
  background: linear-gradient(135deg, var(--vast-blue-800), var(--vast-blue-900));
}

.hero-panel-head strong {
  display: block;
  font-size: 20px;
}

.hero-panel-head span {
  display: block;
  margin-top: 4px;
  color: #cfe0ff;
  font-size: 13px;
}

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

.metric {
  padding: 20px;
  border-right: 1px solid var(--vast-line);
  border-bottom: 1px solid var(--vast-line);
}

.metric:nth-child(2n) {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--vast-blue-800);
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--vast-muted);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--vast-bg);
}

.section.dark {
  color: var(--vast-white);
  background:
    linear-gradient(135deg, rgba(5, 47, 120, 0.98), rgba(8, 69, 167, 0.96)),
    radial-gradient(circle at 80% 20%, rgba(0, 167, 216, 0.32), transparent 38%);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--vast-blue-700);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark .section-kicker {
  color: #8ddfff;
}

.section-title {
  max-width: 720px;
  margin: 0;
  color: var(--vast-ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.dark .section-title {
  color: var(--vast-white);
}

.section-lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--vast-muted);
  font-size: 17px;
}

.dark .section-lead {
  color: #dbe8ff;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.value-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.value-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.value-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--vast-white);
  background: var(--vast-blue-800);
  border-radius: 4px;
  font-weight: 900;
}

.value-item h3,
.solution-card h3,
.case-card h3,
.service-card h3 {
  margin: 0;
  color: var(--vast-ink);
  font-size: 19px;
  line-height: 1.35;
}

.value-item p,
.solution-card p,
.case-card p,
.service-card p {
  margin: 8px 0 0;
  color: var(--vast-muted);
}

.architecture {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--vast-white);
  border: 1px solid var(--vast-line);
  border-radius: 8px;
  box-shadow: var(--vast-shadow);
}

.domain-row {
  display: grid;
  grid-template-columns: 116px repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}

.domain-label,
.domain-pill {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
}

.domain-label {
  color: var(--vast-white);
  background: var(--vast-blue-800);
}

.domain-pill {
  color: #24334d;
  background: #eef4ff;
  border: 1px solid #d9e6fb;
}

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

.solution-card,
.case-card,
.service-card {
  position: relative;
  min-height: 238px;
  padding: 28px;
  background: var(--vast-white);
  border: 1px solid var(--vast-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(5, 47, 120, 0.06);
}

.solution-card::before,
.service-card::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--vast-orange), var(--vast-cyan));
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--vast-blue-800);
  background: var(--vast-blue-100);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  padding: 5px 9px;
  color: var(--vast-blue-800);
  background: var(--vast-blue-100);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
}

.case-card {
  overflow: hidden;
}

.case-card::after {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  content: "";
  border: 24px solid rgba(17, 85, 184, 0.08);
  border-radius: 50%;
}

.case-meta {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  color: var(--vast-white);
  background: var(--vast-blue-800);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
}

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

.process-step {
  min-height: 220px;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.process-step strong {
  display: block;
  color: #8ddfff;
  font-size: 28px;
}

.process-step h3 {
  margin: 14px 0 10px;
  color: var(--vast-white);
  font-size: 18px;
}

.process-step p {
  margin: 0;
  color: #dbe8ff;
  font-size: 14px;
}

.service-card {
  min-height: 260px;
}

.service-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--vast-orange);
  font-size: 26px;
}

.cta-band {
  padding: 72px 0;
  color: var(--vast-white);
  background: linear-gradient(90deg, var(--vast-blue-900), var(--vast-blue-800));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.cta-inner h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.22;
}

.cta-inner p {
  margin: 14px 0 0;
  color: #dbe8ff;
}

.site-footer {
  padding: 42px 0;
  color: #dbe8ff;
  background: #071b3f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-inner strong {
  color: var(--vast-white);
}

.footer-inner p {
  margin: 6px 0 0;
  color: #9fb2d1;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: #c7d7f3;
  font-size: 14px;
}

.wp-content {
  width: min(900px, calc(100% - 40px));
  margin: 80px auto;
}

.wp-content h1,
.wp-content h2,
.wp-content h3 {
  color: var(--vast-blue-900);
  line-height: 1.25;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--vast-white);
    border-bottom: 1px solid var(--vast-line);
    box-shadow: var(--vast-shadow);
  }

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

  .nav-links a {
    padding: 14px 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    margin-top: 8px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 86px 0 64px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .split,
  .solution-grid,
  .case-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .domain-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .section-inner,
  .hero-inner,
  .cta-inner,
  .footer-inner,
  .wp-content {
    width: min(100% - 28px, 1180px);
  }

  .brand-text {
    display: none;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(5, 47, 120, 0.98), rgba(8, 69, 167, 0.82)),
      url("assets/images/vastonour-hero.png") center / cover no-repeat;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .section {
    padding: 68px 0;
  }

  .solution-card,
  .case-card,
  .service-card {
    min-height: 0;
    padding: 24px;
  }
}
