:root{
  --accent: #e74c3c;
  --text: #222;
  --muted: #666;
  --border: #e9e9e9;
  --bg: #fff;
  --dark: #0f0f0f;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Layout */
.container{
  width: min(1120px, 92%);
  margin: 0 auto;
}
.container.narrow{
  width: min(980px, 92%);
}
.center{ text-align: center; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand img{
  height: 34px;
  width: auto;
  display: block;
}
.nav{
  display: flex;
  gap: 22px;
}
.nav a{
  text-decoration: none;
  color: #111;
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover{ color: var(--accent); }

/* Hero */
.hero{
  background: #121212;
  color: #fff;
  padding: 90px 0 80px;
}
.hero-inner{
  text-align: left;
}
.hero-kicker{
  font-size: 12px;
  letter-spacing: .15em;
  opacity: .8;
  margin: 0 0 14px;
}
.hero h1{
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  margin: 0 0 22px;
  font-weight: 800;
}

/* Buttons */
.btn{
  display: inline-block;
  padding: 12px 20px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-black{
  background: #000;
  color: #fff;
  border-color: #000;
}
.btn-black:hover{
  opacity: .9;
}
.btn-outline-red{
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-red:hover{
  background: var(--accent);
  color: #fff;
}

/* Sections */
.section{
  padding: 70px 0;
}
.section-title{
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
}
.section-subtitle{
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 500;
}

/* Squiggle */
.squiggle{
  width: 54px;
  height: 14px;
  margin: 14px auto 0;
  position: relative;
}
.squiggle::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 6px 8px, var(--accent) 2px, transparent 3px) 0 0 / 18px 14px repeat-x;
  opacity: .95;
}

/* Copy text */
.copy{
  text-align: left;
  margin-top: 36px;
}
.copy p{
  margin: 0 0 18px;
  color: #666;
  line-height: 1.75;
  font-size: 14px;
}
.copy ul{
  margin: 10px auto 18px;
  text-align: left;
  display: inline-block;
  color: #666;
  line-height: 1.8;
  font-size: 14px;
}

/* Banner */
.banner{
  background: linear-gradient(90deg, #000, #1a1a1a);
  padding: 44px 0;
}
.banner-inner h3{
  margin: 0;
  color: var(--accent);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  text-align: left;
}

/* Clients (balanced like original) */
.clients-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 56px;
  margin-top: 48px;
  align-items: center;
  justify-items: center;
}
/* === CLIENT LOGOS – FINAL FIX === */
.client-logo {
  height: 140px;              /* 整个格子的高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  height: 100px;              /* ← 关键：用 height，不是 max-height */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}


/* Services */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.service-card{
  border: 1px solid var(--border);
  padding: 34px 24px;
  background: #fff;
}
.icon-square{
  width: 58px;
  height: 58px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.icon-square svg{
  width: 28px;
  height: 28px;
  color: #111;
}
.service-card h3{
  margin: 6px 0 14px;
  font-weight: 800;
}
.service-card ul{
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  color: #777;
  line-height: 1.9;
  font-size: 13px;
}
.service-card ul.plain li{ margin: 0; }

/* Video */
.video-wrap{
  width: min(900px, 92%);
  margin: 40px auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}
.video-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Contact */
.contact-form{
  width: min(520px, 92%);
  margin: 40px auto 0;
  text-align: left;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: #ccc;
}
.form-note{
  color: #777;
  font-size: 12px;
  margin: 12px 0 0;
  text-align: center;
}

/* Footer */
.footer-top{
  background: var(--accent);
  color: #fff;
  padding: 42px 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.footer-brand img{
  height: 46px;
  width: auto;
  display: block;
}
.footer h4{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}
.footer p, .footer a{
  margin: 0;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
}
.footer a:hover{ text-decoration: underline; }
.social{
  display: flex;
  gap: 12px;
  align-items: center;
}
.social a{
  display: inline-flex;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.65);
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-weight: 800;
  text-transform: lowercase;
}

.footer-bottom{
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 16px 0;
}
.footer-bottom-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom-inner p{
  margin: 0;
  color: #222;
  font-size: 12px;
}
.footer-bottom-inner a{
  color: #222;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px){
  .service-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .nav{ gap: 14px; }
}

@media (max-width: 700px){
  .clients-grid{ grid-template-columns: repeat(2, 1fr); }
}
