:root {
  --primary:        #1A4D8F;
  --primary-hover:  #2563AB;
  --primary-dark:   #0D3A6E;
  --primary-light:  #E8F0FA;
  --accent:         #00A8E8;
  --bg:             #F5F7FA;
  --white:          #FFFFFF;
  --text:           #1F2937;
  --text-muted:     #6B7280;
  --border:         #E5E7EB;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
  --shadow:         0 4px 12px rgba(26,77,143,0.08);
  --shadow-lg:      0 10px 30px rgba(26,77,143,0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-dark);
}
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text strong {
  font-size: 18px;
  color: var(--primary-dark);
}
.logo-text span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-main a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  border-radius: 6px;
  transition: all .2s ease;
}
.nav-main a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-main a.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.header-cta .phone {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -100px, rgba(0,168,232,0.15), transparent 60%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2563AB 100%);
  color: var(--white);
  padding: 96px 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0, transparent 60px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0, transparent 80px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: #6DD5FA; }
.hero p.lead {
  font-size: 18px;
  line-height: 1.7;
  opacity: .92;
  margin: 0 0 28px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-primary:hover { background: var(--primary-light); color: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.stat-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 22px;
}
.stat-card .num {
  font-size: 32px;
  font-weight: 700;
  color: #6DD5FA;
  line-height: 1.1;
}
.stat-card .label {
  font-size: 13px;
  opacity: .85;
  margin-top: 6px;
}

/* ---------- Section ---------- */
.section {
  padding: 72px 24px;
}
.section-alt { background: var(--white); }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section h2 {
  text-align: center;
  font-size: 32px;
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-weight: 700;
}
.section .sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 48px;
  max-width: 720px;
}

/* ---------- Service Cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: all .25s ease;
  border-top: 3px solid var(--primary);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}
.service-card .icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.service-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--primary-dark);
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.6;
}
.service-card a.more {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin: 0 0 16px;
}
.about-text p {
  color: #374151;
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.85;
}
.about-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; }

/* ---------- Certs ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.cert-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
}
.cert-card .abbr {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}
.cert-card .full {
  font-size: 14px;
  margin-top: 8px;
  opacity: .85;
}

/* ---------- Partner logos ---------- */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.partner-row span {
  padding: 8px 18px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

/* ---------- Layout (inner pages) ---------- */
.page-wrap {
  padding: 40px 24px 80px;
}
.page-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.sidebar h4 {
  margin: 0;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.sidebar li a {
  display: block;
  padding: 11px 22px;
  font-size: 14.5px;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: all .15s ease;
}
.sidebar li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}
.sidebar li a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
  border-left-color: var(--primary);
}

/* ---------- Content ---------- */
.content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 40px 44px;
  min-width: 0;
}
.content h1 {
  font-size: 28px;
  color: var(--primary-dark);
  margin: 0 0 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.content .desc {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 28px;
}
.content-body {
  color: #2d3748;
  font-size: 15.5px;
  line-height: 1.9;
}
.content-body p { margin: 0 0 14px; }
.content-body img { margin: 14px auto; border-radius: 6px; box-shadow: var(--shadow-sm); }
.content-body ul, .content-body ol { padding-left: 24px; }
.content-body li { margin: 6px 0; }
.content-body h2, .content-body h3 {
  color: var(--primary-dark);
  margin: 28px 0 12px;
  font-weight: 600;
}
.content-body h2 { font-size: 22px; }
.content-body h3 { font-size: 18px; }
.content-body strong { color: var(--primary-dark); }

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 40px 44px;
  max-width: 760px;
  margin: 0 auto;
}
.contact-card .row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row .ico {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-card .row .lbl { color: var(--text-muted); font-size: 13.5px; }
.contact-card .row .val { color: var(--text); font-size: 16px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 56px 24px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-col h5 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--white);
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a {
  color: rgba(255,255,255,.7);
  font-size: 13.5px;
}
.footer-col a:hover { color: #6DD5FA; }
.footer-col p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.7); margin: 0 0 8px; }
.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0 16px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.footer-links a { color: rgba(255,255,255,.6); }
.copyright {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-inner { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-main { display: none; }
  .nav-main.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 12px;
    box-shadow: var(--shadow);
    align-items: stretch;
  }
  .mobile-toggle { display: inline-flex; }
  .content { padding: 24px; }
  .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .section { padding: 48px 16px; }
  .hero { padding: 64px 16px 56px; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-cta .phone-text { display: none; }
}
/* ============================================================
   全站增强样式（2026-08 优化）
   ============================================================ */
html { scroll-behavior: smooth; }

:focus-visible { outline: 3px solid rgba(0,168,232,.55); outline-offset: 2px; border-radius: 4px; }

/* ---------- 内容区表格美化 ---------- */
.content-body table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14.5px;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}
.content-body table th,
.content-body table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  vertical-align: top;
  text-align: left;
}
.content-body table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}
.content-body table tr:nth-child(even) td { background: #FAFBFD; }
.content-body table p { text-indent: 0; }

/* ---------- 内容区标题 / 段落 / 图片 ---------- */
.content-body h3.content-title {
  margin: 30px 0 14px;
  padding: 6px 14px;
  font-size: 17px;
  color: var(--primary-dark);
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, var(--primary-light), rgba(232,240,250,0));
  border-radius: 0 6px 6px 0;
}
.content-body p.para { text-indent: 2em; }
.content-body p.content-img { text-indent: 0; text-align: center; margin: 16px 0; }
.content-body p.content-img img { display: inline-block; border-radius: 8px; box-shadow: var(--shadow-sm); }

/* ---------- 顶部横幅 ---------- */
.content-banner {
  margin: -40px -44px 28px;
  padding: 20px 44px;
  background: linear-gradient(135deg, var(--primary-light), #F4F9FF);
  border-bottom: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  text-align: center;
}
.content-banner img {
  margin: 0 auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-hover); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .content-banner { margin: -24px -24px 24px; padding: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
