:root {
  --ink: #142033;
  --muted: #607089;
  --line: #d9e2ef;
  --bg: #f7f9fc;
  --panel: #ffffff;
  --teal: #0f9f98;
  --blue: #2563eb;
  --amber: #f59e0b;
  --dark: #101828;
  --shadow: 0 18px 45px rgba(20, 32, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { width: 132px; height: auto; }
.brand span { color: var(--dark); }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.main-nav a { color: #35445c; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--blue); }
.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: white;
}
.menu-toggle { display: none; border: 0; background: var(--dark); color: white; border-radius: 8px; width: 42px; height: 38px; font-size: 20px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px) 42px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 159, 152, 0.08) 45%, rgba(245, 158, 11, 0.08)),
    #f8fbff;
}
.hero-copy { max-width: 820px; }
.eyebrow, .section-head span, .page-hero span {
  display: inline-flex;
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.05; margin-bottom: 22px; letter-spacing: 0; }
.hero p { font-size: clamp(17px, 2vw, 21px); color: #40506a; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary { background: var(--blue); color: white; box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24); }
.btn.ghost { background: white; border-color: var(--line); }
.hero-media {
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div { background: white; padding: 24px clamp(18px, 4vw, 56px); }
.stats strong { display: block; font-size: clamp(22px, 3vw, 34px); color: var(--dark); }
.stats span { color: var(--muted); }

.section, .band, .cta, .page-hero, .article, .admin-shell {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}
.band { background: #eaf3f7; }
.section-head { max-width: 780px; margin-bottom: 28px; }
.section-head h2, .page-hero h1, .cta h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.15; margin: 8px 0 0; }
.section-head p, .page-hero p, .cta p { color: var(--muted); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card, .case-card, .post-card, .contact-panel, .lead-form, .admin-grid article, .editor {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.06);
}
.service-card h3, .case-card h3, .post-card h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.25; }
.service-card p, .case-card p, .post-card p { color: var(--muted); }
.service-card ul { padding-left: 18px; margin-bottom: 0; color: #33445c; }

.split-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.split-list article {
  padding: 24px 0;
  border-top: 1px solid rgba(20, 32, 51, 0.18);
}
.case-row, .post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.post-card { padding: 0; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card span, .post-card h3, .post-card p { margin-left: 20px; margin-right: 20px; }
.post-card span { display: inline-flex; margin-top: 18px; color: var(--teal); font-weight: 800; font-size: 13px; }
.post-card p { padding-bottom: 20px; }

.cta {
  text-align: center;
  background: var(--dark);
  color: white;
}
.cta p { color: #cbd5e1; max-width: 720px; margin-left: auto; margin-right: auto; }
.inline-lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 10px;
  max-width: 980px;
  margin: 26px auto 0;
}
.inline-lead-form input {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: white;
}
.inline-lead-form input::placeholder { color: #cbd5e1; }
.page-hero {
  background: linear-gradient(135deg, #eef6ff, #f7f9fc 55%, #f2fbf6);
}
.page-hero p { max-width: 780px; font-size: 18px; }
.faq { max-width: 980px; margin: 0 auto; }
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq summary { font-weight: 800; cursor: pointer; }

.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contact-panel img { width: 150px; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; }
.lead-form { display: grid; gap: 12px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }

.article { max-width: 920px; margin: 0 auto; background: white; }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
.article h1 { font-size: clamp(32px, 4vw, 52px); }
.article-meta, .article-excerpt { color: var(--muted); }
.rich-text h2 { margin-top: 32px; }

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 44px clamp(18px, 5vw, 72px) 24px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}
.footer-logo { width: 132px; margin-bottom: 16px; }
.qr-grid { display: flex; gap: 18px; }
.qr-grid img { width: 112px; border: 1px solid var(--line); border-radius: 8px; }
.qr-grid figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.float-contact {
  position: fixed;
  right: 16px;
  top: 42vh;
  z-index: 30;
  display: grid;
  gap: 8px;
}
.float-contact a, .float-contact button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  min-width: 52px;
  min-height: 42px;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(20, 32, 51, 0.1);
  cursor: pointer;
}
.qr-pop {
  display: none;
  position: absolute;
  right: 64px;
  top: 48px;
  width: 150px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 13px;
}
.qr-pop.open { display: block; }

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef6ff;
}
.admin-login {
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.admin-login img { width: 150px; }
.error { color: #b42318; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-grid strong { display: block; font-size: 34px; }
.editor { display: grid; gap: 12px; margin-bottom: 28px; }
.admin-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.admin-list span { color: var(--muted); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 66px;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .stats, .card-grid, .case-row, .post-list, .contact-layout, .site-footer { grid-template-columns: 1fr 1fr; }
  .split-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand img { width: 118px; }
  .hero, .section, .band, .cta, .page-hero, .article, .admin-shell { padding-left: 16px; padding-right: 16px; }
  .stats, .card-grid, .case-row, .post-list, .contact-layout, .site-footer, .admin-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .inline-lead-form { grid-template-columns: 1fr; }
  .float-contact {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: white;
    border-top: 1px solid var(--line);
  }
  .float-contact a, .float-contact button {
    border-radius: 0;
    box-shadow: none;
    border-width: 0 1px 0 0;
  }
  .qr-pop { right: 12px; bottom: 58px; top: auto; }
  .footer-bottom { padding-bottom: 58px; }
  .admin-list div { display: block; }
}
