:root {
  --blue: #1e49bc;
  --blue-dark: #163a96;
  --text: #222;
  --muted: #555;
  --line: #e6eaf2;
  --bg-soft: #f5f7fb;
  --white: #fff;
  --max: 1200px;
  --header-h: 100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Tahoma, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

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

.header-inner {
  height: 100%;
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  position: relative;
  font-family: Tahoma, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #333;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #222;
  transition: 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a1630;
}

.hero-bg {
  width: 100%;
  height: auto;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

/* Shared titles */
.section-title {
  margin: 0;
  color: var(--blue);
  font-family: Tahoma, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-sub {
  margin: 10px 0 0;
  font-size: 18px;
  color: #222;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* About */
.about {
  padding: 96px 0 80px;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-zh {
  margin: 28px 0 18px;
  font-size: 16px;
  color: #333;
}

.about-en {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--muted);
}

.about-media img {
  width: 100%;
  border-radius: 0 18px 18px 0;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: 0 18px 40px rgba(20, 40, 90, 0.12);
}

/* Why Choose Us */
.why {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
}

.why-head {
  text-align: right;
  margin-bottom: 40px;
}

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

.why-card {
  grid-column: span 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 180px;
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid #edf0f7;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(30, 73, 188, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card--wide {
  grid-column: span 4;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(30, 73, 188, 0.12);
}

.why-card-text {
  flex: 1;
  min-width: 0;
}

.why-card h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.35;
}

.why-card h3 span {
  display: inline-block;
  margin-top: 4px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
}

.why-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.why-card img {
  width: 92px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* Services */
.services {
  background: var(--white);
}

.services-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 720px;
}

.services-visual {
  position: relative;
  overflow: hidden;
  background: #dfe9f8;
}

.services-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.services-content {
  padding: 72px 56px 64px;
  background: var(--white);
}

.services-label {
  margin: 36px 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.service-item {
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  padding: 12px 14px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.service-item:hover,
.service-item.active {
  background: #f0f4ff;
  border-left-color: var(--blue);
}

.service-desc .zh {
  margin: 0 0 10px;
  color: #333;
}

.service-desc .en {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Custom OEM/ODM */
.custom {
  padding: 80px 0;
  background: linear-gradient(120deg, #0d1f4d 0%, #1e49bc 55%, #2b6ae8 100%);
  color: var(--white);
}

.custom-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.custom-copy h3 {
  margin: 0 0 24px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
}

.custom-copy ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.custom-copy li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 16px;
}

.custom-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7eb6ff;
  transform: translateY(-50%);
}

.custom-copy p {
  margin: 0;
  opacity: 0.92;
  font-size: 15px;
}

.custom-media {
  display: flex;
  justify-content: center;
}

.custom-media img {
  width: min(100%, 520px);
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 11;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Industries */
.industries {
  padding: 96px 0;
  background: var(--bg-soft);
}

.industries-head {
  margin-bottom: 40px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.industry-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 40, 90, 0.08);
  transition: transform 0.25s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
}

.industry-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.industry-body {
  padding: 22px 24px 28px;
}

.industry-body h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 18px;
}

.industry-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Strength */
.strength {
  padding: 96px 0;
  background: var(--white);
}

.strength-head {
  margin-bottom: 40px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.strength-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.strength-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.strength-body {
  padding: 24px 26px 30px;
}

.strength-tag {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.strength-body h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.4;
  color: #111;
}

.strength-body h3 span {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: #444;
}

.strength-body p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Contact */
.contact {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  color: var(--white);
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transform: scale(1.02);
}

.contact-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
}

.contact-en {
  margin: 0 0 28px;
  opacity: 0.9;
}

.contact-info h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.contact-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-info li {
  margin-bottom: 10px;
  font-size: 15px;
}

.contact-info a {
  color: #9ec2ff;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(6px);
}

.form-intro-zh {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.form-intro-en {
  margin: 0 0 22px;
  font-size: 13px;
  opacity: 0.85;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 13px;
}

.contact-form em {
  color: #ff8e8e;
  font-style: normal;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  padding: 12px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 73, 188, 0.2);
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 6px;
}

.form-msg {
  margin: 4px 0 0;
  font-size: 14px;
  color: #b7f0c2;
}

/* Footer */
.site-footer {
  background: #0d1530;
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0 42px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  margin-bottom: 18px;
}

.footer-nav a {
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
}

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

.site-footer p {
  margin: 6px 0;
  font-size: 13px;
}

.footer-meta {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1100px) {
  .why-card,
  .why-card--wide {
    grid-column: span 6;
  }

  .about-grid,
  .services-panel,
  .custom-inner,
  .contact-panel,
  .strength-grid {
    grid-template-columns: 1fr;
  }

  .services-visual {
    min-height: 360px;
  }

  .services-content {
    padding: 48px 28px 56px;
  }

  .why-head,
  .industries-head,
  .strength-head {
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 24px;
  }

  .main-nav a.active::after,
  .main-nav a:hover::after {
    display: none;
  }

  .hero-bg {
    min-height: 280px;
  }

  .about,
  .why,
  .industries,
  .strength,
  .contact,
  .custom {
    padding: 64px 0;
  }

  .about-media img {
    border-radius: 12px;
    aspect-ratio: 16 / 11;
  }

  .why-card,
  .why-card--wide,
  .industry-grid,
  .strength-grid {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .industry-card img,
  .strength-card img {
    height: 180px;
  }

  .custom-media img {
    width: min(100%, 280px);
  }

  .page-hero {
    min-height: 280px;
  }

  .page-hero-copy h1 {
    font-size: 36px;
  }

  .split-grid,
  .vision-grid,
  .svc-grid,
  .quote-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Inner pages ========== */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 18, 48, 0.72) 0%, rgba(8, 18, 48, 0.35) 55%, rgba(8, 18, 48, 0.2) 100%);
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max));
  margin: 0 auto 64px;
}

.page-hero-copy h1 {
  margin: 0;
  font-family: Tahoma, Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-hero-copy .ph-sub {
  margin: 10px 0 0;
  font-size: 22px;
}

.page-hero-copy .ph-desc {
  margin: 14px 0 0;
  font-size: 16px;
  opacity: 0.92;
}

.page-section {
  padding: 80px 0;
}

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

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

.split-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.split-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(30, 73, 188, 0.05);
}

.team-card h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 22px;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.vision-card {
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.vision-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.vision-card .body {
  padding: 22px 24px 28px;
}

.vision-card h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 22px;
}

.vision-card .zh {
  margin: 0 0 14px;
  font-weight: 600;
}

.vision-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.svc-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(30, 73, 188, 0.05);
  transition: transform 0.2s ease;
}

.svc-card:hover {
  transform: translateY(-3px);
}

.svc-card h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 20px;
}

.svc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.quote-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(30, 73, 188, 0.05);
}

.quote-card .client {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}

.quote-card p {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.partner-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.partner-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fafafa;
  border-radius: 8px;
}

.partner-card h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.4;
}

.partner-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-details {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 28px;
}

.contact-details h3 {
  margin: 0 0 18px;
  color: var(--blue);
}

.contact-details li {
  margin-bottom: 12px;
  list-style: none;
}

.contact-details ul {
  margin: 0;
  padding: 0;
}

.contact-details a {
  color: var(--blue);
}

.contact-page-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}

.contact-page-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-page-form span {
  font-size: 13px;
  color: #444;
}

.contact-page-form em {
  color: #d44;
  font-style: normal;
}

.contact-page-form input,
.contact-page-form textarea {
  border: 1px solid #d8deea;
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 73, 188, 0.15);
}

.prose p {
  margin: 0 0 14px;
  color: #444;
}

.prose .zh {
  color: #222;
}

@media (max-width: 900px) {
  .team-cards,
  .contact-page-grid,
  .partner-card {
    grid-template-columns: 1fr;
  }
}
