:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --ink: #07080d;
  --primary: #101218;
  --secondary: #3b3f4a;
  --muted: #707786;
  --line: #e1e5ed;
  --line-strong: #cbd2de;
  --accent: #2463eb;
  --accent-2: #13a684;
  --warn: #b7791f;
  --blue-soft: #eef4ff;
  --green-soft: #eafbf5;
  --shadow-sm: 0 1px 2px rgba(7, 8, 13, 0.05);
  --shadow-md: 0 18px 52px rgba(7, 8, 13, 0.1);
  --shadow-lg: 0 28px 90px rgba(7, 8, 13, 0.16);
  --radius: 8px;
  --max: 1320px;
}

html {
  scroll-behavior: smooth;
}

html[data-lang="zh"] [data-lang="en"],
html[data-lang="en"] [data-lang="zh"] {
  display: none !important;
}

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

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(36, 99, 235, 0.035), transparent 360px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.portfolio-v6 {
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-shell {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(225, 229, 237, 0.86);
  background: rgba(251, 251, 252, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.primary-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.primary-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 850;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

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

.language-toggle {
  display: inline-flex;
  min-height: 44px;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.language-toggle button {
  min-width: 48px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.language-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: #ffffff;
}

.header-contact {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(36, 99, 235, 0.22);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.header-contact:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(36, 99, 235, 0.28);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 64px;
  min-height: 720px;
  padding: 58px 0 60px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

html[data-lang="en"] .hero-copy h1 {
  max-width: 820px;
  font-size: 62px;
  line-height: 1.02;
}

.hero-copy p {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--secondary);
  font-size: 20px;
  font-weight: 550;
  line-height: 1.72;
}

html[data-lang="en"] .hero-copy p {
  max-width: 720px;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button.primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  padding: 0 22px;
  box-shadow: 0 16px 32px rgba(7, 8, 13, 0.18);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(7, 8, 13, 0.22);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--primary);
  padding: 0 22px;
}

.button.secondary:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.proof-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.proof-matrix span {
  min-height: 58px;
  padding: 17px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 850;
}

.system-map {
  position: relative;
}

.map-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.map-bar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.map-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d1d5db;
}

.map-bar strong {
  margin-left: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.map-canvas {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 18, 24, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(16, 18, 24, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(36, 99, 235, 0.08), transparent 32%),
    #ffffff;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.map-canvas::after {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  height: 84px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), transparent);
  content: "";
  pointer-events: none;
}

.map-lines {
  position: absolute;
  inset: 42px 34px 36px;
  width: calc(100% - 68px);
  height: calc(100% - 78px);
  fill: none;
  pointer-events: none;
  stroke: rgba(16, 18, 24, 0.18);
  stroke-width: 2;
}

.map-lines .line-active {
  stroke: var(--accent);
  stroke-dasharray: 10 12;
  stroke-width: 3;
  animation: route-dash 2.8s linear infinite;
}

.map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 174px;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.map-node:hover,
.map-node[aria-pressed="true"] {
  border-color: rgba(36, 99, 235, 0.42);
  box-shadow: 0 18px 42px rgba(36, 99, 235, 0.12);
  transform: translateY(-2px);
}

.map-node span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.map-node strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.map-node small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.node-data {
  top: 72px;
  left: 56px;
}

.node-ai {
  top: 72px;
  right: 56px;
}

.node-trust {
  right: 62px;
  bottom: 66px;
}

.node-delivery {
  left: 62px;
  bottom: 66px;
}

.map-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 236px;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(7, 8, 13, 0.24);
  transform: translate(-50%, -50%);
}

.map-core strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.map-core small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.map-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 74px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(19, 166, 132, 0.1);
}

.map-status p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
}

.work-section,
.capability-section,
.profile-section,
.contact-section {
  padding: 82px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 88px;
  align-items: start;
  margin-bottom: 42px;
}

.section-head p,
.profile-copy p {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.section-head h2,
.profile-copy h2 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 22px;
}

.case-feature,
.case-row,
.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.case-feature:hover,
.case-row:hover,
.profile-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.case-feature a {
  display: grid;
}

.case-feature figure,
.case-row img {
  overflow: hidden;
  margin: 0;
  background: var(--surface-2);
}

.case-feature figure {
  height: 440px;
  border-bottom: 1px solid var(--line);
}

.case-feature img,
.case-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.case-feature:hover img,
.case-row:hover img {
  transform: scale(1.025);
}

.case-body {
  padding: 30px;
}

.case-type,
.case-row a > div > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-body h3,
.case-row h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.case-body p,
.case-row p {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.66;
}

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

.tag-row span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 850;
}

.case-stack {
  display: grid;
  gap: 16px;
}

.case-row a {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  min-height: 176px;
  padding: 14px;
}

.case-row img {
  align-self: stretch;
  min-height: 148px;
  border-radius: 6px;
}

.case-row h3 {
  font-size: 21px;
}

.case-row p {
  font-size: 14px;
  line-height: 1.58;
}

.capability-board {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.capability-list {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
  background: #fbfcff;
}

.capability-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  padding: 22px;
  text-align: left;
}

.capability-list button[aria-selected="true"] {
  background: var(--primary);
  color: #ffffff;
}

.capability-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.capability-list button[aria-selected="true"] span {
  color: #7aa2ff;
}

.capability-list strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.capability-detail {
  min-height: 320px;
  padding: 46px;
  background:
    linear-gradient(90deg, rgba(16, 18, 24, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(16, 18, 24, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
}

.capability-detail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
}

.capability-detail p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.72;
}

.capability-detail a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 28px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 72px;
  align-items: start;
}

.profile-grid {
  display: grid;
  gap: 14px;
}

.profile-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 26px;
}

.profile-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 650;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: end;
  padding: 48px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--primary);
  background-size: 32px 32px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.contact-panel h2 {
  max-width: 900px;
  margin: 0;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
}

.contact-panel p {
  max-width: 800px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.button.primary.light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--primary);
  box-shadow: none;
}

.button.secondary.light {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(36, 99, 235, 0.35);
  outline-offset: 3px;
}

html.js .reveal {
  opacity: 1;
  transform: translateY(12px);
  transition:
    opacity 420ms ease,
    transform 560ms ease;
}

html.js .reveal.is-visible {
  transform: translateY(0);
}

@keyframes route-dash {
  to {
    stroke-dashoffset: -44;
  }
}

@media (max-width: 1120px) {
  .site-shell {
    width: min(var(--max), calc(100% - 40px));
  }

  .site-header {
    gap: 18px;
  }

  .brand {
    min-width: 210px;
  }

  .primary-nav {
    display: none;
  }

  .hero-section,
  .profile-section {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
  }

  .hero-copy h1,
  html[data-lang="en"] .hero-copy h1 {
    max-width: 920px;
    font-size: 58px;
  }

  .system-map {
    max-width: 820px;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-feature figure {
    height: 390px;
  }

  .capability-board {
    grid-template-columns: 1fr;
  }

  .capability-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-list button {
    min-height: 110px;
    border-right: 1px solid var(--line);
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header {
    min-height: 70px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .header-contact {
    display: none;
  }

  .language-toggle {
    min-height: 42px;
  }

  .language-toggle button {
    min-width: 44px;
    min-height: 34px;
  }

  .hero-section {
    padding: 52px 0 54px;
  }

  .hero-copy h1,
  html[data-lang="en"] .hero-copy h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  .hero-copy p,
  html[data-lang="en"] .hero-copy p {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.75;
  }

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

  .proof-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
  }

  .proof-matrix span {
    min-height: 46px;
    padding: 12px 10px;
    color: var(--primary);
    font-size: 12px;
  }

  .map-canvas {
    min-height: 540px;
  }

  .map-lines {
    display: none;
  }

  .map-node {
    width: calc(50% - 26px);
    padding: 14px;
  }

  .node-data {
    top: 26px;
    left: 16px;
  }

  .node-ai {
    top: 26px;
    right: 16px;
  }

  .node-delivery {
    left: 16px;
    bottom: 28px;
  }

  .node-trust {
    right: 16px;
    bottom: 28px;
  }

  .map-core {
    width: min(230px, calc(100% - 80px));
  }

  .work-section,
  .capability-section,
  .profile-section,
  .contact-section {
    padding: 58px 0;
  }

  .section-head,
  .profile-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .section-head h2,
  .profile-copy h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .case-feature figure {
    height: 260px;
  }

  .case-body {
    padding: 22px;
  }

  .case-body h3 {
    font-size: 26px;
  }

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

  .case-row img {
    height: 190px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list button {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 76px;
    border-right: 0;
    padding: 18px;
  }

  .capability-detail {
    min-height: 260px;
    padding: 26px;
  }

  .capability-detail h3 {
    font-size: 28px;
  }

  .capability-detail p {
    font-size: 16px;
  }

  .profile-grid {
    gap: 12px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .contact-panel {
    padding: 28px;
  }

  .contact-panel h2 {
    font-size: 30px;
  }
}

@media (max-width: 460px) {
  .site-shell {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand-copy small {
    max-width: 176px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-toggle button {
    min-width: 40px;
    font-size: 12px;
  }

  .hero-copy h1,
  html[data-lang="en"] .hero-copy h1 {
    font-size: 36px;
  }

  .map-node strong {
    font-size: 13px;
  }

  .map-node small {
    font-size: 11px;
  }

  .section-head h2,
  .profile-copy h2 {
    font-size: 30px;
  }

  .case-feature figure,
  .case-row img {
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
