/* 易商数码 — polished corporate styles */
:root {
  --blue: #1a3b8d;
  --blue-deep: #0d2a66;
  --blue-mid: #2a56a8;
  --blue-soft: #4a7ec8;
  --blue-active: #003399;
  --blue-tint: #e8f0fb;
  --blue-wash: #f3f7fc;
  --text: #2c3340;
  --text-muted: #5c6570;
  --text-light: #8a93a0;
  --line: #1a3b8d;
  --border: #e6ebf2;
  --bg-top: #f0f2f5;
  --footer-bg: #1e2530;
  --footer-text: #a8b0bc;
  --max: 1200px;
  --banner-h: 460px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 4px 18px rgba(15, 45, 107, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 45, 107, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #dfe3ea;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.site {
  max-width: 1920px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 40px rgba(20, 40, 80, 0.14);
  overflow: clip;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Header ========== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(15, 45, 107, 0.1);
}

.header-top {
  background: linear-gradient(180deg, #f4f6f9 0%, var(--bg-top) 100%);
  border-bottom: 1px solid var(--border);
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  min-height: 36px;
  font-size: 13px;
}

.slogan {
  font-family: "KaiTi", "STKaiti", "华文楷体", cursive;
  color: var(--blue-soft);
  font-size: 15px;
  letter-spacing: 1px;
  transition: color 0.25s;
}

.lang {
  color: var(--text-muted);
  font-size: 13px;
}

.lang a {
  transition: color 0.25s;
}

.lang a:hover {
  color: var(--blue);
}

.lang a.is-active {
  color: var(--blue-deep);
  font-weight: 600;
}

/* English typography tweaks */
html[lang="en"] .section-title {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 22px;
}

html[lang="en"] .biz-card h3 {
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.45;
}

html[lang="en"] .lead,
html[lang="en"] .about-copy p,
html[lang="en"] .closing {
  text-align: justify;
  line-height: 1.85;
}

html[lang="en"] .slogan {
  font-family: "Segoe Script", "Brush Script MT", "KaiTi", cursive;
  font-style: italic;
}

html[lang="en"] .nav a {
  font-size: 13px;
  padding: 28px 10px;
}

html[lang="en"] .header-main .container {
  gap: 20px;
}

@media (max-width: 1100px) {
  html[lang="en"] .nav a {
    font-size: 12px;
    padding: 20px 8px;
  }
}

.header-main {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.logo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 28px 16px;
  font-size: 15px;
  color: #4a5160;
  white-space: nowrap;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 18px;
  height: 3px;
  background: var(--blue-active);
  border-radius: 2px;
  transition: left 0.3s var(--ease), right 0.3s var(--ease), opacity 0.3s;
  opacity: 0;
}

.nav a:hover {
  color: var(--blue);
}

.nav a:hover::after {
  left: 16px;
  right: 16px;
  opacity: 0.45;
}

.nav a.active {
  color: var(--blue-deep);
  font-weight: 600;
}

.nav a.active::after {
  left: 16px;
  right: 16px;
  opacity: 1;
}

/* ========== Hero — unified height ========== */
.hero {
  position: relative;
  width: 100%;
  height: var(--banner-h);
  overflow: hidden;
  background: linear-gradient(135deg, #0a3a6e 0%, #1a5a9e 50%, #0d4a80 100%);
}

.hero__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  animation: heroZoom 12s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 40, 90, 0.04) 0%,
    transparent 35%,
    transparent 75%,
    rgba(255, 255, 255, 0.06) 100%
  );
  opacity: 0;
  animation: heroVeil 1.2s ease 0.2s forwards;
}

@keyframes heroVeil {
  to { opacity: 1; }
}

/* ========== Sections ========== */
.section {
  padding: 80px 0 88px;
  background: #fff;
}

.section--soft {
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, #eaf1fb 0%, transparent 55%),
    linear-gradient(180deg, var(--blue-wash) 0%, #fff 38%, var(--blue-wash) 100%);
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-soft), var(--blue-deep));
  margin: 14px auto 0;
  border-radius: 2px;
  transform-origin: center;
  animation: lineGrow 0.7s var(--ease) both;
}

@keyframes lineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.lead {
  max-width: 920px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.95;
}

.lead + .lead {
  margin-top: 18px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
  margin-top: 52px;
}

.about-grid figure {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--blue-tint);
}

.about-grid img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.about-grid figure:hover img {
  transform: scale(1.04);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.95;
  text-align: justify;
  margin-bottom: 18px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Capability */
.diagram {
  margin-top: 36px;
  text-align: center;
}

.diagram img {
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  filter: drop-shadow(0 10px 28px rgba(26, 59, 141, 0.1));
  transition: transform 0.5s var(--ease);
}

.diagram:hover img {
  transform: translateY(-4px);
}

.diagram-list {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.capability-head {
  text-align: center;
  margin-bottom: 8px;
}

.capability-head .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-soft), var(--blue-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 59, 141, 0.28);
  animation: iconFloat 3.2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.capability-head .icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Business cards */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.biz-card a {
  display: block;
  height: 100%;
  padding-bottom: 8px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.biz-card a:hover {
  transform: translateY(-8px);
}

.biz-card .card-media {
  overflow: hidden;
  background: var(--blue-tint);
  box-shadow: var(--shadow-sm);
}

.biz-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 305 / 240;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.biz-card a:hover img {
  transform: scale(1.06);
}

.biz-card a:hover .card-media {
  box-shadow: var(--shadow-md);
}

.biz-card h3 {
  margin-top: 18px;
  font-size: 16px;
  color: var(--blue);
  font-weight: 700;
  text-align: center;
  transition: color 0.25s;
}

.biz-card a:hover h3 {
  color: var(--blue-deep);
}

.biz-card p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  text-align: left;
  padding: 0 4px;
}

/* Subpage content */
.page-body {
  padding: 72px 0 88px;
  background: #fff;
}

.page-body .section-title {
  margin-bottom: 0;
}

.page-body .lead {
  max-width: 960px;
}

.page-body .lead--justify {
  text-align: justify;
  text-align-last: center;
}

.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}

.media-pair figure {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.media-pair figure:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.media-pair figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 608 / 388;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media-pair figure:hover img {
  transform: scale(1.04);
}

.gallery-stack {
  margin-top: 52px;
}

.gallery-stack .main-shot {
  width: 100%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery-stack figure:hover .main-shot {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.gallery-stack .caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 16px 0 32px;
  letter-spacing: 0.5px;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gallery-row figure {
  overflow: hidden;
}

.gallery-row figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 608 / 388;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-row figure:hover img {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.gallery-row .caption {
  margin-bottom: 0;
  margin-top: 14px;
}

.figure-block {
  margin-top: 48px;
  text-align: center;
}

.figure-block img {
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  filter: drop-shadow(0 12px 30px rgba(26, 59, 141, 0.12));
  transition: transform 0.5s var(--ease);
}

.figure-block:hover img {
  transform: translateY(-4px);
}

.closing {
  max-width: 960px;
  margin: 52px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.95;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--blue-wash), #fff);
  border-top: 1px solid var(--border);
}

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(180deg, #252d3a 0%, var(--footer-bg) 100%);
  color: var(--footer-text);
  text-align: center;
  padding: 40px 20px 32px;
  font-size: 13px;
  line-height: 2.05;
}

.site-footer a {
  color: var(--footer-text);
  transition: color 0.25s;
}

.site-footer a:hover {
  color: #fff;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-legal img {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.footer-badge {
  margin-top: 14px;
}

.footer-badge img {
  width: 42px;
  height: auto;
  margin: 0 auto;
  transition: transform 0.3s var(--ease);
}

.footer-badge img:hover {
  transform: scale(1.08);
}

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  :root {
    --banner-h: 400px;
  }
}

@media (max-width: 1100px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav a {
    padding: 24px 10px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --banner-h: 240px;
  }

  .header-main .container {
    flex-direction: column;
    padding: 16px 20px;
    min-height: auto;
    gap: 8px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .nav a {
    padding: 10px 12px;
  }

  .nav a::after,
  .nav a.active::after {
    bottom: 4px;
  }

  .about-grid,
  .media-pair,
  .gallery-row,
  .biz-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .page-body {
    padding: 48px 0 56px;
  }

  .section-title {
    font-size: 24px;
  }

  .about-grid img {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .capability-head .icon-wrap,
  .hero::after,
  .section-title::after {
    animation: none !important;
  }

  .hero__media {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .biz-card a:hover,
  .media-pair figure:hover,
  .diagram:hover img,
  .figure-block:hover img {
    transform: none;
  }
}
