html {
  --bg: #fffbf7;
  --bg-alt: #f7f3ff;
  --surface: #ffffff;
  --text: #1a1533;
  --text-secondary: #6b6580;
  --purple: #534ab7;
  --purple-dark: #3c3489;
  --purple-light: #eeedfe;
  --accent: #185fa5;
  --accent-light: #e6f1fb;
  --cta: #f97316;
  --cta-hover: #ea580c;
  --green: #0f6e56;
  --green-light: #e1f5ee;
  --border: #e8e4f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(83, 74, 183, 0.08);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--purple-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), #7b72d4);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

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

.nav-desktop a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: 0.15s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: var(--purple-light);
  color: var(--purple-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.15s;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--purple); color: var(--purple-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--purple-dark);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 20px;
  z-index: 99;
  border-top: 1px solid var(--border);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(83, 74, 183, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--purple-dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--cta);
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.stat-item strong {
  display: block;
  font-size: 24px;
  color: var(--purple-dark);
}

.stat-item span {
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--border);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 360px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(26, 21, 51, 0.72));
  color: #fff;
}

.hero-caption strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.hero-caption span {
  font-size: 12px;
  opacity: 0.9;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dot.active { background: #fff; }

.hero-fallback {
  height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

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

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .hero-carousel, .hero-fallback { height: 280px; }
  .hero-visual { min-height: 280px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Sections */
section { padding: 72px 0; }

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

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

.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--purple-dark);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 15px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: 0.2s;
}

.card:hover {
  border-color: rgba(83, 74, 183, 0.35);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-light);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--purple-dark);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.card-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--purple-light), var(--bg));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--purple-dark);
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 16px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.service-dimension {
  border-left: 4px solid var(--purple);
  padding-left: 20px;
  margin-bottom: 32px;
}

.service-dimension h3 {
  font-size: 20px;
  color: var(--purple-dark);
  margin-bottom: 8px;
}

.service-dimension .partners {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.service-dimension p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 800px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.cta-band {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { opacity: 0.9; margin-bottom: 24px; }

.cta-band .btn-primary { background: var(--cta); }
.cta-band .btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.3); }

/* Footer */
.site-footer {
  background: var(--purple-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-desktop, .header-actions .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-band { padding: 32px 24px; }
}

/* Company & partner grids */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.company-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--purple-dark);
}

.company-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.partner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.partner-table th,
.partner-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.partner-table th {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-alt);
}

.partner-table td:first-child {
  font-weight: 600;
  color: var(--purple-dark);
  white-space: nowrap;
}

.share-banner {
  background: var(--green-light);
  border: 1px solid #b8e6d5;
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}

.share-banner a {
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
}
