/*
 * Final desktop visual system
 * This file is intentionally loaded last and is the single canonical layer for
 * typography, spacing and component polish. The page is desktop-only.
 */

:root {
  --font-final: "Alibaba PuHuiTi 3.0", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ink-final: #17191e;
  --muted-final: #687386;
  --muted-soft-final: #8a94a5;
  --line-final: #dfe6f0;
  --blue-final: #3f73f3;
  --blue-deep-final: #2862ed;
  --blue-soft-final: #f1f5fc;
  --surface-final: #f7f9fc;
  --stage-final: min(1320px, calc(100vw - 128px));
  --section-title-final: 52px;
  --feature-title-final: 42px;
  --module-title-final: 28px;
  --card-title-final: 21px;
  --lead-final: 18px;
  --body-final: 16px;
  --helper-final: 14px;
  --label-final: 13px;
}

html {
  scroll-padding-top: 76px;
}

body {
  min-width: 1180px;
  color: var(--ink-final);
  font-family: var(--font-final);
  font-size: var(--body-final);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  height: 76px;
  padding: 0 max(48px, calc((100vw - 1440px) / 2));
}

.brand strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand > span {
  font-weight: 700;
}

.site-header nav {
  gap: 28px;
}

.site-header nav a {
  color: #737e90;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--ink-final);
}

/* Hero */
.hero {
  min-height: 720px;
  padding: 132px 0 116px;
}

.hero::after {
  inset: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  background:
    radial-gradient(circle at 14% 22%, rgba(63, 115, 243, 0.14) 0%, transparent 11%),
    radial-gradient(circle at 86% 16%, rgba(63, 115, 243, 0.11) 0%, transparent 10%),
    radial-gradient(circle at 10% 74%, rgba(63, 115, 243, 0.08) 0%, transparent 9%),
    radial-gradient(circle at 90% 78%, rgba(63, 115, 243, 0.11) 0%, transparent 11%),
    radial-gradient(circle at 50% 48%, rgba(63, 115, 243, 0.05) 0%, transparent 28%);
  transform: none;
}

.hero-copy {
  width: min(1160px, calc(100vw - 120px));
}

.hero-copy h1 {
  max-width: 1140px;
  font-family: var(--font-final);
  font-size: clamp(70px, 5.2vw, 82px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 760px;
  margin-top: 38px;
  color: #606b7e;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.75;
}

/* Global section hierarchy */
.page-section {
  padding: 116px 0 124px;
}

.section-heading,
.why-section .section-heading {
  width: min(1120px, calc(100vw - 160px));
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.why-section .section-heading h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-final);
  font-size: var(--section-title-final);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.section-heading h2::before,
.why-section .section-heading h2::before {
  width: 40px;
  height: 3px;
  margin: 0 auto 20px;
}

.section-heading > span,
.section-heading > p {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--muted-final);
  font-size: var(--lead-final);
  font-weight: 400;
  line-height: 1.75;
}

.content-stage,
.section-plain .content-stage,
.section-blue .content-stage,
.landing-stage,
.service-grid,
.why-grid {
  width: var(--stage-final);
}

.content-stage,
.landing-stage,
.service-grid {
  margin-top: 56px;
}

.section-tabs {
  width: var(--stage-final);
  margin-top: 52px;
}

.section-tabs button {
  min-height: 58px;
  color: #788397;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.section-tabs button:hover,
.section-tabs button[aria-selected="true"] {
  color: var(--ink-final);
}

.section-tabs button[aria-selected="true"] {
  font-weight: 600;
}

.capability-tabs {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}

.capability-tabs button {
  min-width: 0;
  padding: 18px 8px 20px;
  white-space: nowrap;
}

/* Definition */
.definition-stage {
  margin-top: 60px;
}

.definition-item {
  min-height: 142px;
  padding: 25px 26px;
}

.definition-index {
  font-size: 12px;
  font-weight: 600;
}

.definition-item h3 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.definition-item strong {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.definition-item p {
  margin-top: 8px;
  color: var(--muted-final);
  font-size: 14px;
  line-height: 1.72;
}

.definition-core > span {
  font-size: 13px;
  font-weight: 700;
}

.definition-core > strong {
  font-size: 30px;
  font-weight: 700;
}

.definition-core > em {
  font-size: 13px;
}

/* Capability */
.capability-stage {
  min-height: 620px;
}

.capability-video {
  min-height: 620px;
  padding: 44px;
}

.capability-copy {
  padding: 64px 60px 50px;
}

.capability-copy h3 {
  max-width: 12em;
  font-size: clamp(34px, 2.55vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.capability-copy > p {
  max-width: 38em;
  margin-top: 24px;
  color: var(--muted-final);
  font-size: var(--body-final);
  line-height: 1.82;
}

.employee-list {
  margin-top: 30px;
  padding-top: 24px;
}

.employee-list i {
  padding: 9px 12px;
  font-size: var(--label-final);
  font-weight: 500;
}

.capability-video-empty {
  width: 100%;
  min-height: 460px;
  display: grid;
  place-content: center;
  gap: 18px;
  border: 1px solid rgba(204, 214, 229, 0.86);
  border-radius: 24px;
  color: var(--muted-final);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.capability-video-empty i {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-final);
  background: var(--blue-soft-final);
  font-size: 24px;
  font-style: normal;
}

.capability-video-empty strong {
  font-size: 18px;
  font-weight: 600;
}

.video-modal-dialog {
  width: min(90vw, 1540px);
}

.video-modal-close {
  font-weight: 400;
}

/* Roles */
.role-category-grid button {
  min-height: 92px;
}

.role-category-grid button > span {
  font-size: 12px;
  font-weight: 600;
}

.role-category-grid button strong {
  font-size: 17px;
  font-weight: 600;
}

.role-detail h3 {
  font-size: var(--feature-title-final);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.role-detail {
  min-height: 350px;
}

.role-detail-copy > span {
  font-size: var(--label-final);
  font-weight: 600;
}

.role-detail > p {
  color: var(--muted-final);
  font-size: var(--body-final);
  line-height: 1.85;
}

.role-position-list article strong {
  font-size: 18px;
  font-weight: 600;
}

.role-position-list article > i {
  font-size: 12px;
  font-weight: 600;
}

.role-position-list article p {
  font-size: 14px;
  line-height: 1.7;
}

/* Organization */
.organization-panel {
  min-height: 590px;
}

.org-company strong,
.org-actor-row button strong {
  font-weight: 600;
}

.org-actor-row button {
  min-height: 128px;
  font-size: 15px;
}

.org-actor-row button[aria-pressed="true"],
.org-actor-row button[aria-selected="true"] {
  border-color: var(--ink-final);
  color: #fff;
  background: var(--ink-final);
  box-shadow: 0 14px 34px rgba(24, 29, 38, 0.18);
}

.org-detail > span,
.org-panel-head > span,
.org-collaboration-head > span {
  font-size: var(--label-final);
  font-weight: 600;
}

.org-detail h3 {
  font-size: var(--feature-title-final);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.org-detail > p {
  font-size: var(--body-final);
  line-height: 1.9;
}

.org-relation > span {
  font-size: var(--label-final);
  font-weight: 500;
}

.org-relation p {
  font-size: 14px;
  line-height: 1.75;
}

.org-panel-head h3,
.org-collaboration-head h3 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.04em;
}

.org-collaboration-head p {
  font-size: 15px;
  line-height: 1.75;
}

.collaboration-hub span {
  font-size: 13px;
  font-weight: 500;
}

.collaboration-hub strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
}

.collaboration-grid article h4,
.collaboration-principles article strong {
  font-size: 17px;
  font-weight: 600;
}

.collaboration-grid article p,
.collaboration-principles article p {
  font-size: 14px;
  line-height: 1.72;
}

.evolution-flow article strong {
  font-size: 16px;
  font-weight: 600;
}

.evolution-flow article p {
  font-size: 14px;
  line-height: 1.68;
}

/* Value */
#value .section-heading > span {
  color: rgba(255, 255, 255, 0.64);
}

#value .section-tabs button {
  color: rgba(255, 255, 255, 0.58);
}

.value-story > span,
.metric > span,
.value-employees > span {
  font-size: var(--label-final);
  font-weight: 500;
}

.value-story h3 {
  font-size: var(--feature-title-final);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.value-path article span {
  font-size: 13px;
}

.value-path article p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.72;
}

.value-result {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.72;
}

.metric-change del,
.metric-change i {
  font-size: 15px;
}

.metric-change strong {
  font-size: 32px;
  font-weight: 700;
}

.value-employees i {
  font-size: 13px;
  font-weight: 500;
}

.value-disclaimer {
  font-size: 13px;
  line-height: 1.65;
}

/* Landing */
.landing-route h3,
.landing-flywheel h3,
.landing-foundation h3 {
  font-size: var(--module-title-final);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.landing-route header > span,
.landing-flywheel header > span,
.landing-foundation header > span {
  font-size: var(--label-final);
  font-weight: 600;
}

.landing-route li span {
  font-size: 12px;
  font-weight: 600;
}

.landing-route li strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.flywheel-step {
  font-size: 12px;
  font-weight: 600;
}

.flywheel-core {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.landing-foundation article strong {
  font-size: 15px;
  font-weight: 600;
}

.landing-foundation article span {
  font-size: 13px;
  line-height: 1.65;
}

.landing-closing {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

/* Cooperation */
.service-grid {
  gap: 22px;
}

.service-card {
  min-height: 720px;
  padding: 38px 34px 34px;
}

.service-card header span {
  font-size: 13px;
  font-weight: 600;
}

.service-card header strong {
  font-size: 18px;
  font-weight: 600;
}

.service-card h3 {
  font-size: var(--module-title-final);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.service-suitable {
  min-height: 72px;
  font-size: 14px;
  line-height: 1.65;
}

.service-suitable span,
.service-result span {
  font-size: 12px;
  font-weight: 600;
}

.service-flow li > span {
  font-size: 11px;
  font-weight: 600;
}

.service-flow strong {
  font-size: 15px;
  font-weight: 600;
}

.service-flow p {
  font-size: 13px;
  line-height: 1.68;
}

.service-card-primary .service-flow p {
  color: rgba(255, 255, 255, 0.64);
}

.service-result strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.service-card-primary .service-result span {
  color: rgba(255, 255, 255, 0.58);
}

.service-combination {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

/* Why us — reset all legacy dark-card rules */
.why-section {
  width: 100%;
  padding: 112px 0 120px;
  color: var(--ink-final);
  background: var(--surface-final);
}

.why-grid {
  margin: 52px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: var(--ink-final);
  background: transparent;
  box-shadow: none;
}

.why-card,
.why-card + .why-card {
  min-height: 344px;
  padding: 40px 40px 38px;
  border: 1px solid var(--line-final);
  border-radius: 24px;
  color: var(--ink-final);
  background: #fff;
  box-shadow: 0 18px 52px rgba(28, 43, 71, 0.045);
  transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.why-card:hover {
  border-color: #c7d4e8;
  color: var(--ink-final);
  background: #fff;
  box-shadow: 0 24px 64px rgba(28, 43, 71, 0.075);
  transform: translateY(-3px);
}

.why-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #cfdbf3;
  border-radius: 15px;
  color: var(--blue-final);
  background: var(--blue-soft-final);
}

.why-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2.6;
}

.why-card h3 {
  margin: 26px 0 0;
  color: var(--ink-final);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.why-card ul {
  margin: 25px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.why-card li {
  min-height: 50px;
  padding: 13px 0 13px 34px;
  border-top: 1px solid #edf1f6;
  color: #394252;
  font-size: 15px;
  line-height: 1.6;
}

.why-card li::before {
  top: 13px;
  width: 20px;
  height: 20px;
  border: 1.5px solid #8a96a8;
  color: #536071;
  background: #fff;
  font-size: 11px;
}

/* CTA */
.start-section {
  padding: 64px 0 72px;
}

.start-panel {
  width: var(--stage-final);
  padding: 76px 64px 80px;
}

.start-copy > p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.start-copy h2 {
  margin: 18px 0 0;
  font-size: var(--section-title-final);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.start-copy > span {
  max-width: 820px;
  margin: 22px auto 0;
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.75;
}

.contact-form {
  margin-top: 38px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
  border-radius: 22px;
}

.contact-form label > span {
  color: #687386;
  font-size: 13px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  height: 48px;
  margin-top: 6px;
  color: var(--ink-final);
  font-size: 15px;
  line-height: 1.5;
}

.contact-form textarea {
  min-height: 72px;
  padding-top: 12px;
}

.contact-form label small {
  min-height: 18px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.contact-form .task-field {
  grid-column: 1 / 3;
}

.contact-form button {
  min-height: 54px;
  margin-top: 26px;
  padding: 0 26px;
  align-self: start;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.contact-form > p {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

footer {
  min-height: 124px;
}

footer > p,
footer > a:last-child {
  font-size: 13px;
}

/* Keyboard focus is visible without adding visual noise for pointer users. */
:where(a, button, input, textarea):focus-visible {
  outline: 3px solid rgba(63, 115, 243, 0.32);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
