/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1c2430;
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.narrow { width: min(820px, 92vw); }
.center { text-align: center; margin-top: 2rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  transition: .2s; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid #eef1f6; transition: .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,40,80,.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 1.35rem; color: var(--primary); }
.brand-mark { color: var(--primary); }
.brand-sub { color: #1c2430; font-weight: 700; font-size: .95rem; letter-spacing: .5px; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) { color: #43506a; font-weight: 500; font-size: .95rem; }
.site-nav a.active, .site-nav a:hover { color: var(--primary); }
.nav-cta { margin-left: .3rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* language switch */
.lang-switch { position: relative; }
.lang-current {
  background: #f1f4fa; border: 1px solid #e2e8f3; color: #43506a;
  border-radius: 7px; padding: .4rem .7rem; font-weight: 600; cursor: pointer; font-size: .85rem;
}
.lang-menu {
  position: absolute; right: 0; top: 120%; background: #fff; border: 1px solid #e2e8f3;
  border-radius: 8px; box-shadow: 0 10px 30px rgba(20,40,80,.12);
  display: none; min-width: 130px; overflow: hidden;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { display: block; }
.lang-menu a { display: block; padding: .55rem .9rem; font-size: .9rem; color: #43506a; }
.lang-menu a:hover { background: #f1f4fa; color: var(--primary); }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--accent)); color: #fff; padding: 4.5rem 0 5rem; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; letter-spacing: .5px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.hero-sub { font-size: 1.1rem; opacity: .95; max-width: 36rem; }
.hero-actions { display: flex; gap: 1rem; margin: 1.8rem 0; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.hero-points li { position: relative; padding-left: 1.6rem; opacity: .95; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: #fff; font-weight: 800; }
.hero-art { display: flex; justify-content: center; }
.pcb-card {
  width: 280px; height: 200px; border-radius: 16px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pcb-lines { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px; }
.pcb-chip { position: relative; background: #fff; color: var(--primary); font-weight: 800; letter-spacing: 2px; padding: 1.1rem 1.6rem; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* ===== Stats ===== */
.stats-band { background: #0d1b34; color: #fff; padding: 2.4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; text-align: center; }
.stats-grid.compact { grid-template-columns: repeat(4, 1fr); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .82rem; opacity: .85; margin-top: .2rem; }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }
.section-alt { background: #f6f8fc; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.6rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.section-sub { color: #5b6b85; font-size: 1.05rem; }
.lead { color: #46546e; font-size: 1.05rem; }
.lead.wide { max-width: 56rem; }
.muted { color: #7a899e; font-size: .9rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col.contact-layout { align-items: start; }

/* cards */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.five { grid-template-columns: repeat(5, 1fr); }
.feature-card { background: #fff; border: 1px solid #eaeef6; border-radius: 14px; padding: 1.6rem; transition: .2s; }
.feature-card:hover { box-shadow: 0 14px 34px rgba(20,40,80,.1); transform: translateY(-3px); border-color: #d6e0f2; }
.feature-card h3 { font-size: 1.15rem; }
.card-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); margin-bottom: .9rem; }
.card-icon svg { width: 26px; height: 26px; }
.center-card { text-align: center; }
.center-card .card-icon { margin: 0 auto .9rem; }

.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.mini-card { display: flex; gap: .9rem; background: #fff; border: 1px solid #eaeef6; border-radius: 12px; padding: 1rem 1.2rem; }
.mini-icon { color: var(--primary); flex: 0 0 auto; }
.mini-icon svg { width: 28px; height: 28px; }
.mini-card p { margin: 0; font-size: .92rem; color: #5b6b85; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.step { background: #fff; border: 1px solid #eaeef6; border-radius: 12px; padding: 1.3rem; text-align: center; }
.step-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.step h4 { margin: .4rem 0 .3rem; }
.step p { font-size: .85rem; color: #5b6b85; margin: 0; }

/* faq */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: #fff; border: 1px solid #eaeef6; border-radius: 10px; padding: .2rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: .9rem 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--primary); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: #5b6b85; padding-bottom: .8rem; }

/* quotes */
.quote-card { background: #fff; border: 1px solid #eaeef6; border-radius: 14px; padding: 1.6rem; }
.quote { font-size: 1.02rem; color: #2c3a52; }
.quote-by { margin-top: 1rem; }
.quote-by span { display: block; color: #7a899e; font-size: .85rem; }

/* ===== Page hero ===== */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 3.2rem 0; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-hero p { opacity: .95; max-width: 40rem; }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { background: #fff; border: 1px solid #eaeef6; border-radius: 14px; padding: 1.8rem; text-align: center; }
.avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: .9rem; }
.team-card p { color: #5b6b85; font-size: .92rem; }

/* ===== Capabilities table ===== */
.group-title { font-size: 1.3rem; font-weight: 800; margin: 2rem 0 1rem; }
.spec-table { border: 1px solid #eaeef6; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.spec-row { display: grid; grid-template-columns: 1fr 2fr; padding: .8rem 1.2rem; border-bottom: 1px solid #eef1f6; }
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: #f7f9fd; }
.spec-param { font-weight: 600; color: #2c3a52; }
.spec-value { color: #5b6b85; }

/* ===== Services ===== */
.service-list { display: flex; flex-direction: column; gap: 1.2rem; }
.service-row { display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem; background: #fff; border: 1px solid #eaeef6; border-radius: 14px; padding: 1.6rem; align-items: start; }
.service-icon { width: 64px; height: 64px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.service-icon svg { width: 34px; height: 34px; }
.service-head { display: flex; align-items: center; gap: .8rem; }
.tag { background: color-mix(in srgb, var(--accent) 16%, #fff); color: #0a7d6e; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.feature-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .8rem 0 0; }
.feature-tags li { background: #f1f4fa; color: #43506a; padding: .3rem .8rem; border-radius: 7px; font-size: .85rem; }

/* ===== Contact ===== */
.contact-info h3, .contact-form-wrap h3 { font-size: 1.3rem; }
.info-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list span { font-size: 1.3rem; }
.info-list strong { color: #2c3a52; }
.quote-form { background: #fff; border: 1px solid #eaeef6; border-radius: 16px; padding: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-form label { display: block; font-size: .9rem; font-weight: 600; color: #43506a; margin-bottom: 1rem; }
.quote-form input, .quote-form textarea {
  width: 100%; margin-top: .35rem; padding: .7rem .9rem; border: 1px solid #d9e1ee; border-radius: 9px;
  font: inherit; color: #1c2430; background: #fbfcfe;
}
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, #fff); }
.form-note { font-size: .85rem; color: #7a899e; }
.form-msg { font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: #0a8a4a; }
.form-msg.err { color: #c0392b; }

/* ===== CTA ===== */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 3.5rem 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-inner p { opacity: .95; max-width: 38rem; margin: 0 auto 1.6rem; }

/* ===== Footer ===== */
.site-footer { background: #0d1b34; color: #c7d2e6; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .9rem; margin: 1rem 0; max-width: 22rem; }
.social { display: flex; gap: .6rem; }
.social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.social a:hover { background: var(--primary); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a, .contact-mini li { color: #c7d2e6; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.contact-mini { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.2rem 0; font-size: .85rem; }

/* ===== Image frames ===== */
.hero-img {
  width: 100%; max-width: 460px; border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); object-fit: cover; aspect-ratio: 4 / 3;
}
.card-thumb {
  width: 100%; height: 150px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 8%, #fff);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 1rem;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .card-icon { margin-bottom: 0; }

.about-figure { border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(20,40,80,.12); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.img-placeholder {
  width: 100%; aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #eef2f9, #eef2f9 14px, #e4eaf4 14px, #e4eaf4 28px);
  display: flex; align-items: center; justify-content: center; color: #8a98b0; font-weight: 600; border-radius: 16px;
}

.team-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; background: var(--primary); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .avatar { width: 100%; height: 100%; border-radius: 50%; }

.cert-logo { height: 56px; display: flex; align-items: center; justify-content: center; margin: 0 auto .9rem; }
.cert-logo img { max-height: 56px; max-width: 100%; object-fit: contain; }
.cert-logo .card-icon { margin-bottom: 0; }

.service-img { width: 100%; height: 100%; object-fit: contain; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid #eaeef6; background: #fff; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gallery-item figcaption { padding: .7rem .9rem; font-size: .9rem; color: #43506a; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three, .card-grid.four, .card-grid.five { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 0 4vw 1rem; border-bottom: 1px solid #eef1f6; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; width: 100%; border-bottom: 1px solid #f0f3f8; }
  .lang-switch { width: 100%; }
  .lang-current { width: 100%; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid.two, .card-grid.three, .card-grid.four, .card-grid.five { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: .2rem; }
}
