/* =====================================================
   青岛成瑞信息技术有限公司 — 官网样式
   科技蓝 · 专业稳重
   ===================================================== */
:root {
  --blue-900: #081c3f;
  --blue-800: #0a2452;
  --blue-700: #0b3a8f;
  --blue-600: #0b4dc7;
  --blue-500: #1668ff;
  --blue-400: #4d92ff;
  --blue-100: #dbe9ff;
  --blue-50:  #f0f5ff;
  --ink-900: #14213d;
  --ink-600: #4a5570;
  --ink-400: #8a94ab;
  --line: #e3eaf5;
  --bg-soft: #f4f7fc;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(11, 58, 143, 0.07);
  --shadow-md: 0 10px 30px rgba(11, 58, 143, 0.12);
  --radius: 14px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.pc-only { display: inline; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head em {
  display: block; font-style: normal; font-size: 13px; font-weight: 600;
  letter-spacing: 4px; color: var(--blue-500); margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px); letter-spacing: 2px; color: var(--ink-900);
}
.section-head h2::after {
  content: ""; display: block; width: 46px; height: 3px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); border-radius: 2px;
}
.section-head p { margin-top: 14px; color: var(--ink-600); font-size: 15.5px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.78); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  transition: all .25s ease; border: 1.5px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff; box-shadow: 0 8px 22px rgba(22, 104, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,104,255,.45); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(8,28,63,.09);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: flex; filter: drop-shadow(0 2px 6px rgba(11,77,199,.3)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 17px; letter-spacing: 1px; color: #fff; transition: color .3s; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: 1.5px; color: rgba(255,255,255,.65); transition: color .3s; }
.site-header.scrolled .brand-text strong { color: var(--ink-900); }
.site-header.scrolled .brand-text em { color: var(--ink-400); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 15px; color: rgba(255,255,255,.85); font-weight: 500;
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  border-radius: 2px; transition: width .25s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.site-header.scrolled .nav-link { color: var(--ink-600); }
.site-header.scrolled .nav-link:hover, .site-header.scrolled .nav-link.active { color: var(--blue-600); }
.nav-cta {
  padding: 9px 22px; border-radius: 999px; color: #fff !important;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 4px 14px rgba(22,104,255,.35);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 110;
}
.nav-toggle span { width: 24px; height: 2.4px; background: #fff; border-radius: 2px; transition: all .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink-900); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05); animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6,20,48,.88) 0%, rgba(8,28,66,.72) 45%, rgba(10,36,82,.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 110px; }
.hero-tag {
  display: inline-block; padding: 7px 18px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; font-size: 13.5px; letter-spacing: 3px; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.22; letter-spacing: 4px;
  font-weight: 700; text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-sub {
  margin-top: 24px; font-size: clamp(15px, 1.6vw, 17.5px); color: rgba(255,255,255,.86);
  letter-spacing: 1px; max-width: 760px;
}
.hero-actions { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: clamp(28px, 5vw, 72px); margin-top: 72px;
  padding-top: 34px; border-top: 1px solid rgba(255,255,255,.18); flex-wrap: wrap;
}
.stat strong { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.stat span { display: block; font-size: 13.5px; color: rgba(255,255,255,.72); letter-spacing: 2px; margin-top: 4px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px;
  display: flex; justify-content: center; z-index: 2;
}
.hero-scroll span {
  width: 4px; height: 9px; background: #fff; border-radius: 3px; margin-top: 7px;
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: .2; } }

/* ---------- 关于我们 ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.about-text h3 {
  font-size: 22px; color: var(--ink-900); margin-bottom: 20px; letter-spacing: 1px;
  padding-left: 14px; border-left: 4px solid var(--blue-500); line-height: 1.35;
}
.about-text p { color: var(--ink-600); font-size: 15.5px; margin-bottom: 16px; text-align: justify; }
.about-text strong { color: var(--blue-600); }
.about-cards { display: flex; flex-direction: column; gap: 18px; }
.about-card {
  display: flex; gap: 18px; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ac-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600); display: grid; place-items: center;
}
.ac-icon svg { width: 24px; height: 24px; }
.about-card strong { display: block; font-size: 16px; color: var(--ink-900); margin-bottom: 3px; }
.about-card span { font-size: 13.5px; color: var(--ink-600); }

/* ---------- 核心技术 ---------- */
.services { background: var(--bg-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.service-card:hover::before { transform: scaleX(1); }
.sv-icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(22,104,255,.28);
}
.sv-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 10px; letter-spacing: 1px; }
.service-card p { font-size: 14px; color: var(--ink-600); }

/* ---------- 服务流程 ---------- */
.process { background: var(--white); }
.process-line {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative;
}
.process-line::before {
  content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-100) 0 8px, transparent 8px 16px);
}
.process-step { text-align: center; position: relative; padding-top: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; background: var(--bg-soft); color: var(--blue-600);
  font-weight: 700; font-size: 17px; border: 2px solid var(--blue-100);
  box-shadow: 0 4px 14px rgba(11,58,143,.10); margin-bottom: 18px; position: relative; z-index: 1;
  transition: all .25s;
}
.process-step:hover .step-num {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff; border-color: transparent; transform: translateY(-3px);
}
.process-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--ink-600); padding: 0 6px; }

/* ---------- 行业解决方案 ---------- */
.industries { background: var(--white); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.industry-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.industry-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.industry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.industry-card:hover::before { transform: scaleY(1); }
.ind-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ind-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600); display: grid; place-items: center;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.ind-icon svg { width: 26px; height: 26px; }
.industry-card:hover .ind-icon {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; box-shadow: 0 8px 18px rgba(22,104,255,.28);
}
.ind-head h3 { font-size: 19px; letter-spacing: 1px; color: var(--ink-900); }
.industry-card p { font-size: 14px; color: var(--ink-600); margin-bottom: 18px; flex: 1; }
.ind-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ind-tags li {
  font-size: 12.5px; color: var(--blue-700); background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: 999px; padding: 3px 12px;
}

/* ---------- 资质荣誉 ---------- */
.honor { background: var(--bg-soft); }
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.honor-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.honor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cert-thumb {
  height: 280px; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  -webkit-touch-callout: none; /* iOS 长按不呼出保存菜单 */
}
.cert-thumb img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform .3s ease;
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
  pointer-events: auto;
}
/* 透明遮罩：拦住"图片另存为/复制图像"的入口，点击穿透到父级开灯箱 */
.cert-thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: transparent; pointer-events: auto; cursor: zoom-in;
}
.cert-thumb { position: relative; }
.honor-card:hover .cert-thumb img { transform: scale(1.04); }
.honor-card figcaption { text-align: center; }
.honor-card h3 { font-size: 16.5px; color: var(--ink-900); margin-bottom: 6px; }
.hn-level {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue-600);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 3px 14px; border-radius: 999px; margin-bottom: 12px;
}
.hn-no { font-size: 12.5px; color: var(--ink-400); word-break: break-all; }

/* ---------- 联系我们 ---------- */
.contact { position: relative; color: #fff; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.contact-mask { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,20,48,.92), rgba(8,28,66,.82)); }
.contact-inner { position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; }
.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 24px 26px; backdrop-filter: blur(6px);
  transition: background .25s, transform .25s;
}
.contact-item:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.ct-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.14); display: grid; place-items: center; color: #9cc4ff;
}
.ct-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-size: 15.5px; margin-bottom: 4px; letter-spacing: 1px; }
.contact-item span { font-size: 13.5px; color: rgba(255,255,255,.8); }
.contact-item .placeholder { color: rgba(255,255,255,.55); font-style: italic; }
.contact-item a {
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
  letter-spacing: .4px; border-bottom: 1px solid rgba(255,255,255,.32);
  padding-bottom: 2px; transition: color .22s, border-color .22s;
}
.contact-item a:hover { color: #9cc4ff; border-color: #9cc4ff; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.65); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: 1px; }
.footer-brand span { font-size: 12.5px; letter-spacing: 2px; color: rgba(255,255,255,.5); }
.footer-meta { text-align: right; font-size: 12.5px; line-height: 1.9; }
.footer-meta .footer-contact { color: rgba(255,255,255,.6); }
.footer-meta .placeholder { color: rgba(255,255,255,.35); }
/* ICP 备案号：合规展示，浅灰可点，悬停提亮 */
.footer-meta .footer-icp { margin-top: 2px; }
.footer-meta .footer-icp a {
  color: rgba(255,255,255,.42);
  text-decoration: none;
  transition: color .2s;
}
.footer-meta .footer-icp a:hover { color: rgba(255,255,255,.85); text-decoration: underline; }

/* ---------- 证照灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; padding: 4vh 4vw;
  background: rgba(5, 14, 32, .9); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
  max-width: 92vw; max-height: 88vh; border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55); cursor: zoom-out;
}
.lightbox-close {
  position: absolute; top: 20px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 24px;
  background: rgba(255,255,255,.14); transition: background .2s, transform .2s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 28px; bottom: 34px; width: 46px; height: 46px;
  border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 8px 20px rgba(22,104,255,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s; z-index: 90; display: grid; place-items: center;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top svg { width: 20px; height: 20px; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
}

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 1024px) {
  .service-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
  .process-line::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .pc-only { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: linear-gradient(160deg, var(--blue-900), var(--blue-800));
    flex-direction: column; justify-content: center; gap: 8px;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.22,.9,.36,1);
    box-shadow: -12px 0 40px rgba(0,0,0,.35); padding: 90px 0 40px;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { color: rgba(255,255,255,.88) !important; font-size: 16.5px; padding: 13px 36px; width: 100%; }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-cta { margin: 18px 36px 0; width: auto; align-self: flex-start; }
  .hero-content { padding: 130px 0 90px; }
  .hero-stats { gap: 26px 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; gap: 10px; }
  .footer-brand div { display: flex; flex-direction: column; }
  .footer-meta { text-align: center; }
}
@media (max-width: 560px) {
  .brand-text strong { font-size: 14.5px; }
  .brand-text em { font-size: 8.5px; }
  .service-grid, .industry-grid, .honor-grid { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; }
  .hero-stats { margin-top: 48px; }
  .back-top { right: 18px; bottom: 22px; }
}
